Plugin Directory

Changeset 648332


Ignore:
Timestamp:
01/05/2013 01:25:01 PM (13 years ago)
Author:
phill_brown
Message:

1.1.2 release

Location:
context-manager
Files:
51 added
5 edited

Legend:

Unmodified
Added
Removed
  • context-manager/trunk/admin/meta-box-conditions.php

    r639694 r648332  
    11<?php
    22
     3require_once dirname( __FILE__ ) . '/../libs/pb-framework/meta-box2.php';
    34class Context_Manager_Meta_Box_Conditions extends PB_Meta_Box2 {
    45
  • context-manager/trunk/admin/meta-box-reactions.php

    r639694 r648332  
    11<?php
    22
     3require_once dirname( __FILE__ ) . '/../libs/pb-framework/meta-box2.php';
    34class Context_Manager_Meta_Box_Reactions extends PB_Meta_Box2 {
    45
  • context-manager/trunk/libs/pb-framework/meta-box2.php

    r639694 r648332  
    1717    function __construct() {
    1818        add_action( 'save_post', array( &$this, 'save' ), 10, 2 );
    19 
    20         wp_register_style( 'pb-meta-box', plugins_url( '/assets/css/meta-box.css', __FILE__ ) );
    21         wp_register_script( 'pb-tabs', plugins_url( '/assets/js/tabs.js', __FILE__ ), array( 'jquery' ) );
     19        add_action( 'admin_enqueue_scripts', array( &$this, 'register_assets' ) );
    2220    }
    2321
     
    6260            }
    6361        }
     62    }
     63
     64    // Register stylesheets and JavaScript libraries
     65    function register_assets() {
     66        wp_register_style( 'pb-meta-box', plugins_url( '/assets/css/meta-box.css', __FILE__ ) );
     67        wp_register_script( 'pb-tabs', plugins_url( '/assets/js/tabs.js', __FILE__ ), array( 'jquery' ) );
    6468    }
    6569
  • context-manager/trunk/plugin.php

    r640797 r648332  
    55Author: Phill Brown
    66Author URI: http://pbweb.co.uk
    7 Version: 1.1.1
     7Version: 1.1.2
    88
    99Copyright 2012 Phill Brown (email: wp@pbweb.co.uk)
     
    6363        // Internationalise
    6464        load_plugin_textdomain( 'menu_rules', false, basename( dirname( __FILE__ ) ) . '/languages' );
     65
     66        // Meta box libraries must be included on plugins_loaded for scb_framework utilities
     67        require_once dirname( __FILE__ ) . '/admin/meta-box-conditions.php';
     68        require_once dirname( __FILE__ ) . '/admin/meta-box-reactions.php';
    6569    }
    6670
     
    6973
    7074        // Init meta box functionality
    71         require_once dirname( __FILE__ ) . '/libs/pb-framework/meta-box2.php';
    72         require_once dirname( __FILE__ ) . '/admin/meta-box-conditions.php';
    73         require_once dirname( __FILE__ ) . '/admin/meta-box-reactions.php';
    74 
    7575        $this->meta_boxes = array(
    7676            'conditions' => new Context_Manager_Meta_Box_Conditions(),
  • context-manager/trunk/readme.txt

    r640404 r648332  
    55Requires at least: 3.2
    66Tested up to: 3.5
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    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.2 =
     67* [Bugfix]: Major issue that generated an error when adding or editing a context rule
     68
    6669= 1.1.1 =
    6770* [Bugfix]: Errors in widget reaction when site has orphaned widgets
Note: See TracChangeset for help on using the changeset viewer.