mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
{PAGE_NAVIGATION} - new option 'pages'. Set to 'true' to display pages in a book/chapter list. eg. {PAGE_NAVIGATION: book=14&pages=true}
This commit is contained in:
parent
bbe3731cc7
commit
eac0ad60fb
@ -201,9 +201,7 @@ class page_sitelink // include plugin-folder in the name.
|
||||
{
|
||||
parse_str($parm,$options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$sql = e107::getDb();
|
||||
$sublinks = array();
|
||||
$arr = array();
|
||||
@ -335,7 +333,7 @@ class page_sitelink // include plugin-folder in the name.
|
||||
'link_parent' => $row['chapter_parent'],
|
||||
'link_open' => '',
|
||||
'link_class' => 0,
|
||||
'link_sub' => (!vartrue($options['book']) && !vartrue($options['auto'])) ? varset($sublinks[$row['chapter_id']]) : '', //XXX always test with docs template in bootstrap before changing.
|
||||
'link_sub' => ((empty($options['book']) || !empty($options['pages'])) && empty($options['auto'])) ? varset($sublinks[$row['chapter_id']]) : '', //XXX always test with docs template in bootstrap before changing.
|
||||
'link_active' => $row['chapter_parent'] == 0 ? isset($options['cbook']) && $options['cbook'] == $row['chapter_id'] : isset($options['cchapter']) && $options['cchapter'] == $row['chapter_id'],
|
||||
'link_identifier' => 'page-nav-'.intval($row['chapter_id']) // used for css id.
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user