:
  • '), '); }'; // If we are making a calendar event we want to ensure we show the current days in a month etc... this is done here. if ($context['make_event']) echo ' var monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];'; // End of the javascript, start the form and display the link tree. echo ' // ]]>
    '; // If the user wants to see how their message looks - the preview section is where it's at! echo '
    '; if ($context['make_event'] && (!$context['event']['new'] || !empty($context['current_board']))) echo ' '; // Start the main table. echo '

    ', $context['page_title'], '

    ', isset($context['current_topic']) ? ' ' : ''; // If an error occurred, explain what happened. echo ' '; // If this won't be approved let them know! if (!$context['becomes_approved']) { echo '

    ', $txt['wait_for_approval'], '

    '; } // If it's locked, show a message to warn the replyer. echo ' '; if (!empty($modSettings['drafts_post_enabled'])) echo ' '; // The post header... important stuff echo '
    '; // Guests have to put in their name and email... if (isset($context['name']) && isset($context['email'])) { echo '
    ', $txt['name'], ':
    '; if (empty($modSettings['guest_post_no_email'])) echo '
    ', $txt['email'], ':
    '; } // Now show the subject box for this post. echo '
    ', $txt['subject'], ':
    ', $txt['message_icon'], ':

    '; // Are you posting a calendar event? if ($context['make_event']) { echo '
    ', $txt['calendar_event_title'], '
    ', $txt['calendar_year'], ' ', $txt['calendar_month'], ' ', $txt['calendar_day'], '
    '; if (!empty($modSettings['cal_allowspan']) || ($context['event']['new'] && $context['is_new_post'])) { echo '
    ', $txt['calendar_event_options'], '
      '; // If events can span more than one day then allow the user to select how long it should last. if (!empty($modSettings['cal_allowspan'])) { echo '
    • ', $txt['calendar_numb_days'], '
    • '; } // If this is a new event let the user specify which board they want the linked post to be put into. if ($context['event']['new'] && $context['is_new_post']) { echo '
    • ', $txt['calendar_post_in'], '
    • '; } echo '
    '; } echo '
    '; } // If this is a poll then display all the poll options! if ($context['make_poll']) { echo '
    ', $txt['poll_question'], '
      '; // Loop through all the choices and print them out. foreach ($context['choices'] as $choice) { echo '
    • :
    • '; } echo '
    (', $txt['poll_add_option'], ')
    ', $txt['poll_options'], '

    ', $txt['poll_run_limit'], '
    ', $txt['days_word'], '
    '; if ($context['poll_options']['guest_vote_enabled']) echo '
    '; echo '
    ', $txt['poll_results_visibility'], ':


    '; } // Show the actual posting area... echo ' ', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message'); // If this message has been edited in the past - display when it was. if (isset($context['last_modified'])) echo '
    ', $txt['last_edit'], ': ', $context['last_modified'], '
    '; // If the admin has enabled the hiding of the additional options - show a link and image for it. if (!empty($settings['additional_options_collapsable'])) echo ' '; // Display the check boxes for all the standard options - if they are available to the user! echo '
      ', $context['can_notify'] ? '
    • ' : '', ' ', $context['can_lock'] ? '
    • ' : '', '
    • ', $context['can_sticky'] ? '
    • ' : '', '
    • ', ' ', $context['can_move'] ? '
    • ' : '', ' ', $context['can_announce'] && $context['is_first_post'] ? '
    • ' : '', ' ', $context['show_approval'] ? '
    • ' : '', '
    '; // If this post already has attachments on it - give information about them. if (!empty($context['current_attachments'])) { echo '
    ', $txt['attached'], ':
    ', $txt['uncheck_unwatchd_attach'], ':
    '; foreach ($context['current_attachments'] as $attachment) echo '
    '; if (!empty($context['files_in_session_warning'])) echo '
    ', $context['files_in_session_warning'], '
    '; echo '
    '; } // Is the user allowed to post any additional ones? If so give them the boxes to do it! if ($context['can_post_attachment']) { echo '
    '; // But, only show them if they haven't reached a limit. Or a mod author hasn't hidden them. if ($context['num_allowed_attachments'] > 0 || !empty($context['dont_show_them'])) { echo '
    ', $txt['attach'], ':
    ', empty($modSettings['attachmentSizeLimit']) ? '' : (''), ' (', $txt['clean_attach'], ')'; // Show more boxes if they aren't approaching that limit. if ($context['num_allowed_attachments'] > 1) echo '
    (', $txt['more_attachments'], ')
    '; else echo ' '; } // Add any template changes for an alternative upload system here. call_integration_hook('integrate_upload_template'); echo '
    '; // Show some useful information such as allowed extensions, maximum size and amount of attachments allowed. if (!empty($modSettings['attachmentCheckExtensions'])) echo ' ', $txt['allowed_types'], ': ', $context['allowed_extensions'], '
    '; if (!empty($context['attachment_restrictions'])) echo ' ', $txt['attach_restrictions'], ' ', implode(', ', $context['attachment_restrictions']), '
    '; if ($context['num_allowed_attachments'] == 0) echo ' ', $txt['attach_limit_nag'], '
    '; if (!$context['can_post_attachment_unapproved']) echo ' ', $txt['attachment_requires_approval'], '', '
    '; echo '
    '; } // If the admin enabled the drafts feature, show a draft selection box if (!empty($modSettings['drafts_enabled']) && !empty($context['drafts']) && !empty($options['drafts_show_saved_enabled'])) { echo '
    ', $txt['subject'], '
    ', $txt['draft_saved_on'], '
    '; foreach ($context['drafts'] as $draft) echo '
    ', $draft['link'], '
    ', $draft['poster_time'], '
    '; echo '
    '; } // Is visual verification enabled? if ($context['require_verification']) { echo '
    ', $txt['verification'], ': ', template_control_verification($context['visual_verification_id'], 'all'), '
    '; } // Finally, the submit buttons. echo '
    ', isBrowser('is_firefox') ? ($context['drafts_save'] ? $txt['shortcuts_drafts_firefox'] : $txt['shortcuts_firefox']) : ($context['drafts_save'] ? $txt['shortcuts_drafts'] : $txt['shortcuts']), ' ', template_control_richedit_buttons($context['post_box_name']); // Option to delete an event if user is editing one. if ($context['make_event'] && !$context['event']['new']) echo ' '; echo '

    '; // Assuming this isn't a new topic pass across the last message id. if (isset($context['topic_last_message'])) echo ' '; echo '
    '; echo ' '; // If the user is replying to a topic show the previous posts. if (isset($context['previous_posts']) && count($context['previous_posts']) > 0) { echo '

    ', $txt['topic_summary'], '

    '; $ignored_posts = array(); foreach ($context['previous_posts'] as $post) { $ignoring = false; if (!empty($post['is_ignored'])) $ignored_posts[] = $ignoring = $post['id']; echo '
    ', $txt['posted_by'], ' ', $post['poster'], '
     - ', $post['time']; if ($context['can_quote']) { echo ' '; } echo '
    '; if ($ignoring) { echo '
    ', $txt['ignoring_user'], '
    '; } echo '
    ', $post['message'], '
    '; } echo '
    '; } } // The template for the spellchecker. function template_spellcheck() { global $context, $settings, $options, $txt; // The style information that makes the spellchecker look... like the forum hopefully! echo ' ', $txt['spell_check'], '
     
    ', $txt['spellcheck_change_to'], '
    ', $txt['spellcheck_suggest'], '
    '; } function template_quotefast() { global $context, $settings, $options, $txt; echo ' ', $txt['retrieving_quote'], ' ', $txt['retrieving_quote'], ' '; } function template_announce() { global $context, $settings, $options, $txt, $scripturl; echo '

    ', $txt['announce_title'], '

    ', $txt['announce_desc'], '

    ', $txt['announce_this_topic'], ' ', $context['topic_subject'], '

      '; foreach ($context['groups'] as $group) echo '
    • (', $group['member_count'], ')
    • '; echo '



    '; } function template_announcement_send() { global $context, $settings, $options, $txt, $scripturl; echo '

    ', $txt['announce_sending'], ' ', $context['topic_subject'], '

    ', $context['percentage_done'], '% ', $txt['announce_done'], '
     



    '; } ?>