responsive.php
56 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Kirki Responsive |
| 4 | * Plugin URI: https://www.themeum.com |
| 5 | * Description: Responsive control for Kirki Customizer Framework. |
| 6 | * Version: 1.1 |
| 7 | * Author: Themeum |
| 8 | * Author URI: https://www.themeum.com |
| 9 | * License: GPL-3.0 |
| 10 | * License URI: https://oss.ninja/gpl-3.0?organization=Kirki%20Framework&project=control%20input%20slider |
| 11 | * Text Domain: kirki-responsive |
| 12 | * Domain Path: /languages |
| 13 | * |
| 14 | * @package kirki-responsive |
| 15 | */ |
| 16 | |
| 17 | defined( 'ABSPATH' ) || exit; |
| 18 | |
| 19 | if ( ! function_exists( 'kirki_load_responsive_control' ) ) { |
| 20 | |
| 21 | /** |
| 22 | * Load responsive control. |
| 23 | */ |
| 24 | function kirki_load_responsive_control() { |
| 25 | |
| 26 | // Stop, if Kirki is not installed. |
| 27 | if ( ! defined( 'KIRKI_VERSION' ) ) { |
| 28 | return; |
| 29 | } |
| 30 | |
| 31 | // Stop, if Kirki controls are already loaded. |
| 32 | if ( defined( 'KIRKI_CONTROLS_VERSION' ) ) { |
| 33 | return; |
| 34 | } |
| 35 | |
| 36 | // Stop, if Kirki Responsive is already installed. |
| 37 | if ( class_exists( '\Kirki\Responsive\Init' ) ) { |
| 38 | return; |
| 39 | } |
| 40 | |
| 41 | if ( ! function_exists( 'get_plugin_data' ) ) { |
| 42 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 43 | } |
| 44 | |
| 45 | $plugin_data = get_plugin_data( __FILE__ ); |
| 46 | |
| 47 | define( 'KIRKI_RESPONSIVE_VERSION', $plugin_data['Version'] ); |
| 48 | define( 'KIRKI_RESPONSIVE_PLUGIN_FILE', __FILE__ ); |
| 49 | |
| 50 | new \Kirki\Responsive\Init(); |
| 51 | |
| 52 | } |
| 53 | add_action( 'plugins_loaded', 'kirki_load_responsive_control' ); |
| 54 | |
| 55 | } |
| 56 |