mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +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:
@@ -201,9 +201,7 @@ class page_sitelink // include plugin-folder in the name.
|
|||||||
{
|
{
|
||||||
parse_str($parm,$options);
|
parse_str($parm,$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$sublinks = array();
|
$sublinks = array();
|
||||||
$arr = array();
|
$arr = array();
|
||||||
@@ -335,7 +333,7 @@ class page_sitelink // include plugin-folder in the name.
|
|||||||
'link_parent' => $row['chapter_parent'],
|
'link_parent' => $row['chapter_parent'],
|
||||||
'link_open' => '',
|
'link_open' => '',
|
||||||
'link_class' => 0,
|
'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_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.
|
'link_identifier' => 'page-nav-'.intval($row['chapter_id']) // used for css id.
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user