Arras Navigation anpassen

  • Hallo,

    ich bin momentan dabei meinen Blog optisch anzupassen, leider bin ich ein absoluter PHP Vollpfosten, ich kann den Code zwar einigermaßen lesen und verstehen, aber weiß leider keinen Rat wie ich den Code so umstricke das genau das dabei rauskommt was ich möchte. Vielleicht kann mir hier ja jemand helfen :).

    Also folgendes möchte ich gerne machen, ich habe folgendes Plugin gefunden

    http://www.bjoerne.com/navigation-du-lapin-blanc/?page_id=21

    Das Plugin erlaubt es mir Wordpress mehr als CMS einzusetzen, ich kann damit Kategorien an Seiten knüfpen. Meine Vorstellung war eine Top Navigation, bei der dann jeweils eine andere Sub Navigation angezeigt wird. Das ist mit dem Plugin auch möglich, leider kann die Arras Navigationsleiste die in dem Plugin verwendeten Variabeln nicht verstehen.

    Wenn ich einfach den Arras Navi Quellcode mit dem von der Internetseite überschreibe funktioniert alles einwandfrei, leider wird die Navigation dann komplett zerschossen.

    Daher bräuchte ich entweder Hilfe dabei den Quellcode so umzuschreiben dass die Variabeln in den ins Arras Menü passen

    oder

    Das Arras Menü mit dem vom Plugin ersetzen und das neue Menü optisch anpassen.

    Ich würde mich wirklich sehr über Hilfe freuen :)


    EDIT Ich habe hier schonmal die wie ich denke wichtigen Code Schnippsel

    Main Navi Plugin

    Zitat

    <ul> [COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]foreach[/COLOR] [COLOR=#009900]([/COLOR]bjoerne_get_navigation_nodes[COLOR=#009900]([/COLOR][COLOR=#cc66cc]0[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#b1b100]as[/COLOR] [COLOR=#000088]$node[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#000088]$navItemSelected[/COLOR] [COLOR=#339933]=[/COLOR] [COLOR=#009900]([/COLOR][COLOR=#000088]$node[/COLOR][COLOR=#339933]->[/COLOR][COLOR=#004000]is_selected[/COLOR][COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR] [COLOR=#339933]||[/COLOR] [COLOR=#000088]$node[/COLOR][COLOR=#339933]->[/COLOR][COLOR=#004000]is_on_selected_path[/COLOR][COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#b1b100]if[/COLOR] [COLOR=#009900]([/COLOR]bjoerne_is_node_visible[COLOR=#009900]([/COLOR][COLOR=#000088]$node[/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] bjoerne_println[COLOR=#009900]([/COLOR][COLOR=#0000ff]'<li class="menuItem'[/COLOR][COLOR=#339933].[/COLOR][COLOR=#009900]([/COLOR][COLOR=#000088]$navItemSelected[/COLOR] ? [COLOR=#0000ff]' menuItemSelected'[/COLOR] [COLOR=#339933]:[/COLOR] [COLOR=#0000ff]''[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933].[/COLOR][COLOR=#0000ff]'">'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_print_link[COLOR=#009900]([/COLOR][COLOR=#000088]$node[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_println[COLOR=#009900]([/COLOR][COLOR=#0000ff]'</li>'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#000000]?>[/COLOR] </ul>

    Top Menu Arras Theme


    Sub Menu Plugin

    Zitat

    <ul> [COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]foreach[/COLOR] [COLOR=#009900]([/COLOR]bjoerne_get_navigation_nodes[COLOR=#009900]([/COLOR][COLOR=#cc66cc]1[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#b1b100]as[/COLOR] [COLOR=#000088]$node[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#000088]$subNavItemSelected[/COLOR] [COLOR=#339933]=[/COLOR] [COLOR=#009900]([/COLOR][COLOR=#000088]$node[/COLOR][COLOR=#339933]->[/COLOR][COLOR=#004000]is_selected[/COLOR][COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR] [COLOR=#339933]||[/COLOR] [COLOR=#000088]$node[/COLOR][COLOR=#339933]->[/COLOR][COLOR=#004000]is_on_selected_path[/COLOR][COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_println[COLOR=#009900]([/COLOR][COLOR=#0000ff]' <li class="menuItem'[/COLOR][COLOR=#339933].[/COLOR][COLOR=#009900]([/COLOR][COLOR=#000088]$subNavItemSelected[/COLOR] ? [COLOR=#0000ff]' menuItemSelected'[/COLOR] [COLOR=#339933]:[/COLOR] [COLOR=#0000ff]''[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933].[/COLOR][COLOR=#0000ff]'">'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_print_link[COLOR=#009900]([/COLOR][COLOR=#000088]$node[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_println[COLOR=#009900]([/COLOR][COLOR=#0000ff]' </li>'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#b1b100]if[/COLOR] [COLOR=#009900]([/COLOR]bjoerne_equals_nodes[COLOR=#009900]([/COLOR][COLOR=#000088]$node[/COLOR][COLOR=#339933],[/COLOR] bjoerne_get_current_path_element[COLOR=#009900]([/COLOR][COLOR=#cc66cc]1[/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#b1b100]foreach[/COLOR] [COLOR=#009900]([/COLOR][COLOR=#000088]$node[/COLOR][COLOR=#339933]->[/COLOR][COLOR=#004000]get_children[/COLOR][COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR] [COLOR=#b1b100]as[/COLOR] [COLOR=#000088]$subNode[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#b1b100]if[/COLOR] [COLOR=#009900]([/COLOR]bjoerne_is_node_visible[COLOR=#009900]([/COLOR][COLOR=#000088]$subNode[/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#000088]$subSubNavItemSelected[/COLOR] [COLOR=#339933]=[/COLOR] [COLOR=#009900]([/COLOR][COLOR=#000088]$subNode[/COLOR][COLOR=#339933]->[/COLOR][COLOR=#004000]is_selected[/COLOR][COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR] [COLOR=#339933]||[/COLOR] [COLOR=#000088]$subNode[/COLOR][COLOR=#339933]->[/COLOR][COLOR=#004000]is_on_selected_path[/COLOR][COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_println[COLOR=#009900]([/COLOR][COLOR=#0000ff]' <li class="subMenuItem'[/COLOR][COLOR=#339933].[/COLOR][COLOR=#009900]([/COLOR][COLOR=#000088]$subSubNavItemSelected[/COLOR] ? [COLOR=#0000ff]' subMenuItemSelected'[/COLOR] [COLOR=#339933]:[/COLOR] [COLOR=#0000ff]''[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933].[/COLOR][COLOR=#0000ff]'">'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_println[COLOR=#009900]([/COLOR][COLOR=#0000ff]' '[/COLOR][COLOR=#339933].[/COLOR]bjoerne_print_link[COLOR=#009900]([/COLOR][COLOR=#000088]$subNode[/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] bjoerne_println[COLOR=#009900]([/COLOR][COLOR=#0000ff]' </li>'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#000000]?>[/COLOR] </ul>

    Sub Menü Arras


    Viele Grüße

    Einmal editiert, zuletzt von DonPalle (23. Januar 2012 um 00:35)

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • und nochmal die CSS Datei

    CSS Arras Default

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!