PluginProbe
Lightweight Sidebar Manager / 2.0.0
Lightweight Sidebar Manager v2.0.0
trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0
sidebar-manager / sidebar-manager.php

sidebar-manager.php in Lightweight Sidebar Manager 2.0.0, at sidebar-manager.php

56 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Sidebar Manager
4 * Plugin URI: http://www.brainstormforce.com
5 * Description: This is the plugin to create custom siderbars to your site.
6 * Version: 2.0.0
7 * Author: Brainstorm Force
8 * Author URI: https://www.brainstormforce.com/
9 * Text Domain: bsfsidebars
10 *
11 * @package Custom_Sidebars
12 */
13
14 /**
15 * Exit if accessed directly.
16 */
17 if ( ! defined( 'ABSPATH' ) ) {
18 exit();
19 }
20
21 /**
22 * Set constants.
23 */
24 define( 'BSF_SB_FILE', __FILE__ );
25 define( 'BSF_SB_BASE', plugin_basename( BSF_SB_FILE ) );
26 define( 'BSF_SB_DIR', plugin_dir_path( BSF_SB_FILE ) );
27 define( 'BSF_SB_URL', plugins_url( '/', BSF_SB_FILE ) );
28 define( 'BSF_SB_VER', '2.0.0' );
29 define( 'BSF_SB_PREFIX', 'bsf-sb' );
30 define( 'BSF_SB_POST_TYPE', 'bsf-sidebar' );
31
32 require_once 'classes/class-bsf-sb-loader.php';
33
34 if ( is_admin() ) {
35 // Admin Notice Library Settings.
36 require_once BSF_SB_DIR . 'lib/notices/class-astra-notices.php';
37 }
38
39 // BSF Analytics library.
40 if ( ! class_exists( 'BSF_Analytics_Loader' ) ) {
41 require_once BSF_SB_DIR . 'admin/bsf-analytics/class-bsf-analytics-loader.php';
42 }
43
44 $bsf_analytics = BSF_Analytics_Loader::get_instance();
45
46 $bsf_analytics->set_entity(
47 array(
48 'bsf' => array(
49 'product_name' => 'Sidebar Manager',
50 'path' => BSF_SB_DIR . 'admin/bsf-analytics',
51 'author' => 'Brainstorm Force',
52 'time_to_display' => '+24 hours',
53 ),
54 )
55 );
56