26 $theme_set_allowed =
$xoops->getConfig(
'theme_set_allowed');
27 foreach ($theme_set_allowed as $theme) {
28 $theme_options .=
'<option value="' . $theme .
'"';
29 if ($theme ==
$xoops->getConfig(
'theme_set')) {
30 $theme_options .=
' selected="selected"';
32 $theme_options .=
'>' . $theme .
'</option>';
36 $block[
'theme_select'] =
"<img vspace=\"2\" id=\"xoops_theme_img\" src=\"" .
\XoopsBaseConfig::get(
'themes-url') .
"/" .
$xoops->getConfig(
'theme_set') .
"/screenshot.png\" alt=\"screenshot\" width=\"" . intval(
$options[1]) .
"\" /><br /><select class=\"span2\" id=\"xoops_theme_select\" name=\"xoops_theme_select\" onchange=\"showImgSelected('xoops_theme_img', 'xoops_theme_select', 'themes', '/screenshot.png', '" .
\XoopsBaseConfig::get(
'url') .
"');\">" . $theme_options .
"</select><br /><input type=\"submit\" value=\"" .
XoopsLocale::A_GO .
"\" />";
38 $block[
'theme_select'] =
'<select class="span2" name="xoops_theme_select" onchange="submit();" size="3">' . $theme_options .
'</select>';
41 $block[
'theme_select'] .=
'<br />(' . sprintf(
SystemLocale::F_THEMES,
'<strong>' . count($theme_set_allowed) .
'</strong>') .
')<br />';
50 return $block_form->render();
const SCREENSHOT_IMAGE_WIDTH
b_system_themes_edit($options)
b_system_themes_show($options)
const DISPLAY_SCREENSHOT_IMAGE