1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 02:00:14 +02:00

Pages/Menus: each book/chapter now has it's own template.

This commit is contained in:
Cameron
2013-05-29 23:00:55 -07:00
parent 19b616dae4
commit 7b88d1cb6d
11 changed files with 254 additions and 195 deletions

View File

@@ -96,96 +96,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
/* Used by {PAGE_NAVIGATION} shortcode - uses Sitelink/Navigation Shortcodes eg. {LINK_NAME} */
$PAGE_TEMPLATE['nav']['caption'] = "Articles";
$PAGE_TEMPLATE['nav']['start'] = '<ul class="page-nav">';
// Main Link
$PAGE_TEMPLATE['nav']['item'] = '
<li>
<a role="button" href="{LINK_URL}" >
{LINK_NAME}
</a>
</li>
';
// Main Link which has a sub menu.
$PAGE_TEMPLATE['nav']['item_submenu'] = '
<li>
<a role="button" href="{LINK_URL}" >
{LINK_NAME}
</a>
{LINK_SUB}
</li>
';
$PAGE_TEMPLATE['nav']['item_submenu_active'] = '
<li class="active">
<a role="button" href="{LINK_URL}">
{LINK_IMAGE} {LINK_NAME}
</a>
{LINK_SUB}
</li>
';
$PAGE_TEMPLATE['nav']['item_active'] = '
<li class="active">
<a crole="button" href="{LINK_URL}">
{LINK_IMAGE} {LINK_NAME}
</a>
</li>
';
$PAGE_TEMPLATE['nav']['end'] = '</ul>';
$PAGE_TEMPLATE['nav']['submenu_start'] = '<ul class="page-nav" id="page-nav-{LINK_PARENT}" role="menu" >';
$PAGE_TEMPLATE['nav']['submenu_item'] = '
<li role="menuitem" >
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_NAME}</a>
{LINK_SUB}
</li>
';
$PAGE_TEMPLATE['nav']['submenu_loweritem'] = '
<li role="menuitem" >
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_NAME}</a>
{LINK_SUB}
</li>
';
$PAGE_TEMPLATE['nav']['submenu_loweritem_active'] = '
<li role="menuitem" class="active">
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_NAME}</a>
{LINK_SUB}
</li>
';
$PAGE_TEMPLATE['nav']['submenu_item_active'] = '
<li role="menuitem" class="active">
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_NAME}</a>
{LINK_SUB}
</li>
';
$PAGE_TEMPLATE['nav']['submenu_end'] = '</ul>';
$PAGE_TEMPLATE['listPages']['start'] = "<ul class='page-pages-list'>";
$PAGE_TEMPLATE['listPages']['item'] = "<li><a href='{CPAGEURL}'>{CPAGETITLE}</a></li>";
$PAGE_TEMPLATE['listPages']['end'] = "</ul>";
$PAGE_TEMPLATE['listChapters']['start'] = "<ul class='page-chapters-list'>";
$PAGE_TEMPLATE['listChapters']['item'] = "<li><h4>{CHAPTER_NAME}</h4>{PAGES}";
$PAGE_TEMPLATE['listChapters']['end'] = "</ul>";