streams/view/php/theme_init.php

59 lines
2.3 KiB
PHP
Raw Normal View History

<?php
require_once('include/plugin.php');
head_add_css('library/tiptip/tipTip.css');
head_add_css('library/jgrowl/jquery.jgrowl.css');
2015-01-05 17:30:12 +00:00
head_add_css('library/jRange/jquery.range.css');
2013-12-22 13:21:57 +00:00
head_add_css('view/css/conversation.css');
head_add_css('view/css/widgets.css');
head_add_css('library/justifiedGallery/dist/css/justifiedGallery.css');
head_add_css('library/bootstrap-tagsinput/bootstrap-tagsinput.css');
2014-01-04 11:58:21 +00:00
head_add_js('jquery.js');
head_add_js('jquery-migrate-1.1.1.js');
head_add_js('library/justifiedGallery/dist/js/jquery.justifiedGallery.js');
2014-01-04 11:58:21 +00:00
//head_add_js('jquery-compat.js');
head_add_js('spin.js');
head_add_js('jquery.spin.js');
head_add_js('jquery.textinputs.js');
head_add_js('autocomplete.js');
head_add_js('library/jquery-textcomplete/jquery.textcomplete.js');
2015-01-05 18:49:15 +00:00
head_add_js('library/colorbox/jquery.colorbox.js');
head_add_js('library/jquery.timeago.js');
head_add_js('library/readmore.js/readmore.js');
head_add_js('library/jquery_ac/friendica.complete.js');
2012-08-27 06:05:00 +00:00
head_add_js('library/tiptip/jquery.tipTip.minified.js');
head_add_js('library/jgrowl/jquery.jgrowl_minimized.js');
2013-12-09 09:07:24 +00:00
head_add_js('library/tinymce/jscripts/tiny_mce/tiny_mce.js');
2013-11-11 07:19:44 +00:00
head_add_js('library/cryptojs/components/core-min.js');
2013-11-11 03:58:08 +00:00
head_add_js('library/cryptojs/rollups/aes.js');
head_add_js('library/cryptojs/rollups/rabbit.js');
head_add_js('library/cryptojs/rollups/tripledes.js');
//head_add_js('library/stylish_select/jquery.stylish-select.js');
2014-01-04 11:58:21 +00:00
head_add_js('acl.js');
head_add_js('webtoolkit.base64.js');
head_add_js('main.js');
head_add_js('crypto.js');
2015-01-05 17:30:12 +00:00
head_add_js('library/jRange/jquery.range.js');
head_add_js('docready.js');
2013-04-26 21:31:50 +00:00
head_add_js('library/colorbox/jquery.colorbox-min.js');
head_add_js('library/bootstrap-tagsinput/bootstrap-tagsinput.js');
head_add_js('library/jquery.AreYouSure/jquery.are-you-sure.js');
head_add_js('library/tableofcontents/jquery.toc.js');
2013-12-08 14:26:02 +00:00
/**
* 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'))
2013-11-22 07:11:50 +00:00
head_add_js('/' . $channel['channel_address'] . '.js');