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