aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/config.php
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-05-05 20:01:38 +0200
committertommy tomson <thomas.bierey@gmx.de>2012-05-05 20:01:38 +0200
commitf29775143763606a725565db941e5bfd1acbaaba (patch)
treee085446b324882a6340f1370d5897d1f44dd8e78 /view/theme/diabook/config.php
parent8ae83201cf8f3c943972a8f246b7972aa640afb4 (diff)
downloadvolse-hubzilla-f29775143763606a725565db941e5bfd1acbaaba.tar.gz
volse-hubzilla-f29775143763606a725565db941e5bfd1acbaaba.tar.bz2
volse-hubzilla-f29775143763606a725565db941e5bfd1acbaaba.zip
diabook-theme: can now set the twitter search term in theme-settings & small fixes
Diffstat (limited to 'view/theme/diabook/config.php')
-rw-r--r--view/theme/diabook/config.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/view/theme/diabook/config.php b/view/theme/diabook/config.php
index 2477bb3d3..e6c2681e3 100644
--- a/view/theme/diabook/config.php
+++ b/view/theme/diabook/config.php
@@ -13,8 +13,9 @@ function theme_content(&$a){
$line_height = get_pconfig(local_user(), 'diabook', 'line_height' );
$resolution = get_pconfig(local_user(), 'diabook', 'resolution' );
$color = get_pconfig(local_user(), 'diabook', 'color' );
+ $TSearchTerm = get_pconfig(local_user(), 'diabook', 'TSearchTerm' );
- return diabook_form($a,$font_size, $line_height, $resolution, $color);
+ return diabook_form($a,$font_size, $line_height, $resolution, $color, $TSearchTerm);
}
function theme_post(&$a){
@@ -26,6 +27,7 @@ function theme_post(&$a){
set_pconfig(local_user(), 'diabook', 'line_height', $_POST['diabook_line_height']);
set_pconfig(local_user(), 'diabook', 'resolution', $_POST['diabook_resolution']);
set_pconfig(local_user(), 'diabook', 'color', $_POST['diabook_color']);
+ set_pconfig(local_user(), 'diabook', 'TSearchTerm', $_POST['diabook_TSearchTerm']);
}
}
@@ -35,8 +37,9 @@ function theme_admin(&$a){
$line_height = get_config('diabook', 'line_height' );
$resolution = get_config('diabook', 'resolution' );
$color = get_config('diabook', 'color' );
+ $TSearchTerm = get_config('diabook', 'TSearchTerm' );
- return diabook_form($a,$font_size, $line_height, $resolution, $color);
+ return diabook_form($a,$font_size, $line_height, $resolution, $color, $TSearchTerm);
}
function theme_admin_post(&$a){
@@ -45,11 +48,12 @@ function theme_admin_post(&$a){
set_config('diabook', 'line_height', $_POST['diabook_line_height']);
set_config('diabook', 'resolution', $_POST['diabook_resolution']);
set_config('diabook', 'color', $_POST['diabook_color']);
+ set_config('diabook', 'TSearchTerm', $_POST['diabook_TSearchTerm']);
}
}
-function diabook_form(&$a, $font_size, $line_height, $resolution, $color){
+function diabook_form(&$a, $font_size, $line_height, $resolution, $color, $TSearchTerm){
$line_heights = array(
"1.3"=>"1.3",
"---"=>"---",
@@ -95,6 +99,7 @@ function diabook_form(&$a, $font_size, $line_height, $resolution, $color){
'$line_height' => array('diabook_line_height', t('Set line-height for posts and comments'), $line_height, '', $line_heights),
'$resolution' => array('diabook_resolution', t('Set resolution for middle column'), $resolution, '', $resolutions),
'$color' => array('diabook_color', t('Set color scheme'), $color, '', $colors),
+ '$TSearchTerm' => array('diabook_TSearchTerm', t('Set twitter search term'), $TSearchTerm, '', $TSearchTerm),
));
return $o;
}