2017-03-01 19:51:34 -05:00
|
|
|
<?php
|
2019-04-22 17:28:46 -03:00
|
|
|
/**
|
|
|
|
|
* Plugin Name: Genesis Simple Sidebars
|
|
|
|
|
* Plugin URI: https://github.com/copyblogger/genesis-simple-sidebars
|
|
|
|
|
* Description: Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas.
|
|
|
|
|
* Version: 2.1.1
|
|
|
|
|
* Author: StudioPress
|
|
|
|
|
* Author URI: http://www.studiopress.com/
|
|
|
|
|
* License: GNU General Public License v2.0 (or later)
|
|
|
|
|
* License URI: https://www.opensource.org/licenses/gpl-license.php
|
|
|
|
|
*
|
|
|
|
|
* Text Domain: genesis-simple-sidebars
|
|
|
|
|
* Domain Path: /languages
|
|
|
|
|
*
|
|
|
|
|
* @package genesis-simple-sidebars
|
|
|
|
|
*/
|
2017-03-01 19:51:34 -05:00
|
|
|
|
2019-04-22 17:28:46 -03:00
|
|
|
/**
|
|
|
|
|
* Load the plugin file.
|
|
|
|
|
*/
|
2017-03-01 19:51:34 -05:00
|
|
|
|
2019-04-22 17:28:46 -03:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
|
exit;
|
|
|
|
|
}
|
2017-03-01 19:51:34 -05:00
|
|
|
|
2019-04-22 17:28:46 -03:00
|
|
|
define( 'GENESIS_SIMPLE_SIDEBARS_SETTINGS_FIELD', 'genesis_simple_sidebars_settings' );
|
|
|
|
|
define( 'GENESIS_SIMPLE_SIDEBARS_VERSION', '2.1.1' );
|
|
|
|
|
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
|
|
|
|
define( 'GENESIS_SIMPLE_SIDEBARS_PLUGIN_URL', plugins_url( '', __FILE__ ) );
|
2017-03-01 19:51:34 -05:00
|
|
|
|
2019-04-22 17:28:46 -03:00
|
|
|
require_once plugin_dir_path( __FILE__ ) . 'includes/class-genesis-simple-sidebars.php';
|
2017-03-01 19:51:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Helper function to retrieve the static object without using globals.
|
|
|
|
|
*
|
|
|
|
|
* @since 2.1.0
|
|
|
|
|
*/
|
2019-04-22 17:28:46 -03:00
|
|
|
function genesis_simple_sidebars() {
|
2017-03-01 19:51:34 -05:00
|
|
|
|
|
|
|
|
static $object;
|
|
|
|
|
|
2019-04-22 17:28:46 -03:00
|
|
|
if ( null === $object ) {
|
|
|
|
|
$object = new Genesis_Simple_Sidebars();
|
2017-03-01 19:51:34 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $object;
|
|
|
|
|
}
|
|
|
|
|
/**
|
2019-04-22 17:28:46 -03:00
|
|
|
* Initialize the object on `plugins_loaded`.
|
2017-03-01 19:51:34 -05:00
|
|
|
*/
|
|
|
|
|
add_action( 'plugins_loaded', array( Genesis_Simple_Sidebars(), 'init' ) );
|