';
}
function template_reset_list()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
', $txt['themeadmin_reset_title'], '
', $txt['themeadmin_reset_tip'], '
';
// Show each theme.... with X for delete and a link to settings.
$alternate = false;
foreach ($context['themes'] as $theme)
{
$alternate = !$alternate;
echo '
';
}
function template_set_options()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
';
}
function template_set_settings()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
';
if (!empty($context['theme_variants']))
{
echo '
';
}
}
// This template allows for the selection of different themes ;).
function template_pick()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
';
}
// Okay, that theme was installed successfully!
function template_installed()
{
global $context, $settings, $options, $scripturl, $txt;
// Not much to show except a link back...
echo '
';
}
// Wanna edit the stylesheet?
function template_edit_style()
{
global $context, $settings, $options, $scripturl, $txt;
if ($context['session_error'])
echo '
', $txt['error_session_timeout'], '
';
// From now on no one can complain that editing css is difficult. If you disagree, go to www.w3schools.com.
echo '
';
// Just show a big box.... gray out the Save button if it's not saveable... (ie. not 777.)
echo '
';
}
// This edits the template...
function template_edit_template()
{
global $context, $settings, $options, $scripturl, $txt;
if ($context['session_error'])
echo '
', $txt['error_session_timeout'], '
';
if (isset($context['parse_error']))
echo '
', $txt['themeadmin_edit_error'], '
', $context['parse_error'], '
';
// Just show a big box.... gray out the Save button if it's not saveable... (ie. not 777.)
echo '
';
}
function template_edit_file()
{
global $context, $settings, $options, $scripturl, $txt;
if ($context['session_error'])
echo '
', $txt['error_session_timeout'], '
';
//Is this file writeable?
if (!$context['allow_save'])
echo '