|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / dev2.destoffenstraat.com / app / code / MageArray / News / view / frontend / templates / |
Filename | /home/dev2.destoffenstraat.com/app/code/MageArray/News/view/frontend/templates/sitemap.phtml |
Size | 1.03 kb |
Permission | rwxrwxrwx |
Owner | root : root |
Create time | 17-Aug-2025 10:26 |
Last modified | 06-Apr-2021 18:06 |
Last accessed | 22-Aug-2025 10:54 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
$helper = $this->helper('MageArray\News\Helper\Data');
$posts = $helper->getNewsPostList();
$categories = $helper->getCategoryList();
?>
<?php
/**
* show posts list
*/
if (!empty($posts)):
?>
<h2><?php echo count($posts) == 1 ? __('Post') : __('Posts') ?></h2>
<ul>
<?php foreach ($posts as $post): ?>
<li>
<a href="<?php echo substr($helper->getUrlByPost($post), 0, -1) ?>">
<?php echo $post->getTitle(); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php
/**
* show categories list
*/
if (!empty($categories)):
?>
<h2><?php echo count($categories) == 1 ? __('Category') : __('Categories') ?></h2>
<ul>
<?php foreach ($categories as $category): ?>
<li>
<a href="<?php echo $helper->getCatUrl($category->getCatUrlKey()) ?>">
<?php echo $category->getCatName(); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
$helper = $this->helper('MageArray\News\Helper\Data');
$posts = $helper->getNewsPostList();
$categories = $helper->getCategoryList();
?>
<?php
/**
* show posts list
*/
if (!empty($posts)):
?>
<h2><?php echo count($posts) == 1 ? __('Post') : __('Posts') ?></h2>
<ul>
<?php foreach ($posts as $post): ?>
<li>
<a href="<?php echo substr($helper->getUrlByPost($post), 0, -1) ?>">
<?php echo $post->getTitle(); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php
/**
* show categories list
*/
if (!empty($categories)):
?>
<h2><?php echo count($categories) == 1 ? __('Category') : __('Categories') ?></h2>
<ul>
<?php foreach ($categories as $category): ?>
<li>
<a href="<?php echo $helper->getCatUrl($category->getCatUrlKey()) ?>">
<?php echo $category->getCatName(); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>