{{indexmenu_n>200}}
====== NAV_ROWX ======
**RT NAV_ROW outsourced to "%%/frontend_render/*%%" and enhanced to generate the "title" attribute using the content from "page title:".**
----
**rt_nav_rowx** V1.0 05.01.11
Docu: [[http://www.phpwcms-docu.de/navigation_tags.phtml|Replacement Tags for Navigation]] \\
Forum: [[http://forum.phpwcms.org/viewtopic.php?f=8&p=117330#p117330|Wiederkehrenden Begriff durch Variable ersetzen]]
**Author:** O.Georgi http://phpwcms.de -> enhanced: K.Heermann (flip-flop) http://planmatrix.de \\
**CMS Version:** >= 1.3 \\
**Version:** V1.0 \\
Tag: **{NAV_ROWX:...}** (Parameters as described in [[http://www.phpwcms-docu.de/navigation_tags.phtml|Replacement Tags for Navigation]])
Some settings for the output can be changed in the file "config/phpwcms/conf.template_default.inc.php" in the area
// row based navigation
$template_default['nav_row'] ....
\\
Filename: **rt_nav_row_x.php**
Folder: ** template/inc_script/frontend_render/ **
**Condition:** -> [[http://www.phpwcms-docu.de/conf_inc_php_en.phtml|/config/phpwcms/conf.inc.php]] \\
* ##$phpwcms['allow_ext_render'] = 1;##
----
----
\\
==== Core ====
Update: 11.01.2011 KH
'.$direct_before;
$nav .= html_specialchars($GLOBALS['content']['struct'][$act_cat_id]['acat_name']);
$nav .= $direct_after.''.$after;
}
// check against breadcrumb - active site tree
if($GLOBALS['content']['struct'][$GLOBALS['content']["cat_id"]]['acat_struct'] != 0) {
$breadcrumb = get_breadcrumb($GLOBALS['content']["cat_id"], $GLOBALS['content']['struct']);
}
foreach($GLOBALS['content']['struct'] as $key => $value) {
if($key != $act_cat_id && _getStructureLevelDisplayStatus($key, $act_cat_id) ) {
$class = empty($GLOBALS['content']['struct'][$key]["acat_class"]) ? '' : ' class="'.$GLOBALS['content']['struct'][$key]["acat_class"].'"';
// +KH 05.01.11 title
$class .= (empty($GLOBALS['content']['struct'][$key]['acat_pagetitle']) ? '' : ' title="'.$GLOBALS['content']['struct'][$key]['acat_pagetitle'].'"');
if($nav) {
$nav .= $GLOBALS['template_default']["nav_row"]["between"];
}
if($GLOBALS['content']["cat_id"] == $key || isset($breadcrumb[$key])) {
$before = $GLOBALS['template_default']["nav_row"]["link_before_active"];
$after = $GLOBALS['template_default']["nav_row"]["link_after_active"];
$direct_before = $GLOBALS['template_default']["nav_row"]["link_direct_before_active"];
$direct_after = $GLOBALS['template_default']["nav_row"]["link_direct_after_active"];
} else {
$before = $GLOBALS['template_default']["nav_row"]["link_before"];
$after = $GLOBALS['template_default']["nav_row"]["link_after"];
$direct_before = $GLOBALS['template_default']["nav_row"]["link_direct_before"];
$direct_after = $GLOBALS['template_default']["nav_row"]["link_direct_after"];
}
$nav .= $before;
if(!$GLOBALS['content']['struct'][$key]["acat_redirect"]) {
$nav .= '';
} else {
$redirect = get_redirect_link($GLOBALS['content']['struct'][$key]["acat_redirect"], ' ', '');
$nav .= '';
}
$nav .= $direct_before;
$nav .= html_specialchars($GLOBALS['content']['struct'][$key]['acat_name']);;
$nav .= $direct_after.''.$after;
}
}
if($nav) {
$nav = $GLOBALS['template_default']["nav_row"]["before"].$nav;
$nav .= $GLOBALS['template_default']["nav_row"]["after"];
}
// -- -------------------------------------------------------------------
// EDIT: 07/11/25 KH. (flip-flop) including simple Tags in category headline from the file
// /include/inc_front/front.func.inc.php and the function html_parser($string)
// typical html formattings
$search[18] = '/\[i\](.*?)\[\/i\]/is'; $replace[18] = '$1';
$search[19] = '/\[u\](.*?)\[\/u\]/is'; $replace[19] = '$1';
$search[20] = '/\[s\](.*?)\[\/s\]/is'; $replace[20] = '$1';
$search[21] = '/\[b\](.*?)\[\/b\]/is'; $replace[21] = '$1';
$search[22] = '/\[br\]/is'; $replace[22] = '
';
$nav = preg_replace($search, $replace, $nav);
// -- -------------------------------------------------------------------
return $nav;
}
?>
\\