aboutsummaryrefslogtreecommitdiffstats
path: root/view/php/theme_init.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/php/theme_init.php')
-rw-r--r--view/php/theme_init.php27
1 files changed, 23 insertions, 4 deletions
diff --git a/view/php/theme_init.php b/view/php/theme_init.php
index 0867c989d..e1625b3e5 100644
--- a/view/php/theme_init.php
+++ b/view/php/theme_init.php
@@ -1,19 +1,25 @@
<?php
-
require_once('include/plugin.php');
-
+head_add_css('library/bootstrap/css/bootstrap-theme.min.css');
+head_add_css('library/bootstrap/css/bootstrap.min.css');
head_add_css('library/fancybox/jquery.fancybox-1.3.4.css');
head_add_css('library/tiptip/tipTip.css');
head_add_css('library/jgrowl/jquery.jgrowl.css');
head_add_css('library/jslider/css/jslider.css');
head_add_css('library/prettyphoto/css/prettyPhoto.css');
head_add_css('library/colorbox/colorbox.css');
-head_add_css('library/font_awesome/css/font-awesome.min.css');
+// head_add_css('library/font_awesome/css/font-awesome.min.css');
+head_add_css('view/css/conversation.css');
+head_add_css('view/css/bootstrap-red.css');
+head_add_css('view/css/widgets.css');
head_add_js('js/jquery.js');
+head_add_js('library/bootstrap/js/bootstrap.min.js');
+head_add_js('library/bootstrap/js/bootbox.min.js');
head_add_js('js/jquery-migrate-1.1.1.js');
+//head_add_js('js/jquery-compat.js');
head_add_js('js/spin.js');
head_add_js('js/jquery.spin.js');
head_add_js('js/jquery.textinputs.js');
@@ -24,7 +30,7 @@ head_add_js('library/jquery.divgrow/jquery.divgrow-1.3.1.js');
head_add_js('library/jquery_ac/friendica.complete.js');
head_add_js('library/tiptip/jquery.tipTip.minified.js');
head_add_js('library/jgrowl/jquery.jgrowl_minimized.js');
-head_add_js('library/tinymce/jscripts/tiny_mce/tiny_mce_src.js');
+head_add_js('library/tinymce/jscripts/tiny_mce/tiny_mce.js');
head_add_js('library/cryptojs/components/core-min.js');
head_add_js('library/cryptojs/rollups/aes.js');
head_add_js('library/cryptojs/rollups/rabbit.js');
@@ -37,3 +43,16 @@ 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.
+ * Eventually this functionality needs to be provided by a module
+ * such that permissions can be enforced. At the moment it's
+ * more of a proof of concept; but sufficient for our immediate needs.
+ */
+
+$channel = get_app()->get_channel();
+if($channel && file_exists($channel['channel_address'] . '.js'))
+ head_add_js('/' . $channel['channel_address'] . '.js');
+