', $editor_context['value'], '
'; } /** * This template shows the form buttons at the bottom of the editor * * @param string $editor_id The editor ID */ function template_control_richedit_buttons($editor_id) { global $context, $settings, $txt, $modSettings; $editor_context = &$context['controls']['richedit'][$editor_id]; echo ' ', $context['shortcuts_text'], ' '; // Load in the PM autosaver if it's enabled if (!empty($context['drafts_pm_save']) && !empty($context['drafts_autosave'])) echo ' '; // Start an instance of the auto saver if its enabled if (!empty($context['drafts_save']) && !empty($context['drafts_autosave'])) echo ' '; } /** * This template displays a verification form * * @param int|string $verify_id The verification control ID * @param string $display_type What type to display. Can be 'single' to only show one verification option or 'all' to show all of them * @param bool $reset Whether to reset the internal tracking counter * @return bool False if there's nothing else to show, true if $display_type is 'single', nothing otherwise */ function template_control_verification($verify_id, $display_type = 'all', $reset = false) { global $context, $txt; $verify_context = &$context['controls']['verification'][$verify_id]; // Keep track of where we are. if (empty($verify_context['tracking']) || $reset) $verify_context['tracking'] = 0; // How many items are there to display in total. $total_items = count($verify_context['questions']) + ($verify_context['show_visual'] || $verify_context['can_recaptcha'] ? 1 : 0); // If we've gone too far, stop. if ($verify_context['tracking'] > $total_items) return false; // Loop through each item to show them. for ($i = 0; $i < $total_items; $i++) { // If we're after a single item only show it if we're in the right place. if ($display_type == 'single' && $verify_context['tracking'] != $i) continue; if ($display_type != 'single') echo '