| @@ 503-523 (lines=21) @@ | ||
| 500 | </div><!-- #postAdditionalOptions -->'; |
|
| 501 | ||
| 502 | // If the admin enabled the drafts feature, show a draft selection box |
|
| 503 | if (!empty($modSettings['drafts_post_enabled']) && !empty($context['drafts']) && !empty($options['drafts_show_saved_enabled'])) |
|
| 504 | { |
|
| 505 | echo ' |
|
| 506 | <div id="postDraftOptionsHeader" class="title_bar title_top"> |
|
| 507 | <h4 class="titlebg"> |
|
| 508 | <span id="postDraftExpand" class="toggle_up floatright" style="display: none;"></span> <strong><a href="#" id="postDraftExpandLink">', $txt['draft_load'], '</a></strong> |
|
| 509 | </h4> |
|
| 510 | </div> |
|
| 511 | <div id="postDraftOptions"> |
|
| 512 | <dl class="settings"> |
|
| 513 | <dt><strong>', $txt['subject'], '</strong></dt> |
|
| 514 | <dd><strong>', $txt['draft_saved_on'], '</strong></dd>'; |
|
| 515 | ||
| 516 | foreach ($context['drafts'] as $draft) |
|
| 517 | echo ' |
|
| 518 | <dt>', $draft['link'], '</dt> |
|
| 519 | <dd>', $draft['poster_time'], '</dd>'; |
|
| 520 | echo ' |
|
| 521 | </dl> |
|
| 522 | </div>'; |
|
| 523 | } |
|
| 524 | ||
| 525 | // Is visual verification enabled? |
|
| 526 | if ($context['require_verification']) |
|
| @@ 1158-1179 (lines=22) @@ | ||
| 1155 | </form>'; |
|
| 1156 | ||
| 1157 | // If the admin enabled the pm drafts feature, show a draft selection box |
|
| 1158 | if (!empty($context['drafts_pm_save']) && !empty($context['drafts']) && !empty($options['drafts_show_saved_enabled'])) |
|
| 1159 | { |
|
| 1160 | echo ' |
|
| 1161 | <br> |
|
| 1162 | <div id="postDraftOptionsHeader" class="cat_bar"> |
|
| 1163 | <h3 class="catbg"> |
|
| 1164 | <span id="postDraftExpand" class="toggle_up floatright" style="display: none;"></span> <strong><a href="#" id="postDraftExpandLink">', $txt['draft_load'], '</a></strong> |
|
| 1165 | </h3> |
|
| 1166 | </div> |
|
| 1167 | <div id="postDraftOptions" class="load_drafts padding"> |
|
| 1168 | <dl class="settings"> |
|
| 1169 | <dt><strong>', $txt['subject'], '</strong></dt> |
|
| 1170 | <dd><strong>', $txt['draft_saved_on'], '</strong></dd>'; |
|
| 1171 | ||
| 1172 | foreach ($context['drafts'] as $draft) |
|
| 1173 | echo ' |
|
| 1174 | <dt>', $draft['link'], '</dt> |
|
| 1175 | <dd>', $draft['poster_time'], '</dd>'; |
|
| 1176 | echo ' |
|
| 1177 | </dl> |
|
| 1178 | </div>'; |
|
| 1179 | } |
|
| 1180 | ||
| 1181 | echo ' |
|
| 1182 | <script>'; |
|