aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-09 19:09:55 -0700
committerfriendica <info@friendica.com>2012-08-09 19:09:55 -0700
commitf2a7fcf8220ef497c8f39f0c9ec3175757f53128 (patch)
tree5341c592ee54f231bb5268537ce345e831f50cb8 /include
parent0292d46e5de06529012ebb14ce934fb476d595d0 (diff)
downloadvolse-hubzilla-f2a7fcf8220ef497c8f39f0c9ec3175757f53128.tar.gz
volse-hubzilla-f2a7fcf8220ef497c8f39f0c9ec3175757f53128.tar.bz2
volse-hubzilla-f2a7fcf8220ef497c8f39f0c9ec3175757f53128.zip
more theme modularisation and css/js management
Diffstat (limited to 'include')
-rw-r--r--include/plugin.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/plugin.php b/include/plugin.php
index a6780d701..c9490eb8a 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -406,8 +406,7 @@ function upgrade_bool_message($bbcode = false) {
function head_add_css($src,$media = 'screen') {
- get_app()->css_sources[] = array($src,$type);
-
+ get_app()->css_sources[] = array($src,$media);
}
function head_get_css() {
@@ -430,7 +429,7 @@ function format_css_if_exists($source) {
elseif(file_exists('view/css/' . $source[0]))
$path = 'view/css/' . $source[0];
if($path)
- return '<link rel="stylesheet" href="' . $path . '" type="text/css" media="' . $source[1] . '" />';
+ return '<link rel="stylesheet" href="' . z_root() . '/' . $path . '" type="text/css" media="' . $source[1] . '" />' . "\r\n";
}
@@ -459,7 +458,7 @@ function format_js_if_exists($source) {
elseif(file_exists('view/js/' . $source))
$path = 'view/js/' . $source[0];
if($path)
- return '<script src="' . $source . '" />';
+ return '<script src="' . z_root() . '/' . $source . '" ></script>' . "\r\n" ;
}