aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-21 23:11:50 -0800
committerfriendica <info@friendica.com>2013-11-21 23:11:50 -0800
commit353f5f049e5a42149cce2133f48b38529eeec678 (patch)
treee71b28748e3753a6d95df6808b2d577ad311af8a
parent49f9c55d962d03781eec470cbd3cc7ef6c2b31b0 (diff)
downloadvolse-hubzilla-353f5f049e5a42149cce2133f48b38529eeec678.tar.gz
volse-hubzilla-353f5f049e5a42149cce2133f48b38529eeec678.tar.bz2
volse-hubzilla-353f5f049e5a42149cce2133f48b38529eeec678.zip
Empty commit message.
-rw-r--r--view/php/theme_init.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/view/php/theme_init.php b/view/php/theme_init.php
index 0867c989d..1fefa110e 100644
--- a/view/php/theme_init.php
+++ b/view/php/theme_init.php
@@ -1,6 +1,7 @@
<?php
+
require_once('include/plugin.php');
@@ -37,3 +38,13 @@ head_add_js('library/jslider/bin/jquery.slider.min.js');
head_add_js('docready.js');
head_add_js('library/prettyphoto/js/jquery.prettyPhoto.js');
head_add_js('library/colorbox/jquery.colorbox-min.js');
+
+/**
+ * Those who require this feature will know what to do with it.
+ * Those who don't, won't.
+ */
+
+$channel = get_app()->get_channel();
+if($channel && file_exists($channel['channel_address'] . '.js'))
+ head_add_js('/' . $channel['channel_address'] . '.js');
+