13 include XOOPS_ROOT_PATH.
'/include/cp_header.php';
14 require_once XOOPS_ROOT_PATH.
'/modules/rmcommon/admin_loader.php';
18 $settings =
"<?php\n\nreturn array(\n'logo' => '".rmc_server_var($_POST,
'logo_url',
RMCURL.
'/themes/designia/images/logo.png').
"',\n'scheme' => '".
rmc_server_var($_POST,
'scheme',
'colors').
"'\n);";
19 file_put_contents(XOOPS_CACHE_PATH.
'/designia.php', $settings);
26 RMTemplate::get()->add_local_script(
'colorpicker.js',
'rmcommon',
'include');
32 $dConfig = include(XOOPS_CACHE_PATH.
'/designia.php');
38 <h1
class=rmc_titles><?php
_e(
'Designia Theme Settings',
'designia'); ?></h1>
40 <div
class=
"set_table">
42 <div
class=
"set_cell">
43 <h3><?php
_e(
'Basic Theme Options',
'designia'); ?></h3>
45 <form name=
"edForm" method=
"post" action=
"<?php echo RMCURL; ?>/?designia=settings">
46 <label
class=opt_caption
for=
"logo_url"><?php
_e(
'Logo URL:',
'designia'); ?></label>
47 <input type=
"text" class=
"single" name=
"logo_url" value=
"<?php echo $dConfig['logo']; ?>" id=
"logo-url" />
48 <span
class=
"opt_desc"><?php
_e(
'Provide a URL for an image to be used as logo for theme.',
'designia'); ?></span>
50 <label
class=opt_caption><?php
_e(
'Color scheme:',
'designia'); ?></label>
51 <table
class=
"screens">
63 <img src=
"<?php echo RMCURL.'/themes/designia'; ?>/images/shots/<?php echo str_replace(".css
", "", $file); ?>.jpg" />
65 <input type=
"radio" name=
"scheme" value=
"<?php echo $file; ?>"<?php echo
$file==
$dConfig[
'scheme'] ?
' checked="checked"' :
''; ?> /></label></td>
74 <input type=
"hidden" name=
"action" value=
"save_settings" />
75 <input type=
"hidden" name=
"designia" value=
"settings" />
76 <input type=
"submit" value=
"<?php _e('Save Changes','designia'); ?>" class=
"buttonGreen" />
79 <div
class=
"set_cell">