1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-14 09:32:17 +02:00

Display chapter breadcrumb in default page template when appropriate.

This commit is contained in:
Cameron 2015-01-10 16:13:32 -08:00
parent cc0c2dde8d
commit 3237417b85
3 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@
$CHAPTER_TEMPLATE['default']['listPages']['caption'] = "{CHAPTER_NAME}";
$CHAPTER_TEMPLATE['default']['listPages']['start'] = "<ul class='page-pages-list'>";
$CHAPTER_TEMPLATE['default']['listPages']['start'] = "{CHAPTER_BREADCRUMB}<ul class='page-pages-list'>";
$CHAPTER_TEMPLATE['default']['listPages']['item'] = "<li><a href='{CPAGEURL}'>{CPAGETITLE}</a></li>";
$CHAPTER_TEMPLATE['default']['listPages']['end'] = "</ul>";

View File

@ -2202,7 +2202,7 @@ class e_form
function name2id($name)
{
$name = strtolower($name);
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.'), array('-', '-', '', '-', '-', '-', '-'), $name), '-');
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')'), array('-', '-', '', '-', '-', '-', '-','',''), $name), '-');
}
/**

View File

@ -34,6 +34,7 @@ if(!e_QUERY)
{
$ns->tablerender($tmp['title'], $text, 'cpage-full-list');
}*/
require_once(FOOTERF);
exit;
}
@ -461,7 +462,7 @@ class pageClass
'CHAPTER_ANCHOR' => $frm->name2id($row['chapter_name']),
'CHAPTER_ICON' => $this->chapterIcon($row['chapter_icon']),
'CHAPTER_DESCRIPTION' => $tp->toHtml($row['chapter_meta_description'], true,'BODY'),
'CHAPTER_BREADCRUMB' => $frm->breadcrumb($bread)
'CHAPTER_BREADCRUMB' => !empty($_GET['ch']) ? $frm->breadcrumb($bread) : ''
);