-
Notifications
You must be signed in to change notification settings - Fork 2
/
astra-widgets.php
57 lines (49 loc) · 1.43 KB
/
astra-widgets.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
56
57
<?php
/**
* Plugin Name: Astra Widgets
* Plugin URI: https://wpastra.com/
* Description: The Fastest Way to Add More Widgets into Your WordPress Website.
* Version: 1.2.14
* Author: Brainstorm Force
* Author URI: https://www.brainstormforce.com
* Text Domain: astra-widgets
*
* @package Astra Widgets
*/
/**
* Exit if accessed directly.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
/**
* Set constants.
*/
define( 'ASTRA_WIDGETS_FILE', __FILE__ );
define( 'ASTRA_WIDGETS_BASE', plugin_basename( ASTRA_WIDGETS_FILE ) );
define( 'ASTRA_WIDGETS_DIR', plugin_dir_path( ASTRA_WIDGETS_FILE ) );
define( 'ASTRA_WIDGETS_URI', plugins_url( '/', ASTRA_WIDGETS_FILE ) );
define( 'ASTRA_WIDGETS_VER', '1.2.14' );
define( 'ASTRA_WIDGETS_TEMPLATE_DEBUG_MODE', false );
require_once ASTRA_WIDGETS_DIR . 'classes/class-astra-widgets.php';
if ( is_admin() ) {
/**
* Admin Notice Library Settings
*/
require_once ASTRA_WIDGETS_DIR . 'lib/astra-notices/class-astra-notices.php';
}
// BSF Analytics library.
if ( ! class_exists( 'BSF_Analytics_Loader' ) ) {
require_once ASTRA_WIDGETS_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' => 'Astra Widgets',
'path' => ASTRA_WIDGETS_DIR . 'admin/bsf-analytics',
'author' => 'Brainstorm Force',
'time_to_display' => '+24 hours',
),
)
);