Changeset 669315
- Timestamp:
- 02/17/2013 04:40:01 PM (13 years ago)
- Location:
- context-manager
- Files:
-
- 51 added
- 6 edited
-
tags/1.1.5 (added)
-
tags/1.1.5/admin (added)
-
tags/1.1.5/admin/admin.php (added)
-
tags/1.1.5/admin/meta-box-conditions.php (added)
-
tags/1.1.5/admin/meta-box-reactions.php (added)
-
tags/1.1.5/libs (added)
-
tags/1.1.5/libs/pb-framework (added)
-
tags/1.1.5/libs/pb-framework/assets (added)
-
tags/1.1.5/libs/pb-framework/assets/css (added)
-
tags/1.1.5/libs/pb-framework/assets/css/meta-box.css (added)
-
tags/1.1.5/libs/pb-framework/assets/js (added)
-
tags/1.1.5/libs/pb-framework/assets/js/init-chosen.js (added)
-
tags/1.1.5/libs/pb-framework/assets/js/tabs.js (added)
-
tags/1.1.5/libs/pb-framework/assets/vendor (added)
-
tags/1.1.5/libs/pb-framework/assets/vendor/chosen (added)
-
tags/1.1.5/libs/pb-framework/assets/vendor/chosen/chosen-sprite.png (added)
-
tags/1.1.5/libs/pb-framework/assets/vendor/chosen/chosen.css (added)
-
tags/1.1.5/libs/pb-framework/assets/vendor/chosen/chosen.jquery.min.js (added)
-
tags/1.1.5/libs/pb-framework/base.php (added)
-
tags/1.1.5/libs/pb-framework/forms.php (added)
-
tags/1.1.5/libs/pb-framework/meta-box2.php (added)
-
tags/1.1.5/libs/scb-framework (added)
-
tags/1.1.5/libs/scb-framework/example.php (added)
-
tags/1.1.5/libs/scb-framework/plugin.php (added)
-
tags/1.1.5/libs/scb-framework/readme.txt (added)
-
tags/1.1.5/libs/scb-framework/scb (added)
-
tags/1.1.5/libs/scb-framework/scb-debug.php (added)
-
tags/1.1.5/libs/scb-framework/scb-info.php (added)
-
tags/1.1.5/libs/scb-framework/scb-load.php (added)
-
tags/1.1.5/libs/scb-framework/scb/AdminPage.php (added)
-
tags/1.1.5/libs/scb-framework/scb/BoxesPage.php (added)
-
tags/1.1.5/libs/scb-framework/scb/Cron.php (added)
-
tags/1.1.5/libs/scb-framework/scb/Forms.php (added)
-
tags/1.1.5/libs/scb-framework/scb/Hooks.php (added)
-
tags/1.1.5/libs/scb-framework/scb/Options.php (added)
-
tags/1.1.5/libs/scb-framework/scb/Table.php (added)
-
tags/1.1.5/libs/scb-framework/scb/Util.php (added)
-
tags/1.1.5/libs/scb-framework/scb/Widget.php (added)
-
tags/1.1.5/libs/scb-framework/scb/load.php (added)
-
tags/1.1.5/plugin.php (added)
-
tags/1.1.5/reactions (added)
-
tags/1.1.5/reactions/assets.php (added)
-
tags/1.1.5/reactions/base.php (added)
-
tags/1.1.5/reactions/body_class.php (added)
-
tags/1.1.5/reactions/menu (added)
-
tags/1.1.5/reactions/menu.php (added)
-
tags/1.1.5/reactions/menu/active-parent.php (added)
-
tags/1.1.5/reactions/menu/child-page.php (added)
-
tags/1.1.5/reactions/menu/inactive-parent.php (added)
-
tags/1.1.5/reactions/widgets.php (added)
-
tags/1.1.5/readme.txt (added)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/reactions/menu.php (modified) (1 diff)
-
trunk/reactions/menu/active-parent.php (modified) (2 diffs)
-
trunk/reactions/menu/child-page.php (modified) (1 diff)
-
trunk/reactions/menu/inactive-parent.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
context-manager/trunk/plugin.php
r664376 r669315 5 5 Author: Phill Brown 6 6 Author URI: http://pbweb.co.uk 7 Version: 1.1. 47 Version: 1.1.5 8 8 9 9 Copyright 2012 Phill Brown (email: wp@pbweb.co.uk) -
context-manager/trunk/reactions/menu.php
r640080 r669315 119 119 // Base class for rules handlers 120 120 abstract 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 } 122 129 } -
context-manager/trunk/reactions/menu/active-parent.php
r639694 r669315 5 5 class Context_Manager_Reaction_Menu_Handler_Active_Parent extends Context_Manager_Reaction_Menu_Handler { 6 6 7 // Context rule data8 protected $data;9 10 7 function __construct() { 11 8 $this->description = __( 'Emulate current page as a child but do not create a menu item.', 'context-manager' ); … … 13 10 14 11 function handler( $data, &$menu_reaction ) { 15 $this->data = $data; 16 $this->menu_reaction = $menu_reaction; 17 12 parent::handler( $data, $menu_reaction ); 18 13 add_filter( 'wp_nav_menu_objects', array( $this, 'active_parent' ) ); 19 14 } -
context-manager/trunk/reactions/menu/child-page.php
r639694 r669315 11 11 12 12 function handler( $data, &$menu_reaction ) { 13 $this->data = $data;13 parent::handler( $data, $menu_reaction ); 14 14 add_filter( 'wp_nav_menu_objects', array( $this, 'child_page' ) ); 15 15 } -
context-manager/trunk/reactions/menu/inactive-parent.php
r639694 r669315 4 4 5 5 class Context_Manager_Reaction_Menu_Handler_Inactive_Parent extends Context_Manager_Reaction_Menu_Handler { 6 7 // Context rule data8 protected $data;9 10 6 function __construct() { 11 7 $this->description = __('Remove all active states.', 'context-manager'); … … 13 9 14 10 function handler( $data, &$menu_reaction ) { 15 $this->data = $data;11 parent::handler( $data, $menu_reaction ); 16 12 add_filter( 'wp_nav_menu_objects', array( $this, 'run' ) ); 17 13 } -
context-manager/trunk/readme.txt
r664376 r669315 5 5 Requires at least: 3.2 6 6 Tested up to: 3.5 7 Stable tag: 1.1. 47 Stable tag: 1.1.5 8 8 9 9 Make your site react to users' context by changing your theme's CSS and JavaScript files, navigation menus, sidebars and the HTML body tag. … … 64 64 == Changelog == 65 65 66 = 1.1.5 = 67 * [Bugfix]: menu_reaction property not being set in child page and inactive parent menu reactions 68 66 69 = 1.1.4 = 67 70 * [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.