Changeset 1075246
- Timestamp:
- 01/25/2015 01:37:19 PM (11 years ago)
- Location:
- side-content/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
side-content.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
side-content/trunk/readme.txt
r257569 r1075246 4 4 Tags: widget, sidebar, page 5 5 Requires at least: 2.5 6 Tested up to: 3.0.06 Tested up to: 4.1.0 7 7 Stable tag: trunk 8 8 … … 28 28 Release 0.8 adds no new functionality but makes the plugin compatible with WP 2.7. 29 29 Release 0.9 adds no new functionality but makes the plugin compatible with WP 2.8.1. 30 Release 1.0 adds no new functionality but makes the plugin compatible with WP 4.1.0. 30 31 31 32 == Installation == -
side-content/trunk/side-content.php
r216737 r1075246 32 32 add_action('admin_menu', array($this, 'register_admin_menu')); 33 33 add_action('plugins_loaded', array($this, 'register_widgets')); 34 if($this->do_posts()) { 35 add_action('edit_form_advanced', array($this, 'show_editor')); 36 } 37 add_action('edit_page_form', array($this, 'show_editor')); 34 add_action('add_meta_boxes', array($this, 'add_meta_boxes')); 35 38 36 add_action('edit_post', array($this, 'save_widgets_value')); 39 37 add_action('publish_post', array($this, 'save_widgets_value')); … … 57 55 } 58 56 return $whitelist; 57 } 58 59 function add_meta_boxes() { 60 add_meta_box('side-content', __ ('Side Content', 'side-content'), array($this, 'show_editor'), 'page', 'normal', 'high'); 61 if($this->do_posts()) { 62 add_meta_box('side-content', __ ('Side Content', 'side-content'), array($this, 'show_editor'), 'post', 'normal', 'high'); 63 } 59 64 } 60 65 … … 132 137 } 133 138 ?> 134 <div id="side_content_editor_wrapper" class="postbox closed"> 135 <h3>Side Content Widgets</h3> 136 <div class="inside"> 139 137 140 <div id="side_content_editor"> 138 141 <table> … … 156 159 </table> 157 160 </div> 158 </div> 159 </div> 161 160 162 <?php 161 163 }
Note: See TracChangeset
for help on using the changeset viewer.