@@ -148,7 +148,7 @@ |
||
148 | 148 | <head> |
149 | 149 | <meta charset="', $context['character_set'], '"> |
150 | 150 | <title>', $context['page_title'], '</title> |
151 | - <link rel="stylesheet" href="', $settings['default_theme_url'], '/css/report.css', $modSettings['browser_cache'] ,'"> |
|
151 | + <link rel="stylesheet" href="', $settings['default_theme_url'], '/css/report.css', $modSettings['browser_cache'], '"> |
|
152 | 152 | </head> |
153 | 153 | <body>'; |
154 | 154 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | echo ' |
24 | 24 | <div class="infobox"> |
25 | - ', $txt['report_action_'. $context['report_post_action']], ' |
|
25 | + ', $txt['report_action_' . $context['report_post_action']], ' |
|
26 | 26 | </div>'; |
27 | 27 | } |
28 | 28 | |
@@ -65,18 +65,18 @@ discard block |
||
65 | 65 | <br> |
66 | 66 | <ul class="quickbuttons"> |
67 | 67 | <li><a href="', $report['report_href'], '">', $details_button, '</a></li> |
68 | - <li><a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" ', (!$report['ignore'] ? ' class="you_sure" data-confirm="'. $txt['mc_reportedp_ignore_confirm'] .'"' : '') ,'>', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li> |
|
68 | + <li><a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" ', (!$report['ignore'] ? ' class="you_sure" data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : ''), '>', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li> |
|
69 | 69 | <li><a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;closed=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '">', $close_button, '</a></li>'; |
70 | 70 | |
71 | 71 | // Delete message button. |
72 | 72 | if (!$report['closed'] && (is_array($context['report_remove_any_boards']) && in_array($report['topic']['id_board'], $context['report_remove_any_boards']))) |
73 | 73 | echo ' |
74 | - <li><a href="', $scripturl, '?action=deletemsg;topic=', $report['topic']['id'] ,'.0;msg=', $report['topic']['id_msg'] ,';modcenter;', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['mc_reportedp_delete_confirm'] ,'" class="you_sure">', $delete_button, '</a></li>'; |
|
74 | + <li><a href="', $scripturl, '?action=deletemsg;topic=', $report['topic']['id'], '.0;msg=', $report['topic']['id_msg'], ';modcenter;', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['mc_reportedp_delete_confirm'], '" class="you_sure">', $delete_button, '</a></li>'; |
|
75 | 75 | |
76 | 76 | // Ban this user button. |
77 | 77 | if (!$report['closed'] && !empty($context['report_manage_bans'])) |
78 | 78 | echo ' |
79 | - <li><a href="', $scripturl, '?action=admin;area=ban;sa=add', (!empty($report['author']['id']) ? ';u='. $report['author']['id'] : ';msg='. $report['topic']['id_msg']) ,';', $context['session_var'], '=', $context['session_id'], '">', $ban_button, '</a></li>'; |
|
79 | + <li><a href="', $scripturl, '?action=admin;area=ban;sa=add', (!empty($report['author']['id']) ? ';u=' . $report['author']['id'] : ';msg=' . $report['topic']['id_msg']), ';', $context['session_var'], '=', $context['session_id'], '">', $ban_button, '</a></li>'; |
|
80 | 80 | |
81 | 81 | if (!$context['view_closed']) |
82 | 82 | echo ' |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | |
97 | 97 | echo ' |
98 | 98 | <div class="pagesection"> |
99 | - ', !empty($context['total_reports']) && $context['total_reports'] >= $context['reports_how_many'] ? '<div class="pagelinks floatleft">'. $context['page_index']. '</div>' : '' ,' |
|
99 | + ', !empty($context['total_reports']) && $context['total_reports'] >= $context['reports_how_many'] ? '<div class="pagelinks floatleft">' . $context['page_index'] . '</div>' : '', ' |
|
100 | 100 | <div class="floatright">', !$context['view_closed'] ? ' |
101 | - <input type="hidden" name="'. $context['mod-report-close-all_token_var'] .'" value="'. $context['mod-report-close-all_token'] .'"> |
|
101 | + <input type="hidden" name="'. $context['mod-report-close-all_token_var'] . '" value="' . $context['mod-report-close-all_token'] . '"> |
|
102 | 102 | <input type="submit" name="close_selected" value="' . $txt['mc_reportedp_close_selected'] . '" class="button_submit">' : '', ' |
103 | 103 | </div> |
104 | 104 | </div> |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | { |
189 | 189 | echo ' |
190 | 190 | <div class="infobox"> |
191 | - ', $txt['report_action_'. $context['report_post_action']], ' |
|
191 | + ', $txt['report_action_' . $context['report_post_action']], ' |
|
192 | 192 | </div>'; |
193 | 193 | } |
194 | 194 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $unignore_button = create_button('ignore', 'mc_reportedp_unignore', 'mc_reportedp_unignore'); |
214 | 214 | |
215 | 215 | echo ' |
216 | - <a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;ignore=', (int) !$context['report']['ignore'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="button', (!$context['report']['ignore'] ? ' you_sure' : '') ,'"', (!$context['report']['ignore'] ? ' data-confirm="'. $txt['mc_reportedp_ignore_confirm'] .'"' : '') ,'>', $context['report']['ignore'] ? $unignore_button : $ignore_button, '</a> |
|
216 | + <a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;ignore=', (int) !$context['report']['ignore'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="button', (!$context['report']['ignore'] ? ' you_sure' : ''), '"', (!$context['report']['ignore'] ? ' data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : ''), '>', $context['report']['ignore'] ? $unignore_button : $ignore_button, '</a> |
|
217 | 217 | <a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;closed=', (int) !$context['report']['closed'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '" class="button">', $close_button, '</a> |
218 | 218 | </span> |
219 | 219 | </h3> |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | { |
251 | 251 | echo ' |
252 | 252 | <div class="title_bar"> |
253 | - <h3 class="titlebg">', $comment['member']['link'], ': <em class="smalltext">(', $comment['time'], ')</em>', ($comment['can_edit'] ? '<span class="floatright"><a href="' . $scripturl . '?action=moderate;area=reportedposts;sa=editcomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';'. $context['session_var'] .'='. $context['session_id'] .'" class="button">'. $txt['mc_reportedp_comment_edit'] .'</a><a href="' . $scripturl . '?action=moderate;area=reportedposts;sa=handlecomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';delete;'. $context['session_var'] .'='. $context['session_id']. ';'. $context['mod-reportC-delete_token_var'] .'='. $context['mod-reportC-delete_token'] .'" class="button">'. $txt['mc_reportedp_comment_delete'] .'</a></span>' : '') ,'</h3> |
|
253 | + <h3 class="titlebg">', $comment['member']['link'], ': <em class="smalltext">(', $comment['time'], ')</em>', ($comment['can_edit'] ? '<span class="floatright"><a href="' . $scripturl . '?action=moderate;area=reportedposts;sa=editcomment;rid=' . $context['report']['id'] . ';mid=' . $comment['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" class="button">' . $txt['mc_reportedp_comment_edit'] . '</a><a href="' . $scripturl . '?action=moderate;area=reportedposts;sa=handlecomment;rid=' . $context['report']['id'] . ';mid=' . $comment['id'] . ';delete;' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-reportC-delete_token_var'] . '=' . $context['mod-reportC-delete_token'] . '" class="button">' . $txt['mc_reportedp_comment_delete'] . '</a></span>' : ''), '</h3> |
|
254 | 254 | </div>'; |
255 | 255 | |
256 | 256 | echo ' |
@@ -292,17 +292,17 @@ discard block |
||
292 | 292 | |
293 | 293 | echo ' |
294 | 294 | <div id="modcenter"> |
295 | - <form action="', $scripturl, '?action=moderate;area=reported', $context['report_type'], ';sa=editcomment;mid=', $context['comment_id'], ';rid=', $context['report_id'] ,';save" method="post" accept-charset="', $context['character_set'], '">'; |
|
295 | + <form action="', $scripturl, '?action=moderate;area=reported', $context['report_type'], ';sa=editcomment;mid=', $context['comment_id'], ';rid=', $context['report_id'], ';save" method="post" accept-charset="', $context['character_set'], '">'; |
|
296 | 296 | |
297 | 297 | echo ' |
298 | 298 | <br> |
299 | 299 | <div class="cat_bar"> |
300 | - <h3 class="catbg">', $txt['mc_modreport_edit_mod_comment'] ,'</h3> |
|
300 | + <h3 class="catbg">', $txt['mc_modreport_edit_mod_comment'], '</h3> |
|
301 | 301 | </div> |
302 | 302 | <div class="windowbg2">'; |
303 | 303 | |
304 | 304 | echo ' |
305 | - <textarea rows="6" cols="60" style="width: 60%;" name="mod_comment">', $context['comment']['body'] ,'</textarea> |
|
305 | + <textarea rows="6" cols="60" style="width: 60%;" name="mod_comment">', $context['comment']['body'], '</textarea> |
|
306 | 306 | <div> |
307 | 307 | <input type="submit" name="edit_comment" value="', $txt['mc_modreport_edit_mod_comment'], '" class="button_submit"> |
308 | 308 | </div> |
@@ -393,11 +393,11 @@ discard block |
||
393 | 393 | global $context, $txt, $scripturl; |
394 | 394 | |
395 | 395 | // Let them know the action was a success. |
396 | - if (!empty($context['report_post_action']) && !empty($txt['report_action_'. $context['report_post_action']])) |
|
396 | + if (!empty($context['report_post_action']) && !empty($txt['report_action_' . $context['report_post_action']])) |
|
397 | 397 | { |
398 | 398 | echo ' |
399 | 399 | <div class="infobox"> |
400 | - ', $txt['report_action_'. $context['report_post_action']], ' |
|
400 | + ', $txt['report_action_' . $context['report_post_action']], ' |
|
401 | 401 | </div>'; |
402 | 402 | } |
403 | 403 | |
@@ -440,13 +440,13 @@ discard block |
||
440 | 440 | <hr> |
441 | 441 | <ul class="quickbuttons"> |
442 | 442 | <li><a href="', $report['report_href'], '">', $details_button, '</a></li> |
443 | - <li><a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" ', (!$report['ignore'] ? ' class="you_sure" data-confirm="'. $txt['mc_reportedp_ignore_confirm'] .'"' : '') ,'>', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li> |
|
443 | + <li><a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" ', (!$report['ignore'] ? ' class="you_sure" data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : ''), '>', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li> |
|
444 | 444 | <li><a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;closed=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '">', $close_button, '</a></li>'; |
445 | 445 | |
446 | 446 | // Ban this user button. |
447 | 447 | if (!$report['closed'] && !empty($context['report_manage_bans']) && !empty($report['user']['id'])) |
448 | 448 | echo ' |
449 | - <li><a href="', $scripturl, '?action=admin;area=ban;sa=add;u=', $report['user']['id'] ,';', $context['session_var'], '=', $context['session_id'], '">', $ban_button, '</a></li>'; |
|
449 | + <li><a href="', $scripturl, '?action=admin;area=ban;sa=add;u=', $report['user']['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $ban_button, '</a></li>'; |
|
450 | 450 | |
451 | 451 | if (!$context['view_closed']) |
452 | 452 | echo ' |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | { |
488 | 488 | echo ' |
489 | 489 | <div class="infobox"> |
490 | - ', $txt['report_action_'. $context['report_post_action']], ' |
|
490 | + ', $txt['report_action_' . $context['report_post_action']], ' |
|
491 | 491 | </div>'; |
492 | 492 | } |
493 | 493 | |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | $unignore_button = create_button('ignore', 'mc_reportedp_unignore', 'mc_reportedp_unignore'); |
513 | 513 | |
514 | 514 | echo ' |
515 | - <a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;ignore=', (int) !$context['report']['ignore'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="button', (!$context['report']['ignore'] ? ' you_sure' : '') ,'"', (!$context['report']['ignore'] ? ' data-confirm="'. $txt['mc_reportedp_ignore_confirm'] .'"' : '') ,'>', $context['report']['ignore'] ? $unignore_button : $ignore_button, '</a> |
|
515 | + <a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;ignore=', (int) !$context['report']['ignore'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="button', (!$context['report']['ignore'] ? ' you_sure' : ''), '"', (!$context['report']['ignore'] ? ' data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : ''), '>', $context['report']['ignore'] ? $unignore_button : $ignore_button, '</a> |
|
516 | 516 | <a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;closed=', (int) !$context['report']['closed'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '" class="button">', $close_button, '</a> |
517 | 517 | </span> |
518 | 518 | </h3> |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | { |
547 | 547 | echo ' |
548 | 548 | <div class="title_bar"> |
549 | - <h3 class="titlebg">', $comment['member']['link'], ': <em class="smalltext">(', $comment['time'], ')</em>', ($comment['can_edit'] ? '<span class="floatright"><a href="' . $scripturl . '?action=moderate;area=reportedmembers;sa=editcomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';'. $context['session_var'] .'='. $context['session_id'] .'" class="button">'. $txt['mc_reportedp_comment_edit'] .'</a> <a href="' . $scripturl . '?action=moderate;area=reportedmembers;sa=handlecomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';delete;'. $context['session_var'] .'='. $context['session_id']. ';'. $context['mod-reportC-delete_token_var'] .'='. $context['mod-reportC-delete_token'] .'" class="button you_sure" data-confirm="'. $txt['mc_reportedp_delete_confirm'] .'">'. $txt['mc_reportedp_comment_delete'] .'</a></span>' : '') ,'</h3> |
|
549 | + <h3 class="titlebg">', $comment['member']['link'], ': <em class="smalltext">(', $comment['time'], ')</em>', ($comment['can_edit'] ? '<span class="floatright"><a href="' . $scripturl . '?action=moderate;area=reportedmembers;sa=editcomment;rid=' . $context['report']['id'] . ';mid=' . $comment['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" class="button">' . $txt['mc_reportedp_comment_edit'] . '</a> <a href="' . $scripturl . '?action=moderate;area=reportedmembers;sa=handlecomment;rid=' . $context['report']['id'] . ';mid=' . $comment['id'] . ';delete;' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-reportC-delete_token_var'] . '=' . $context['mod-reportC-delete_token'] . '" class="button you_sure" data-confirm="' . $txt['mc_reportedp_delete_confirm'] . '">' . $txt['mc_reportedp_comment_delete'] . '</a></span>' : ''), '</h3> |
|
550 | 550 | </div>'; |
551 | 551 | |
552 | 552 | echo ' |
@@ -90,7 +90,7 @@ |
||
90 | 90 | |
91 | 91 | echo ' |
92 | 92 | </dl> |
93 | - <input type="submit" name="preview" value="', $txt['preview'] , '" class="button_submit"> |
|
93 | + <input type="submit" name="preview" value="', $txt['preview'], '" class="button_submit"> |
|
94 | 94 | <input type="submit" name="save" value="', $txt['rtm10'], '" style="margin-left: 1ex;" class="button_submit"> |
95 | 95 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
96 | 96 | </div> |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | foreach ($message['custom_fields']['above_member'] as $custom) |
233 | 233 | echo ' |
234 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
234 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
235 | 235 | |
236 | 236 | echo ' |
237 | 237 | </ul> |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | if (!empty($message['custom_fields']['below_avatar'])) |
269 | 269 | foreach ($message['custom_fields']['below_avatar'] as $custom) |
270 | 270 | echo ' |
271 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
271 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
272 | 272 | |
273 | 273 | if (!$message['member']['is_guest']) |
274 | 274 | echo ' |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | |
311 | 311 | foreach ($message['custom_fields']['icons'] as $custom) |
312 | 312 | echo ' |
313 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
313 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
314 | 314 | |
315 | 315 | echo ' |
316 | 316 | </ol> |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | if (!empty($message['custom_fields']['standard'])) |
369 | 369 | foreach ($message['custom_fields']['standard'] as $custom) |
370 | 370 | echo ' |
371 | - <li class="custom ', $custom['col_name'] ,'">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
371 | + <li class="custom ', $custom['col_name'], '">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
372 | 372 | |
373 | 373 | // Are we showing the warning status? |
374 | 374 | if ($message['member']['can_see_warning']) |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | if (!empty($message['custom_fields']['bottom_poster'])) |
380 | 380 | foreach ($message['custom_fields']['bottom_poster'] as $custom) |
381 | 381 | echo ' |
382 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
382 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
383 | 383 | } |
384 | 384 | |
385 | 385 | // Done with the information about the poster... on to the post itself. |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | |
479 | 479 | foreach ($message['custom_fields']['above_signature'] as $custom) |
480 | 480 | echo ' |
481 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
481 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
482 | 482 | |
483 | 483 | echo ' |
484 | 484 | </ul> |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | |
500 | 500 | foreach ($message['custom_fields']['below_signature'] as $custom) |
501 | 501 | echo ' |
502 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
502 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
503 | 503 | |
504 | 504 | echo ' |
505 | 505 | </ul> |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | while ($message = $context['get_pmessage']('subject')) |
632 | 632 | { |
633 | 633 | echo ' |
634 | - <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '','"> |
|
634 | + <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '', '"> |
|
635 | 635 | <td class="table_icon"> |
636 | 636 | <script> |
637 | 637 | currentLabels[', $message['id'], '] = {'; |
@@ -903,12 +903,12 @@ discard block |
||
903 | 903 | // You can only reply if they are not a guest... |
904 | 904 | if (!$message['member']['is_guest']) |
905 | 905 | echo ' |
906 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'sent' ? '' : $message['member']['id'], '">', $quote_button , '</a>', $context['menu_separator'], ' |
|
907 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button , '</a> ', $context['menu_separator']; |
|
906 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'sent' ? '' : $message['member']['id'], '">', $quote_button, '</a>', $context['menu_separator'], ' |
|
907 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button, '</a> ', $context['menu_separator']; |
|
908 | 908 | // This is for "forwarding" - even if the member is gone. |
909 | 909 | else |
910 | 910 | echo ' |
911 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $quote_button , '</a>', $context['menu_separator']; |
|
911 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $quote_button, '</a>', $context['menu_separator']; |
|
912 | 912 | } |
913 | 913 | |
914 | 914 | echo ' |
@@ -1008,7 +1008,7 @@ discard block |
||
1008 | 1008 | <div class="', empty($context['error_type']) || $context['error_type'] != 'serious' ? 'noticebox' : 'errorbox', '"', empty($context['post_error']['messages']) ? ' style="display: none"' : '', ' id="errors"> |
1009 | 1009 | <dl> |
1010 | 1010 | <dt> |
1011 | - <strong id="error_serious">', $txt['error_while_submitting'] , '</strong> |
|
1011 | + <strong id="error_serious">', $txt['error_while_submitting'], '</strong> |
|
1012 | 1012 | </dt> |
1013 | 1013 | <dd class="error" id="error_list"> |
1014 | 1014 | ', empty($context['post_error']['messages']) ? '' : implode('<br>', $context['post_error']['messages']), ' |
@@ -1064,7 +1064,7 @@ discard block |
||
1064 | 1064 | <span', (isset($context['post_error']['no_subject']) ? ' class="error"' : ''), ' id="caption_subject">', $txt['subject'], ':</span> |
1065 | 1065 | </dt> |
1066 | 1066 | <dd id="pm_subject"> |
1067 | - <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"',isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/> |
|
1067 | + <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"', isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/> |
|
1068 | 1068 | </dd> |
1069 | 1069 | </dl><hr>'; |
1070 | 1070 | |
@@ -1427,7 +1427,7 @@ discard block |
||
1427 | 1427 | echo ' |
1428 | 1428 | <div class="padding"> |
1429 | 1429 | <input type="submit" name="save" value="', $txt['save'], '" class="button_submit"> |
1430 | - <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'] ,'" class="button_submit you_sure"> |
|
1430 | + <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'], '" class="button_submit you_sure"> |
|
1431 | 1431 | </div>'; |
1432 | 1432 | |
1433 | 1433 | echo ' |
@@ -1591,7 +1591,7 @@ discard block |
||
1591 | 1591 | if (!empty($context['rules'])) |
1592 | 1592 | echo ' |
1593 | 1593 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
1594 | - <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'] ,'" class="button_submit smalltext you_sure">'; |
|
1594 | + <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'], '" class="button_submit smalltext you_sure">'; |
|
1595 | 1595 | |
1596 | 1596 | echo ' |
1597 | 1597 | </div> |
@@ -1832,9 +1832,9 @@ discard block |
||
1832 | 1832 | |
1833 | 1833 | echo ' |
1834 | 1834 | <select name="acttype[', $k, ']" id="acttype', $k, '" onchange="updateActionDef(', $k, '); rebuildRuleDesc();"> |
1835 | - <option value="">', $txt['pm_rule_sel_action'] , ':</option> |
|
1836 | - <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'] , '</option> |
|
1837 | - <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'] , '</option> |
|
1835 | + <option value="">', $txt['pm_rule_sel_action'], ':</option> |
|
1836 | + <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'], '</option> |
|
1837 | + <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'], '</option> |
|
1838 | 1838 | </select> |
1839 | 1839 | <span id="labdiv', $k, '"> |
1840 | 1840 | <select name="labdef[', $k, ']" id="labdef', $k, '" onchange="rebuildRuleDesc();"> |
@@ -1951,7 +1951,7 @@ discard block |
||
1951 | 1951 | </div> |
1952 | 1952 | <ul class="quickbuttons"> |
1953 | 1953 | <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;id_draft=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '"><span class="generic_icons modifybutton"></span>', $txt['draft_edit'], '</a></li> |
1954 | - <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;delete=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['draft_remove'] ,'?" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['draft_delete'], '</a></li> |
|
1954 | + <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;delete=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['draft_remove'], '?" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['draft_delete'], '</a></li> |
|
1955 | 1955 | </ul> |
1956 | 1956 | </div>'; |
1957 | 1957 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | <strong', !empty($field['is_error']) ? ' class="red"' : '', '>', $field['name'], ':</strong> |
151 | 151 | <span class="smalltext">', $field['desc'], '</span> |
152 | 152 | </dt> |
153 | - <dd>', str_replace('name="', 'tabindex="' . $context['tabindex']++ .'" name="', $field['input_html']), '</dd>'; |
|
153 | + <dd>', str_replace('name="', 'tabindex="' . $context['tabindex']++ . '" name="', $field['input_html']), '</dd>'; |
|
154 | 154 | |
155 | 155 | echo ' |
156 | 156 | </dl>'; |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | <meta charset="', $context['character_set'], '"> |
437 | 437 | <title>', $txt['visual_verification_sound'], '</title> |
438 | 438 | <meta name="robots" content="noindex"> |
439 | - <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'] ,'"> |
|
439 | + <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'], '"> |
|
440 | 440 | <style>'; |
441 | 441 | |
442 | 442 | // Just show the help text and a "close window" link. |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | <strong', !empty($field['is_error']) ? ' class="red"' : '', '>', $field['name'], ':</strong> |
543 | 543 | <span class="smalltext">', $field['desc'], '</span> |
544 | 544 | </dt> |
545 | - <dd>', str_replace('name="', 'tabindex="' . $context['tabindex']++ .'" name="', $field['input_html']), '</dd>'; |
|
545 | + <dd>', str_replace('name="', 'tabindex="' . $context['tabindex']++ . '" name="', $field['input_html']), '</dd>'; |
|
546 | 546 | |
547 | 547 | echo ' |
548 | 548 | <dt> |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | <smf> |
48 | 48 | <subject><![CDATA[', cleanXml($context['message']['subject']), ']]></subject> |
49 | 49 | <message id="msg_', $context['message']['id'], '"><![CDATA[', cleanXml($context['message']['body']), ']]></message> |
50 | - <reason time="', $context['message']['reason']['time'] ,'" name="', $context['message']['reason']['name'] ,'"><![CDATA[', cleanXml($context['message']['reason']['text']), ']]></reason> |
|
50 | + <reason time="', $context['message']['reason']['time'], '" name="', $context['message']['reason']['name'], '"><![CDATA[', cleanXml($context['message']['reason']['text']), ']]></reason> |
|
51 | 51 | </smf>'; |
52 | 52 | |
53 | 53 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | // Build our string of info about when and why it was modified |
68 | 68 | |
69 | 69 | $modified = empty($context['message']['modified']['time']) ? '' : sprintf($txt['last_edit_by'], $context['message']['modified']['time'], $context['message']['modified']['name']); |
70 | - $modified .= empty($context['message']['modified']['reason']) ? '' : ' '. sprintf($txt['last_edit_reason'], $context['message']['modified']['reason']); |
|
70 | + $modified .= empty($context['message']['modified']['reason']) ? '' : ' ' . sprintf($txt['last_edit_reason'], $context['message']['modified']['reason']); |
|
71 | 71 | |
72 | 72 | echo ' |
73 | 73 | <modified><![CDATA[', empty($modified) ? '' : cleanXml('« <em>' . $modified . '</em>»'), ']]></modified> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | // Are we done sending the newsletter? |
21 | 21 | if (!empty($context['newsletter_sent'])) |
22 | 22 | echo ' |
23 | - <div class="infobox">', $txt['admin_news_newsletter_'. $context['newsletter_sent']] ,'</div>'; |
|
23 | + <div class="infobox">', $txt['admin_news_newsletter_' . $context['newsletter_sent']], '</div>'; |
|
24 | 24 | |
25 | 25 | echo ' |
26 | 26 | <div id="admincenter"> |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | <form name="newsmodify" action="', $scripturl, '?action=admin;area=news;sa=mailingsend" method="post" accept-charset="', $context['character_set'], '"> |
201 | 201 | <div class="cat_bar"> |
202 | 202 | <h3 class="catbg"> |
203 | - <a href="', $scripturl, '?action=helpadmin;help=email_members" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a> ', $txt['admin_newsletters'], ' |
|
203 | + <a href="', $scripturl, '?action=helpadmin;help=email_members" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a> ', $txt['admin_newsletters'], ' |
|
204 | 204 | </h3> |
205 | 205 | </div> |
206 | 206 | <div class="information"> |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | <div class="', empty($context['error_type']) || $context['error_type'] != 'serious' ? 'noticebox' : 'errorbox', '"', empty($context['post_error']['messages']) ? ' style="display: none"' : '', ' id="errors"> |
211 | 211 | <dl> |
212 | 212 | <dt> |
213 | - <strong id="error_serious">', $txt['error_while_submitting'] , '</strong> |
|
213 | + <strong id="error_serious">', $txt['error_while_submitting'], '</strong> |
|
214 | 214 | </dt> |
215 | 215 | <dd class="error" id="error_list"> |
216 | 216 | ', empty($context['post_error']['messages']) ? '' : implode('<br>', $context['post_error']['messages']), ' |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | <span', (isset($context['post_error']['no_subject']) ? ' class="error"' : ''), ' id="caption_subject">', $txt['subject'], ':</span> |
223 | 223 | </dt> |
224 | 224 | <dd id="pm_subject"> |
225 | - <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="60" maxlength="60"',isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/> |
|
225 | + <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="60" maxlength="60"', isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/> |
|
226 | 226 | </dd> |
227 | 227 | </dl><hr class="clear"> |
228 | 228 | <div id="bbcBox_message"></div>'; |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | <form action="', $scripturl, '?action=admin;area=news;sa=mailingsend" method="post" accept-charset="', $context['character_set'], '" name="autoSubmit" id="autoSubmit"> |
388 | 388 | <div class="cat_bar"> |
389 | 389 | <h3 class="catbg"> |
390 | - <a href="', $scripturl, '?action=helpadmin;help=email_members" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a> ', $txt['admin_newsletters'], ' |
|
390 | + <a href="', $scripturl, '?action=helpadmin;help=email_members" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a> ', $txt['admin_newsletters'], ' |
|
391 | 391 | </h3> |
392 | 392 | </div> |
393 | 393 | <div class="windowbg"> |
@@ -172,23 +172,23 @@ discard block |
||
172 | 172 | // Additional classes are given for events, holidays, and birthdays. |
173 | 173 | if (!empty($day['events']) && !empty($calendar_data['highlight']['events'])) |
174 | 174 | { |
175 | - if ($is_mini === true && in_array($calendar_data['highlight']['events'], array(1,3))) |
|
175 | + if ($is_mini === true && in_array($calendar_data['highlight']['events'], array(1, 3))) |
|
176 | 176 | $classes[] = 'events'; |
177 | - elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2,3))) |
|
177 | + elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2, 3))) |
|
178 | 178 | $classes[] = 'events'; |
179 | 179 | } |
180 | 180 | if (!empty($day['holidays']) && !empty($calendar_data['highlight']['holidays'])) |
181 | 181 | { |
182 | - if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1,3))) |
|
182 | + if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1, 3))) |
|
183 | 183 | $classes[] = 'holidays'; |
184 | - elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2,3))) |
|
184 | + elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2, 3))) |
|
185 | 185 | $classes[] = 'holidays'; |
186 | 186 | } |
187 | 187 | if (!empty($day['birthdays']) && !empty($calendar_data['highlight']['birthdays'])) |
188 | 188 | { |
189 | - if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1,3))) |
|
189 | + if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1, 3))) |
|
190 | 190 | $classes[] = 'birthdays'; |
191 | - elseif ($is_mini === false && in_array($calendar_data['highlight']['birthdays'], array(2,3))) |
|
191 | + elseif ($is_mini === false && in_array($calendar_data['highlight']['birthdays'], array(2, 3))) |
|
192 | 192 | $classes[] = 'birthdays'; |
193 | 193 | } |
194 | 194 | } |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | elseif ($is_mini === false) |
288 | 288 | { |
289 | 289 | if (empty($current_month_started) && !empty($context['calendar_grid_prev'])) |
290 | - echo '<a href="', $scripturl, '?action=calendar;year=', $context['calendar_grid_prev']['current_year'], ';month=', $context['calendar_grid_prev']['current_month'], '">', $context['calendar_grid_prev']['last_of_month'] - $calendar_data['shift']-- + 1, '</a>'; |
|
290 | + echo '<a href="', $scripturl, '?action=calendar;year=', $context['calendar_grid_prev']['current_year'], ';month=', $context['calendar_grid_prev']['current_month'], '">', $context['calendar_grid_prev']['last_of_month'] - $calendar_data['shift']-- +1, '</a>'; |
|
291 | 291 | elseif (!empty($current_month_started) && !empty($context['calendar_grid_next'])) |
292 | 292 | echo '<a href="', $scripturl, '?action=calendar;year=', $context['calendar_grid_next']['current_year'], ';month=', $context['calendar_grid_next']['current_month'], '">', $current_month_started + 1 == $count ? (!empty($calendar_data['short_month_titles']) ? $txt['months_short'][$context['calendar_grid_next']['current_month']] . ' ' : $txt['months_titles'][$context['calendar_grid_next']['current_month']] . ' ') : '', $final_count++, '</a>'; |
293 | 293 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | ', !empty($context['bbcodes_handlers']) ? $context['bbcodes_handlers'] : '', ' |
33 | 33 | |
34 | 34 | $("#', $editor_id, '").sceditor({ |
35 | - ',( $editor_id != 'quickReply' ? 'autofocus : true,' : '' ),' |
|
35 | + ',($editor_id != 'quickReply' ? 'autofocus : true,' : ''), ' |
|
36 | 36 | style: "', $settings['default_theme_url'], '/css/jquery.sceditor.default.css", |
37 | 37 | emoticonsCompat: true,', !empty($editor_context['locale']) ? ' |
38 | 38 | locale: \'' . $editor_context['locale'] . '\',' : '', !empty($context['right_to_left']) ? ' |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | if (!empty($context['drafts_pm_save'])) |
161 | 161 | echo ' |
162 | - <input type="submit" name="save_draft" value="', $txt['draft_save'], '" tabindex="', --$tempTab, '" onclick="submitThisOnce(this);" accesskey="d" class="button_submit"> |
|
162 | + <input type="submit" name="save_draft" value="', $txt['draft_save'], '" tabindex="', --$tempTab, '" onclick="submitThisOnce(this);" accesskey="d" class="button_submit"> |
|
163 | 163 | <input type="hidden" id="id_pm_draft" name="id_pm_draft" value="', empty($context['id_pm_draft']) ? 0 : $context['id_pm_draft'], '">'; |
164 | 164 | |
165 | 165 | if (!empty($context['drafts_save'])) |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | <span id="throbber" style="display:none"><img src="' . $settings['images_url'] . '/loading_sm.gif" alt="" class="centericon"> </span> |
187 | 187 | <span id="draft_lastautosave" ></span> |
188 | 188 | </span> |
189 | - <script src="', $settings['default_theme_url'], '/scripts/drafts.js', $modSettings['browser_cache'] ,'"></script> |
|
189 | + <script src="', $settings['default_theme_url'], '/scripts/drafts.js', $modSettings['browser_cache'], '"></script> |
|
190 | 190 | <script> |
191 | 191 | var oDraftAutoSave = new smf_DraftAutoSave({ |
192 | 192 | sSelf: \'oDraftAutoSave\', |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | <span id="throbber" style="display:none"><img src="' . $settings['images_url'] . '/loading_sm.gif" alt="" class="centericon"> </span> |
208 | 208 | <span id="draft_lastautosave" ></span> |
209 | 209 | </span> |
210 | - <script src="', $settings['default_theme_url'], '/scripts/drafts.js', $modSettings['browser_cache'] ,'"></script> |
|
210 | + <script src="', $settings['default_theme_url'], '/scripts/drafts.js', $modSettings['browser_cache'], '"></script> |
|
211 | 211 | <script> |
212 | 212 | var oDraftAutoSave = new smf_DraftAutoSave({ |
213 | 213 | sSelf: \'oDraftAutoSave\', |