From 0b487122f6463b5918207cde99b7ba3ad55d5bcc Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 12 Feb 2016 11:00:50 +0100 Subject: tryout: introduce loading of images before rendering content and provide some detailed logging in js-console --- view/php/theme_init.php | 1 + 1 file changed, 1 insertion(+) (limited to 'view/php/theme_init.php') diff --git a/view/php/theme_init.php b/view/php/theme_init.php index 49b3511c9..7c714ecd2 100644 --- a/view/php/theme_init.php +++ b/view/php/theme_init.php @@ -44,6 +44,7 @@ head_add_js('library/colorbox/jquery.colorbox-min.js'); head_add_js('library/jquery.AreYouSure/jquery.are-you-sure.js'); head_add_js('library/tableofcontents/jquery.toc.js'); +head_add_js('library/imagesloaded/imagesloaded.pkgd.min.js'); /** * Those who require this feature will know what to do with it. * Those who don't, won't. -- cgit v1.2.3 From 9abd95fad3784a10fc48bc40f9b8a75d7d74edda Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 31 Mar 2016 16:06:03 -0700 Subject: static App --- view/php/theme_init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/php/theme_init.php') diff --git a/view/php/theme_init.php b/view/php/theme_init.php index 7c714ecd2..648b144b3 100644 --- a/view/php/theme_init.php +++ b/view/php/theme_init.php @@ -53,6 +53,6 @@ head_add_js('library/imagesloaded/imagesloaded.pkgd.min.js'); * more of a proof of concept; but sufficient for our immediate needs. */ -$channel = get_app()->get_channel(); +$channel = App::get_channel(); if($channel && file_exists($channel['channel_address'] . '.js')) head_add_js('/' . $channel['channel_address'] . '.js'); -- cgit v1.2.3