astra-sites
Last commit date
inc
6 years ago
languages
6 years ago
astra-sites.php
6 years ago
readme.txt
6 years ago
astra-sites.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Astra Starter Sites |
| 4 | * Plugin URI: http://www.wpastra.com/pro/ |
| 5 | * Description: Import free sites build with Astra theme. |
| 6 | * Version: 1.4.4 |
| 7 | * Author: Brainstorm Force |
| 8 | * Author URI: http://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', __( 'Astra Sites', 'astra-sites' ) ); |
| 19 | } |
| 20 | |
| 21 | if ( ! defined( 'ASTRA_SITES_VER' ) ) { |
| 22 | define( 'ASTRA_SITES_VER', '1.4.4' ); |
| 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 | |
| 52 | add_action( 'plugins_loaded', 'astra_sites_setup' ); |
| 53 | |
| 54 | endif; |
| 55 |