PluginProbe
GutSlider – All in One Slider and Carousel Blocks for Gutenberg / 2.9.8
GutSlider – All in One Slider and Carousel Blocks for Gutenberg v2.9.8
3.1.0 3.0.0 2.13.2 2.13.1 2.13.0 trunk 1.0.0 2.1.0 2.10.0 2.10.1 2.11.0 2.11.1 2.11.2 2.11.3 2.11.4 2.12.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.1 2.5.3 2.5.4 2.5.5 2.6.1 All 56 releases
slider-blocks / admin / dci / start.php

start.php in GutSlider – All in One Slider and Carousel Blocks for Gutenberg 2.9.8, at admin/dci/start.php

38 lines 831 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main File
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit;
8 }
9
10 if ( ! function_exists( 'dci_dynamic_init' ) ) {
11 function dci_dynamic_init( $params ) {
12
13 if ( ! is_admin() ) {
14 return;
15 }
16
17 $menu_slug = isset( $params['menu']['slug'] ) ? $params['menu']['slug'] : false;
18 $current_page = isset( $_GET['page'] ) ? $_GET['page'] : false;
19 $text_domain = isset( $params['text_domain'] ) && !empty( $params['text_domain'] ) ? $params['text_domain'] : $params['slug'];
20
21 /**
22 * For Attach SDK to current page
23 */
24 $params['current_page'] = $current_page;
25 $params['menu_slug'] = $menu_slug;
26 $params['text_domain'] = $text_domain;
27
28 /**
29 * Include SDK
30 */
31 require_once dirname( __FILE__ ) . '/insights.php';
32 if ( function_exists( 'dci_sdk_insights' ) ) {
33 dci_sdk_insights( $params );
34 }
35
36 }
37 }
38