aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/style.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-03 14:57:29 -0800
committerfriendica <info@friendica.com>2013-11-03 14:57:29 -0800
commit4d470f2d7017fcee94d0d5a548ff40018b358542 (patch)
tree23c3315ea4904ea9d00dc97bd5d6b15d29cae06c /view/theme/redbasic/php/style.php
parent5ba813397b7112df64e35ee45eef1c2f0b12d617 (diff)
downloadvolse-hubzilla-4d470f2d7017fcee94d0d5a548ff40018b358542.tar.gz
volse-hubzilla-4d470f2d7017fcee94d0d5a548ff40018b358542.tar.bz2
volse-hubzilla-4d470f2d7017fcee94d0d5a548ff40018b358542.zip
add sloppy photo setting and fix default navbar hide setting
Diffstat (limited to 'view/theme/redbasic/php/style.php')
-rw-r--r--view/theme/redbasic/php/style.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 88bd660c9..56df0f4f2 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -23,6 +23,7 @@
$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');
+ $sloppy_photos=get_pconfig($uid,'redbasic','sloppy_photos');
// 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
@@ -73,7 +74,7 @@
$active_colour = '#FFFFFF';
if (! $section_width)
$section_width="72%";
- if($nav_min_opacity === false) {
+ if($nav_min_opacity === false || $nav_min_opacity === '') {
$nav_float_min_opacity = 1.0;
$nav_percent_min_opacity = 100;
}
@@ -133,3 +134,7 @@ $options = array (
echo str_replace(array_keys($options), array_values($options), $x);
}
+
+if($sloppy_photos && file_exists('view/theme/redbasic/css/sloppy_photos.css')) {
+ echo file_get_contents('view/theme/redbasic/css/sloppy_photos.css');
+} \ No newline at end of file