Plugin Directory


Ignore:
Timestamp:
12/16/2012 04:41:13 PM (13 years ago)
Author:
phill_brown
Message:

1.1 release

File:
1 edited

Legend:

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

    r640003 r640080  
    22/*
    33Plugin Name: Context Manager
    4 Description: Context-based rules for menus, widgets and the body class.
     4Description: Make your site react to users' context by changing your theme's CSS and JavaScript files, navigation menus, sidebars and the HTML body tag.
    55Author: Phill Brown
    66Author URI: http://pbweb.co.uk
    7 Version: 1.0.2
     7Version: 1.1
    88
    99Copyright 2012 Phill Brown (email: wp@pbweb.co.uk)
     
    3939        // Setup reactions
    4040        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 ) {
    4242
    4343            // Include reaction
     
    4646            // Instantiate reactions
    4747            $class_name = 'Context_Manager_Reaction_' . $reaction;
    48             $reactions[ $class_name ] = new $class_name( &$this );
     48            $reactions[ $class_name ] = new $class_name( $this );
    4949        }
    5050
     
    5555        if ( is_admin() ) {
    5656            require_once dirname( __FILE__ ) . '/admin/admin.php';
    57             $admin = new Context_Manager_Admin( &$this );
     57            $admin = new Context_Manager_Admin( $this );
    5858        }
    5959
     
    7575        $this->meta_boxes = array(
    7676            '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 ),
    7878        );
    7979
Note: See TracChangeset for help on using the changeset viewer.