mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-13 08:34:36 +02:00
Add Monstra from HG Commit 683dcb70c4cc
This commit is contained in:
28
plugins/box/sitemap/views/frontend/index.view.php
Normal file
28
plugins/box/sitemap/views/frontend/index.view.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<h3><?php echo __('Sitemap', 'sitemap'); ?></h3>
|
||||
<br />
|
||||
<ul>
|
||||
<?php
|
||||
|
||||
// Display pages
|
||||
if (count($pages_list) > 0) {
|
||||
foreach ($pages_list as $page) {
|
||||
if (trim($page['parent']) !== '') $parent = $page['parent'].'/'; else $parent = '';
|
||||
if (trim($page['parent']) !== '') { echo '<ul>'; }
|
||||
echo '<li><a href="'.Option::get('siteurl').$parent.$page['slug'].'" target="_blank">'.$page['title'].'</a></li>';
|
||||
if (trim($page['parent']) !== '') { echo '</ul>'; }
|
||||
}
|
||||
if (count($components) == 0) { echo '<ul>'; }
|
||||
}
|
||||
|
||||
// Display components
|
||||
if (count($components) > 0) {
|
||||
if (count($pages_list) == 0) { echo '<ul>'; }
|
||||
foreach ($components as $component) {
|
||||
echo '<li><a href="'.Option::get('siteurl').Text::lowercase($component).'" target="_blank">'.__($component).'</a></li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</ul>
|
Reference in New Issue
Block a user