|
@@ 823-824 (lines=2) @@
|
| 820 |
|
// Build the poll moderation button array. |
| 821 |
|
$context['poll_buttons'] = array(); |
| 822 |
|
|
| 823 |
|
if ($context['allow_return_vote']) |
| 824 |
|
$context['poll_buttons']['vote'] = array('text' => 'poll_return_vote', 'image' => 'poll_options.png', 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start']); |
| 825 |
|
|
| 826 |
|
if ($context['show_view_results_button']) |
| 827 |
|
$context['poll_buttons']['results'] = array('text' => 'poll_results', 'image' => 'poll_results.png', 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start'] . ';viewresults'); |
|
@@ 826-827 (lines=2) @@
|
| 823 |
|
if ($context['allow_return_vote']) |
| 824 |
|
$context['poll_buttons']['vote'] = array('text' => 'poll_return_vote', 'image' => 'poll_options.png', 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start']); |
| 825 |
|
|
| 826 |
|
if ($context['show_view_results_button']) |
| 827 |
|
$context['poll_buttons']['results'] = array('text' => 'poll_results', 'image' => 'poll_results.png', 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start'] . ';viewresults'); |
| 828 |
|
|
| 829 |
|
if ($context['allow_change_vote']) |
| 830 |
|
$context['poll_buttons']['change_vote'] = array('text' => 'poll_change_vote', 'image' => 'poll_change_vote.png', 'url' => $scripturl . '?action=vote;topic=' . $context['current_topic'] . '.' . $context['start'] . ';poll=' . $context['poll']['id'] . ';' . $context['session_var'] . '=' . $context['session_id']); |
|
@@ 835-836 (lines=2) @@
|
| 832 |
|
if ($context['allow_lock_poll']) |
| 833 |
|
$context['poll_buttons']['lock'] = array('text' => (!$context['poll']['is_locked'] ? 'poll_lock' : 'poll_unlock'), 'image' => 'poll_lock.png', 'url' => $scripturl . '?action=lockvoting;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']); |
| 834 |
|
|
| 835 |
|
if ($context['allow_edit_poll']) |
| 836 |
|
$context['poll_buttons']['edit'] = array('text' => 'poll_edit', 'image' => 'poll_edit.png', 'url' => $scripturl . '?action=editpoll;topic=' . $context['current_topic'] . '.' . $context['start']); |
| 837 |
|
|
| 838 |
|
if ($context['can_remove_poll']) |
| 839 |
|
$context['poll_buttons']['remove_poll'] = array('text' => 'poll_remove', 'image' => 'admin_remove_poll.png', 'custom' => 'data-confirm="' . $txt['poll_remove_warn'] . '"', 'class' => 'you_sure', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']); |
|
@@ 1388-1389 (lines=2) @@
|
| 1385 |
|
if ($context['can_reply']) |
| 1386 |
|
$context['normal_buttons']['reply'] = array('text' => 'reply', 'image' => 'reply.png', 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';last_msg=' . $context['topic_last_message'], 'active' => true); |
| 1387 |
|
|
| 1388 |
|
if ($context['can_add_poll']) |
| 1389 |
|
$context['normal_buttons']['add_poll'] = array('text' => 'add_poll', 'image' => 'add_poll.png', 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start']); |
| 1390 |
|
|
| 1391 |
|
if ($context['can_mark_unread']) |
| 1392 |
|
$context['normal_buttons']['mark_unread'] = array('text' => 'mark_unread', 'image' => 'markunread.png', 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']); |