@@ -110,9 +110,10 @@ discard block |
||
| 110 | 110 | <h3 class="catbg">', $txt['attachment_transfer'], '</h3> |
| 111 | 111 | </div>'; |
| 112 | 112 | |
| 113 | - if (!empty($context['results'])) |
|
| 114 | - echo ' |
|
| 113 | + if (!empty($context['results'])) { |
|
| 114 | + echo ' |
|
| 115 | 115 | <div class="noticebox">', $context['results'], '</div>'; |
| 116 | + } |
|
| 116 | 117 | |
| 117 | 118 | echo ' |
| 118 | 119 | <div class="windowbg2"> |
@@ -123,9 +124,10 @@ discard block |
||
| 123 | 124 | <dd><select name="from"> |
| 124 | 125 | <option value="0">', $txt['attachment_transfer_select'], '</option>'; |
| 125 | 126 | |
| 126 | - foreach ($context['attach_dirs'] as $id => $dir) |
|
| 127 | - echo ' |
|
| 127 | + foreach ($context['attach_dirs'] as $id => $dir) { |
|
| 128 | + echo ' |
|
| 128 | 129 | <option value="', $id, '">', $dir, '</option>'; |
| 130 | + } |
|
| 129 | 131 | echo ' |
| 130 | 132 | </select></dd> |
| 131 | 133 | <dt>', $txt['attachment_transfer_auto'], '</dt> |
@@ -133,13 +135,14 @@ discard block |
||
| 133 | 135 | <option value="0">', $txt['attachment_transfer_auto_select'], '</option> |
| 134 | 136 | <option value="-1">', $txt['attachment_transfer_forum_root'], '</option>'; |
| 135 | 137 | |
| 136 | - if (!empty($context['base_dirs'])) |
|
| 137 | - foreach ($context['base_dirs'] as $id => $dir) |
|
| 138 | + if (!empty($context['base_dirs'])) { |
|
| 139 | + foreach ($context['base_dirs'] as $id => $dir) |
|
| 138 | 140 | echo ' |
| 139 | 141 | <option value="', $id, '">', $dir, '</option>'; |
| 140 | - else |
|
| 141 | - echo ' |
|
| 142 | + } else { |
|
| 143 | + echo ' |
|
| 142 | 144 | <option value="0" disabled>', $txt['attachment_transfer_no_base'], '</option>'; |
| 145 | + } |
|
| 143 | 146 | |
| 144 | 147 | echo ' |
| 145 | 148 | </select></dd> |
@@ -147,16 +150,18 @@ discard block |
||
| 147 | 150 | <dd><select name="to"> |
| 148 | 151 | <option value="0">', $txt['attachment_transfer_select'], '</option>'; |
| 149 | 152 | |
| 150 | - foreach ($context['attach_dirs'] as $id => $dir) |
|
| 151 | - echo ' |
|
| 153 | + foreach ($context['attach_dirs'] as $id => $dir) { |
|
| 154 | + echo ' |
|
| 152 | 155 | <option value="', $id, '">', $dir, '</option>'; |
| 156 | + } |
|
| 153 | 157 | echo ' |
| 154 | 158 | </select></dd>'; |
| 155 | 159 | |
| 156 | - if (!empty($modSettings['attachmentDirFileLimit'])) |
|
| 157 | - echo ' |
|
| 160 | + if (!empty($modSettings['attachmentDirFileLimit'])) { |
|
| 161 | + echo ' |
|
| 158 | 162 | <dt>', $txt['attachment_transfer_empty'], '</dt> |
| 159 | 163 | <dd><input type="checkbox" name="empty_it"', $context['checked'] ? ' checked' : '', '></dd>'; |
| 164 | + } |
|
| 160 | 165 | echo ' |
| 161 | 166 | </dl> |
| 162 | 167 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
@@ -236,10 +241,11 @@ discard block |
||
| 236 | 241 | // Loop through each error reporting the status |
| 237 | 242 | foreach ($context['repair_errors'] as $error => $number) |
| 238 | 243 | { |
| 239 | - if (!empty($number)) |
|
| 240 | - echo ' |
|
| 244 | + if (!empty($number)) { |
|
| 245 | + echo ' |
|
| 241 | 246 | <input type="checkbox" name="to_fix[]" id="', $error, '" value="', $error, '" class="input_check"> |
| 242 | 247 | <label for="', $error, '">', sprintf($txt['attach_repair_' . $error], $number), '</label><br>'; |
| 248 | + } |
|
| 243 | 249 | } |
| 244 | 250 | |
| 245 | 251 | echo ' <br> |
@@ -36,11 +36,12 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | // An error? |
| 39 | - if (!empty($context['error_message'])) |
|
| 40 | - echo ' |
|
| 39 | + if (!empty($context['error_message'])) { |
|
| 40 | + echo ' |
|
| 41 | 41 | <div class="errorbox"> |
| 42 | 42 | ', $context['error_message'], ' |
| 43 | 43 | </div>'; |
| 44 | + } |
|
| 44 | 45 | |
| 45 | 46 | // Provide something of an introduction... |
| 46 | 47 | echo ' |
@@ -67,11 +68,12 @@ discard block |
||
| 67 | 68 | // If the files are not writable, we might! |
| 68 | 69 | if (!empty($context['still_not_writable'])) |
| 69 | 70 | { |
| 70 | - if (!empty($context['package_ftp']['error'])) |
|
| 71 | - echo ' |
|
| 71 | + if (!empty($context['package_ftp']['error'])) { |
|
| 72 | + echo ' |
|
| 72 | 73 | <div class="errorbox"> |
| 73 | 74 | ', $context['package_ftp']['error'], ' |
| 74 | 75 | </div>'; |
| 76 | + } |
|
| 75 | 77 | |
| 76 | 78 | echo ' |
| 77 | 79 | <div class="cat_bar"> |
@@ -243,11 +245,12 @@ discard block |
||
| 243 | 245 | |
| 244 | 246 | // Is it not writable? |
| 245 | 247 | // Show an error. |
| 246 | - if (!empty($context['entries_not_writable_message'])) |
|
| 247 | - echo ' |
|
| 248 | + if (!empty($context['entries_not_writable_message'])) { |
|
| 249 | + echo ' |
|
| 248 | 250 | <div class="errorbox"> |
| 249 | 251 | ', $context['entries_not_writable_message'], ' |
| 250 | 252 | </div>'; |
| 253 | + } |
|
| 251 | 254 | |
| 252 | 255 | // Already have some file entries? |
| 253 | 256 | if (!empty($context['file_entries'])) |
@@ -39,9 +39,10 @@ discard block |
||
| 39 | 39 | <select name="year" id="year" onchange="generateDays();"> |
| 40 | 40 | <option value="0000"', $context['holiday']['year'] == '0000' ? ' selected' : '', '>', $txt['every_year'], '</option>'; |
| 41 | 41 | // Show a list of all the years we allow... |
| 42 | - for ($year = $modSettings['cal_minyear']; $year <= $modSettings['cal_maxyear']; $year++) |
|
| 43 | - echo ' |
|
| 42 | + for ($year = $modSettings['cal_minyear']; $year <= $modSettings['cal_maxyear']; $year++) { |
|
| 43 | + echo ' |
|
| 44 | 44 | <option value="', $year, '"', $year == $context['holiday']['year'] ? ' selected' : '', '>', $year, '</option>'; |
| 45 | + } |
|
| 45 | 46 | |
| 46 | 47 | echo ' |
| 47 | 48 | </select> |
@@ -49,9 +50,10 @@ discard block |
||
| 49 | 50 | <select name="month" id="month" onchange="generateDays();">'; |
| 50 | 51 | |
| 51 | 52 | // There are 12 months per year - ensure that they all get listed. |
| 52 | - for ($month = 1; $month <= 12; $month++) |
|
| 53 | - echo ' |
|
| 53 | + for ($month = 1; $month <= 12; $month++) { |
|
| 54 | + echo ' |
|
| 54 | 55 | <option value="', $month, '"', $month == $context['holiday']['month'] ? ' selected' : '', '>', $txt['months'][$month], '</option>'; |
| 56 | + } |
|
| 55 | 57 | |
| 56 | 58 | echo ' |
| 57 | 59 | </select> |
@@ -59,23 +61,25 @@ discard block |
||
| 59 | 61 | <select name="day" id="day" onchange="generateDays();">'; |
| 60 | 62 | |
| 61 | 63 | // This prints out all the days in the current month - this changes dynamically as we switch months. |
| 62 | - for ($day = 1; $day <= $context['holiday']['last_day']; $day++) |
|
| 63 | - echo ' |
|
| 64 | + for ($day = 1; $day <= $context['holiday']['last_day']; $day++) { |
|
| 65 | + echo ' |
|
| 64 | 66 | <option value="', $day, '"', $day == $context['holiday']['day'] ? ' selected' : '', '>', $day, '</option>'; |
| 67 | + } |
|
| 65 | 68 | |
| 66 | 69 | echo ' |
| 67 | 70 | </select> |
| 68 | 71 | </dd> |
| 69 | 72 | </dl>'; |
| 70 | 73 | |
| 71 | - if ($context['is_new']) |
|
| 72 | - echo ' |
|
| 74 | + if ($context['is_new']) { |
|
| 75 | + echo ' |
|
| 73 | 76 | <input type="submit" value="', $txt['holidays_button_add'], '" class="button_submit">'; |
| 74 | - else |
|
| 75 | - echo ' |
|
| 77 | + } else { |
|
| 78 | + echo ' |
|
| 76 | 79 | <input type="submit" name="edit" value="', $txt['holidays_button_edit'], '" class="button_submit"> |
| 77 | 80 | <input type="submit" name="delete" value="', $txt['holidays_button_remove'], '" class="button_submit"> |
| 78 | 81 | <input type="hidden" name="holiday" value="', $context['holiday']['id'], '">'; |
| 82 | + } |
|
| 79 | 83 | echo ' |
| 80 | 84 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
| 81 | 85 | </div> |
@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | <h3 class="catbg">', $context['page_title'], '</h3> |
| 47 | 47 | </div>'; |
| 48 | 48 | |
| 49 | - if (!empty($context['poll_error']['messages'])) |
|
| 50 | - echo ' |
|
| 49 | + if (!empty($context['poll_error']['messages'])) { |
|
| 50 | + echo ' |
|
| 51 | 51 | <div class="errorbox"> |
| 52 | 52 | <dl class="poll_error"> |
| 53 | 53 | <dt> |
@@ -58,6 +58,7 @@ discard block |
||
| 58 | 58 | </dt> |
| 59 | 59 | </dl> |
| 60 | 60 | </div>'; |
| 61 | + } |
|
| 61 | 62 | |
| 62 | 63 | echo ' |
| 63 | 64 | <div> |
@@ -76,8 +77,9 @@ discard block |
||
| 76 | 77 | <input type="text" name="options[', $choice['id'], ']" id="options-', $choice['id'], '" value="', $choice['label'], '" class="input_text" size="80" maxlength="255">'; |
| 77 | 78 | |
| 78 | 79 | // Does this option have a vote count yet, or is it new? |
| 79 | - if ($choice['votes'] != -1) |
|
| 80 | - echo ' (', $choice['votes'], ' ', $txt['votes'], ')'; |
|
| 80 | + if ($choice['votes'] != -1) { |
|
| 81 | + echo ' (', $choice['votes'], ' ', $txt['votes'], ')'; |
|
| 82 | + } |
|
| 81 | 83 | |
| 82 | 84 | echo ' |
| 83 | 85 | </li>'; |
@@ -115,14 +117,15 @@ discard block |
||
| 115 | 117 | <input type="checkbox" id="poll_change_vote" name="poll_change_vote"', !empty($context['poll']['change_vote']) ? ' checked' : '', ' class="input_check"> |
| 116 | 118 | </dd>'; |
| 117 | 119 | |
| 118 | - if ($context['poll']['guest_vote_allowed']) |
|
| 119 | - echo ' |
|
| 120 | + if ($context['poll']['guest_vote_allowed']) { |
|
| 121 | + echo ' |
|
| 120 | 122 | <dt> |
| 121 | 123 | <label for="poll_guest_vote">', $txt['poll_guest_vote'], ':</label> |
| 122 | 124 | </dt> |
| 123 | 125 | <dd> |
| 124 | 126 | <input type="checkbox" id="poll_guest_vote" name="poll_guest_vote"', !empty($context['poll']['guest_vote']) ? ' checked' : '', ' class="input_check"> |
| 125 | 127 | </dd>'; |
| 128 | + } |
|
| 126 | 129 | } |
| 127 | 130 | |
| 128 | 131 | echo ' |
@@ -137,12 +140,13 @@ discard block |
||
| 137 | 140 | </dl> |
| 138 | 141 | </fieldset>'; |
| 139 | 142 | // If this is an edit, we can allow them to reset the vote counts. |
| 140 | - if ($context['is_edit']) |
|
| 141 | - echo ' |
|
| 143 | + if ($context['is_edit']) { |
|
| 144 | + echo ' |
|
| 142 | 145 | <fieldset id="poll_reset"> |
| 143 | 146 | <legend>', $txt['reset_votes'], '</legend> |
| 144 | 147 | <input type="checkbox" name="resetVoteCount" value="on" class="input_check"> ' . $txt['reset_votes_check'] . ' |
| 145 | 148 | </fieldset>'; |
| 149 | + } |
|
| 146 | 150 | echo ' |
| 147 | 151 | <div class="padding flow_auto"> |
| 148 | 152 | <input type="submit" name="post" value="', $txt['save'], '" onclick="return submitThisOnce(this);" accesskey="s" class="button_submit"> |
@@ -23,13 +23,13 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | global $context, $txt; |
| 25 | 25 | |
| 26 | - if (!empty($context['simple_action'])) |
|
| 27 | - echo ' |
|
| 26 | + if (!empty($context['simple_action'])) { |
|
| 27 | + echo ' |
|
| 28 | 28 | <strong> |
| 29 | 29 | ', $context['error_title'], ' |
| 30 | 30 | </strong><br> |
| 31 | 31 | <div ', $context['error_code'], 'class="padding">', $context['error_message'], '</div>'; |
| 32 | - else |
|
| 32 | + } else |
|
| 33 | 33 | { |
| 34 | 34 | echo ' |
| 35 | 35 | <div id="fatal_error"> |
@@ -82,21 +82,23 @@ discard block |
||
| 82 | 82 | ', $txt['apply_filter_of_type'], ':'; |
| 83 | 83 | |
| 84 | 84 | $error_types = array(); |
| 85 | - foreach ($context['error_types'] as $type => $details) |
|
| 86 | - $error_types[] = ($details['is_selected'] ? '<img src="' . $settings['images_url'] . '/selected.png" alt=""> ' : '') . '<a href="' . $details['url'] . '" ' . ($details['is_selected'] ? 'style="font-weight: bold;"' : '') . ' title="' . $details['description'] . '">' . $details['label'] . '</a>'; |
|
| 85 | + foreach ($context['error_types'] as $type => $details) { |
|
| 86 | + $error_types[] = ($details['is_selected'] ? '<img src="' . $settings['images_url'] . '/selected.png" alt=""> ' : '') . '<a href="' . $details['url'] . '" ' . ($details['is_selected'] ? 'style="font-weight: bold;"' : '') . ' title="' . $details['description'] . '">' . $details['label'] . '</a>'; |
|
| 87 | + } |
|
| 87 | 88 | |
| 88 | 89 | echo ' |
| 89 | 90 | ', implode(' | ', $error_types), ' |
| 90 | 91 | </td> |
| 91 | 92 | </tr>'; |
| 92 | 93 | |
| 93 | - if ($context['has_filter']) |
|
| 94 | - echo ' |
|
| 94 | + if ($context['has_filter']) { |
|
| 95 | + echo ' |
|
| 95 | 96 | <tr> |
| 96 | 97 | <td colspan="3" class="windowbg"> |
| 97 | 98 | <strong> ', $txt['applying_filter'], ':</strong> ', $context['filter']['entity'], ' ', $context['filter']['value']['html'], ' [<a href="', $scripturl, '?action=admin;area=logs;sa=errorlog', $context['sort_direction'] == 'down' ? ';desc' : '', '">', $txt['clear_filter'], '</a>] |
| 98 | 99 | </td> |
| 99 | 100 | </tr>'; |
| 101 | + } |
|
| 100 | 102 | |
| 101 | 103 | echo ' |
| 102 | 104 | <tr> |
@@ -107,11 +109,12 @@ discard block |
||
| 107 | 109 | </tr>'; |
| 108 | 110 | |
| 109 | 111 | // No errors, then show a message |
| 110 | - if (count($context['errors']) == 0) |
|
| 111 | - echo ' |
|
| 112 | + if (count($context['errors']) == 0) { |
|
| 113 | + echo ' |
|
| 112 | 114 | <tr class="windowbg"> |
| 113 | 115 | <td class="centertext" colspan="2">', $txt['errlog_no_entries'], '</td> |
| 114 | 116 | </tr>'; |
| 117 | + } |
|
| 115 | 118 | |
| 116 | 119 | // we have some errors, must be some mods installed :P |
| 117 | 120 | foreach ($context['errors'] as $error) |
@@ -126,20 +129,22 @@ discard block |
||
| 126 | 129 | <a href="', $scripturl, '?action=admin;area=logs;sa=errorlog', $context['sort_direction'] == 'down' ? '' : ';desc', $context['has_filter'] ? $context['filter']['href'] : '', '" title="', $txt['reverse_direction'], '"><span class="generic_icons sort_' . $context['sort_direction'] . '"></span></a> |
| 127 | 130 | ', $error['time'], '<br>'; |
| 128 | 131 | |
| 129 | - if (!empty($error['member']['ip'])) |
|
| 130 | - echo ' |
|
| 132 | + if (!empty($error['member']['ip'])) { |
|
| 133 | + echo ' |
|
| 131 | 134 | <a href="', $scripturl, '?action=admin;area=logs;sa=errorlog', $context['sort_direction'] == 'down' ? ';desc' : '', ';filter=ip;value=', $error['member']['ip'], '" title="', $txt['apply_filter'], ': ', $txt['filter_only_ip'], '"><span class="generic_icons filter centericon"></span></a> |
| 132 | 135 | <strong><a href="', $scripturl, '?action=trackip;searchip=', $error['member']['ip'], '">', $error['member']['ip'], '</a></strong> <br>'; |
| 136 | + } |
|
| 133 | 137 | |
| 134 | 138 | echo ' |
| 135 | 139 | </div> |
| 136 | 140 | |
| 137 | 141 | <div style="float: left; width: 50%; line-height: 1.8em; padding: 0 4px;">'; |
| 138 | 142 | |
| 139 | - if ($error['member']['session'] != '') |
|
| 140 | - echo ' |
|
| 143 | + if ($error['member']['session'] != '') { |
|
| 144 | + echo ' |
|
| 141 | 145 | <a href="', $scripturl, '?action=admin;area=logs;sa=errorlog', $context['sort_direction'] == 'down' ? ';desc' : '', ';filter=session;value=', $error['member']['session'], '" title="', $txt['apply_filter'], ': ', $txt['filter_only_session'], '"><span class="generic_icons filter centericon"></span></a> |
| 142 | 146 | ', $error['member']['session'], '<br>'; |
| 147 | + } |
|
| 143 | 148 | |
| 144 | 149 | echo ' |
| 145 | 150 | <a href="', $scripturl, '?action=admin;area=logs;sa=errorlog', $context['sort_direction'] == 'down' ? ';desc' : '', ';filter=error_type;value=', $error['error_type']['type'], '" title="', $txt['apply_filter'], ': ', $txt['filter_only_type'], '"><span class="generic_icons filter centericon"></span></a> |
@@ -153,8 +158,8 @@ discard block |
||
| 153 | 158 | <a style="display: table-cell;" href="', $error['url']['html'], '">', $error['url']['html'], '</a> |
| 154 | 159 | </div>'; |
| 155 | 160 | |
| 156 | - if (!empty($error['file'])) |
|
| 157 | - echo ' |
|
| 161 | + if (!empty($error['file'])) { |
|
| 162 | + echo ' |
|
| 158 | 163 | <div style="float: left; width: 100%; padding: 4px 0; line-height: 1.6em; border-top: 1px solid #e3e3e3;"> |
| 159 | 164 | <a style="display: table-cell; padding: 4px; width: 20px; vertical-align: top;" href="', $scripturl, '?action=admin;area=logs;sa=errorlog', $context['sort_direction'] == 'down' ? ';desc' : '', ';filter=file;value=', $error['file']['search'], '" title="', $txt['apply_filter'], ': ', $txt['filter_only_file'], '"><span class="generic_icons filter"></span></a> |
| 160 | 165 | <div> |
@@ -162,6 +167,7 @@ discard block |
||
| 162 | 167 | ', $txt['line'], ': ', $error['file']['line'], ' |
| 163 | 168 | </div> |
| 164 | 169 | </div>'; |
| 170 | + } |
|
| 165 | 171 | |
| 166 | 172 | echo ' |
| 167 | 173 | </td> |
@@ -190,9 +196,10 @@ discard block |
||
| 190 | 196 | </div> |
| 191 | 197 | <br>'; |
| 192 | 198 | |
| 193 | - if ($context['sort_direction'] == 'down') |
|
| 194 | - echo ' |
|
| 199 | + if ($context['sort_direction'] == 'down') { |
|
| 200 | + echo ' |
|
| 195 | 201 | <input type="hidden" name="desc" value="1">'; |
| 202 | + } |
|
| 196 | 203 | |
| 197 | 204 | echo ' |
| 198 | 205 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">'; |
@@ -52,9 +52,10 @@ discard block |
||
| 52 | 52 | <legend>', $txt['membergroups_edit_select_group_type'], '</legend> |
| 53 | 53 | <label for="group_type_private"><input type="radio" name="group_type" id="group_type_private" value="0" checked class="input_radio" onclick="swapPostGroup(0);">', $txt['membergroups_group_type_private'], '</label><br>'; |
| 54 | 54 | |
| 55 | - if ($context['allow_protected']) |
|
| 56 | - echo ' |
|
| 55 | + if ($context['allow_protected']) { |
|
| 56 | + echo ' |
|
| 57 | 57 | <label for="group_type_protected"><input type="radio" name="group_type" id="group_type_protected" value="1" class="input_radio" onclick="swapPostGroup(0);">', $txt['membergroups_group_type_protected'], '</label><br>'; |
| 58 | + } |
|
| 58 | 59 | |
| 59 | 60 | echo ' |
| 60 | 61 | <label for="group_type_request"><input type="radio" name="group_type" id="group_type_request" value="2" class="input_radio" onclick="swapPostGroup(0);">', $txt['membergroups_group_type_request'], '</label><br> |
@@ -64,14 +65,15 @@ discard block |
||
| 64 | 65 | </dd>'; |
| 65 | 66 | } |
| 66 | 67 | |
| 67 | - if ($context['post_group'] || $context['undefined_group']) |
|
| 68 | - echo ' |
|
| 68 | + if ($context['post_group'] || $context['undefined_group']) { |
|
| 69 | + echo ' |
|
| 69 | 70 | <dt id="min_posts_text"> |
| 70 | 71 | <strong>', $txt['membergroups_min_posts'], ':</strong> |
| 71 | 72 | </dt> |
| 72 | 73 | <dd> |
| 73 | 74 | <input type="number" name="min_posts" id="min_posts_input" size="5" class="input_text"> |
| 74 | 75 | </dd>'; |
| 76 | + } |
|
| 75 | 77 | if (!$context['post_group'] || !empty($modSettings['permission_enable_postgroups'])) |
| 76 | 78 | { |
| 77 | 79 | echo ' |
@@ -87,9 +89,10 @@ discard block |
||
| 87 | 89 | <select name="inheritperm" id="inheritperm_select" onclick="document.getElementById(\'perm_type_inherit\').checked = true;"> |
| 88 | 90 | <option value="-1">', $txt['membergroups_guests'], '</option> |
| 89 | 91 | <option value="0" selected>', $txt['membergroups_members'], '</option>'; |
| 90 | - foreach ($context['groups'] as $group) |
|
| 91 | - echo ' |
|
| 92 | + foreach ($context['groups'] as $group) { |
|
| 93 | + echo ' |
|
| 92 | 94 | <option value="', $group['id'], '">', $group['name'], '</option>'; |
| 95 | + } |
|
| 93 | 96 | echo ' |
| 94 | 97 | </select> |
| 95 | 98 | <br> |
@@ -98,9 +101,10 @@ discard block |
||
| 98 | 101 | <select name="copyperm" id="copyperm_select" onclick="document.getElementById(\'perm_type_copy\').checked = true;"> |
| 99 | 102 | <option value="-1">', $txt['membergroups_guests'], '</option> |
| 100 | 103 | <option value="0" selected>', $txt['membergroups_members'], '</option>'; |
| 101 | - foreach ($context['groups'] as $group) |
|
| 102 | - echo ' |
|
| 104 | + foreach ($context['groups'] as $group) { |
|
| 105 | + echo ' |
|
| 103 | 106 | <option value="', $group['id'], '">', $group['name'], '</option>'; |
| 107 | + } |
|
| 104 | 108 | echo ' |
| 105 | 109 | </select> |
| 106 | 110 | <br> |
@@ -173,8 +177,8 @@ discard block |
||
| 173 | 177 | <input type="text" name="group_name" id="group_name_input" value="', $context['group']['editable_name'], '" size="30" class="input_text"> |
| 174 | 178 | </dd>'; |
| 175 | 179 | |
| 176 | - if ($context['group']['id'] != 3 && $context['group']['id'] != 4) |
|
| 177 | - echo ' |
|
| 180 | + if ($context['group']['id'] != 3 && $context['group']['id'] != 4) { |
|
| 181 | + echo ' |
|
| 178 | 182 | |
| 179 | 183 | <dt id="group_desc_text"> |
| 180 | 184 | <label for="group_desc_input"><strong>', $txt['membergroups_edit_desc'], ':</strong></label> |
@@ -182,6 +186,7 @@ discard block |
||
| 182 | 186 | <dd> |
| 183 | 187 | <textarea name="group_desc" id="group_desc_input" rows="4" cols="40">', $context['group']['description'], '</textarea> |
| 184 | 188 | </dd>'; |
| 189 | + } |
|
| 185 | 190 | |
| 186 | 191 | // Group type... |
| 187 | 192 | if ($context['group']['allow_post_group']) |
@@ -195,9 +200,10 @@ discard block |
||
| 195 | 200 | <legend>', $txt['membergroups_edit_select_group_type'], '</legend> |
| 196 | 201 | <label for="group_type_private"><input type="radio" name="group_type" id="group_type_private" value="0"', !$context['group']['is_post_group'] && $context['group']['type'] == 0 ? ' checked' : '', ' class="input_radio" onclick="swapPostGroup(0);">', $txt['membergroups_group_type_private'], '</label><br>'; |
| 197 | 202 | |
| 198 | - if ($context['group']['allow_protected']) |
|
| 199 | - echo ' |
|
| 203 | + if ($context['group']['allow_protected']) { |
|
| 204 | + echo ' |
|
| 200 | 205 | <label for="group_type_protected"><input type="radio" name="group_type" id="group_type_protected" value="1"', $context['group']['type'] == 1 ? ' checked' : '', ' class="input_radio" onclick="swapPostGroup(0);">', $txt['membergroups_group_type_protected'], '</label><br>'; |
| 206 | + } |
|
| 201 | 207 | |
| 202 | 208 | echo ' |
| 203 | 209 | <label for="group_type_request"><input type="radio" name="group_type" id="group_type_request" value="2"', $context['group']['type'] == 2 ? ' checked' : '', ' class="input_radio" onclick="swapPostGroup(0);">', $txt['membergroups_group_type_request'], '</label><br> |
@@ -207,8 +213,8 @@ discard block |
||
| 207 | 213 | </dd>'; |
| 208 | 214 | } |
| 209 | 215 | |
| 210 | - if ($context['group']['id'] != 3 && $context['group']['id'] != 4) |
|
| 211 | - echo ' |
|
| 216 | + if ($context['group']['id'] != 3 && $context['group']['id'] != 4) { |
|
| 217 | + echo ' |
|
| 212 | 218 | <dt id="group_moderators_text"> |
| 213 | 219 | <label for="group_moderators"><strong>', $txt['moderators'], ':</strong></label> |
| 214 | 220 | </dt> |
@@ -226,6 +232,7 @@ discard block |
||
| 226 | 232 | <option value="2"', $context['group']['hidden'] == 2 ? ' selected' : '', '>', $txt['membergroups_edit_hidden_all'], '</option> |
| 227 | 233 | </select> |
| 228 | 234 | </dd>'; |
| 235 | + } |
|
| 229 | 236 | |
| 230 | 237 | // Can they inherit permissions? |
| 231 | 238 | if ($context['group']['id'] > 1 && $context['group']['id'] != 3) |
@@ -242,9 +249,10 @@ discard block |
||
| 242 | 249 | <option value="0"', $context['group']['inherited_from'] == 0 ? ' selected' : '', '>', $txt['membergroups_edit_inherit_permissions_from'], ': ', $txt['membergroups_members'], '</option>'; |
| 243 | 250 | |
| 244 | 251 | // For all the inheritable groups show an option. |
| 245 | - foreach ($context['inheritable_groups'] as $id => $group) |
|
| 246 | - echo ' |
|
| 252 | + foreach ($context['inheritable_groups'] as $id => $group) { |
|
| 253 | + echo ' |
|
| 247 | 254 | <option value="', $id, '"', $context['group']['inherited_from'] == $id ? ' selected' : '', '>', $txt['membergroups_edit_inherit_permissions_from'], ': ', $group, '</option>'; |
| 255 | + } |
|
| 248 | 256 | |
| 249 | 257 | echo ' |
| 250 | 258 | </select> |
@@ -252,8 +260,8 @@ discard block |
||
| 252 | 260 | </dd>'; |
| 253 | 261 | } |
| 254 | 262 | |
| 255 | - if ($context['group']['allow_post_group']) |
|
| 256 | - echo ' |
|
| 263 | + if ($context['group']['allow_post_group']) { |
|
| 264 | + echo ' |
|
| 257 | 265 | |
| 258 | 266 | <dt id="min_posts_text"> |
| 259 | 267 | <label for="min_posts_input"><strong>', $txt['membergroups_min_posts'], ':</strong></label> |
@@ -261,6 +269,7 @@ discard block |
||
| 261 | 269 | <dd> |
| 262 | 270 | <input type="number" name="min_posts" id="min_posts_input"', $context['group']['is_post_group'] ? ' value="' . $context['group']['min_posts'] . '"' : '', ' size="6" class="input_text"> |
| 263 | 271 | </dd>'; |
| 272 | + } |
|
| 264 | 273 | echo ' |
| 265 | 274 | <dt> |
| 266 | 275 | <label for="online_color_input"><strong>', $txt['membergroups_online_color'], ':</strong></label> |
@@ -301,9 +310,10 @@ discard block |
||
| 301 | 310 | } |
| 302 | 311 | |
| 303 | 312 | // No? Hide the entire control. |
| 304 | - else |
|
| 305 | - echo ' |
|
| 313 | + else { |
|
| 314 | + echo ' |
|
| 306 | 315 | <input type="hidden" name="icon_image" value="">'; |
| 316 | + } |
|
| 307 | 317 | |
| 308 | 318 | echo ' |
| 309 | 319 | <dt> |
@@ -314,8 +324,8 @@ discard block |
||
| 314 | 324 | <input type="text" name="max_messages" id="max_messages_input" value="', $context['group']['id'] == 1 ? 0 : $context['group']['max_messages'], '" size="6"', $context['group']['id'] == 1 ? ' disabled' : '', ' class="input_text"> |
| 315 | 325 | </dd>'; |
| 316 | 326 | //Force 2FA for this membergroup? |
| 317 | - if (!empty($modSettings['tfa_mode']) && $modSettings['tfa_mode'] == 2) |
|
| 318 | - echo ' |
|
| 327 | + if (!empty($modSettings['tfa_mode']) && $modSettings['tfa_mode'] == 2) { |
|
| 328 | + echo ' |
|
| 319 | 329 | <dt> |
| 320 | 330 | <label for="group_tfa_force_input"><strong>', $txt['membergroups_tfa_force'], ':</strong></label><br> |
| 321 | 331 | <span class="smalltext">', $txt['membergroups_tfa_force_note'], '</span> |
@@ -323,6 +333,7 @@ discard block |
||
| 323 | 333 | <dd> |
| 324 | 334 | <input type="checkbox" name="group_tfa_force"', $context['group']['tfa_required'] ? ' checked' : '', ' class="input_check"> |
| 325 | 335 | </dd>'; |
| 336 | + } |
|
| 326 | 337 | |
| 327 | 338 | if (!empty($context['categories'])) |
| 328 | 339 | { |
@@ -332,10 +343,11 @@ discard block |
||
| 332 | 343 | <span class="smalltext">' . $txt['membergroups_new_board_post_groups'] . '</span>' : '', ' |
| 333 | 344 | </dt> |
| 334 | 345 | <dd>'; |
| 335 | - if (!empty($context['can_manage_boards'])) |
|
| 336 | - echo $txt['membergroups_can_manage_access']; |
|
| 337 | - else |
|
| 338 | - template_add_edit_group_boards_list(); |
|
| 346 | + if (!empty($context['can_manage_boards'])) { |
|
| 347 | + echo $txt['membergroups_can_manage_access']; |
|
| 348 | + } else { |
|
| 349 | + template_add_edit_group_boards_list(); |
|
| 350 | + } |
|
| 339 | 351 | |
| 340 | 352 | echo ' |
| 341 | 353 | </dd>'; |
@@ -364,20 +376,21 @@ discard block |
||
| 364 | 376 | sItemListContainerId: \'moderator_container\', |
| 365 | 377 | aListItems: ['; |
| 366 | 378 | |
| 367 | - foreach ($context['group']['moderators'] as $id_member => $member_name) |
|
| 368 | - echo ' |
|
| 379 | + foreach ($context['group']['moderators'] as $id_member => $member_name) { |
|
| 380 | + echo ' |
|
| 369 | 381 | { |
| 370 | 382 | sItemId: ', JavaScriptEscape($id_member), ', |
| 371 | 383 | sItemName: ', JavaScriptEscape($member_name), ' |
| 372 | 384 | }', $id_member == $context['group']['last_moderator_id'] ? '' : ','; |
| 385 | + } |
|
| 373 | 386 | |
| 374 | 387 | echo ' |
| 375 | 388 | ] |
| 376 | 389 | }); |
| 377 | 390 | </script>'; |
| 378 | 391 | |
| 379 | - if ($context['group']['allow_post_group']) |
|
| 380 | - echo ' |
|
| 392 | + if ($context['group']['allow_post_group']) { |
|
| 393 | + echo ' |
|
| 381 | 394 | <script> |
| 382 | 395 | function swapPostGroup(isChecked) |
| 383 | 396 | { |
@@ -425,7 +438,8 @@ discard block |
||
| 425 | 438 | |
| 426 | 439 | swapPostGroup(', $context['group']['is_post_group'] ? 'true' : 'false', '); |
| 427 | 440 | </script>'; |
| 428 | -} |
|
| 441 | + } |
|
| 442 | + } |
|
| 429 | 443 | |
| 430 | 444 | /** |
| 431 | 445 | * The template for determining which boards a group has access to. |
@@ -442,13 +456,13 @@ discard block |
||
| 442 | 456 | |
| 443 | 457 | foreach ($context['categories'] as $category) |
| 444 | 458 | { |
| 445 | - if (empty($modSettings['deny_boards_access'])) |
|
| 446 | - echo ' |
|
| 459 | + if (empty($modSettings['deny_boards_access'])) { |
|
| 460 | + echo ' |
|
| 447 | 461 | <li class="category"> |
| 448 | 462 | <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'new_group\'); return false;"><strong>', $category['name'], '</strong></a> |
| 449 | 463 | <ul style="width:100%">'; |
| 450 | - else |
|
| 451 | - echo ' |
|
| 464 | + } else { |
|
| 465 | + echo ' |
|
| 452 | 466 | <li class="category"> |
| 453 | 467 | <strong>', $category['name'], '</strong> |
| 454 | 468 | <span class="select_all_box"> |
@@ -461,16 +475,17 @@ discard block |
||
| 461 | 475 | </select> |
| 462 | 476 | </span> |
| 463 | 477 | <ul style="width:100%" id="boards_list_', $category['id'], '">'; |
| 478 | + } |
|
| 464 | 479 | |
| 465 | 480 | foreach ($category['boards'] as $board) |
| 466 | 481 | { |
| 467 | - if (empty($modSettings['deny_boards_access'])) |
|
| 468 | - echo ' |
|
| 482 | + if (empty($modSettings['deny_boards_access'])) { |
|
| 483 | + echo ' |
|
| 469 | 484 | <li class="board" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;"> |
| 470 | 485 | <input type="checkbox" name="boardaccess[', $board['id'], ']" id="brd', $board['id'], '" value="allow"', $board['allow'] ? ' checked' : '', ' class="input_check"> <label for="brd', $board['id'], '">', $board['name'], '</label> |
| 471 | 486 | </li>'; |
| 472 | - else |
|
| 473 | - echo ' |
|
| 487 | + } else { |
|
| 488 | + echo ' |
|
| 474 | 489 | <li class="board" style="width:100%"> |
| 475 | 490 | <span style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;">', $board['name'], ': </span> |
| 476 | 491 | <span style="width:50%;float:right"> |
@@ -479,6 +494,7 @@ discard block |
||
| 479 | 494 | <input type="radio" name="boardaccess[', $board['id'], ']" id="deny_brd', $board['id'], '" value="deny"', $board['deny'] ? ' checked' : '', ' class="input_check"> <label for="deny_brd', $board['id'], '">', $txt['permissions_option_deny'], '</label> |
| 480 | 495 | </span> |
| 481 | 496 | </li>'; |
| 497 | + } |
|
| 482 | 498 | } |
| 483 | 499 | |
| 484 | 500 | echo ' |
@@ -489,13 +505,13 @@ discard block |
||
| 489 | 505 | echo ' |
| 490 | 506 | </ul>'; |
| 491 | 507 | |
| 492 | - if (empty($modSettings['deny_boards_access'])) |
|
| 493 | - echo ' |
|
| 508 | + if (empty($modSettings['deny_boards_access'])) { |
|
| 509 | + echo ' |
|
| 494 | 510 | <br class="clear"><br> |
| 495 | 511 | <input type="checkbox" id="checkall_check" class="input_check" onclick="invertAll(this, this.form, \'boardaccess\');"> <label for="checkall_check"><em>', $txt['check_all'], '</em></label> |
| 496 | 512 | </fieldset>'; |
| 497 | - else |
|
| 498 | - echo ' |
|
| 513 | + } else { |
|
| 514 | + echo ' |
|
| 499 | 515 | <br class="clear"> |
| 500 | 516 | <span class="select_all_box"> |
| 501 | 517 | <em>', $txt['all'], ': </em> |
@@ -511,15 +527,17 @@ discard block |
||
| 511 | 527 | }); |
| 512 | 528 | }); |
| 513 | 529 | </script>'; |
| 530 | + } |
|
| 514 | 531 | |
| 515 | - if ($collapse) |
|
| 516 | - echo ' |
|
| 532 | + if ($collapse) { |
|
| 533 | + echo ' |
|
| 517 | 534 | <a href="javascript:void(0);" onclick="document.getElementById(\'visible_boards\').style.display = \'block\'; document.getElementById(\'visible_boards_link\').style.display = \'none\'; return false;" id="visible_boards_link" style="display: none;">[ ', $txt['membergroups_select_visible_boards'], ' ]</a> |
| 518 | 535 | <script> |
| 519 | 536 | document.getElementById("visible_boards_link").style.display = ""; |
| 520 | 537 | document.getElementById("visible_boards").style.display = "none"; |
| 521 | 538 | </script>'; |
| 522 | -} |
|
| 539 | + } |
|
| 540 | + } |
|
| 523 | 541 | |
| 524 | 542 | /** |
| 525 | 543 | * Templatine for viewing the members of a group. |
@@ -543,14 +561,15 @@ discard block |
||
| 543 | 561 | <span ', $context['group']['online_color'] ? 'style="color: ' . $context['group']['online_color'] . ';"' : '', '>', $context['group']['name'], '</span> ', $context['group']['icons'], ' |
| 544 | 562 | </dd>'; |
| 545 | 563 | //Any description to show? |
| 546 | - if (!empty($context['group']['description'])) |
|
| 547 | - echo ' |
|
| 564 | + if (!empty($context['group']['description'])) { |
|
| 565 | + echo ' |
|
| 548 | 566 | <dt> |
| 549 | 567 | <strong>' . $txt['membergroups_members_description'] . ':</strong> |
| 550 | 568 | </dt> |
| 551 | 569 | <dd> |
| 552 | 570 | ', $context['group']['description'] ,' |
| 553 | 571 | </dd>'; |
| 572 | + } |
|
| 554 | 573 | |
| 555 | 574 | echo ' |
| 556 | 575 | <dt> |
@@ -563,8 +582,9 @@ discard block |
||
| 563 | 582 | if (!empty($context['group']['moderators'])) |
| 564 | 583 | { |
| 565 | 584 | $moderators = array(); |
| 566 | - foreach ($context['group']['moderators'] as $moderator) |
|
| 567 | - $moderators[] = '<a href="' . $scripturl . '?action=profile;u=' . $moderator['id'] . '">' . $moderator['name'] . '</a>'; |
|
| 585 | + foreach ($context['group']['moderators'] as $moderator) { |
|
| 586 | + $moderators[] = '<a href="' . $scripturl . '?action=profile;u=' . $moderator['id'] . '">' . $moderator['name'] . '</a>'; |
|
| 587 | + } |
|
| 568 | 588 | |
| 569 | 589 | echo ' |
| 570 | 590 | <dt> |
@@ -590,27 +610,30 @@ discard block |
||
| 590 | 610 | <tr class="title_bar"> |
| 591 | 611 | <th><a href="', $scripturl, '?action=', $context['current_action'], (isset($context['admin_area']) ? ';area=' . $context['admin_area'] : ''), ';sa=members;start=', $context['start'], ';sort=name', $context['sort_by'] == 'name' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['name'], $context['sort_by'] == 'name' ? ' <span class="generic_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a></th>'; |
| 592 | 612 | |
| 593 | - if ($context['can_send_email']) |
|
| 594 | - echo ' |
|
| 613 | + if ($context['can_send_email']) { |
|
| 614 | + echo ' |
|
| 595 | 615 | <th><a href="', $scripturl, '?action=', $context['current_action'], (isset($context['admin_area']) ? ';area=' . $context['admin_area'] : ''), ';sa=members;start=', $context['start'], ';sort=email', $context['sort_by'] == 'email' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['email'], $context['sort_by'] == 'email' ? ' <span class="generic_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a></th>'; |
| 616 | + } |
|
| 596 | 617 | |
| 597 | 618 | echo ' |
| 598 | 619 | <th><a href="', $scripturl, '?action=', $context['current_action'], (isset($context['admin_area']) ? ';area=' . $context['admin_area'] : ''), ';sa=members;start=', $context['start'], ';sort=active', $context['sort_by'] == 'active' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['membergroups_members_last_active'], $context['sort_by'] == 'active' ? '<span class="generic_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a></th> |
| 599 | 620 | <th><a href="', $scripturl, '?action=', $context['current_action'], (isset($context['admin_area']) ? ';area=' . $context['admin_area'] : ''), ';sa=members;start=', $context['start'], ';sort=registered', $context['sort_by'] == 'registered' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['date_registered'], $context['sort_by'] == 'registered' ? '<span class="generic_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a></th> |
| 600 | 621 | <th ', empty($context['group']['assignable']) ? ' colspan="2"' : '', '><a href="', $scripturl, '?action=', $context['current_action'], (isset($context['admin_area']) ? ';area=' . $context['admin_area'] : ''), ';sa=members;start=', $context['start'], ';sort=posts', $context['sort_by'] == 'posts' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['posts'], $context['sort_by'] == 'posts' ? ' <span class="generic_icons sort_' . $context['sort_direction'] . '"></span>' : '','</a></th>'; |
| 601 | - if (!empty($context['group']['assignable'])) |
|
| 602 | - echo ' |
|
| 622 | + if (!empty($context['group']['assignable'])) { |
|
| 623 | + echo ' |
|
| 603 | 624 | <th style="width: 4%"><input type="checkbox" class="input_check" onclick="invertAll(this, this.form);"></th>'; |
| 625 | + } |
|
| 604 | 626 | echo ' |
| 605 | 627 | </tr> |
| 606 | 628 | </thead> |
| 607 | 629 | <tbody>'; |
| 608 | 630 | |
| 609 | - if (empty($context['members'])) |
|
| 610 | - echo ' |
|
| 631 | + if (empty($context['members'])) { |
|
| 632 | + echo ' |
|
| 611 | 633 | <tr class="windowbg"> |
| 612 | 634 | <td colspan="6">', $txt['membergroups_members_no_members'], '</td> |
| 613 | 635 | </tr>'; |
| 636 | + } |
|
| 614 | 637 | |
| 615 | 638 | foreach ($context['members'] as $member) |
| 616 | 639 | { |
@@ -629,9 +652,10 @@ discard block |
||
| 629 | 652 | <td>', $member['last_online'], '</td> |
| 630 | 653 | <td>', $member['registered'], '</td> |
| 631 | 654 | <td', empty($context['group']['assignable']) ? ' colspan="2"' : '', '>', $member['posts'], '</td>'; |
| 632 | - if (!empty($context['group']['assignable'])) |
|
| 633 | - echo ' |
|
| 655 | + if (!empty($context['group']['assignable'])) { |
|
| 656 | + echo ' |
|
| 634 | 657 | <td style="width: 4%"><input type="checkbox" name="rem[]" value="', $member['id'], '" class="input_check" ', ($context['user']['id'] == $member['id'] && $context['group']['id'] == 1 ? 'onclick="if (this.checked) return confirm(\'' . $txt['membergroups_members_deadmin_confirm'] . '\')" ' : ''), '/></td>'; |
| 658 | + } |
|
| 635 | 659 | echo ' |
| 636 | 660 | </tr>'; |
| 637 | 661 | } |
@@ -640,11 +664,12 @@ discard block |
||
| 640 | 664 | </tbody> |
| 641 | 665 | </table>'; |
| 642 | 666 | |
| 643 | - if (!empty($context['group']['assignable'])) |
|
| 644 | - echo ' |
|
| 667 | + if (!empty($context['group']['assignable'])) { |
|
| 668 | + echo ' |
|
| 645 | 669 | <div class="floatright"> |
| 646 | 670 | <input type="submit" name="remove" value="', $txt['membergroups_members_remove'], '" class="button_submit "> |
| 647 | 671 | </div>'; |
| 672 | + } |
|
| 648 | 673 | |
| 649 | 674 | echo ' |
| 650 | 675 | <div class="pagesection flow_hidden"> |
@@ -678,8 +703,8 @@ discard block |
||
| 678 | 703 | </form> |
| 679 | 704 | </div>'; |
| 680 | 705 | |
| 681 | - if (!empty($context['group']['assignable'])) |
|
| 682 | - echo ' |
|
| 706 | + if (!empty($context['group']['assignable'])) { |
|
| 707 | + echo ' |
|
| 683 | 708 | <script> |
| 684 | 709 | var oAddMemberSuggest = new smc_AutoSuggest({ |
| 685 | 710 | sSelf: \'oAddMemberSuggest\', |
@@ -695,7 +720,8 @@ discard block |
||
| 695 | 720 | sItemListContainerId: \'toAddItemContainer\' |
| 696 | 721 | }); |
| 697 | 722 | </script>'; |
| 698 | -} |
|
| 723 | + } |
|
| 724 | + } |
|
| 699 | 725 | |
| 700 | 726 | /** |
| 701 | 727 | * Allow the moderator to enter a reason to each user being rejected. |
@@ -715,8 +741,8 @@ discard block |
||
| 715 | 741 | <dl class="settings">'; |
| 716 | 742 | |
| 717 | 743 | // Loop through and print out a reason box for each... |
| 718 | - foreach ($context['group_requests'] as $request) |
|
| 719 | - echo ' |
|
| 744 | + foreach ($context['group_requests'] as $request) { |
|
| 745 | + echo ' |
|
| 720 | 746 | <dt> |
| 721 | 747 | <strong>', sprintf($txt['mc_groupr_reason_desc'], $request['member_link'], $request['group_link']), ':</strong> |
| 722 | 748 | </dt> |
@@ -724,6 +750,7 @@ discard block |
||
| 724 | 750 | <input type="hidden" name="groupr[]" value="', $request['id'], '"> |
| 725 | 751 | <textarea name="groupreason[', $request['id'], ']" rows="3" cols="40" style="min-width: 80%; max-width: 99%;"></textarea> |
| 726 | 752 | </dd>'; |
| 753 | + } |
|
| 727 | 754 | |
| 728 | 755 | echo ' |
| 729 | 756 | </dl> |
@@ -111,8 +111,8 @@ discard block |
||
| 111 | 111 | <div class="windowbg2"> |
| 112 | 112 | <dl class="settings">'; |
| 113 | 113 | |
| 114 | - if (!empty($context['table_info'])) |
|
| 115 | - echo ' |
|
| 114 | + if (!empty($context['table_info'])) { |
|
| 115 | + echo ' |
|
| 116 | 116 | <dt> |
| 117 | 117 | <strong>', $txt['search_method_messages_table_space'], ':</strong> |
| 118 | 118 | </dt> |
@@ -125,6 +125,7 @@ discard block |
||
| 125 | 125 | <dd> |
| 126 | 126 | ', $context['table_info']['index_length'], ' |
| 127 | 127 | </dd>'; |
| 128 | + } |
|
| 128 | 129 | echo ' |
| 129 | 130 | </dl> |
| 130 | 131 | ', $context['double_index'] ? '<div class="noticebox"> |
@@ -146,16 +147,17 @@ discard block |
||
| 146 | 147 | <dd> |
| 147 | 148 | |
| 148 | 149 | <span class="smalltext">'; |
| 149 | - if (empty($context['fulltext_index']) && empty($context['cannot_create_fulltext'])) |
|
| 150 | - echo ' |
|
| 150 | + if (empty($context['fulltext_index']) && empty($context['cannot_create_fulltext'])) { |
|
| 151 | + echo ' |
|
| 151 | 152 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_no_index_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createfulltext;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_method_fulltext_create'], '</a>]'; |
| 152 | - elseif (empty($context['fulltext_index']) && !empty($context['cannot_create_fulltext'])) |
|
| 153 | - echo ' |
|
| 153 | + } elseif (empty($context['fulltext_index']) && !empty($context['cannot_create_fulltext'])) { |
|
| 154 | + echo ' |
|
| 154 | 155 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_fulltext_cannot_create']; |
| 155 | - else |
|
| 156 | - echo ' |
|
| 156 | + } else { |
|
| 157 | + echo ' |
|
| 157 | 158 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_already_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removefulltext;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_method_fulltext_remove'], '</a>]<br> |
| 158 | 159 | <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['fulltext_length']; |
| 160 | + } |
|
| 159 | 161 | echo ' |
| 160 | 162 | </span> |
| 161 | 163 | </dd>'; |
@@ -168,25 +170,27 @@ discard block |
||
| 168 | 170 | </dt> |
| 169 | 171 | <dd> |
| 170 | 172 | <span class="smalltext">'; |
| 171 | - if ($context['custom_index']) |
|
| 172 | - echo ' |
|
| 173 | + if ($context['custom_index']) { |
|
| 174 | + echo ' |
|
| 173 | 175 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_already_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removecustom;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_remove'], '</a>]<br> |
| 174 | 176 | <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['custom_index_length']; |
| 175 | - elseif ($context['partial_custom_index']) |
|
| 176 | - echo ' |
|
| 177 | + } elseif ($context['partial_custom_index']) { |
|
| 178 | + echo ' |
|
| 177 | 179 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_partial'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removecustom;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_remove'], '</a>] [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex;resume;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_resume'], '</a>]<br> |
| 178 | 180 | <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['custom_index_length']; |
| 179 | - else |
|
| 180 | - echo ' |
|
| 181 | + } else { |
|
| 182 | + echo ' |
|
| 181 | 183 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_no_index_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex">', $txt['search_index_create_custom'], '</a>]'; |
| 184 | + } |
|
| 182 | 185 | echo ' |
| 183 | 186 | </span> |
| 184 | 187 | </dd>'; |
| 185 | 188 | |
| 186 | 189 | foreach ($context['search_apis'] as $api) |
| 187 | 190 | { |
| 188 | - if (empty($api['label']) || $api['has_template']) |
|
| 189 | - continue; |
|
| 191 | + if (empty($api['label']) || $api['has_template']) { |
|
| 192 | + continue; |
|
| 193 | + } |
|
| 190 | 194 | |
| 191 | 195 | echo ' |
| 192 | 196 | <dt> |
@@ -194,12 +198,13 @@ discard block |
||
| 194 | 198 | ', $api['label'] ,' |
| 195 | 199 | </dt>'; |
| 196 | 200 | |
| 197 | - if ($api['desc']) |
|
| 198 | - echo ' |
|
| 201 | + if ($api['desc']) { |
|
| 202 | + echo ' |
|
| 199 | 203 | <dd> |
| 200 | 204 | <span class="smalltext">', $api['desc'], '</span> |
| 201 | 205 | </dd>'; |
| 202 | 206 | } |
| 207 | + } |
|
| 203 | 208 | |
| 204 | 209 | echo ' |
| 205 | 210 | </dl> |
@@ -148,8 +148,8 @@ discard block |
||
| 148 | 148 | </thead> |
| 149 | 149 | <tbody>'; |
| 150 | 150 | |
| 151 | - foreach ($context['membergroups'] as $membergroup) |
|
| 152 | - echo ' |
|
| 151 | + foreach ($context['membergroups'] as $membergroup) { |
|
| 152 | + echo ' |
|
| 153 | 153 | <tr class="windowbg"> |
| 154 | 154 | <td>', $membergroup['name'], '</td> |
| 155 | 155 | <td class="centercol"> |
@@ -159,6 +159,7 @@ discard block |
||
| 159 | 159 | ', $membergroup['can_be_additional'] ? '<input type="checkbox" name="membergroups[2][]" value="' . $membergroup['id'] . '" checked class="input_check">' : '', ' |
| 160 | 160 | </td> |
| 161 | 161 | </tr>'; |
| 162 | + } |
|
| 162 | 163 | |
| 163 | 164 | echo ' |
| 164 | 165 | <tr class="windowbg"> |
@@ -185,8 +186,8 @@ discard block |
||
| 185 | 186 | </thead> |
| 186 | 187 | <tbody>'; |
| 187 | 188 | |
| 188 | - foreach ($context['postgroups'] as $postgroup) |
|
| 189 | - echo ' |
|
| 189 | + foreach ($context['postgroups'] as $postgroup) { |
|
| 190 | + echo ' |
|
| 190 | 191 | <tr class="windowbg"> |
| 191 | 192 | <td> |
| 192 | 193 | ', $postgroup['name'], ' |
@@ -195,6 +196,7 @@ discard block |
||
| 195 | 196 | <input type="checkbox" name="postgroups[]" value="', $postgroup['id'], '" checked class="input_check"> |
| 196 | 197 | </td> |
| 197 | 198 | </tr>'; |
| 199 | + } |
|
| 198 | 200 | |
| 199 | 201 | echo ' |
| 200 | 202 | <tr class="windowbg"> |
@@ -53,14 +53,15 @@ discard block |
||
| 53 | 53 | foreach ($context['smileys'] as $location => $smileyRows) |
| 54 | 54 | { |
| 55 | 55 | $countLocations--; |
| 56 | - if ($location == 'postform') |
|
| 57 | - echo ' |
|
| 56 | + if ($location == 'postform') { |
|
| 57 | + echo ' |
|
| 58 | 58 | dropdown: |
| 59 | 59 | {'; |
| 60 | - elseif ($location == 'popup') |
|
| 61 | - echo ' |
|
| 60 | + } elseif ($location == 'popup') { |
|
| 61 | + echo ' |
|
| 62 | 62 | popup: |
| 63 | 63 | {'; |
| 64 | + } |
|
| 64 | 65 | |
| 65 | 66 | $numRows = count($smileyRows); |
| 66 | 67 | // This is needed because otherwise the editor will remove all the duplicate (empty) keys and leave only 1 additional line |
@@ -72,20 +73,21 @@ discard block |
||
| 72 | 73 | echo ' |
| 73 | 74 | ', JavaScriptEscape($smiley['code']), ': ', JavaScriptEscape($settings['smileys_url'] . '/' . $smiley['filename']), empty($smiley['isLast']) ? ',' : ''; |
| 74 | 75 | } |
| 75 | - if (empty($smileyRow['isLast']) && $numRows != 1) |
|
| 76 | - echo ', |
|
| 76 | + if (empty($smileyRow['isLast']) && $numRows != 1) { |
|
| 77 | + echo ', |
|
| 77 | 78 | \'-', $emptyPlaceholder++, '\': \'\','; |
| 79 | + } |
|
| 78 | 80 | } |
| 79 | 81 | echo ' |
| 80 | 82 | }', $countLocations != 0 ? ',' : ''; |
| 81 | 83 | } |
| 82 | 84 | echo ' |
| 83 | 85 | }'; |
| 84 | - } |
|
| 85 | - else |
|
| 86 | - echo ', |
|
| 86 | + } else { |
|
| 87 | + echo ', |
|
| 87 | 88 | emoticons: |
| 88 | 89 | {}'; |
| 90 | + } |
|
| 89 | 91 | |
| 90 | 92 | if ($context['show_bbc'] && $bbcContainer !== null) |
| 91 | 93 | { |
@@ -96,15 +98,16 @@ discard block |
||
| 96 | 98 | { |
| 97 | 99 | echo implode('|', $buttonRow); |
| 98 | 100 | $count_tags--; |
| 99 | - if (!empty($count_tags)) |
|
| 100 | - echo '||'; |
|
| 101 | + if (!empty($count_tags)) { |
|
| 102 | + echo '||'; |
|
| 103 | + } |
|
| 101 | 104 | } |
| 102 | 105 | |
| 103 | 106 | echo '",'; |
| 104 | - } |
|
| 105 | - else |
|
| 106 | - echo ', |
|
| 107 | + } else { |
|
| 108 | + echo ', |
|
| 107 | 109 | toolbar: "",'; |
| 110 | + } |
|
| 108 | 111 | |
| 109 | 112 | echo ' |
| 110 | 113 | }); |
@@ -145,43 +148,48 @@ discard block |
||
| 145 | 148 | </span>'; |
| 146 | 149 | |
| 147 | 150 | $tempTab = $context['tabindex']; |
| 148 | - if (!empty($context['drafts_pm_save'])) |
|
| 149 | - $tempTab++; |
|
| 150 | - elseif (!empty($context['drafts_save'])) |
|
| 151 | - $tempTab++; |
|
| 152 | - elseif ($editor_context['preview_type']) |
|
| 153 | - $tempTab++; |
|
| 154 | - elseif ($context['show_spellchecking']) |
|
| 155 | - $tempTab++; |
|
| 151 | + if (!empty($context['drafts_pm_save'])) { |
|
| 152 | + $tempTab++; |
|
| 153 | + } elseif (!empty($context['drafts_save'])) { |
|
| 154 | + $tempTab++; |
|
| 155 | + } elseif ($editor_context['preview_type']) { |
|
| 156 | + $tempTab++; |
|
| 157 | + } elseif ($context['show_spellchecking']) { |
|
| 158 | + $tempTab++; |
|
| 159 | + } |
|
| 156 | 160 | |
| 157 | 161 | $tempTab++; |
| 158 | 162 | $context['tabindex'] = $tempTab; |
| 159 | 163 | |
| 160 | - if (!empty($context['drafts_pm_save'])) |
|
| 161 | - echo ' |
|
| 164 | + if (!empty($context['drafts_pm_save'])) { |
|
| 165 | + echo ' |
|
| 162 | 166 | <input type="submit" name="save_draft" value="', $txt['draft_save'], '" tabindex="', --$tempTab, '" onclick="submitThisOnce(this);" accesskey="d" class="button_submit"> |
| 163 | 167 | <input type="hidden" id="id_pm_draft" name="id_pm_draft" value="', empty($context['id_pm_draft']) ? 0 : $context['id_pm_draft'], '">'; |
| 168 | + } |
|
| 164 | 169 | |
| 165 | - if (!empty($context['drafts_save'])) |
|
| 166 | - echo ' |
|
| 170 | + if (!empty($context['drafts_save'])) { |
|
| 171 | + echo ' |
|
| 167 | 172 | <input type="submit" name="save_draft" value="', $txt['draft_save'], '" tabindex="', --$tempTab, '" onclick="return confirm(' . JavaScriptEscape($txt['draft_save_note']) . ') && submitThisOnce(this);" accesskey="d" class="button_submit"> |
| 168 | 173 | <input type="hidden" id="id_draft" name="id_draft" value="', empty($context['id_draft']) ? 0 : $context['id_draft'], '">'; |
| 174 | + } |
|
| 169 | 175 | |
| 170 | - if ($context['show_spellchecking']) |
|
| 171 | - echo ' |
|
| 176 | + if ($context['show_spellchecking']) { |
|
| 177 | + echo ' |
|
| 172 | 178 | <input type="button" value="', $txt['spell_check'], '" tabindex="', --$tempTab, '" onclick="oEditorHandle_', $editor_id, '.spellCheckStart();" class="button_submit">'; |
| 179 | + } |
|
| 173 | 180 | |
| 174 | - if ($editor_context['preview_type']) |
|
| 175 | - echo ' |
|
| 181 | + if ($editor_context['preview_type']) { |
|
| 182 | + echo ' |
|
| 176 | 183 | <input type="submit" name="preview" value="', isset($editor_context['labels']['preview_button']) ? $editor_context['labels']['preview_button'] : $txt['preview'], '" tabindex="', --$tempTab, '" onclick="', $editor_context['preview_type'] == 2 ? 'return event.ctrlKey || previewPost();' : 'return submitThisOnce(this);', '" accesskey="p" class="button_submit">'; |
| 184 | + } |
|
| 177 | 185 | |
| 178 | 186 | |
| 179 | 187 | echo ' |
| 180 | 188 | <input type="submit" value="', isset($editor_context['labels']['post_button']) ? $editor_context['labels']['post_button'] : $txt['post'], '" name="post" tabindex="', --$tempTab, '" onclick="return submitThisOnce(this);" accesskey="s" class="button_submit">'; |
| 181 | 189 | |
| 182 | 190 | // Load in the PM autosaver if it's enabled |
| 183 | - if (!empty($context['drafts_pm_save']) && !empty($context['drafts_autosave'])) |
|
| 184 | - echo ' |
|
| 191 | + if (!empty($context['drafts_pm_save']) && !empty($context['drafts_autosave'])) { |
|
| 192 | + echo ' |
|
| 185 | 193 | <span class="righttext padding" style="display: block"> |
| 186 | 194 | <span id="throbber" style="display:none"><img src="' . $settings['images_url'] . '/loading_sm.gif" alt="" class="centericon"> </span> |
| 187 | 195 | <span id="draft_lastautosave" ></span> |
@@ -199,10 +207,11 @@ discard block |
||
| 199 | 207 | iFreq: ', (empty($modSettings['drafts_autosave_frequency']) ? 60000 : $modSettings['drafts_autosave_frequency'] * 1000), ' |
| 200 | 208 | }); |
| 201 | 209 | </script>'; |
| 210 | + } |
|
| 202 | 211 | |
| 203 | 212 | // Start an instance of the auto saver if its enabled |
| 204 | - if (!empty($context['drafts_save']) && !empty($context['drafts_autosave'])) |
|
| 205 | - echo ' |
|
| 213 | + if (!empty($context['drafts_save']) && !empty($context['drafts_autosave'])) { |
|
| 214 | + echo ' |
|
| 206 | 215 | <span class="righttext padding" style="display: block"> |
| 207 | 216 | <span id="throbber" style="display:none"><img src="' . $settings['images_url'] . '/loading_sm.gif" alt="" class="centericon"> </span> |
| 208 | 217 | <span id="draft_lastautosave" ></span> |
@@ -219,7 +228,8 @@ discard block |
||
| 219 | 228 | iFreq: ', $context['drafts_autosave_frequency'], ' |
| 220 | 229 | }); |
| 221 | 230 | </script>'; |
| 222 | -} |
|
| 231 | + } |
|
| 232 | + } |
|
| 223 | 233 | |
| 224 | 234 | /** |
| 225 | 235 | * This template displays a verification form |
@@ -236,50 +246,56 @@ discard block |
||
| 236 | 246 | $verify_context = &$context['controls']['verification'][$verify_id]; |
| 237 | 247 | |
| 238 | 248 | // Keep track of where we are. |
| 239 | - if (empty($verify_context['tracking']) || $reset) |
|
| 240 | - $verify_context['tracking'] = 0; |
|
| 249 | + if (empty($verify_context['tracking']) || $reset) { |
|
| 250 | + $verify_context['tracking'] = 0; |
|
| 251 | + } |
|
| 241 | 252 | |
| 242 | 253 | // How many items are there to display in total. |
| 243 | 254 | $total_items = count($verify_context['questions']) + ($verify_context['show_visual'] ? 1 : 0); |
| 244 | 255 | |
| 245 | 256 | // If we've gone too far, stop. |
| 246 | - if ($verify_context['tracking'] > $total_items) |
|
| 247 | - return false; |
|
| 257 | + if ($verify_context['tracking'] > $total_items) { |
|
| 258 | + return false; |
|
| 259 | + } |
|
| 248 | 260 | |
| 249 | 261 | // Loop through each item to show them. |
| 250 | 262 | for ($i = 0; $i < $total_items; $i++) |
| 251 | 263 | { |
| 252 | 264 | // If we're after a single item only show it if we're in the right place. |
| 253 | - if ($display_type == 'single' && $verify_context['tracking'] != $i) |
|
| 254 | - continue; |
|
| 265 | + if ($display_type == 'single' && $verify_context['tracking'] != $i) { |
|
| 266 | + continue; |
|
| 267 | + } |
|
| 255 | 268 | |
| 256 | - if ($display_type != 'single') |
|
| 257 | - echo ' |
|
| 269 | + if ($display_type != 'single') { |
|
| 270 | + echo ' |
|
| 258 | 271 | <div id="verification_control_', $i, '" class="verification_control">'; |
| 272 | + } |
|
| 259 | 273 | |
| 260 | 274 | // Display empty field, but only if we have one, and it's the first time. |
| 261 | - if ($verify_context['empty_field'] && empty($i)) |
|
| 262 | - echo ' |
|
| 275 | + if ($verify_context['empty_field'] && empty($i)) { |
|
| 276 | + echo ' |
|
| 263 | 277 | <div class="smalltext vv_special"> |
| 264 | 278 | ', $txt['visual_verification_hidden'], ': |
| 265 | 279 | <input type="text" name="', $_SESSION[$verify_id . '_vv']['empty_field'], '" autocomplete="off" size="30" value=""> |
| 266 | 280 | </div> |
| 267 | 281 | <br>'; |
| 282 | + } |
|
| 268 | 283 | |
| 269 | 284 | // Do the actual stuff - image first? |
| 270 | 285 | if ($i == 0 && $verify_context['show_visual']) |
| 271 | 286 | { |
| 272 | - if ($context['use_graphic_library']) |
|
| 273 | - echo ' |
|
| 287 | + if ($context['use_graphic_library']) { |
|
| 288 | + echo ' |
|
| 274 | 289 | <img src="', $verify_context['image_href'], '" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '">'; |
| 275 | - else |
|
| 276 | - echo ' |
|
| 290 | + } else { |
|
| 291 | + echo ' |
|
| 277 | 292 | <img src="', $verify_context['image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_1"> |
| 278 | 293 | <img src="', $verify_context['image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_2"> |
| 279 | 294 | <img src="', $verify_context['image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_3"> |
| 280 | 295 | <img src="', $verify_context['image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_4"> |
| 281 | 296 | <img src="', $verify_context['image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_5"> |
| 282 | 297 | <img src="', $verify_context['image_href'], ';letter=6" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_6">'; |
| 298 | + } |
|
| 283 | 299 | |
| 284 | 300 | echo ' |
| 285 | 301 | <div class="smalltext" style="margin: 4px 0 8px 0;"> |
@@ -287,8 +303,7 @@ discard block |
||
| 287 | 303 | ', $txt['visual_verification_description'], ':', $display_type != 'quick_reply' ? '<br>' : '', ' |
| 288 | 304 | <input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" class="input_text" required> |
| 289 | 305 | </div>'; |
| 290 | - } |
|
| 291 | - else |
|
| 306 | + } else |
|
| 292 | 307 | { |
| 293 | 308 | // Where in the question array is this question? |
| 294 | 309 | $qIndex = $verify_context['show_visual'] ? $i - 1 : $i; |
@@ -300,21 +315,24 @@ discard block |
||
| 300 | 315 | </div>'; |
| 301 | 316 | } |
| 302 | 317 | |
| 303 | - if ($display_type != 'single') |
|
| 304 | - echo ' |
|
| 318 | + if ($display_type != 'single') { |
|
| 319 | + echo ' |
|
| 305 | 320 | </div>'; |
| 321 | + } |
|
| 306 | 322 | |
| 307 | 323 | // If we were displaying just one and we did it, break. |
| 308 | - if ($display_type == 'single' && $verify_context['tracking'] == $i) |
|
| 309 | - break; |
|
| 324 | + if ($display_type == 'single' && $verify_context['tracking'] == $i) { |
|
| 325 | + break; |
|
| 326 | + } |
|
| 310 | 327 | } |
| 311 | 328 | |
| 312 | 329 | // Assume we found something, always, |
| 313 | 330 | $verify_context['tracking']++; |
| 314 | 331 | |
| 315 | 332 | // Tell something displaying piecemeal to keep going. |
| 316 | - if ($display_type == 'single') |
|
| 317 | - return true; |
|
| 318 | -} |
|
| 333 | + if ($display_type == 'single') { |
|
| 334 | + return true; |
|
| 335 | + } |
|
| 336 | + } |
|
| 319 | 337 | |
| 320 | 338 | ?> |
| 321 | 339 | \ No newline at end of file |