Plugin Directory

Changeset 427732


Ignore:
Timestamp:
08/23/2011 06:17:17 PM (15 years ago)
Author:
ainth
Message:

Updated to 0.37 - notice when invalid nab object, added title attributes you can set in wp ui

Location:
navigable/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • navigable/trunk/class-nav-element.php

    r391817 r427732  
    3232   
    3333    public function __construct($elem) {
    34         $this->id        = $elem['id'];
    35         $this->object_id = $elem['object_id'];
    36         $this->order     = $elem['order'];
    37         $this->url       = $elem['url'];
    38         $this->title     = $elem['title'];
    39         $this->parent_id = $elem['parent'];
    40         $this->slug      = $elem['slug'];
     34    $this->id             = $elem['id'];
     35    $this->object_id  = $elem['object_id'];
     36    $this->order        = $elem['order'];
     37    $this->url          = $elem['url'];
     38    $this->title        = $elem['title'];
     39    $this->attr_title = $elem['attr_title'];
     40    $this->parent_id  = $elem['parent'];
     41    $this->slug       = $elem['slug'];
    4142    }
    4243   
  • navigable/trunk/class-wp-nav.php

    r391817 r427732  
    1414    public function __construct($nav_selector, $params = array()) {
    1515       
    16         $this->raw = wp_get_nav_menu_items($nav_selector, $params);
     16    $this->raw = wp_get_nav_menu_items($nav_selector, $params);
     17   
     18    //If false, invalid name passed
     19    if ($this->raw == false) {
     20      trigger_error("Navigable could not find the navigation object called '{$nav_selector}'", E_USER_NOTICE);
     21    }
     22
    1723        $this->page_slugs = $this->get_page_slugs();
    1824        parent::__construct();
     
    3642                'url'       => $elem->url,
    3743                'title'     => $elem->title,
     44        'attr_title' => $elem->attr_title,
    3845                'parent'    => $elem->menu_item_parent,
    3946                'slug'      => $slug
  • navigable/trunk/class-wp-pages.php

    r391817 r427732  
    3333                'url'       => get_permalink($elem->ID),
    3434                'title'     => $elem->post_title,
     35        'attr_title' => $elem->attr_title,
    3536                'parent'    => $elem->post_parent,
    3637                'slug'      => $elem->post_name
  • navigable/trunk/readme.txt

    r391817 r427732  
    44Tags: navigation, sub-nav, subnav, menu templating, menus, nav interface
    55Requires at least: 3.0
    6 Tested up to: 3.1
    7 Stable tag: 0.36
     6Tested up to: 3.2.1
     7Stable tag: 0.37
    88
    99Navigable is a WordPress plugin for template developers. It gives you an alternative to WordPress's wp_nav_menu() function.
Note: See TracChangeset for help on using the changeset viewer.