Skip to content
Permalink
Browse files

Additinal NAVLIST_UL dropdown classes/attributes

  • Loading branch information...
slackero committed Aug 27, 2014
1 parent cd11c3e commit ded1da951d9a8e7e8dd6b3ba148b65def0c5f481
@@ -291,85 +291,92 @@
// some more default classes
$template_default['classes'] = array(
'link-top' => 'link-top',
'link-internal' => 'link-internal',
'link-external' => 'link-external',
'link-rss' => 'link-rss',
'link-back' => 'link-back',
'link-anchor' => 'link-anchor',
'link-email' => 'link-email',
'link-bookmark' => 'link-bookmark',
'link-rss' => 'link-rss',
'spaceholder' => 'spaceholder',
'spaceholder-cp-after' => 'spaceAfterCP',
'spaceholder-cp-before' => 'spaceBeforeCP',
'img-list-right' => 'img-list-right',
'search-nextprev' => 'search-nextprev',
'search-result' => 'search-result',
'search-result-item' => 'search-result-item',
'article-list-paginate' => 'article-list-paginate',
'tab-container' => 'tab-container',
'tab-navigation' => 'tab-navigation',
'tab-first' => 'tab-first',
'tab-last' => 'tab-last',
'tab-content' => 'tab-content',
'tab-content-item' => 'tab-content-item',
'tab-container-clear' => '', // tab-container-clear, better use clearfix
'tab-item' => 'tab-item',
'navlist-sub_ul_true' => 'sub_ul_true',
'navlist-sub_ul' => 'sub_ul',
'navlist-sub_no' => 'sub_no',
'navlist-sub_first' => 'sub_first',
'navlist-sub_last' => 'sub_last',
'navlist-sub_parent' => 'sub_parent',
'navlist-asub_no' => 'asub_no',
'navlist-asub_first' => 'asub_first',
'navlist-asub_last' => 'asub_last',
'navlist-navLevel' => 'navLevel-',
'breadcrumb-active' => 'active',
'cp-anchor' => 'cpidClass',
'image-thumb' => 'image-thumb',
'image-wrapper' => 'image-wrapper',
'image-link' => 'image-link',
'image-zoom' => 'image-zoom',
'image-lightbox' => 'image-lightbox',
'imgtxt-top-left' => 'imgtxt-top-left',
'imgtxt-top-center' => 'imgtxt-top-center',
'imgtxt-top-right' => 'imgtxt-top-right',
'imgtxt-bottom-left' => 'imgtxt-bottom-left',
'imgtxt-bottom-center' => 'imgtxt-bottom-center',
'imgtxt-bottom-right' => 'imgtxt-bottom-right',
'imgtxt-left' => 'imgtxt-left',
'imgtxt-right' => 'imgtxt-right',
'imgtxt-column-left' => 'imgtxt-column-left',
'imgtxt-column-right' => 'imgtxt-column-right',
'copyright' => 'copyright',
'image-list-table' => 'image-list-table-',
'link-article-listing' => 'article-listing',
'link-print' => 'print',
'link-print-pdf' => 'print-pdf',
'imgtable-top-left' => 'imgtable-top-left',
'imgtable-top-center' => 'imgtable-top-center',
'imgtable-top-right' => 'imgtable-top-right',
'imgtable-bottom-left' => 'imgtable-bottom-left',
'imgtable-bottom-center' => 'imgtable-bottom-center',
'imgtable-bottom-right' => 'imgtable-bottom-right',
'imgtable-left' => 'imgtable-left',
'imgtable-right' => 'imgtable-right',
'cpgroup-container' => 'cpgroup-container',
'cpgroup-title' => 'cpgroup-title',
'cpgroup-first' => 'cpgroup-first',
'cpgroup-last' => 'cpgroup-last',
'cpgroup' => 'cpgroup',
'cpgroup-container-clear' => '', // cpgroup-container-clear, better use clearfix
'cpgroup-content' => 'cpgroup-content',
'shop-category-menu' => 'shop-categories',
'shop-products-menu' => 'shop-products'
'link-top' => 'link-top',
'link-internal' => 'link-internal',
'link-external' => 'link-external',
'link-rss' => 'link-rss',
'link-back' => 'link-back',
'link-anchor' => 'link-anchor',
'link-email' => 'link-email',
'link-bookmark' => 'link-bookmark',
'link-rss' => 'link-rss',
'spaceholder' => 'spaceholder',
'spaceholder-cp-after' => 'spaceAfterCP',
'spaceholder-cp-before' => 'spaceBeforeCP',
'img-list-right' => 'img-list-right',
'search-nextprev' => 'search-nextprev',
'search-result' => 'search-result',
'search-result-item' => 'search-result-item',
'article-list-paginate' => 'article-list-paginate',
'tab-container' => 'tab-container',
'tab-navigation' => 'tab-navigation',
'tab-first' => 'tab-first',
'tab-last' => 'tab-last',
'tab-content' => 'tab-content',
'tab-content-item' => 'tab-content-item',
'tab-container-clear' => '', //tab-container-clear
'tab-item' => 'tab-item',
'navlist-sub_ul_true' => 'sub_ul_true',
'navlist-sub_ul' => 'sub_ul',
'navlist-sub_no' => 'sub_no',
'navlist-sub_first' => 'sub_first',
'navlist-sub_last' => 'sub_last',
'navlist-sub_parent' => 'sub_parent',
'navlist-asub_no' => 'asub_no',
'navlist-asub_first' => 'asub_first',
'navlist-asub_last' => 'asub_last',
'navlist-navLevel' => 'navLevel-',
'navlist-bs-dropdown' => 'dropdown',
'navlist-bs-dropdown-toggle' => 'dropdown-toggle',
'breadcrumb-active' => 'active',
'cp-anchor' => 'cpidClass',
'image-thumb' => 'image-thumb',
'image-wrapper' => 'image-wrapper',
'image-link' => 'image-link',
'image-zoom' => 'image-zoom',
'image-lightbox' => 'image-lightbox',
'imgtxt-top-left' => 'imgtxt-top-left',
'imgtxt-top-center' => 'imgtxt-top-center',
'imgtxt-top-right' => 'imgtxt-top-right',
'imgtxt-bottom-left' => 'imgtxt-bottom-left',
'imgtxt-bottom-center' => 'imgtxt-bottom-center',
'imgtxt-bottom-right' => 'imgtxt-bottom-right',
'imgtxt-left' => 'imgtxt-left',
'imgtxt-right' => 'imgtxt-right',
'imgtxt-column-left' => 'imgtxt-column-left',
'imgtxt-column-right' => 'imgtxt-column-right',
'copyright' => 'copyright',
'image-list-table' => 'image-list-table-',
'link-article-listing' => 'article-listing',
'link-print' => 'print',
'link-print-pdf' => 'print-pdf',
'imgtable-top-left' => 'imgtable-top-left',
'imgtable-top-center' => 'imgtable-top-center',
'imgtable-top-right' => 'imgtable-top-right',
'imgtable-bottom-left' => 'imgtable-bottom-left',
'imgtable-bottom-center' => 'imgtable-bottom-center',
'imgtable-bottom-right' => 'imgtable-bottom-right',
'imgtable-left' => 'imgtable-left',
'imgtable-right' => 'imgtable-right',
'cpgroup-container' => 'cpgroup-container',
'cpgroup-title' => 'cpgroup-title',
'cpgroup-first' => 'cpgroup-first',
'cpgroup-last' => 'cpgroup-last',
'cpgroup' => 'cpgroup',
'cpgroup-container-clear' => '', //cpgroup-container-clear
'cpgroup-content' => 'cpgroup-content',
'shop-category-menu' => 'shop-categories',
'shop-products-menu' => 'shop-products'
);
$template_default['search_highlight'] = array(
'prefix' => '<em class="highlight">',
'suffix' => '</em>'
);
$template_default['attributes'] = array(
'navlist-bs-dropdown-data' => 'data-toggle="dropdown"',
'navlist-bs-dropdown-caret' => ' <b class="caret"></b>'
);
?>
@@ -443,6 +443,7 @@
// template defaults
$template_default['classes'] = isset($template_default['classes']) ? array_merge($phpwcms['default_template_classes'], $template_default['classes']) : $phpwcms['default_template_classes'];
$template_default['attributes'] = isset($template_default['attributes']) ? array_merge($phpwcms['default_template_attributes'], $template_default['attributes']) : $phpwcms['default_template_attributes'];
// check if template_defaults should be overwritten
if(!empty($block['overwrite'])) {
@@ -2954,7 +2954,7 @@ class_active_li|class_active_a,
if($li_ul) {
$li_class = $GLOBALS['template_default']['classes']['navlist-sub_ul'];
if($bootstrap) {
$li_class = trim('dropdown '.$li_class);
$li_class = trim($GLOBALS['template_default']['classes']['navlist-bs-dropdown'].' '.$li_class);
$bs_toggle = true;
}
} elseif(getHasSubStructureStatus($key)) {
@@ -2966,9 +2966,9 @@ 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
if($bs_toggle) {
$li_a_class = trim('dropdown-toggle '.$li_a_class);
$bs_data_toggle = ' data-toggle="dropdown"';
$bs_caret = ' <b class="caret"></b>';
$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'];
$bs_caret = $GLOBALS['template_default']['attributes']['navlist-bs-dropdown-caret'];
} else {
$bs_data_toggle = '';
$bs_caret = '';
@@ -2999,7 +2999,7 @@ class_active_li|class_active_a,
$li .= '>' . $li_a . '</a>';
$li .= $li_ul.'</li>'.LF; // remove $li_ul from this line of code if $ie_patch is used
$li .= $li_ul.'</li>'.LF;
}
@@ -274,87 +274,94 @@ function mb_strlen($str='', $encoding='') {
}
$phpwcms['default_template_classes'] = array(
'link-top' => 'link-top',
'link-internal' => 'link-internal',
'link-external' => 'link-external',
'link-rss' => 'link-rss',
'link-back' => 'link-back',
'link-anchor' => 'link-anchor',
'link-email' => 'link-email',
'link-bookmark' => 'link-bookmark',
'link-rss' => 'link-rss',
'spaceholder' => 'spaceholder',
'spaceholder-cp-after' => 'spaceAfterCP',
'spaceholder-cp-before' => 'spaceBeforeCP',
'img-list-right' => 'img-list-right',
'search-nextprev' => 'search-nextprev',
'search-result' => 'search-result',
'search-result-item' => 'search-result-item',
'article-list-paginate' => 'article-list-paginate',
'tab-container' => 'tab-container',
'tab-navigation' => 'tab-navigation',
'tab-first' => 'tab-first',
'tab-last' => 'tab-last',
'tab-content' => 'tab-content',
'tab-content-item' => 'tab-content-item',
'tab-container-clear' => '', //tab-container-clear
'tab-item' => 'tab-item',
'navlist-sub_ul_true' => 'sub_ul_true',
'navlist-sub_ul' => 'sub_ul',
'navlist-sub_no' => 'sub_no',
'navlist-sub_first' => 'sub_first',
'navlist-sub_last' => 'sub_last',
'navlist-sub_parent' => 'sub_parent',
'navlist-asub_no' => 'asub_no',
'navlist-asub_first' => 'asub_first',
'navlist-asub_last' => 'asub_last',
'navlist-navLevel' => 'navLevel-',
'breadcrumb-active' => 'active',
'cp-anchor' => 'cpidClass',
'image-thumb' => 'image-thumb',
'image-wrapper' => 'image-wrapper',
'image-link' => 'image-link',
'image-zoom' => 'image-zoom',
'image-lightbox' => 'image-lightbox',
'imgtxt-top-left' => 'imgtxt-top-left',
'imgtxt-top-center' => 'imgtxt-top-center',
'imgtxt-top-right' => 'imgtxt-top-right',
'imgtxt-bottom-left' => 'imgtxt-bottom-left',
'imgtxt-bottom-center' => 'imgtxt-bottom-center',
'imgtxt-bottom-right' => 'imgtxt-bottom-right',
'imgtxt-left' => 'imgtxt-left',
'imgtxt-right' => 'imgtxt-right',
'imgtxt-column-left' => 'imgtxt-column-left',
'imgtxt-column-right' => 'imgtxt-column-right',
'copyright' => 'copyright',
'image-list-table' => 'image-list-table-',
'link-article-listing' => 'article-listing',
'link-print' => 'print',
'link-print-pdf' => 'print-pdf',
'imgtable-top-left' => 'imgtable-top-left',
'imgtable-top-center' => 'imgtable-top-center',
'imgtable-top-right' => 'imgtable-top-right',
'imgtable-bottom-left' => 'imgtable-bottom-left',
'imgtable-bottom-center' => 'imgtable-bottom-center',
'imgtable-bottom-right' => 'imgtable-bottom-right',
'imgtable-left' => 'imgtable-left',
'imgtable-right' => 'imgtable-right',
'cpgroup-container' => 'cpgroup-container',
'cpgroup-title' => 'cpgroup-title',
'cpgroup-first' => 'cpgroup-first',
'cpgroup-last' => 'cpgroup-last',
'cpgroup' => 'cpgroup',
'cpgroup-container-clear' => '', //cpgroup-container-clear
'cpgroup-content' => 'cpgroup-content',
'shop-category-menu' => 'shop-categories',
'shop-products-menu' => 'shop-products'
'link-top' => 'link-top',
'link-internal' => 'link-internal',
'link-external' => 'link-external',
'link-rss' => 'link-rss',
'link-back' => 'link-back',
'link-anchor' => 'link-anchor',
'link-email' => 'link-email',
'link-bookmark' => 'link-bookmark',
'link-rss' => 'link-rss',
'spaceholder' => 'spaceholder',
'spaceholder-cp-after' => 'spaceAfterCP',
'spaceholder-cp-before' => 'spaceBeforeCP',
'img-list-right' => 'img-list-right',
'search-nextprev' => 'search-nextprev',
'search-result' => 'search-result',
'search-result-item' => 'search-result-item',
'article-list-paginate' => 'article-list-paginate',
'tab-container' => 'tab-container',
'tab-navigation' => 'tab-navigation',
'tab-first' => 'tab-first',
'tab-last' => 'tab-last',
'tab-content' => 'tab-content',
'tab-content-item' => 'tab-content-item',
'tab-container-clear' => '', //tab-container-clear
'tab-item' => 'tab-item',
'navlist-sub_ul_true' => 'sub_ul_true',
'navlist-sub_ul' => 'sub_ul',
'navlist-sub_no' => 'sub_no',
'navlist-sub_first' => 'sub_first',
'navlist-sub_last' => 'sub_last',
'navlist-sub_parent' => 'sub_parent',
'navlist-asub_no' => 'asub_no',
'navlist-asub_first' => 'asub_first',
'navlist-asub_last' => 'asub_last',
'navlist-navLevel' => 'navLevel-',
'navlist-bs-dropdown' => 'dropdown',
'navlist-bs-dropdown-toggle' => 'dropdown-toggle',
'breadcrumb-active' => 'active',
'cp-anchor' => 'cpidClass',
'image-thumb' => 'image-thumb',
'image-wrapper' => 'image-wrapper',
'image-link' => 'image-link',
'image-zoom' => 'image-zoom',
'image-lightbox' => 'image-lightbox',
'imgtxt-top-left' => 'imgtxt-top-left',
'imgtxt-top-center' => 'imgtxt-top-center',
'imgtxt-top-right' => 'imgtxt-top-right',
'imgtxt-bottom-left' => 'imgtxt-bottom-left',
'imgtxt-bottom-center' => 'imgtxt-bottom-center',
'imgtxt-bottom-right' => 'imgtxt-bottom-right',
'imgtxt-left' => 'imgtxt-left',
'imgtxt-right' => 'imgtxt-right',
'imgtxt-column-left' => 'imgtxt-column-left',
'imgtxt-column-right' => 'imgtxt-column-right',
'copyright' => 'copyright',
'image-list-table' => 'image-list-table-',
'link-article-listing' => 'article-listing',
'link-print' => 'print',
'link-print-pdf' => 'print-pdf',
'imgtable-top-left' => 'imgtable-top-left',
'imgtable-top-center' => 'imgtable-top-center',
'imgtable-top-right' => 'imgtable-top-right',
'imgtable-bottom-left' => 'imgtable-bottom-left',
'imgtable-bottom-center' => 'imgtable-bottom-center',
'imgtable-bottom-right' => 'imgtable-bottom-right',
'imgtable-left' => 'imgtable-left',
'imgtable-right' => 'imgtable-right',
'cpgroup-container' => 'cpgroup-container',
'cpgroup-title' => 'cpgroup-title',
'cpgroup-first' => 'cpgroup-first',
'cpgroup-last' => 'cpgroup-last',
'cpgroup' => 'cpgroup',
'cpgroup-container-clear' => '', //cpgroup-container-clear
'cpgroup-content' => 'cpgroup-content',
'shop-category-menu' => 'shop-categories',
'shop-products-menu' => 'shop-products'
);
$phpwcms['search_highlight'] = array(
'prefix' => '<em class="highlight">',
'suffix' => '</em>'
);
$phpwcms['default_template_attributes'] = array(
'navlist-bs-dropdown-data' => 'data-toggle="dropdown"',
'navlist-bs-dropdown-caret' => ' <b class="caret"></b>'
);
if(empty($phpwcms['mode_XHTML'])) {
$phpwcms['mode_XHTML'] = 0;

0 comments on commit ded1da9

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