public static function get_instance() { if (!self::$instance) { self::$instance = new self(); self::$instance->get_redux_options(); self::$instance->includes(); self::$instance->hooks(); } return self::$instance; }
function remove_demo() { if (class_exists('ReduxFrameworkPlugin')) { remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::instance(), 'plugin_metalinks'), null, 2); remove_action('admin_notices', array(ReduxFrameworkPlugin::instance(), 'admin_notices')); } }
function remove_demo() { // Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin. if (class_exists('ReduxFrameworkPlugin')) { remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::instance(), 'plugin_metalinks'), null, 2); // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin. remove_action('admin_notices', array(ReduxFrameworkPlugin::instance(), 'admin_notices')); } }
function removeDemoModeLink() { // Be sure to rename this function to something more unique if (class_exists('ReduxFrameworkPlugin')) { remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2); } if (class_exists('ReduxFrameworkPlugin')) { remove_action('admin_notices', array(ReduxFrameworkPlugin::get_instance(), 'admin_notices')); } }
* Version: 3.5.8.15 * Text Domain: redux-framework * License: GPL3+ * License URI: http://www.gnu.org/licenses/gpl-3.0.txt * Domain Path: ReduxCore/languages * Provides: ReduxFramework * * @package ReduxFramework * @author Dovy Paukstys <*****@*****.**> * @author Kevin Provance <*****@*****.**> * @license GNU General Public License, version 3 * @copyright 2012-2016 Redux.io */ // Exit if accessed directly if (!defined('ABSPATH')) { die; } // Require the main plugin class require_once plugin_dir_path(__FILE__) . 'class.redux-plugin.php'; // Register hooks that are fired when the plugin is activated and deactivated, respectively. register_activation_hook(__FILE__, array('ReduxFrameworkPlugin', 'activate')); register_deactivation_hook(__FILE__, array('ReduxFrameworkPlugin', 'deactivate')); // Get plugin instance //add_action( 'plugins_loaded', array( 'ReduxFrameworkPlugin', 'instance' ) ); // The above line prevents ReduxFramework from instancing until all plugins have loaded. // While this does not matter for themes, any plugin using Redux will not load properly. // Waiting until all plugins have been loaded prevents the ReduxFramework class from // being created, and fails the !class_exists('ReduxFramework') check in the sample_config.php, // and thus prevents any plugin using Redux from loading their config file. ReduxFrameworkPlugin::instance();
/** Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin. **/ function removeDemoModeLink() { if (class_exists('ReduxFrameworkPlugin')) { remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::get_instance(), 'plugin_meta_demo_mode_link'), null, 2); } }
/** * Return an instance of this class. * * @since 1.0.0 * * @return object A single instance of this class. */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
public static function init() { # Removing Demo Mode (Redux Framework) if (class_exists('ReduxFrameworkPlugin')) { remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2); remove_action('admin_notices', array(ReduxFrameworkPlugin::get_instance(), 'admin_notices')); } # Register Menus register_nav_menu('header-menu', __('Header Menu', 'prodo')); register_nav_menu('footer-menu', __('Footer Menu', 'prodo')); }