# slider-blocks/2.5.5/admin/dci/start.php

GutSlider – All in One Slider and Carousel Blocks for Gutenberg, version 2.5.5. 40 lines.

- Page: https://pluginprobe.com/plugins/slider-blocks/2.5.5/code/admin/dci/start.php
- Raw: https://pluginprobe.com/plugins/slider-blocks/2.5.5/raw/admin/dci/start.php
- Modified: 2024-01-15T18:23:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/slider-blocks/2.5.5/code/admin/dci/start.php#L10-L20`.

```php
<?php
/**
 * Main File
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! function_exists( 'dci_dynamic_init' ) ) {
	function dci_dynamic_init( $params ) {

		if ( ! is_admin() ) {
			return;
		}

		$menu_slug = isset( $params['menu']['slug'] ) ? $params['menu']['slug'] : false;

		if ( ! $menu_slug ) {
			return;
		}

		$current_page = isset( $_GET['page'] ) ? $_GET['page'] : false;
		/**
		 * Attach SDK to current page
		 */
		$params['current_page'] = $current_page;
		$params['menu_slug']    = $menu_slug;

		/**
		 * Include SDK
		 */
		require_once dirname( __FILE__ ) . '/insights.php';
		if ( function_exists( 'dci_sdk_insights' ) ) {
			dci_sdk_insights( $params );
		}

	}
}

```
