diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2020-05-17 14:46:00 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2020-05-17 14:46:00 +0200 |
commit | e3de9d7dd1331f9718e04cc98e9ca7cfa27cf4aa (patch) | |
tree | 336981502f93ceb9fa5ed33ea3b47dcefc5a8402 /common/custom/views/default | |
parent | ff32e499745367b816d10f25e63ff3328214c32f (diff) | |
download | planet-e3de9d7dd1331f9718e04cc98e9ca7cfa27cf4aa.tar planet-e3de9d7dd1331f9718e04cc98e9ca7cfa27cf4aa.tar.gz planet-e3de9d7dd1331f9718e04cc98e9ca7cfa27cf4aa.tar.bz2 planet-e3de9d7dd1331f9718e04cc98e9ca7cfa27cf4aa.tar.xz planet-e3de9d7dd1331f9718e04cc98e9ca7cfa27cf4aa.zip |
Sync with master of moonmoon ( version 9.0.0-rc)HEADuser/wally/upstream-10-devmaster
Source from https://github.com/Emmafrs/moonmoon/
Diffstat (limited to 'common/custom/views/default')
-rwxr-xr-x | common/custom/views/default/footer.tpl.php | 2 | ||||
-rwxr-xr-x | common/custom/views/default/index.tpl.php | 12 | ||||
-rwxr-xr-x | common/custom/views/default/sidebar.tpl.php | 2 | ||||
-rw-r--r-- | common/custom/views/default/top.tpl.php | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/common/custom/views/default/footer.tpl.php b/common/custom/views/default/footer.tpl.php index bfc0210..c9c84b1 100755 --- a/common/custom/views/default/footer.tpl.php +++ b/common/custom/views/default/footer.tpl.php @@ -1,3 +1,3 @@ <div id="footer"> - <p><? echo str_replace('%s', 'href="http://moonmoon.org"', _g('Powered by <a %s>moonmoon</a>'))?> | <a href="./admin/"><?=_g('Administration')?></a></p> + <p><?php echo str_replace('%s', 'href="http://moonmoon.org"', _g('Powered by <a %s>moonmoon</a>'))?> | <a href="./admin/"><?=_g('Administration')?></a></p> </div> diff --git a/common/custom/views/default/index.tpl.php b/common/custom/views/default/index.tpl.php index 1bf037a..c33ffa5 100755 --- a/common/custom/views/default/index.tpl.php +++ b/common/custom/views/default/index.tpl.php @@ -10,9 +10,10 @@ header('Content-type: text/html; charset=UTF-8'); <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Style-Type" content="text/css" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title><?php echo $PlanetConfig->getName(); ?></title> - <?php include(dirname(__FILE__).'/head.tpl.php'); ?> + <?php include(__DIR__.'/head.tpl.php'); ?> </head> <body> @@ -20,7 +21,7 @@ header('Content-type: text/html; charset=UTF-8'); document.body.className += 'js'; </script> <div id="page"> - <?php include(dirname(__FILE__).'/top.tpl.php'); ?> + <?php include(__DIR__.'/top.tpl.php'); ?> <div id="content"> <?php if (0 == count($items)) : ?> @@ -41,8 +42,7 @@ header('Content-type: text/html; charset=UTF-8'); <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> </h2> <p class="article-info"> - - <?php echo ($item->get_author()? $item->get_author()->get_name() : 'Anonymous'); ?>, + <?php echo strip_tags(($item->get_author()? $item->get_author()->get_name() : 'Anonymous')); ?>, <?php $ago = time() - $item->get_date('U'); //echo '<span title="'.Duration::toString($ago).' ago" class="date">'.date('d/m/Y', $item->get_date('U')).'</span>'; @@ -65,9 +65,9 @@ header('Content-type: text/html; charset=UTF-8'); <?php endif; ?> </div> - <?php include_once(dirname(__FILE__).'/sidebar.tpl.php'); ?> + <?php include_once(__DIR__.'/sidebar.tpl.php'); ?> - <?php include(dirname(__FILE__).'/footer.tpl.php'); ?> + <?php include(__DIR__.'/footer.tpl.php'); ?> </div> </body> </html> diff --git a/common/custom/views/default/sidebar.tpl.php b/common/custom/views/default/sidebar.tpl.php index 830f3c6..13ae626 100755 --- a/common/custom/views/default/sidebar.tpl.php +++ b/common/custom/views/default/sidebar.tpl.php @@ -1,5 +1,5 @@ <?php -$all_people = &$Planet->getPeople(); +$all_people = $Planet->getPeople(); usort($all_people, array('PlanetFeed', 'compare')); ?> <div id="sidebar" class="aside"> diff --git a/common/custom/views/default/top.tpl.php b/common/custom/views/default/top.tpl.php index dd6206f..6db425c 100644 --- a/common/custom/views/default/top.tpl.php +++ b/common/custom/views/default/top.tpl.php @@ -1,3 +1,3 @@ <div id="header"> - <h1 id="top"><a href="<?php echo $PlanetConfig->getUrl() ?>"><?php echo $PlanetConfig->getName(); ?></a></h1> + <h1 id="top"><a href="<?php echo $PlanetConfig->getUrl(); ?>"><?php echo $PlanetConfig->getName(); ?></a></h1> </div>
\ No newline at end of file |