Changeset 640002
- Timestamp:
- 12/16/2012 12:39:29 PM (13 years ago)
- Location:
- context-manager
- Files:
-
- 50 added
- 3 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/admin (added)
-
tags/1.0.1/admin/admin.php (added)
-
tags/1.0.1/admin/meta-box-conditions.php (added)
-
tags/1.0.1/admin/meta-box-reactions.php (added)
-
tags/1.0.1/libs (added)
-
tags/1.0.1/libs/pb-framework (added)
-
tags/1.0.1/libs/pb-framework/assets (added)
-
tags/1.0.1/libs/pb-framework/assets/css (added)
-
tags/1.0.1/libs/pb-framework/assets/css/meta-box.css (added)
-
tags/1.0.1/libs/pb-framework/assets/js (added)
-
tags/1.0.1/libs/pb-framework/assets/js/init-chosen.js (added)
-
tags/1.0.1/libs/pb-framework/assets/js/tabs.js (added)
-
tags/1.0.1/libs/pb-framework/assets/vendor (added)
-
tags/1.0.1/libs/pb-framework/assets/vendor/chosen (added)
-
tags/1.0.1/libs/pb-framework/assets/vendor/chosen/chosen-sprite.png (added)
-
tags/1.0.1/libs/pb-framework/assets/vendor/chosen/chosen.css (added)
-
tags/1.0.1/libs/pb-framework/assets/vendor/chosen/chosen.jquery.min.js (added)
-
tags/1.0.1/libs/pb-framework/base.php (added)
-
tags/1.0.1/libs/pb-framework/forms.php (added)
-
tags/1.0.1/libs/pb-framework/meta-box2.php (added)
-
tags/1.0.1/libs/scb-framework (added)
-
tags/1.0.1/libs/scb-framework/example.php (added)
-
tags/1.0.1/libs/scb-framework/plugin.php (added)
-
tags/1.0.1/libs/scb-framework/readme.txt (added)
-
tags/1.0.1/libs/scb-framework/scb (added)
-
tags/1.0.1/libs/scb-framework/scb-debug.php (added)
-
tags/1.0.1/libs/scb-framework/scb-info.php (added)
-
tags/1.0.1/libs/scb-framework/scb-load.php (added)
-
tags/1.0.1/libs/scb-framework/scb/AdminPage.php (added)
-
tags/1.0.1/libs/scb-framework/scb/BoxesPage.php (added)
-
tags/1.0.1/libs/scb-framework/scb/Cron.php (added)
-
tags/1.0.1/libs/scb-framework/scb/Forms.php (added)
-
tags/1.0.1/libs/scb-framework/scb/Hooks.php (added)
-
tags/1.0.1/libs/scb-framework/scb/Options.php (added)
-
tags/1.0.1/libs/scb-framework/scb/Table.php (added)
-
tags/1.0.1/libs/scb-framework/scb/Util.php (added)
-
tags/1.0.1/libs/scb-framework/scb/Widget.php (added)
-
tags/1.0.1/libs/scb-framework/scb/load.php (added)
-
tags/1.0.1/plugin.php (added)
-
tags/1.0.1/reactions (added)
-
tags/1.0.1/reactions/base.php (added)
-
tags/1.0.1/reactions/body_class.php (added)
-
tags/1.0.1/reactions/menu (added)
-
tags/1.0.1/reactions/menu.php (added)
-
tags/1.0.1/reactions/menu/active-parent.php (added)
-
tags/1.0.1/reactions/menu/child-page.php (added)
-
tags/1.0.1/reactions/menu/inactive-parent.php (added)
-
tags/1.0.1/reactions/widgets.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/plugin.php (modified) (3 diffs)
-
trunk/reactions/base.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
context-manager/trunk/plugin.php
r639694 r640002 5 5 Author: Phill Brown 6 6 Author URI: http://pbweb.co.uk 7 Version: 1.0 7 Version: 1.0.1 8 8 9 9 Copyright 2012 Phill Brown (email: wp@pbweb.co.uk) … … 22 22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 23 */ 24 25 // TODOS:26 // Implement update() on reactions27 // Make meta keys private28 // Import feature for woosidebars and menu rules users29 24 30 25 // Include PB Framework … … 113 108 // Checking if conditions match 114 109 function conditions_match( $context_rule ) { 115 116 // TODO: currently there's only 1 expression field but in the future support multiple expressions tied with and/or117 110 foreach ( $this->meta_boxes['conditions']->get_fields_flat() as $name => $field_def ) { 118 111 $match = eval( 'return ' . get_post_meta( $context_rule->ID, $name, true ) . ';' ); -
context-manager/trunk/reactions/base.php
r639694 r640002 15 15 abstract function form(); 16 16 17 // TODO: Implement18 // Custom functionality when the rule is saved19 function update() {}20 21 17 // Extra display hooks above and below the main form. Needs to return output, not echo 22 18 function display_header() {} … … 26 22 protected function get_rules() { 27 23 24 // No form registered 25 if ( ! $this->form() ) return; 26 28 27 // Setup meta query conditions 29 // TODO: change query compare types accordingly with the type of field30 28 $meta_queries = array(); 31 29 foreach( $this->form() as $field_name => $field_data ) { -
context-manager/trunk/readme.txt
r639694 r640002 5 5 Requires at least: 3.2 6 6 Tested up to: 3.5 7 Stable tag: 1.0 7 Stable tag: 1.0.1 8 8 9 9 Make your site react to contextual conditions using a point and click interface … … 37 37 1. Hit publish 38 38 39 See a [screenshot](http://wordpress.org/extend/plugins/context-manager/screenshots/) of the belowsetup.39 See a [screenshot](http://wordpress.org/extend/plugins/context-manager/screenshots/) of the above setup. 40 40 41 41 = Support = … … 53 53 54 54 1. An example setup for a products section in a online shop 55 56 == Changelog == 57 58 = 1.0.1 = 59 * [Bugfix]: Invalid foreach warning when no rules were added in get_rules()
Note: See TracChangeset
for help on using the changeset viewer.