1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-08 06:06:53 +02:00

Monstra Library: basic core improvments

This commit is contained in:
Awilum
2013-01-04 21:08:04 +02:00
parent 7437cc6abb
commit ef12b7492e
289 changed files with 16265 additions and 17155 deletions

View File

@@ -1,21 +1,21 @@
<h3><?php echo __('Sitemap', 'sitemap'); ?></h3>
<hr>
<ul>
<?php
<?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'].'">'.$page['title'].'</a></li>';
if (trim($page['parent']) !== '') { echo '</ul>'; }
}
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'].'">'.$page['title'].'</a></li>';
if (trim($page['parent']) !== '') { echo '</ul>'; }
}
if (count($components) == 0) { echo '<ul>'; }
}
// Display components
if (count($components) > 0) {
if (count($components) > 0) {
if (count($pages_list) == 0) { echo '<ul>'; }
foreach ($components as $component) {
echo '<li><a href="'.Option::get('siteurl').$component.'">'.__(ucfirst($component), $component).'</a></li>';