|
@@ 1295-1296 (lines=2) @@
|
| 1292 |
|
// Build the mod button array |
| 1293 |
|
$context['mod_buttons'] = array(); |
| 1294 |
|
|
| 1295 |
|
if ($context['can_move']) |
| 1296 |
|
$context['mod_buttons']['move'] = array('text' => 'move_topic', 'image' => 'admin_move.png', 'url' => $scripturl . '?action=movetopic;current_board=' . $context['current_board'] . ';topic=' . $context['current_topic'] . '.0'); |
| 1297 |
|
|
| 1298 |
|
if ($context['can_delete']) |
| 1299 |
|
$context['mod_buttons']['delete'] = array('text' => 'remove_topic', 'image' => 'admin_rem.png', 'custom' => 'data-confirm="' . $txt['are_sure_remove_topic'] . '"', 'class' => 'you_sure', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;' . $context['session_var'] . '=' . $context['session_id']); |
|
@@ 1307-1308 (lines=2) @@
|
| 1304 |
|
if ($context['can_sticky']) |
| 1305 |
|
$context['mod_buttons']['sticky'] = array('text' => empty($context['is_sticky']) ? 'set_sticky' : 'set_nonsticky', 'image' => 'admin_sticky.png', 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']); |
| 1306 |
|
|
| 1307 |
|
if ($context['can_merge']) |
| 1308 |
|
$context['mod_buttons']['merge'] = array('text' => 'merge', 'image' => 'merge.png', 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']); |
| 1309 |
|
|
| 1310 |
|
if ($context['calendar_post']) |
| 1311 |
|
$context['mod_buttons']['calendar'] = array('text' => 'calendar_link', 'image' => 'linktocal.png', 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0'); |
|
@@ 1310-1311 (lines=2) @@
|
| 1307 |
|
if ($context['can_merge']) |
| 1308 |
|
$context['mod_buttons']['merge'] = array('text' => 'merge', 'image' => 'merge.png', 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']); |
| 1309 |
|
|
| 1310 |
|
if ($context['calendar_post']) |
| 1311 |
|
$context['mod_buttons']['calendar'] = array('text' => 'calendar_link', 'image' => 'linktocal.png', 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0'); |
| 1312 |
|
|
| 1313 |
|
// Restore topic. eh? No monkey business. |
| 1314 |
|
if ($context['can_restore_topic']) |
|
@@ 1314-1315 (lines=2) @@
|
| 1311 |
|
$context['mod_buttons']['calendar'] = array('text' => 'calendar_link', 'image' => 'linktocal.png', 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0'); |
| 1312 |
|
|
| 1313 |
|
// Restore topic. eh? No monkey business. |
| 1314 |
|
if ($context['can_restore_topic']) |
| 1315 |
|
$context['mod_buttons']['restore_topic'] = array('text' => 'restore_topic', 'image' => '', 'url' => $scripturl . '?action=restoretopic;topics=' . $context['current_topic'] . ';' . $context['session_var'] . '=' . $context['session_id']); |
| 1316 |
|
|
| 1317 |
|
// Show a message in case a recently posted message became unapproved. |
| 1318 |
|
$context['becomesUnapproved'] = !empty($_SESSION['becomesUnapproved']) ? true : false; |