mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Display chapter breadcrumb in default page template when appropriate.
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
|
|
||||||
$CHAPTER_TEMPLATE['default']['listPages']['caption'] = "{CHAPTER_NAME}";
|
$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']['item'] = "<li><a href='{CPAGEURL}'>{CPAGETITLE}</a></li>";
|
||||||
$CHAPTER_TEMPLATE['default']['listPages']['end'] = "</ul>";
|
$CHAPTER_TEMPLATE['default']['listPages']['end'] = "</ul>";
|
||||||
|
|
||||||
|
@@ -2202,7 +2202,7 @@ class e_form
|
|||||||
function name2id($name)
|
function name2id($name)
|
||||||
{
|
{
|
||||||
$name = strtolower($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');
|
$ns->tablerender($tmp['title'], $text, 'cpage-full-list');
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
require_once(FOOTERF);
|
require_once(FOOTERF);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -461,7 +462,7 @@ class pageClass
|
|||||||
'CHAPTER_ANCHOR' => $frm->name2id($row['chapter_name']),
|
'CHAPTER_ANCHOR' => $frm->name2id($row['chapter_name']),
|
||||||
'CHAPTER_ICON' => $this->chapterIcon($row['chapter_icon']),
|
'CHAPTER_ICON' => $this->chapterIcon($row['chapter_icon']),
|
||||||
'CHAPTER_DESCRIPTION' => $tp->toHtml($row['chapter_meta_description'], true,'BODY'),
|
'CHAPTER_DESCRIPTION' => $tp->toHtml($row['chapter_meta_description'], true,'BODY'),
|
||||||
'CHAPTER_BREADCRUMB' => $frm->breadcrumb($bread)
|
'CHAPTER_BREADCRUMB' => !empty($_GET['ch']) ? $frm->breadcrumb($bread) : ''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user