astra-sites
Last commit date
admin
4 years ago
assets
4 years ago
classes
4 years ago
inc
4 years ago
languages
4 years ago
.eslintignore
4 years ago
astra-sites.php
4 years ago
readme.txt
4 years ago
webpack.config.js
4 years ago
astra-sites.php
84 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Starter Templates |
| 4 | * Plugin URI: https://wpastra.com/ |
| 5 | * Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily. |
| 6 | * Version: 3.0.18 |
| 7 | * Author: Brainstorm Force |
| 8 | * Author URI: https://www.brainstormforce.com |
| 9 | * Text Domain: astra-sites |
| 10 | * |
| 11 | * @package Astra Sites |
| 12 | */ |
| 13 | |
| 14 | /** |
| 15 | * Set constants. |
| 16 | */ |
| 17 | if ( ! defined( 'ASTRA_SITES_NAME' ) ) { |
| 18 | define( 'ASTRA_SITES_NAME', __( 'Starter Templates', 'astra-sites' ) ); |
| 19 | } |
| 20 | |
| 21 | if ( ! defined( 'ASTRA_SITES_VER' ) ) { |
| 22 | define( 'ASTRA_SITES_VER', '3.0.18' ); |
| 23 | } |
| 24 | |
| 25 | if ( ! defined( 'ASTRA_SITES_FILE' ) ) { |
| 26 | define( 'ASTRA_SITES_FILE', __FILE__ ); |
| 27 | } |
| 28 | |
| 29 | if ( ! defined( 'ASTRA_SITES_BASE' ) ) { |
| 30 | define( 'ASTRA_SITES_BASE', plugin_basename( ASTRA_SITES_FILE ) ); |
| 31 | } |
| 32 | |
| 33 | if ( ! defined( 'ASTRA_SITES_DIR' ) ) { |
| 34 | define( 'ASTRA_SITES_DIR', plugin_dir_path( ASTRA_SITES_FILE ) ); |
| 35 | } |
| 36 | |
| 37 | if ( ! defined( 'ASTRA_SITES_URI' ) ) { |
| 38 | define( 'ASTRA_SITES_URI', plugins_url( '/', ASTRA_SITES_FILE ) ); |
| 39 | } |
| 40 | |
| 41 | if ( ! function_exists( 'astra_sites_setup' ) ) : |
| 42 | |
| 43 | /** |
| 44 | * Astra Sites Setup |
| 45 | * |
| 46 | * @since 1.0.5 |
| 47 | */ |
| 48 | function astra_sites_setup() { |
| 49 | require_once ASTRA_SITES_DIR . 'inc/classes/class-astra-sites.php'; |
| 50 | |
| 51 | // Admin. |
| 52 | require_once ASTRA_SITES_DIR . 'classes/class-astra-sites-admin.php'; |
| 53 | } |
| 54 | |
| 55 | add_action( 'plugins_loaded', 'astra_sites_setup' ); |
| 56 | |
| 57 | endif; |
| 58 | |
| 59 | // Astra Notices. |
| 60 | require_once ASTRA_SITES_DIR . 'inc/lib/astra-notices/class-astra-notices.php'; |
| 61 | |
| 62 | // BSF Analytics Tracker. |
| 63 | if ( ! class_exists( 'BSF_Analytics_Loader' ) ) { |
| 64 | require_once ASTRA_SITES_DIR . 'admin/bsf-analytics/class-bsf-analytics-loader.php'; |
| 65 | } |
| 66 | |
| 67 | // BSF_Quick_Links. |
| 68 | if ( ! class_exists( 'BSF_Quick_Links' ) ) { |
| 69 | require_once ASTRA_SITES_DIR . 'inc/lib/bsf-quick-links/class-bsf-quick-links.php'; |
| 70 | } |
| 71 | |
| 72 | $bsf_analytics = BSF_Analytics_Loader::get_instance(); |
| 73 | |
| 74 | $bsf_analytics->set_entity( |
| 75 | array( |
| 76 | 'bsf' => array( |
| 77 | 'product_name' => __( 'Starter Templates', 'astra-sites' ), |
| 78 | 'path' => ASTRA_SITES_DIR . 'admin/bsf-analytics', |
| 79 | 'author' => 'Brainstorm Force', |
| 80 | 'time_to_display' => '+24 hours', |
| 81 | ), |
| 82 | ) |
| 83 | ); |
| 84 |