mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-23 05:13:06 +02:00
Site Url without trailing slashes
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
foreach ($pages_list as $page) {
|
||||
if (trim($page['parent']) !== '') $parent = $page['parent'].'/'; else $parent = '';
|
||||
if (trim($page['parent']) !== '') { echo '<ul>'."\n"; }
|
||||
echo '<li><a href="'.Option::get('siteurl').$parent.$page['slug'].'">'.$page['title'].'</a></li>'."\n";
|
||||
echo '<li><a href="'.Option::get('siteurl').'/'.$parent.$page['slug'].'">'.$page['title'].'</a></li>'."\n";
|
||||
if (trim($page['parent']) !== '') { echo '</ul>'."\n"; }
|
||||
}
|
||||
if (count($components) == 0) { echo '<ul>'."\n"; }
|
||||
@@ -21,7 +21,7 @@
|
||||
if (count($components) > 0) {
|
||||
if (count($pages_list) == 0) { echo '<ul>'."\n"; }
|
||||
foreach ($components as $component) {
|
||||
echo '<li><a href="'.Option::get('siteurl').$component.'">'.__(ucfirst($component), $component).'</a></li>'."\n";
|
||||
echo '<li><a href="'.Option::get('siteurl').'/'.$component.'">'.__(ucfirst($component), $component).'</a></li>'."\n";
|
||||
}
|
||||
if (count($pages_list) == 0) { echo '</ul>'."\n"; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user