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:
parent
cc0c2dde8d
commit
3237417b85
@ -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>";
|
||||
|
||||
|
@ -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), '-');
|
||||
}
|
||||
|
||||
/**
|
||||
|
3
page.php
3
page.php
@ -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) : ''
|
||||
);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user