mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Added titles to main navigation template.
This commit is contained in:
@@ -13,7 +13,7 @@ $NAVIGATION_TEMPLATE['main']['start'] = '<ul class="nav navbar-nav">';
|
|||||||
// Main Link
|
// Main Link
|
||||||
$NAVIGATION_TEMPLATE['main']['item'] = '
|
$NAVIGATION_TEMPLATE['main']['item'] = '
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a class="dropdown-toggle" role="button" href="{LINK_URL}"{LINK_OPEN}>
|
<a class="dropdown-toggle" role="button" href="{LINK_URL}"{LINK_OPEN} title="{LINK_DESCRIPTION}">
|
||||||
{LINK_ICON}{LINK_NAME}
|
{LINK_ICON}{LINK_NAME}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -22,7 +22,7 @@ $NAVIGATION_TEMPLATE['main']['item'] = '
|
|||||||
// Main Link which has a sub menu.
|
// Main Link which has a sub menu.
|
||||||
$NAVIGATION_TEMPLATE['main']['item_submenu'] = '
|
$NAVIGATION_TEMPLATE['main']['item_submenu'] = '
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" >
|
<a class="dropdown-toggle" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" title="{LINK_DESCRIPTION}">
|
||||||
{LINK_ICON}{LINK_NAME}
|
{LINK_ICON}{LINK_NAME}
|
||||||
<b class="caret"></b>
|
<b class="caret"></b>
|
||||||
</a>
|
</a>
|
||||||
@@ -42,7 +42,7 @@ $NAVIGATION_TEMPLATE['main']['item_submenu_active'] = '
|
|||||||
|
|
||||||
$NAVIGATION_TEMPLATE['main']['item_active'] = '
|
$NAVIGATION_TEMPLATE['main']['item_active'] = '
|
||||||
<li class="dropdown active">
|
<li class="dropdown active">
|
||||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}"{LINK_OPEN}>
|
<a class="dropdown-toggle e-tip" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}"{LINK_OPEN} title="{LINK_DESCRIPTION}">
|
||||||
{LINK_ICON} {LINK_NAME}
|
{LINK_ICON} {LINK_NAME}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@@ -92,7 +92,7 @@ class page_sitelink // include plugin-folder in the name.
|
|||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
if($sql->select("page_chapters", "*", "chapter_parent = ".intval($book)." ORDER BY chapter_order ASC "))
|
if($sql->select("page_chapters", "*", "chapter_parent = ".intval($book)." AND chapter_visibility IN (".USERCLASS_LIST.") ORDER BY chapter_order ASC "))
|
||||||
{
|
{
|
||||||
$sublinks = array();
|
$sublinks = array();
|
||||||
|
|
||||||
@@ -209,13 +209,13 @@ class page_sitelink // include plugin-folder in the name.
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$filter = 1;
|
$filter = "chapter_visibility IN (".USERCLASS_LIST.") " ;
|
||||||
|
|
||||||
if(vartrue($options['chapter']))
|
if(vartrue($options['chapter']))
|
||||||
{
|
{
|
||||||
//$filter = "chapter_id > ".intval($options['chapter']);
|
//$filter = "chapter_id > ".intval($options['chapter']);
|
||||||
|
|
||||||
$title = $sql->retrieve('page_chapters', 'chapter_name', 'chapter_id='.intval($options['chapter']));
|
$title = $sql->retrieve('page_chapters', 'chapter_name', 'chapter_id='.intval($options['chapter']).' AND chapter_visibility IN ('.USERCLASS_LIST.')' );
|
||||||
$outArray = array();
|
$outArray = array();
|
||||||
if(!$title) return e107::getNav()->compile($_pdata, $outArray, $options['chapter']);
|
if(!$title) return e107::getNav()->compile($_pdata, $outArray, $options['chapter']);
|
||||||
return array('title' => $title, 'body' => e107::getNav()->compile($_pdata, $outArray, $options['chapter']));
|
return array('title' => $title, 'body' => e107::getNav()->compile($_pdata, $outArray, $options['chapter']));
|
||||||
@@ -235,7 +235,7 @@ class page_sitelink // include plugin-folder in the name.
|
|||||||
// print_a('parent='.$parent);
|
// print_a('parent='.$parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$books = $sql->retrieve("SELECT * FROM #page_chapters WHERE ".$filter." ORDER BY chapter_order ASC" , true);
|
$books = $sql->retrieve("SELECT * FROM #page_chapters WHERE ".$filter." ORDER BY chapter_order ASC" , true);
|
||||||
foreach($books as $row)
|
foreach($books as $row)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user