PluginProbe
GutSlider – All in One Slider and Carousel Blocks for Gutenberg / 2.4.0
GutSlider – All in One Slider and Carousel Blocks for Gutenberg v2.4.0
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.4.0, at admin/dci/start.php

40 lines 731 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
19 if ( ! $menu_slug ) {
20 return;
21 }
22
23 $current_page = isset( $_GET['page'] ) ? $_GET['page'] : false;
24 /**
25 * Attach SDK to current page
26 */
27 $params['current_page'] = $current_page;
28 $params['menu_slug'] = $menu_slug;
29
30 /**
31 * Include SDK
32 */
33 require_once dirname( __FILE__ ) . '/insights.php';
34 if ( function_exists( 'dci_sdk_insights' ) ) {
35 dci_sdk_insights( $params );
36 }
37
38 }
39 }
40