NAVIGATION
This shows you the differences between two versions of the page.
|
deutsch:navigationen:dropdown_flyout:nav_horiz_dd [2010/09/04 07:32] Knut Heermann (flip-flop) |
deutsch:navigationen:dropdown_flyout:nav_horiz_dd [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| **CMS-Version:** >= V1.2.8 \\ | **CMS-Version:** >= V1.2.8 \\ | ||
| **Version:** V1.0 //28.04.08// \\ | **Version:** V1.0 //28.04.08// \\ | ||
| - | **Update Version:** V1.1 //04.09.2010// \\ | + | **Update Version:** V1.01 //04.09.2010// \\ |
| - Der Link "Home" kann wahlweise dargestellt werden (Im PHP-Script ein/ausschalten). \\ | - Der Link "Home" kann wahlweise dargestellt werden (Im PHP-Script ein/ausschalten). \\ | ||
| Line 28: | Line 28: | ||
| * Überlappen und Überfahr(rahm)en !!! | * Überlappen und Überfahr(rahm)en !!! | ||
| * Start-ID im RT | * Start-ID im RT | ||
| - | * Max Leveltiefe im RT (seit 28.04.08) | + | * Max Leveltiefe im RT //(seit 28.04.08)// |
| * Aktiver Pfad wird für die erste Ebene gekennzeichnet | * Aktiver Pfad wird für die erste Ebene gekennzeichnet | ||
| - | * Jedes li hat eine eigene Klasse (optional) | + | * Jedes li hat eine eigene Klasse //(optional)// |
| - | * Home kann dargestellt werden (optional in V1.1) | + | * Home kann dargestellt werden //(optional in V1.01 seit 04.09.10)// |
| * Einfache html Tags in der Kategorieüberschrift wie [i] [b] [u] [s] | * Einfache html Tags in der Kategorieüberschrift wie [i] [b] [u] [s] | ||
| Line 83: | Line 83: | ||
| * Weiterleitung [index.php?home] \\ | * Weiterleitung [index.php?home] \\ | ||
| - | **V1.1:** | + | **V1.01:** |
| - | * Weiterleitung von **root** nach **home** nicht notwendig, im Script kann der Link ein/ausgeschaltet werden (//Custom var)//. \\ | + | * Weiterleitung von **root** nach **home** nicht notwendig, im Script kann der Link ein/ausgeschaltet werden (//in %%==== Custom var ====%%)// \\ Generierter code: ##%%<li id="cat-id_0" class="drop home"><a class="first" href="....%%## \\ |
| ---- | ---- | ||
| Line 262: | Line 262: | ||
| \\ | \\ | ||
| - | ==== PHP V1.1 ==== | + | ==== PHP V1.01 ==== |
| Dateiname: **rt_nav_horiz_drop_down.php** | Dateiname: **rt_nav_horiz_drop_down.php** | ||
| Line 271: | Line 271: | ||
| <?php | <?php | ||
| // ************************************************************************** | // ************************************************************************** | ||
| - | // Version 1.1 04.09.2010 KH | + | // Version 1.01 04.09.2010 KH |
| // 25.07.07 horizontal drop-down with ID output -> NAVI HORIZONTAL DROP-DOWN | // 25.07.07 horizontal drop-down with ID output -> NAVI HORIZONTAL DROP-DOWN | ||
| // Oliver Georgi | // Oliver Georgi | ||
| Line 277: | Line 277: | ||
| // 08.11.07 KH (flip-flop) Enhanced: Start[ID] {NAV_HORIZ_DD:ID} | // 08.11.07 KH (flip-flop) Enhanced: Start[ID] {NAV_HORIZ_DD:ID} | ||
| // 28.04.08 KH (flip-flop) Enhanced: Level depth {NAV_HORIZ_DD:ID,Depth} | // 28.04.08 KH (flip-flop) Enhanced: Level depth {NAV_HORIZ_DD:ID,Depth} | ||
| - | // 04.09.10 KH (flip-flop) Enhanced: Home link (enable/disable around line 42) | + | // 04.09.10 KH (flip-flop) Enhanced: Home link (enable/disable around line 36) |
| // http://www.phpwcms.de/forum/viewtopic.php?p=94688#94688 | // http://www.phpwcms.de/forum/viewtopic.php?p=94688#94688 | ||
| // | // | ||
| Line 302: | Line 302: | ||
| function buildNavi_horiz($start=0, $counter=0, $depth=0) { | function buildNavi_horiz($start=0, $counter=0, $depth=0) { | ||
| - | $t = array(); | + | // ============ Custom var =========== |
| - | $struct = getStructureChildData($start); // Catch structure | + | $home_link = false; // [true|false] = [enabled|disabled] |
| + | // ============ END Custom var ======= | ||
| + | |||
| + | |||
| + | $t = array(); | ||
| + | |||
| + | $struct = getStructureChildData($start); // Catch structure | ||
| + | |||
| if($counter == 0) { | if($counter == 0) { | ||
| $last = count($struct) - 1; | $last = count($struct) - 1; | ||
| // ======== Only if you want home // Nur wenn Home gewuenscht | // ======== Only if you want home // Nur wenn Home gewuenscht | ||
| - | /* | + | if ($home_link) { |
| - | $l = '<li id="cat-id_0" class="drop home">'; | + | $l = '<li id="cat-id_0" class="drop home">'; |
| - | $l .= get_level_ahref(0, ' class="first"') . '<span>'. html_specialchars($GLOBALS['content']['struct'][0]['acat_name']); | + | $l .= get_level_ahref(0, ' class="first"') . '<span>'. html_specialchars($GLOBALS['content']['struct'][0]['acat_name']); |
| - | $l .= '</span></a></li>'; | + | $l .= '</span></a></li>'; |
| - | $t[] = $l; | + | $t[] = $l; |
| - | */ | + | } |
| // ======= END Home | // ======= END Home | ||