aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/style.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-03 14:26:42 -0800
committerfriendica <info@friendica.com>2013-11-03 14:26:42 -0800
commit5ba813397b7112df64e35ee45eef1c2f0b12d617 (patch)
tree477cf888d30057af4c55e542fb57702e54a528a6 /view/theme/redbasic/php/style.php
parent8a75e9202032fd789b6b62484df976eb48b1ce16 (diff)
downloadvolse-hubzilla-5ba813397b7112df64e35ee45eef1c2f0b12d617.tar.gz
volse-hubzilla-5ba813397b7112df64e35ee45eef1c2f0b12d617.tar.bz2
volse-hubzilla-5ba813397b7112df64e35ee45eef1c2f0b12d617.zip
provide nav_min_opacity which allows the navbar to fade or even vanish until hovered with a value of for instance '0';
Diffstat (limited to 'view/theme/redbasic/php/style.php')
-rw-r--r--view/theme/redbasic/php/style.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index c4bd2e15a..88bd660c9 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -22,6 +22,7 @@
$radius = get_pconfig($uid, "redbasic", "radius");
$shadow = get_pconfig($uid,"redbasic","photo_shadow");
$section_width=get_pconfig($uid,"redbasic","section_width");
+ $nav_min_opacity=get_pconfig($uid,'redbasic','nav_min_opacity');
// Now load the scheme. If a value is changed above, we'll keep the settings
// If not, we'll keep those defined by the schema
@@ -72,8 +73,15 @@
$active_colour = '#FFFFFF';
if (! $section_width)
$section_width="72%";
-
-
+ if($nav_min_opacity === false) {
+ $nav_float_min_opacity = 1.0;
+ $nav_percent_min_opacity = 100;
+ }
+ else {
+ $nav_float_min_opacity = (float) $nav_min_opacity;
+ $nav_percent_min_opacity = (int) 100 * $nav_min_opacity;
+ }
+
// Nav colours have nested values, so we have to define the actual variables
// used in the CSS from the higher level "red", "black", etc here
@@ -117,7 +125,9 @@ $options = array (
'$radius' => $radius,
'$shadow' => $shadow,
'$active_colour' => $active_colour,
-'$section_width' => $section_width
+'$section_width' => $section_width,
+'$nav_float_min_opacity' => $nav_float_min_opacity,
+'$nav_percent_min_opacity' => $nav_percent_min_opacity
);
echo str_replace(array_keys($options), array_values($options), $x);