Changeset 1321463
- Timestamp:
- 01/05/2016 06:34:15 AM (10 years ago)
- Location:
- bcorp-visual-editor/trunk
- Files:
-
- 2 added
- 2 edited
-
bcorp_visual_editor.php (modified) (2 diffs)
-
includes (added)
-
includes/plugin-activation.php (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bcorp-visual-editor/trunk/bcorp_visual_editor.php
r1321334 r1321463 4 4 Plugin URI: http://bcorp.com 5 5 Description: Wordpress visual editor for editing BCorp Shortcodes. 6 Version: 0.1 6 Version: 0.11 7 7 Author: Tim Brattberg 8 8 Author URI: http://bcorp.com … … 11 11 */ 12 12 13 require_once 'includes/plugin-activation.php'; 14 add_action( 'tgmpa_register', 'bcorp_visual_editor_required_plugins' ); 15 function bcorp_visual_editor_required_plugins() { 16 $plugins = array( 17 array( 18 'name' => 'BCorp Shortcodes', 19 'slug' => 'bcorp-shortcodes', 20 'required' => true, 21 ), 22 ); 23 $config = array( 24 'dismissable' => false, 25 'is_automatic' => true, 26 'strings' => array( 27 'notice_can_install_required' => _n_noop( 'The BCorp Visual Editor requires the following plugin %1$s to be installed in order to function correctly.', 'This theme requires the following plugins: %1$s.' , 'bcorp-visual-editor'), 28 'notice_can_activate_required' => _n_noop( 'The BCorp Visual Editor plugin requires %1$s to be activated in order to function correctly.', 'The following required plugins are currently inactive: %1$s.' , 'bcorp-visual-editor'), 29 'nag_type' => 'updated' 30 ) 31 ); 32 tgmpa( $plugins, $config ); 33 } 34 13 35 add_action( 'bcorp_start_visual_editor', 'bcorp_visual_editor_init' ); // Run after bcorp_shortcodes_init 14 36 function bcorp_visual_editor_init() { if (is_admin()) new BCorp_Visual_Editor(); } 15 37 class BCorp_Visual_Editor { 16 38 public function __construct () { 39 $this->bcve_setup_admin(); 40 } 17 41 18 $this->bcve_setup_admin(); }19 42 public function bcve_setup_admin () { 20 43 add_action( 'wp_ajax_bcve_ajax', array(&$this,'bcve_ajax' )); -
bcorp-visual-editor/trunk/readme.txt
r1321372 r1321463 5 5 Requires at least: 4.2.0 6 6 Tested up to: 4.4 7 Stable tag: 0.1 7 Stable tag: 0.11 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.en.html 10 10 11 Powerful drag and drop page builder. Requires BCorp Shortcodes.11 Powerful drag and drop page builder. Requires: BCorp Shortcodes Plugin. 12 12 13 13 == Description == 14 14 15 Powerful drag and drop page builder. Requires BCorp Shortcodes available at http://wordpress.org/plugins/bcorp-shortcodes/. 15 Powerful drag and drop page builder. Requires BCorp Shortcodes available at http://wordpress.org/plugins/bcorp-shortcodes/ in order to function. 16 17 If the BCorp Shortcodes plugin is not installed or activated the BCorp Visual Editor will provide prompts for installation and activation. 16 18 17 19 Click "Visual Editor" on a blank page or a page you would like to start fresh with. Then hit the big "+" button to begin. … … 42 44 == Changelog == 43 45 46 = 0.11 = 47 Included the TGM Activation Plugin to automatically suggest the required BCorp Shortcodes Plugin 48 44 49 = 0.1 = 45 50 First Release 46 51 47 52 == Upgrade Notice == 53 54 = 0.11 = 55 Included the TGM Activation Plugin to automatically suggest the required BCorp Shortcodes Plugin
Note: See TracChangeset
for help on using the changeset viewer.