Changeset 640080 for context-manager/trunk/plugin.php
- Timestamp:
- 12/16/2012 04:41:13 PM (13 years ago)
- File:
-
- 1 edited
-
context-manager/trunk/plugin.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
context-manager/trunk/plugin.php
r640003 r640080 2 2 /* 3 3 Plugin Name: Context Manager 4 Description: Context-based rules for menus, widgets and the body class.4 Description: Make your site react to users' context by changing your theme's CSS and JavaScript files, navigation menus, sidebars and the HTML body tag. 5 5 Author: Phill Brown 6 6 Author URI: http://pbweb.co.uk 7 Version: 1. 0.27 Version: 1.1 8 8 9 9 Copyright 2012 Phill Brown (email: wp@pbweb.co.uk) … … 39 39 // Setup reactions 40 40 require_once dirname( __FILE__ ) . '/reactions/base.php'; 41 foreach ( array( ' Menu', 'Widgets', 'Body_Class' ) as $reaction ) {41 foreach ( array( 'Assets', 'Menu', 'Widgets', 'Body_Class' ) as $reaction ) { 42 42 43 43 // Include reaction … … 46 46 // Instantiate reactions 47 47 $class_name = 'Context_Manager_Reaction_' . $reaction; 48 $reactions[ $class_name ] = new $class_name( &$this );48 $reactions[ $class_name ] = new $class_name( $this ); 49 49 } 50 50 … … 55 55 if ( is_admin() ) { 56 56 require_once dirname( __FILE__ ) . '/admin/admin.php'; 57 $admin = new Context_Manager_Admin( &$this );57 $admin = new Context_Manager_Admin( $this ); 58 58 } 59 59 … … 75 75 $this->meta_boxes = array( 76 76 'conditions' => new Context_Manager_Meta_Box_Conditions(), 77 'reactions' => new Context_Manager_Meta_Box_Reactions( &$this ),77 'reactions' => new Context_Manager_Meta_Box_Reactions( $this ), 78 78 ); 79 79
Note: See TracChangeset
for help on using the changeset viewer.