Skip to content
Permalink
Browse files

Added custom link class option for NAV_LIST_UL

  • Loading branch information...
slackero committed Aug 11, 2017
1 parent d5120fc commit 634cb79e26bfea9620aeac68e58cb5ffb32f880d
@@ -329,7 +329,8 @@
'navlist-asub_no' => 'asub_no',
'navlist-asub_first' => 'asub_first',
'navlist-asub_last' => 'asub_last',
'navlist-navLevel' => 'navLevel-',
'navlist-link-class' => 'nav-link',
'navlist-navLevel' => 'nav-level-',
'navlist-bs-dropdown' => 'dropdown',
'navlist-bs-dropdown-toggle' => 'dropdown-toggle',
'breadcrumb-active' => 'active',
@@ -3117,7 +3117,10 @@ class_active_li|class_active_a,
}
$li_a_title = html_specialchars($GLOBALS['content']['struct'][$key]['acat_name']);
$li_a_class = ($active_class[1] && $key == $GLOBALS['aktion'][0]) ? $active_class[1] : ''; // set active link class
$li_a_class = $GLOBALS['template_default']['attributes']['navlist-link-class'];
if($active_class[1] && $key == $GLOBALS['aktion'][0]) {
$li_a_class = trim($li_a_class . ' ' . $active_class[1]); // set active link class
}
if($bs_toggle) {
$li_a_class = trim($GLOBALS['template_default']['classes']['navlist-bs-dropdown-toggle'].' '.$li_a_class);
$bs_data_toggle = ' '.$GLOBALS['template_default']['attributes']['navlist-bs-dropdown-data'];
@@ -340,7 +340,8 @@ function mb_convert_encoding($string='', $out_charset='utf-8', $in_charset='utf-
'navlist-asub_no' => 'asub_no',
'navlist-asub_first' => 'asub_first',
'navlist-asub_last' => 'asub_last',
'navlist-navLevel' => 'navLevel-',
'navlist-link-class' => 'nav-link',
'navlist-navLevel' => 'nav-level-',
'navlist-bs-dropdown' => 'dropdown',
'navlist-bs-dropdown-toggle' => 'dropdown-toggle',
'breadcrumb-active' => 'active',
@@ -10,5 +10,5 @@
**/
define('PHPWCMS_VERSION', '1.9.0-beta.7');
define('PHPWCMS_RELEASE_DATE', '2017/08/09');
define('PHPWCMS_RELEASE_DATE', '2017/08/11');
define('PHPWCMS_REVISION', '548');

2 comments on commit 634cb79

@jensensen

This comment has been minimized.

Copy link

replied Aug 14, 2017

Great, thank you!

btw, long time ago, I remember that there was another issue #13 for NAV_LIST_UL: problem with ul class="something", that still doesn't work, but would be nice anyway.

@slackero

This comment has been minimized.

Copy link
Owner Author

replied Aug 15, 2017

…try {NAV_LIST_UL: FP, 0 , , active | ul-class , active} — see the pipe |

Please sign in to comment.
You can’t perform that action at this time.