diff options
Diffstat (limited to 'view/php')
-rw-r--r-- | view/php/choklet.php | 4 | ||||
-rw-r--r-- | view/php/default.php | 5 | ||||
-rw-r--r-- | view/php/full.php | 4 | ||||
-rw-r--r-- | view/php/minimal.php | 4 | ||||
-rw-r--r-- | view/php/mod_import.php | 2 | ||||
-rw-r--r-- | view/php/redable.php | 4 | ||||
-rw-r--r-- | view/php/theme_init.php | 3 | ||||
-rw-r--r-- | view/php/zen.php | 2 |
8 files changed, 15 insertions, 13 deletions
diff --git a/view/php/choklet.php b/view/php/choklet.php index 712e8b1c3..00f8a6c56 100644 --- a/view/php/choklet.php +++ b/view/php/choklet.php @@ -1,8 +1,8 @@ <!DOCTYPE html >
-<html>
+<html prefix="og: http://ogp.me/ns#">
<head>
<title><?php if(x($page,'title')) echo $page['title']; ?></title>
- <script>var baseurl="<?php echo $a->get_baseurl(); ?>";</script>
+ <script>var baseurl="<?php echo z_root(); ?>";</script>
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
</head>
<body>
diff --git a/view/php/default.php b/view/php/default.php index 6a9cc5517..ad6b7a3d1 100644 --- a/view/php/default.php +++ b/view/php/default.php @@ -1,11 +1,12 @@ <!DOCTYPE html > -<html> +<html prefix="og: http://ogp.me/ns#"> <head> <title><?php if(x($page,'title')) echo $page['title'] ?></title> - <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script> + <script>var baseurl="<?php echo z_root() ?>";</script> <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?> </head> <body> + <?php if(x($page,'banner')) echo $page['banner']; ?> <header><?php if(x($page,'header')) echo $page['header']; ?></header> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"><?php if(x($page,'nav')) echo $page['nav']; ?></nav> <main> diff --git a/view/php/full.php b/view/php/full.php index 99653c06d..9cf567a67 100644 --- a/view/php/full.php +++ b/view/php/full.php @@ -1,8 +1,8 @@ <!DOCTYPE html> -<html> +<html prefix="og: http://ogp.me/ns#"> <head> <title><?php if(x($page,'title')) echo $page['title'] ?></title> - <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script> + <script>var baseurl="<?php echo z_root() ?>";</script> <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?> </head> <body> diff --git a/view/php/minimal.php b/view/php/minimal.php index a8c693985..3572f3b5c 100644 --- a/view/php/minimal.php +++ b/view/php/minimal.php @@ -1,8 +1,8 @@ <!DOCTYPE html >
-<html>
+<html prefix="og: http://ogp.me/ns#">
<head>
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
- <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
+ <script>var baseurl="<?php echo z_root() ?>";</script>
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
</head>
<body>
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 @@ <?php -$a->page['template'] = 'full'; +App::$page['template'] = 'full'; diff --git a/view/php/redable.php b/view/php/redable.php index dfa99ccb3..a5110e0dc 100644 --- a/view/php/redable.php +++ b/view/php/redable.php @@ -1,8 +1,8 @@ <!DOCTYPE html > -<html> +<html prefix="og: http://ogp.me/ns#"> <head> <title><?php if(x($page,'title')) echo $page['title'] ?></title> - <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script> + <script>var baseurl="<?php echo z_root() ?>";</script> <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?> </head> <body> diff --git a/view/php/theme_init.php b/view/php/theme_init.php index 49b3511c9..648b144b3 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. @@ -52,6 +53,6 @@ head_add_js('library/tableofcontents/jquery.toc.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'); 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 @@ <!DOCTYPE html> -<html> +<html prefix="og: http://ogp.me/ns#"> <head> <title><?php if(x($page,'title')) echo $page['title'] ?></title> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1"> |