aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/style.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-08 19:21:06 -0700
committerfriendica <info@friendica.com>2013-07-08 19:21:06 -0700
commitcd40802229a39fe6eabc2dec8784a445e4cd2769 (patch)
treed55916f6319d8875e928dddfe678481c6f7971ec /view/theme/redbasic/php/style.php
parent6e880cfd4954c4a044358a823fac4dc9d5467a6b (diff)
downloadvolse-hubzilla-cd40802229a39fe6eabc2dec8784a445e4cd2769.tar.gz
volse-hubzilla-cd40802229a39fe6eabc2dec8784a445e4cd2769.tar.bz2
volse-hubzilla-cd40802229a39fe6eabc2dec8784a445e4cd2769.zip
make corner radius configurable in redbasic expert mode
Diffstat (limited to 'view/theme/redbasic/php/style.php')
-rw-r--r--view/theme/redbasic/php/style.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 31b83394f..ec551923a 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -17,6 +17,7 @@
$displaystyle = false;
$linkcolour = false;
$shiny = false;
+ $radius = 5;
$site_line_height = get_config("redbasic","line_height");
$site_redbasic_font_size = get_config("redbasic", "font_size" );
$site_colour = get_config("redbasic", "colour" );
@@ -25,6 +26,10 @@
$displaystyle = get_config("redbasic", "displaystyle" );
$linkcolour = get_config("redbasic", "linkcolour" );
$shiny = get_config("redbasic", "shiny" );
+
+ $x = get_config('redbasic','radius');
+ if($x !== false)
+ $radius = $x;
if (local_user()) {
$line_height = get_pconfig(local_user(), "redbasic","line_height");
@@ -35,6 +40,10 @@
$displaystyle = get_pconfig(local_user(), "redbasic", "displaystyle");
$linkcolour = get_pconfig(local_user(), "redbasic", "linkcolour");
$shiny = get_pconfig(local_user(), "redbasic", "shiny");
+ $x = get_pconfig(local_user(),'redbasic','radius');
+ if($x !== false)
+ $radius = $x;
+
if (! feature_enabled(local_user(),'expert')) {$colour_scheme = get_pconfig(local_user(), "redbasic", "colour_scheme");}
}
@@ -70,7 +79,7 @@
$x = str_replace("\n","",$x);
logger('pcss compress: final size: ' . strlen($x), LOGGER_DEBUG);
}
- echo $x;
+ echo str_replace(array('$radius'),array($radius),$x);
}
echo "\r\n";