aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/theme/redbasic/php/config.php')
-rw-r--r--view/theme/redbasic/php/config.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/view/theme/redbasic/php/config.php b/view/theme/redbasic/php/config.php
index be021e85c..053940219 100644
--- a/view/theme/redbasic/php/config.php
+++ b/view/theme/redbasic/php/config.php
@@ -5,7 +5,7 @@ function theme_content(&$a) {
$schema = get_pconfig(local_user(),'redbasic', 'schema' );
$nav_colour = get_pconfig(local_user(),'redbasic', 'nav_colour' );
- $bgcolour = get_pconfig(local_user(),'redbasic', 'bgcolour' );
+ $bgcolour = get_pconfig(local_user(),'redbasic', 'background_colour' );
$background_image = get_pconfig(local_user(),'redbasic', 'background_image' );
$item_colour = get_pconfig(local_user(),'redbasic', 'item_colour' );
$item_opacity = get_pconfig(local_user(),'redbasic', 'item_opacity' );
@@ -13,8 +13,9 @@ function theme_content(&$a) {
$font_colour = get_pconfig(local_user(),'redbasic', 'font_colour' );
$radius = get_pconfig(local_user(),'redbasic', 'radius' );
$shadow = get_pconfig(local_user(),'redbasic', 'photo_shadow' );
+ $section_width=get_pconfig(local_user(),"redbasic","section_width");
return redbasic_form($a, $schema, $nav_colour, $bgcolour, $background_image, $item_colour, $item_opacity,
- $font_size, $font_colour, $radius, $shadow);
+ $font_size, $font_colour, $radius, $shadow, $section_width);
}
function theme_post(&$a) {
@@ -31,15 +32,16 @@ function theme_post(&$a) {
set_pconfig(local_user(), 'redbasic', 'font_colour', $_POST['redbasic_font_colour']);
set_pconfig(local_user(), 'redbasic', 'radius', $_POST['redbasic_radius']);
set_pconfig(local_user(), 'redbasic', 'photo_shadow', $_POST['redbasic_shadow']);
+ set_pconfig(local_user(), 'redbasic', 'section_width', $_POST['redbasic_section_width']);
}
}
function redbasic_form(&$a, $schema, $nav_colour, $bgcolour, $background_image, $item_colour, $item_opacity,
- $font_size, $font_colour, $radius, $shadow) {
+ $font_size, $font_colour, $radius, $shadow, $section_width) {
$scheme_choices = array();
$scheme_choices["---"] = t("Default");
- $files = glob('view/theme/' . current_theme() . '/schema/*');
+ $files = glob('view/theme/redbasic/schema/*.php');
if($files) {
foreach($files as $file) {
$f = basename($file, ".php");
@@ -75,6 +77,7 @@ if(feature_enabled(local_user(),'expert'))
'$font_colour' => array('redbasic_font_colour', t('Set font-colour for posts and comments'), $font_colour),
'$radius' => array('redbasic_radius', t('Set radius of corners'), $radius),
'$shadow' => array('redbasic_shadow', t('Set shadow depth of photos'), $shadow),
+ '$section_width' => array('redbasic_section_width',t('Set width of main section'),$section_width),
));
return $o;