aboutsummaryrefslogtreecommitdiffstats
path: root/view/php/theme_init.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2013-12-08 15:26:02 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2013-12-08 15:26:02 +0100
commit18defb2984db8447a43de6bcffb3bdc5e596a8e0 (patch)
treeb8e6c47cd55d5eca6d6a087c58d1de03904fb522 /view/php/theme_init.php
parent808f0fc1d4bd77799756d5430cc7f6e435bec225 (diff)
downloadvolse-hubzilla-18defb2984db8447a43de6bcffb3bdc5e596a8e0.tar.gz
volse-hubzilla-18defb2984db8447a43de6bcffb3bdc5e596a8e0.tar.bz2
volse-hubzilla-18defb2984db8447a43de6bcffb3bdc5e596a8e0.zip
Include bootstrap
Diffstat (limited to 'view/php/theme_init.php')
-rw-r--r--view/php/theme_init.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/view/php/theme_init.php b/view/php/theme_init.php
index 0867c989d..f2f0af5f1 100644
--- a/view/php/theme_init.php
+++ b/view/php/theme_init.php
@@ -1,19 +1,22 @@
<?php
-
require_once('include/plugin.php');
-
+head_add_css('library/bootstrap/css/bootstrap-theme.min.css');
+head_add_css('library/bootstrap/css/bootstrap.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_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');
@@ -37,3 +40,15 @@ 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');