Plugin Directory

Changeset 669315


Ignore:
Timestamp:
02/17/2013 04:40:01 PM (13 years ago)
Author:
phill_brown
Message:

1.1.5 release

Location:
context-manager
Files:
51 added
6 edited

Legend:

Unmodified
Added
Removed
  • context-manager/trunk/plugin.php

    r664376 r669315  
    55Author: Phill Brown
    66Author URI: http://pbweb.co.uk
    7 Version: 1.1.4
     7Version: 1.1.5
    88
    99Copyright 2012 Phill Brown (email: wp@pbweb.co.uk)
  • context-manager/trunk/reactions/menu.php

    r640080 r669315  
    119119// Base class for rules handlers
    120120abstract class Context_Manager_Reaction_Menu_Handler extends PB_Framework_Base {
    121     abstract function handler( $context_rule_data, &$menu_reaction );
     121
     122    // Context rule data
     123    protected $data;
     124
     125    function handler( $data, &$menu_reaction ) {
     126        $this->data = $data;
     127        $this->menu_reaction = $menu_reaction;
     128    }
    122129}
  • context-manager/trunk/reactions/menu/active-parent.php

    r639694 r669315  
    55class Context_Manager_Reaction_Menu_Handler_Active_Parent extends Context_Manager_Reaction_Menu_Handler {
    66
    7     // Context rule data
    8     protected $data;
    9 
    107    function __construct() {
    118        $this->description = __( 'Emulate current page as a child but do not create a menu item.', 'context-manager' );
     
    1310
    1411    function handler( $data, &$menu_reaction ) {
    15         $this->data = $data;
    16         $this->menu_reaction = $menu_reaction;
    17 
     12        parent::handler( $data, $menu_reaction );
    1813        add_filter( 'wp_nav_menu_objects', array( $this, 'active_parent' ) );
    1914    }
  • context-manager/trunk/reactions/menu/child-page.php

    r639694 r669315  
    1111
    1212    function handler( $data, &$menu_reaction ) {
    13         $this->data = $data;
     13        parent::handler( $data, $menu_reaction );
    1414        add_filter( 'wp_nav_menu_objects', array( $this, 'child_page' ) );
    1515    }
  • context-manager/trunk/reactions/menu/inactive-parent.php

    r639694 r669315  
    44
    55class Context_Manager_Reaction_Menu_Handler_Inactive_Parent extends Context_Manager_Reaction_Menu_Handler {
    6 
    7     // Context rule data
    8     protected $data;
    9 
    106    function __construct() {
    117        $this->description = __('Remove all active states.', 'context-manager');
     
    139
    1410    function handler( $data, &$menu_reaction ) {
    15         $this->data = $data;
     11        parent::handler( $data, $menu_reaction );
    1612        add_filter( 'wp_nav_menu_objects', array( $this, 'run' ) );
    1713    }
  • context-manager/trunk/readme.txt

    r664376 r669315  
    55Requires at least: 3.2
    66Tested up to: 3.5
    7 Stable tag: 1.1.4
     7Stable tag: 1.1.5
    88
    99Make your site react to users' context by changing your theme's CSS and JavaScript files, navigation menus, sidebars and the HTML body tag.
     
    6464== Changelog ==
    6565
     66= 1.1.5 =
     67* [Bugfix]: menu_reaction property not being set in child page and inactive parent menu reactions
     68
    6669= 1.1.4 =
    6770* [Bugfix]: Some environments were triggering a fatal error related to html() due to an action being added to a hook too late
Note: See TracChangeset for help on using the changeset viewer.