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') 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 c97cc1487cbcac2c4fbc4d9e931a82df109af2e6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 2 Mar 2016 12:31:25 +0100 Subject: a simple cover-photo implementation for redbasic default template --- view/php/default.php | 1 + 1 file changed, 1 insertion(+) (limited to 'view/php') diff --git a/view/php/default.php b/view/php/default.php index 6a9cc5517..cf6b25d90 100644 --- a/view/php/default.php +++ b/view/php/default.php @@ -6,6 +6,7 @@ +
-- cgit v1.2.3 From d5db25808a0847e09ee3735faeac3552c722e0ae Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 7 Mar 2016 15:03:53 -0800 Subject: Facebook scraper "OpenGraph" support; modules will need to set the required fields (type, image, url) as well as any desired optional or type specific fields. We will set the title during pagebuild. --- view/php/choklet.php | 2 +- view/php/default.php | 2 +- view/php/full.php | 2 +- view/php/minimal.php | 2 +- view/php/redable.php | 2 +- view/php/zen.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'view/php') diff --git a/view/php/choklet.php b/view/php/choklet.php index 712e8b1c3..5f2303e77 100644 --- a/view/php/choklet.php +++ b/view/php/choklet.php @@ -1,5 +1,5 @@ - + <?php if(x($page,'title')) echo $page['title']; ?> diff --git a/view/php/default.php b/view/php/default.php index cf6b25d90..4a7c1ea19 100644 --- a/view/php/default.php +++ b/view/php/default.php @@ -1,5 +1,5 @@ - + <?php if(x($page,'title')) echo $page['title'] ?> diff --git a/view/php/full.php b/view/php/full.php index 99653c06d..bc3b2ed87 100644 --- a/view/php/full.php +++ b/view/php/full.php @@ -1,5 +1,5 @@ - + <?php if(x($page,'title')) echo $page['title'] ?> diff --git a/view/php/minimal.php b/view/php/minimal.php index a8c693985..ade2a0cb7 100644 --- a/view/php/minimal.php +++ b/view/php/minimal.php @@ -1,5 +1,5 @@ - + <?php if(x($page,'title')) echo $page['title'] ?> diff --git a/view/php/redable.php b/view/php/redable.php index dfa99ccb3..0dcba77d2 100644 --- a/view/php/redable.php +++ b/view/php/redable.php @@ -1,5 +1,5 @@ - + <?php if(x($page,'title')) echo $page['title'] ?> diff --git a/view/php/zen.php b/view/php/zen.php index 5b89e9c32..a96cf722f 100644 --- a/view/php/zen.php +++ b/view/php/zen.php @@ -1,5 +1,5 @@ - + <?php if(x($page,'title')) echo $page['title'] ?> -- cgit v1.2.3 From 1cd3b4182595b838a535dd6b6990251db05d49e6 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 30 Mar 2016 22:13:24 -0700 Subject: deprecate $a->get_baseurl() --- view/php/choklet.php | 2 +- view/php/default.php | 2 +- view/php/full.php | 2 +- view/php/minimal.php | 2 +- view/php/redable.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'view/php') diff --git a/view/php/choklet.php b/view/php/choklet.php index 5f2303e77..00f8a6c56 100644 --- a/view/php/choklet.php +++ b/view/php/choklet.php @@ -2,7 +2,7 @@ <?php if(x($page,'title')) echo $page['title']; ?> - + diff --git a/view/php/default.php b/view/php/default.php index 4a7c1ea19..ad6b7a3d1 100644 --- a/view/php/default.php +++ b/view/php/default.php @@ -2,7 +2,7 @@ <?php if(x($page,'title')) echo $page['title'] ?> - + diff --git a/view/php/full.php b/view/php/full.php index bc3b2ed87..9cf567a67 100644 --- a/view/php/full.php +++ b/view/php/full.php @@ -2,7 +2,7 @@ <?php if(x($page,'title')) echo $page['title'] ?> - + diff --git a/view/php/minimal.php b/view/php/minimal.php index ade2a0cb7..3572f3b5c 100644 --- a/view/php/minimal.php +++ b/view/php/minimal.php @@ -2,7 +2,7 @@ <?php if(x($page,'title')) echo $page['title'] ?> - + diff --git a/view/php/redable.php b/view/php/redable.php index 0dcba77d2..a5110e0dc 100644 --- a/view/php/redable.php +++ b/view/php/redable.php @@ -2,7 +2,7 @@ <?php if(x($page,'title')) echo $page['title'] ?> - + -- 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/mod_import.php | 2 +- view/php/theme_init.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'view/php') diff --git a/view/php/mod_import.php b/view/php/mod_import.php index 1ca2866bc..56c4eff86 100644 --- a/view/php/mod_import.php +++ b/view/php/mod_import.php @@ -1,2 +1,2 @@ page['template'] = 'full'; +App::$page['template'] = 'full'; 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