PluginProbe ʕ •ᴥ•ʔ
Kirki – Freeform Page Builder, Website Builder & Customizer / 6.0.13
Kirki – Freeform Page Builder, Website Builder & Customizer v6.0.13
6.1.1 6.1.0 6.0.14 6.0.13 6.0.12 6.0.11 6.0.10 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.19 4.0.20 4.0.21 4.0.22 4.0.23 4.0.24 4.1 4.2.0 5.0.0 5.1.0 5.1.1 5.2.0 5.2.1 5.2.2 5.2.3 6.0.0 trunk 3.0.40 3.0.41 3.0.42 3.0.43 3.0.44 3.0.45 3.1.0 3.1.1 3.1.2
kirki / customizer / packages / controls / tabs / tabs.php
kirki / customizer / packages / controls / tabs Last commit date
src 2 months ago readme.txt 2 months ago tabs.php 5 months ago
tabs.php
58 lines
1 <?php
2 /**
3 * Plugin Name: Kirki Tabs
4 * Plugin URI: https://www.themeum.com
5 * Description: Tab 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%20tab
11 * Text Domain: kirki-tabs
12 * Domain Path: /languages
13 *
14 * @package kirki-tabs
15 */
16
17 defined( 'ABSPATH' ) || exit;
18
19 if ( ! function_exists( 'kirki_load_tab_control' ) ) {
20
21 /**
22 * Load tab control inside "plugins_loaded" hook.
23 * This is necessary to check if Kirki plugin is installed.
24 */
25 function kirki_load_tab_control() {
26
27 // Stop, if Kirki is not installed.
28 if ( ! defined( 'KIRKI_VERSION' ) ) {
29 return;
30 }
31
32 // Stop, if Kirki controls are already loaded.
33 if ( defined( 'KIRKI_CONTROLS_VERSION' ) ) {
34 return;
35 }
36
37 // Stop, if Kirki Tabs is already installed.
38 if ( class_exists( '\Kirki\Tabs\Init' ) ) {
39 return;
40 }
41
42 if ( ! function_exists( 'get_plugin_data' ) ) {
43 require_once ABSPATH . 'wp-admin/includes/plugin.php';
44 }
45
46 $plugin_data = get_plugin_data( __FILE__ );
47
48 define( 'KIRKI_TAB_VERSION', $plugin_data['Version'] );
49 define( 'KIRKI_TAB_PLUGIN_FILE', __FILE__ );
50
51 new \Kirki\Tabs\Init();
52
53 }
54
55 add_action( 'plugins_loaded', 'kirki_load_tab_control' );
56
57 }
58