summaryrefslogtreecommitdiffstats
path: root/common/custom/views/default/index.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'common/custom/views/default/index.tpl.php')
-rwxr-xr-xcommon/custom/views/default/index.tpl.php12
1 files changed, 6 insertions, 6 deletions
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>