', $context['current_set']['is_new'] ? $txt['smiley_set_new'] : $txt['smiley_set_modify_existing'], '

'; if ($context['current_set']['is_new'] && !empty($modSettings['smiley_enable'])) { echo '
', $txt['smiley_set_import_info'], '
'; } // If this is an existing set, and there are still un-added smileys - offer an import opportunity. elseif (!empty($context['current_set']['can_import'])) { echo '
', $context['smiley_set_unused_message'], '
'; } echo '
:
:
', $modSettings['smileys_url'], '/'; if (empty($context['smiley_set_dirs'])) echo ' '; else { echo ' '; } echo ' /..
:
'; } /** * Editing an individual smiley */ function template_modifysmiley() { global $context, $scripturl, $txt, $modSettings; echo '

', $txt['smiley_modify_existing'], '

', $txt['smiley_preview_using_set'], ':
:
'; if (empty($context['filenames'])) { echo '
'; } else { foreach ($context['smiley_sets'] as $set => $smiley_set) { echo '
', $smiley_set['name'], '
'; } } echo '
:
:
:
'; } /** * Adding a new smiley. */ function template_addsmiley() { global $context, $scripturl, $txt, $modSettings; echo '

', $txt['smileys_add_method'], '


:
:
'; if (empty($context['filenames'])) echo ' '; else { echo ' '; } echo '

', $txt['smiley_new'], '

:
:
:
'; } /** * Ordering smileys. */ function template_setorder() { global $context, $scripturl, $txt, $modSettings; foreach ($context['smileys'] as $location) { echo '

', $location['title'], '

', $location['description'], '
', empty($context['move_smiley']) ? $txt['smileys_move_select_smiley'] : $txt['smileys_move_select_destination'], '...
'; foreach ($location['rows'] as $row) { if (!empty($context['move_smiley'])) echo ' '; foreach ($row as $smiley) { if (empty($context['move_smiley'])) echo ' ', $smiley['description'], ''; else echo ' ', $smiley['description'], ' '; } echo '
'; } if (!empty($context['move_smiley'])) echo ' '; echo '
'; } } /** * Editing Message Icons */ function template_editicons() { template_show_list('message_icon_list'); } /** * Editing an individual message icon */ function template_editicon() { global $context, $scripturl, $txt; echo '

', $context['new_icon'] ? $txt['icons_new_icon'] : $txt['icons_edit_icon'], '

'; if (!$context['new_icon']) echo '
', $txt['smiley_preview'], ':
', $context['icon']['title'], '
'; echo '
:
', sprintf($txt['icons_extension_must_be'], '.png'), '
:
:
:
'; if (!$context['new_icon']) echo ' '; echo '
'; } ?>