Plugin Directory

Changeset 1321463


Ignore:
Timestamp:
01/05/2016 06:34:15 AM (10 years ago)
Author:
BCorp
Message:

Included the TGM Activation Plugin to automatically suggest the required BCorp Shortcodes Plugin

Location:
bcorp-visual-editor/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • bcorp-visual-editor/trunk/bcorp_visual_editor.php

    r1321334 r1321463  
    44Plugin URI: http://bcorp.com
    55Description: Wordpress visual editor for editing BCorp Shortcodes.
    6 Version: 0.1
     6Version: 0.11
    77Author: Tim Brattberg
    88Author URI: http://bcorp.com
     
    1111*/
    1212
     13require_once 'includes/plugin-activation.php';
     14add_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
    1335add_action( 'bcorp_start_visual_editor', 'bcorp_visual_editor_init' ); // Run after bcorp_shortcodes_init
    1436function bcorp_visual_editor_init() { if (is_admin()) new BCorp_Visual_Editor(); }
    1537class BCorp_Visual_Editor {
    1638    public function __construct () {
     39        $this->bcve_setup_admin();
     40    }
    1741
    18         $this->bcve_setup_admin(); }
    1942    public function bcve_setup_admin () {
    2043    add_action( 'wp_ajax_bcve_ajax', array(&$this,'bcve_ajax' ));
  • bcorp-visual-editor/trunk/readme.txt

    r1321372 r1321463  
    55Requires at least: 4.2.0
    66Tested up to: 4.4
    7 Stable tag: 0.1
     7Stable tag: 0.11
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
    1010
    11 Powerful drag and drop page builder. Requires BCorp Shortcodes.
     11Powerful drag and drop page builder. Requires: BCorp Shortcodes Plugin.
    1212
    1313== Description ==
    1414
    15 Powerful drag and drop page builder. Requires BCorp Shortcodes available at http://wordpress.org/plugins/bcorp-shortcodes/.
     15Powerful drag and drop page builder. Requires BCorp Shortcodes available at http://wordpress.org/plugins/bcorp-shortcodes/ in order to function.
     16
     17If the BCorp Shortcodes plugin is not installed or activated the BCorp Visual Editor will provide prompts for installation and activation.
    1618
    1719Click "Visual Editor" on a blank page or a page you would like to start fresh with. Then hit the big "+" button to begin.
     
    4244== Changelog ==
    4345
     46= 0.11 =
     47Included the TGM Activation Plugin to automatically suggest the required BCorp Shortcodes Plugin
     48
    4449= 0.1 =
    4550First Release
    4651
    4752== Upgrade Notice ==
     53
     54= 0.11 =
     55Included the TGM Activation Plugin to automatically suggest the required BCorp Shortcodes Plugin
Note: See TracChangeset for help on using the changeset viewer.