| @@ 512-532 (lines=21) @@ | ||
| 509 | </div><!-- #postAdditionalOptions -->'; |
|
| 510 | ||
| 511 | // If the admin enabled the drafts feature, show a draft selection box |
|
| 512 | if (!empty($modSettings['drafts_post_enabled']) && !empty($context['drafts']) && !empty($options['drafts_show_saved_enabled'])) |
|
| 513 | { |
|
| 514 | echo ' |
|
| 515 | <div id="postDraftOptionsHeader" class="title_bar title_top"> |
|
| 516 | <h4 class="titlebg"> |
|
| 517 | <span id="postDraftExpand" class="toggle_up floatright" style="display: none;"></span> <strong><a href="#" id="postDraftExpandLink">', $txt['draft_load'], '</a></strong> |
|
| 518 | </h4> |
|
| 519 | </div> |
|
| 520 | <div id="postDraftOptions"> |
|
| 521 | <dl class="settings"> |
|
| 522 | <dt><strong>', $txt['subject'], '</strong></dt> |
|
| 523 | <dd><strong>', $txt['draft_saved_on'], '</strong></dd>'; |
|
| 524 | ||
| 525 | foreach ($context['drafts'] as $draft) |
|
| 526 | echo ' |
|
| 527 | <dt>', $draft['link'], '</dt> |
|
| 528 | <dd>', $draft['poster_time'], '</dd>'; |
|
| 529 | echo ' |
|
| 530 | </dl> |
|
| 531 | </div>'; |
|
| 532 | } |
|
| 533 | ||
| 534 | // Is visual verification enabled? |
|
| 535 | if ($context['require_verification']) |
|
| @@ 1141-1162 (lines=22) @@ | ||
| 1138 | </form>'; |
|
| 1139 | ||
| 1140 | // If the admin enabled the pm drafts feature, show a draft selection box |
|
| 1141 | if (!empty($context['drafts_pm_save']) && !empty($context['drafts']) && !empty($options['drafts_show_saved_enabled'])) |
|
| 1142 | { |
|
| 1143 | echo ' |
|
| 1144 | <br> |
|
| 1145 | <div id="postDraftOptionsHeader" class="cat_bar"> |
|
| 1146 | <h3 class="catbg"> |
|
| 1147 | <span id="postDraftExpand" class="toggle_up floatright" style="display: none;"></span> <strong><a href="#" id="postDraftExpandLink">', $txt['draft_load'], '</a></strong> |
|
| 1148 | </h3> |
|
| 1149 | </div> |
|
| 1150 | <div id="postDraftOptions" class="load_drafts padding"> |
|
| 1151 | <dl class="settings"> |
|
| 1152 | <dt><strong>', $txt['subject'], '</strong></dt> |
|
| 1153 | <dd><strong>', $txt['draft_saved_on'], '</strong></dd>'; |
|
| 1154 | ||
| 1155 | foreach ($context['drafts'] as $draft) |
|
| 1156 | echo ' |
|
| 1157 | <dt>', $draft['link'], '</dt> |
|
| 1158 | <dd>', $draft['poster_time'], '</dd>'; |
|
| 1159 | echo ' |
|
| 1160 | </dl> |
|
| 1161 | </div>'; |
|
| 1162 | } |
|
| 1163 | ||
| 1164 | echo ' |
|
| 1165 | <script>'; |
|