|
@@ -1631,14 +1631,14 @@ discard block |
|
|
block discarded – undo |
|
1631
|
1631
|
$output['quickbuttons'] = array( |
|
1632
|
1632
|
'quote' => array( |
|
1633
|
1633
|
'label' => $txt['quote_action'], |
|
1634
|
|
- 'href' => $scripturl.'?action=post;quote='.$output['id'].';topic='.$context['current_topic'], '.'.$context['start'].';last_msg='.$context['topic_last_message'], |
|
1635
|
|
- 'javascript' => 'onclick="return oQuickReply.quote('.$output['id'].');"', |
|
|
1634
|
+ 'href' => $scripturl . '?action=post;quote=' . $output['id'] . ';topic=' . $context['current_topic'], '.' . $context['start'] . ';last_msg=' . $context['topic_last_message'], |
|
|
1635
|
+ 'javascript' => 'onclick="return oQuickReply.quote(' . $output['id'] . ');"', |
|
1636
|
1636
|
'icon' => 'quote', |
|
1637
|
1637
|
'show' => $context['can_quote'] |
|
1638
|
1638
|
), |
|
1639
|
1639
|
'quote_selected' => array( |
|
1640
|
1640
|
'label' => $txt['quote_selected_action'], |
|
1641
|
|
- 'id' => 'quoteSelected_'. $output['id'], |
|
|
1641
|
+ 'id' => 'quoteSelected_' . $output['id'], |
|
1642
|
1642
|
'href' => 'javascript:void(0)', |
|
1643
|
1643
|
'custom' => 'style="display:none"', |
|
1644
|
1644
|
'icon' => 'quote_selected', |
|
@@ -1647,71 +1647,71 @@ discard block |
|
|
block discarded – undo |
|
1647
|
1647
|
'quick_edit' => array( |
|
1648
|
1648
|
'label' => $txt['quick_edit'], |
|
1649
|
1649
|
'class' => 'quick_edit', |
|
1650
|
|
- 'id' =>' modify_button_'. $output['id'], |
|
1651
|
|
- 'custom' => 'onclick="oQuickModify.modifyMsg(\''.$output['id'].'\', \''.!empty($modSettings['toggle_subject']).'\')"', |
|
|
1650
|
+ 'id' =>' modify_button_' . $output['id'], |
|
|
1651
|
+ 'custom' => 'onclick="oQuickModify.modifyMsg(\'' . $output['id'] . '\', \'' . !empty($modSettings['toggle_subject']) . '\')"', |
|
1652
|
1652
|
'icon' => 'quick_edit_button', |
|
1653
|
1653
|
'show' => $output['can_modify'] |
|
1654
|
1654
|
), |
|
1655
|
1655
|
'more' => array( |
|
1656
|
1656
|
'modify' => array( |
|
1657
|
1657
|
'label' => $txt['modify'], |
|
1658
|
|
- 'href' => $scripturl.'?action=post;msg='.$output['id'].';topic='.$context['current_topic'].'.'.$context['start'], |
|
|
1658
|
+ 'href' => $scripturl . '?action=post;msg=' . $output['id'] . ';topic=' . $context['current_topic'] . '.' . $context['start'], |
|
1659
|
1659
|
'icon' => 'modify_button', |
|
1660
|
1660
|
'show' => $output['can_modify'] |
|
1661
|
1661
|
), |
|
1662
|
1662
|
'remove_topic' => array( |
|
1663
|
1663
|
'label' => $txt['remove_topic'], |
|
1664
|
|
- 'href' => $scripturl.'?action=removetopic2;topic='.$context['current_topic'].'.'.$context['start'].';'.$context['session_var'].'='.$context['session_id'], |
|
1665
|
|
- 'javascript' => 'data-confirm="'.$txt['are_sure_remove_topic'].'" class="you_sure"', |
|
|
1664
|
+ 'href' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'], |
|
|
1665
|
+ 'javascript' => 'data-confirm="' . $txt['are_sure_remove_topic'] . '" class="you_sure"', |
|
1666
|
1666
|
'icon' => 'remove_button', |
|
1667
|
1667
|
'show' => $context['can_delete'] && ($context['topic_first_message'] == $output['id']) |
|
1668
|
1668
|
), |
|
1669
|
1669
|
'remove' => array( |
|
1670
|
1670
|
'label' => $txt['remove'], |
|
1671
|
|
- 'href' => $scripturl.'?action=deletemsg;topic='.$context['current_topic'].'.'.$context['start'].';msg='.$output['id'].';'.$context['session_var'].'='.$context['session_id'], |
|
1672
|
|
- 'javascript' => 'data-confirm="'.$txt['remove_message_question'].'" class="you_sure"', |
|
|
1671
|
+ 'href' => $scripturl . '?action=deletemsg;topic=' . $context['current_topic'] . '.' . $context['start'] . ';msg=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'], |
|
|
1672
|
+ 'javascript' => 'data-confirm="' . $txt['remove_message_question'] . '" class="you_sure"', |
|
1673
|
1673
|
'icon' => 'remove_button', |
|
1674
|
1674
|
'show' => $output['can_remove'] && ($context['topic_first_message'] != $output['id']) |
|
1675
|
1675
|
), |
|
1676
|
1676
|
'split' => array( |
|
1677
|
1677
|
'label' => $txt['split'], |
|
1678
|
|
- 'href' => $scripturl.'?action=splittopics;topic='.$context['current_topic'].'.0;at='.$output['id'], |
|
|
1678
|
+ 'href' => $scripturl . '?action=splittopics;topic=' . $context['current_topic'] . '.0;at=' . $output['id'], |
|
1679
|
1679
|
'icon' => 'split_button', |
|
1680
|
1680
|
'show' => $context['can_split'] && !empty($context['real_num_replies']) |
|
1681
|
1681
|
), |
|
1682
|
1682
|
'report' => array( |
|
1683
|
1683
|
'label' => $txt['report_to_mod'], |
|
1684
|
|
- 'href' => $scripturl.'?action=reporttm;topic='.$context['current_topic'].'.'.$output['counter'].';msg='.$output['id'], |
|
|
1684
|
+ 'href' => $scripturl . '?action=reporttm;topic=' . $context['current_topic'] . '.' . $output['counter'] . ';msg=' . $output['id'], |
|
1685
|
1685
|
'icon' => 'error', |
|
1686
|
1686
|
'show' => $context['can_report_moderator'] |
|
1687
|
1687
|
), |
|
1688
|
1688
|
'warn' => array( |
|
1689
|
1689
|
'label' => $txt['issue_warning'], |
|
1690
|
|
- 'href' => $scripturl.'?action=profile;area=issuewarning;u='.$output['member']['id'].';msg='.$output['id'], |
|
|
1690
|
+ 'href' => $scripturl . '?action=profile;area=issuewarning;u=' . $output['member']['id'] . ';msg=' . $output['id'], |
|
1691
|
1691
|
'icon' => 'warn_button', |
|
1692
|
1692
|
'show' => $context['can_issue_warning'] && !$output['is_message_author'] && !$output['member']['is_guest'] |
|
1693
|
1693
|
), |
|
1694
|
1694
|
'restore' => array( |
|
1695
|
1695
|
'label' => $txt['restore_message'], |
|
1696
|
|
- 'href' => $scripturl.'?action=restoretopic;msgs='.$output['id'].';'.$context['session_var'].'='.$context['session_id'], |
|
|
1696
|
+ 'href' => $scripturl . '?action=restoretopic;msgs=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'], |
|
1697
|
1697
|
'icon' => 'restore_button', |
|
1698
|
1698
|
'show' => $context['can_restore_msg'] |
|
1699
|
1699
|
), |
|
1700
|
1700
|
'approve' => array( |
|
1701
|
1701
|
'label' => $txt['approve'], |
|
1702
|
|
- 'href' => $scripturl.'?action=moderate;area=postmod;sa=approve;topic='.$context['current_topic'].'.'.$context['start'].';msg='.$output['id'].';'.$context['session_var'].'='.$context['session_id'], |
|
|
1702
|
+ 'href' => $scripturl . '?action=moderate;area=postmod;sa=approve;topic=' . $context['current_topic'] . '.' . $context['start'] . ';msg=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'], |
|
1703
|
1703
|
'icon' => 'approve_button', |
|
1704
|
1704
|
'show' => $output['can_approve'] |
|
1705
|
1705
|
), |
|
1706
|
1706
|
'unapprove' => array( |
|
1707
|
1707
|
'label' => $txt['unapprove'], |
|
1708
|
|
- 'href' => $scripturl.'?action=moderate;area=postmod;sa=approve;topic='.$context['current_topic'].'.'.$context['start'].';msg='.$output['id'].';'.$context['session_var'].'='.$context['session_id'], |
|
|
1708
|
+ 'href' => $scripturl . '?action=moderate;area=postmod;sa=approve;topic=' . $context['current_topic'] . '.' . $context['start'] . ';msg=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'], |
|
1709
|
1709
|
'icon' => 'unapprove_button', |
|
1710
|
1710
|
'show' => $output['can_unapprove'] |
|
1711
|
1711
|
), |
|
1712
|
1712
|
), |
|
1713
|
1713
|
'quickmod' => array( |
|
1714
|
|
- 'id' => 'in_topic_mod_check_'. $output['id'], |
|
|
1714
|
+ 'id' => 'in_topic_mod_check_' . $output['id'], |
|
1715
|
1715
|
'custom' => 'style="display: none;"', |
|
1716
|
1716
|
'content' => '', |
|
1717
|
1717
|
'show' => !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $output['can_remove'], |