Beiträge von Rac00n

    Hallo liebe Leute :)

    Ich habe nun schon einiges an Versuchen gestartet aber komme auf kein Ergebnis.
    Folgendes Problem:

    Ich habe mir das Plugin Enhance Admin Bar installiert und damit ein neues Custom Menu an die Adminbar gepappt.
    Nun habe ich auch noch das GreyBox Integrator Plugin installiert und möchte beide verbinden.

    Die Verbindung soll wie folgt aussehen:
    Unter Appearance > Menus > Custom Links habe ich einen neuen Link erstellt:
    URL: http://www.google.de/
    Navigation Label: Google
    Title Attribute:
    CSS Classes:
    XFN:
    OnClick: return GB_show('Google', this.href)[FONT=verdana]

    [/FONT]Laut class-wp-admin-bar beinhaltete die Funktion add_menu das onclick Element.

    PHP
    function add_menu( $args = array() ) {
            $defaults = array(
                'title' => false,
                'href' => false,
                'parent' => false, // false for a root menu, pass the ID value for a submenu of that menu.
                'id' => false, // defaults to a sanitized title value.
                'meta' => false // array of any of the following options: array( 'html' => '', 'class' => '', 'onclick' => '', target => '', title => '' );
            );

    class, target und title sind in Custom Links ja verfügbar, wie mache ich allerdings die anderen beiden Optionen verfügbar?