aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-06 15:13:54 -0800
committerfriendica <info@friendica.com>2013-03-06 15:13:54 -0800
commitc5d0da43e57cf812dd3a88b04740728f7ae65523 (patch)
tree451edffe9046b558cfeff238f218574a5385e9fd /view/theme/redbasic/php
parent5754d18286b4fbeeea362eea2d95296c83c59a11 (diff)
downloadvolse-hubzilla-c5d0da43e57cf812dd3a88b04740728f7ae65523.tar.gz
volse-hubzilla-c5d0da43e57cf812dd3a88b04740728f7ae65523.tar.bz2
volse-hubzilla-c5d0da43e57cf812dd3a88b04740728f7ae65523.zip
tweaky tweak, plus add share tracking db, and don't show acl for guest postings, and experiment with compressing pcss on the fly
Diffstat (limited to 'view/theme/redbasic/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 2b1d68519..bae202c7a 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -51,7 +51,16 @@
$nav_bg_2 = "2e2f2e";}
if(file_exists('view/theme/' . current_theme() . '/css/style.css')) {
- echo file_get_contents('view/theme/' . current_theme() . '/css/style.css');
+ $x = file_get_contents('view/theme/' . current_theme() . '/css/style.css');
+ if(get_config('system','pcss_compress')) {
+ // this shaves off about 10%, probably not enough to worry about right now.
+ logger('pcss compress: original size: ' . strlen($x), LOGGER_DEBUG);
+ $x = str_replace(array("\r","\t"," "),array("",' ',' '),$x);
+ $x = preg_replace('/(\n[ ]+?)/s',"\n",$x);
+ $x = str_replace("\n","",$x);
+ logger('pcss compress: final size: ' . strlen($x), LOGGER_DEBUG);
+ }
+ echo $x;
}
echo "\r\n";