<?php

use ElementPack\Base\Element_Pack_Base;
use ElementPack\Notices;
use Elementor\Settings;
use ElementPack\Classes\Utils;


/**
 * Element Pack Admin Settings Class
 */
class ElementPack_Admin_Settings {

    const PAGE_ID = 'element_pack_options';

    private $settings_api;

    public  $responseObj;
    public  $licenseMessage;
    public  $showMessage  = false;
    public  $slug         = "element_pack_options";
    private $is_activated = false;

    function __construct() {
        $this->settings_api = new ElementPack_Settings_API;

        $license_key   = self::get_license_key();
        $license_email = self::get_license_email();

        Element_Pack_Base::addOnDelete(function () {
            delete_option('element_pack_license_email');
            delete_option('element_pack_license_key');
        });

        if ( !defined('BDTEP_HIDE') ) {
            add_action('admin_init', [$this, 'admin_init']);
            add_action('admin_menu', [$this, 'admin_menu'], 201);
        }

        if ( Element_Pack_Base::CheckWPPlugin($license_key, $license_email, $error, $responseObj, BDTEP__FILE__) ) {

            if ( !defined('BDTEP_LO') ) {
                add_action('admin_post_element_pack_deactivate_license', [$this, 'action_deactivate_license']);

                $this->is_activated = true;
            }

        } else {

            if ( !defined('BDTEP_LO') ) {
                if ( !empty($licenseKey) && !empty($this->licenseMessage) ) {
                    $this->showMessage = true;
                }

                //echo $error;
                if ( $error ) {
                    $this->licenseMessage = $error;
                    add_action('admin_notices', [$this, 'license_activate_error_notice'], 10, 3);
                }


                add_action('admin_notices', [$this, 'license_activate_notice']);

                update_option("element_pack_license_key", "") || add_option("element_pack_license_key", "");
                add_action('admin_post_element_pack_activate_license', [$this, 'action_activate_license']);
            }
        }

    }

    public static function get_url() {
        return admin_url('admin.php?page=' . self::PAGE_ID);
    }

    function admin_init() {

        //set the settings
        $this->settings_api->set_sections($this->get_settings_sections());
        $this->settings_api->set_fields($this->element_pack_admin_settings());

        //initialize settings
        $this->settings_api->admin_init();
    }

    function admin_menu() {
        add_menu_page(
            BDTEP_TITLE . ' ' . esc_html__('Dashboard', 'bdthemes-element-pack'),
            BDTEP_TITLE,
            'manage_options',
            self::PAGE_ID,
            [$this, 'plugin_page'],
            $this->element_pack_icon(),
            58.5
        );

        add_submenu_page(
            self::PAGE_ID,
            BDTEP_TITLE,
            esc_html__('Core Widgets', 'bdthemes-element-pack'),
            'manage_options',
            self::PAGE_ID . '#element_pack_active_modules',
            [$this, 'display_page']
        );

        add_submenu_page(
            self::PAGE_ID,
            BDTEP_TITLE,
            esc_html__('3rd Party Widgets', 'bdthemes-element-pack'),
            'manage_options',
            self::PAGE_ID . '#element_pack_third_party_widget',
            [$this, 'display_page']
        );

        add_submenu_page(
            self::PAGE_ID,
            BDTEP_TITLE,
            esc_html__('Elementor Extend', 'bdthemes-element-pack'),
            'manage_options',
            self::PAGE_ID . '#element_pack_elementor_extend',
            [$this, 'display_page']
        );

        add_submenu_page(
            self::PAGE_ID,
            BDTEP_TITLE,
            esc_html__('API Settings', 'bdthemes-element-pack'),
            'manage_options',
            self::PAGE_ID . '#element_pack_api_settings',
            [$this, 'display_page']
        );

        if ( !defined('BDTEP_LO') ) {

            add_submenu_page(
                self::PAGE_ID,
                BDTEP_TITLE,
                esc_html__('Other Settings', 'bdthemes-element-pack'),
                'manage_options',
                self::PAGE_ID . '#element_pack_other_settings',
                [$this, 'display_page']
            );

            add_submenu_page(
                self::PAGE_ID,
                BDTEP_TITLE,
                esc_html__('License', 'bdthemes-element-pack'),
                'manage_options',
                self::PAGE_ID . '#element_pack_license_settings',
                [$this, 'display_page']
            );

        }
    }

    function element_pack_icon() {
        return 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjIsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHdpZHRoPSIyMzAuN3B4IiBoZWlnaHQ9IjI1NC44MXB4IiB2aWV3Qm94PSIwIDAgMjMwLjcgMjU0LjgxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMzAuNyAyNTQuODE7Ig0KCSB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNGRkZGRkY7fQ0KPC9zdHlsZT4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02MS4wOSwyMjkuMThIMjguOTVjLTMuMTcsMC01Ljc1LTIuNTctNS43NS01Ljc1bDAtMTkyLjA3YzAtMy4xNywyLjU3LTUuNzUsNS43NS01Ljc1aDMyLjE0DQoJYzMuMTcsMCw1Ljc1LDIuNTcsNS43NSw1Ljc1djE5Mi4wN0M2Ni44MywyMjYuNjEsNjQuMjYsMjI5LjE4LDYxLjA5LDIyOS4xOHoiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0yMDcuNSwzMS4zN3YzMi4xNGMwLDMuMTctMi41Nyw1Ljc1LTUuNzUsNS43NUg5MC4wNGMtMy4xNywwLTUuNzUtMi41Ny01Ljc1LTUuNzVWMzEuMzcNCgljMC0zLjE3LDIuNTctNS43NSw1Ljc1LTUuNzVoMTExLjcyQzIwNC45MywyNS42MiwyMDcuNSwyOC4yLDIwNy41LDMxLjM3eiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTIwNy41LDExMS4zM3YzMi4xNGMwLDMuMTctMi41Nyw1Ljc1LTUuNzUsNS43NUg5MC4wNGMtMy4xNywwLTUuNzUtMi41Ny01Ljc1LTUuNzV2LTMyLjE0DQoJYzAtMy4xNywyLjU3LTUuNzUsNS43NS01Ljc1aDExMS43MkMyMDQuOTMsMTA1LjU5LDIwNy41LDEwOC4xNiwyMDcuNSwxMTEuMzN6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjA3LjUsMTkxLjN2MzIuMTRjMCwzLjE3LTIuNTcsNS43NS01Ljc1LDUuNzVIOTAuMDRjLTMuMTcsMC01Ljc1LTIuNTctNS43NS01Ljc1VjE5MS4zDQoJYzAtMy4xNywyLjU3LTUuNzUsNS43NS01Ljc1aDExMS43MkMyMDQuOTMsMTg1LjU1LDIwNy41LDE4OC4xMywyMDcuNSwxOTEuM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xNjkuNjIsMjUuNjJoMzIuMTRjMy4xNywwLDUuNzUsMi41Nyw1Ljc1LDUuNzV2MTEyLjFjMCwzLjE3LTIuNTcsNS43NS01Ljc1LDUuNzVoLTMyLjE0DQoJYy0zLjE3LDAtNS43NS0yLjU3LTUuNzUtNS43NVYzMS4zN0MxNjMuODcsMjguMiwxNjYuNDQsMjUuNjIsMTY5LjYyLDI1LjYyeiIvPg0KPC9zdmc+DQo=';
    }

    function get_settings_sections() {
        $sections = [
            [
                'id'    => 'element_pack_active_modules',
                'title' => esc_html__('Core Widgets', 'bdthemes-element-pack')
            ],
            [
                'id'    => 'element_pack_third_party_widget',
                'title' => esc_html__('3rd Party Widgets', 'bdthemes-element-pack')
            ],
            [
                'id'    => 'element_pack_elementor_extend',
                'title' => esc_html__('Elementor Extend', 'bdthemes-element-pack')
            ],
            [
                'id'    => 'element_pack_api_settings',
                'title' => esc_html__('API Settings', 'bdthemes-element-pack'),
            ],
            [
                'id'    => 'element_pack_other_settings',
                'title' => esc_html__('Other Settings', 'bdthemes-element-pack'),
            ],
        ];
        return $sections;
    }

    protected function element_pack_admin_settings() {
        $settings_fields = [
            'element_pack_active_modules'   => [
                [
                    'name'         => 'accordion',
                    'label'        => esc_html__('Accordion', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/accordion/',
                    'video_url'    => 'https://youtu.be/DP3XNV1FEk0',

                ],
                [
                    'name'         => 'advanced-button',
                    'label'        => esc_html__('Advanced Button', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-button/',
                    'video_url'    => 'https://youtu.be/Lq_st2IWZiE',
                ],
                [
                    'name'         => 'advanced-gmap',
                    'label'        => esc_html__('Advanced Google Map', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-google-map/',
                    'video_url'    => 'https://youtu.be/qaZ-hv6UPDY',
                ],
                [
                    'name'         => 'advanced-heading',
                    'label'        => esc_html__('Advanced Heading', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-heading/',
                    'video_url'    => 'https://youtu.be/E1jYInKYTR0',
                ],
                [
                    'name'         => 'advanced-counter',
                    'label'        => esc_html__('Advanced Counter', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-counter/',
                    'video_url'    => 'https://youtu.be/Ydok6ImEQvE',
                ],
                [
                    'name'         => 'advanced-icon-box',
                    'label'        => esc_html__('Advanced Icon Box', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-icon-box/',
                    'video_url'    => 'https://youtu.be/IU4s5Cc6CUA',
                ],
                [
                    'name'         => 'advanced-image-gallery',
                    'label'        => esc_html__('Advanced Image Gallery', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom gallery',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-image-gallery/',
                    'video_url'    => 'https://youtu.be/se7BovYbDok',
                ],
                [
                    'name'         => 'advanced-progress-bar',
                    'label'        => esc_html__('Advanced Progress Bar', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-progress-bar/',
                    'video_url'    => 'https://youtu.be/7hnmMdd2-Yo',
                ],
                [
                    'name'         => 'advanced-divider',
                    'label'        => esc_html__('Advanced Divider', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-divider/',
                    'video_url'    => 'https://youtu.be/HbtNHQJm3m0',
                ],
                [
                    'name'         => 'animated-heading',
                    'label'        => esc_html__('Animated Heading', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/animated-heading/',
                    'video_url'    => 'https://youtu.be/xypAmQodUYA',
                ],
                [
                    'name'         => 'audio-player',
                    'label'        => esc_html__('Audio Player', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/advanced-google-map/',
                    'video_url'    => 'https://youtu.be/VHAEO1xLVxU',
                ],
                [
                    'name'         => 'business-hours',
                    'label'        => esc_html__('Business Hours', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/business-hours',
                    'video_url'    => 'https://youtu.be/1QfZ-os75rQ',
                ],
                [
                    'name'         => 'dual-button',
                    'label'        => esc_html__('Dual Button', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/dual-button/',
                    'video_url'    => 'https://youtu.be/7hWWqHEr6s8',
                ],
                [
                    'name'         => 'chart',
                    'label'        => esc_html__('Chart', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/charts',
                    'video_url'    => 'https://youtu.be/-1WVTzTyti0',
                ],
                [
                    'name'         => 'call-out',
                    'label'        => esc_html__('Call Out', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/call-out/',
                    'video_url'    => 'https://youtu.be/1tNppRHvSvQ',
                ],
                [
                    'name'         => 'carousel',
                    'label'        => esc_html__('Carousel', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post carousel',
                    'demo_url'     => 'https://elementpack.pro/demo/element/carousel',
                    'video_url'    => 'https://youtu.be/TMwdfYDmTQo',
                ],
                [
                    'name'         => 'changelog',
                    'label'        => esc_html__('Changelog', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/changelog',
                    'video_url'    => 'https://youtu.be/835Fsi2jGRI',
                ],
                [
                    'name'         => 'circle-menu',
                    'label'        => esc_html__('Circle Menu', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/circle-menu/',
                    'video_url'    => 'https://www.youtube.com/watch?v=rfW22T-U7Ag',
                ],
                [
                    'name'         => 'circle-info',
                    'label'        => esc_html__('Circle Info', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/circle-info/',
                    'video_url'    => 'https://youtu.be/PIQ6BJtNpNU',
                ],
                [
                    'name'         => 'cookie-consent',
                    'label'        => esc_html__('Cookie Consent', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/cookie-consent/',
                    'video_url'    => 'https://youtu.be/BR4t5ngDzqM',
                ],
                [
                    'name'         => 'countdown',
                    'label'        => esc_html__('Countdown', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/event-calendar-countdown',
                    'video_url'    => 'https://youtu.be/oxqHEDyzvIM',
                ],
                [
                    'name'         => 'contact-form',
                    'label'        => esc_html__('Simple Contact Form', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/simple-contact-form/',
                    'video_url'    => 'https://youtu.be/faIeyW7LOJ8',
                ],
                [
                    'name'         => 'comment',
                    'label'        => esc_html__('Comment', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/comment/',
                    'video_url'    => 'https://youtu.be/csvMTyUx7Hs',
                ],
                [
                    'name'         => 'crypto-currency-card',
                    'label'        => esc_html__('Crypto Currency Card', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/crypto-currency-card/',
                    'video_url'    => 'https://youtu.be/F13YPkFkLso',
                ],
                [
                    'name'         => 'crypto-currency-table',
                    'label'        => esc_html__('Crypto Currency Table', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/crypto-currency-table/',
                    'video_url'    => 'https://youtu.be/F13YPkFkLso',
                ],
                [
                    'name'         => 'custom-gallery',
                    'label'        => esc_html__('Custom Gallery', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'custom gallery',
                    'demo_url'     => 'https://elementpack.pro/demo/element/custom-gallery/',
                    'video_url'    => 'https://youtu.be/2fAF8Rt7FbQ',
                ],
                [
                    'name'         => 'custom-carousel',
                    'label'        => esc_html__('Custom Carousel', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom carousel',
                    'demo_url'     => 'https://elementpack.pro/demo/element/custom-carousel/',
                    'video_url'    => 'https://youtu.be/TMwdfYDmTQo',
                ],
                [
                    'name'         => 'dark-mode',
                    'label'        => esc_html__('Dark Mode', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/dark-mode',
                    'video_url'    => 'https://youtu.be/nuYa-0sWFxU',
                ],

                [
                    'name'         => 'document-viewer',
                    'label'        => esc_html__('Document Viewer', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/document-viewer',
                    'video_url'    => 'https://www.youtube.com/watch?v=8Ar9NQe93vg',
                ],

                [
                    'name'         => 'device-slider',
                    'label'        => esc_html__('Device Slider', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom slider',
                    'demo_url'     => 'https://elementpack.pro/demo/element/device-slider/',
                    'video_url'    => 'https://youtu.be/GACXtqun5Og',
                ],
                [
                    'name'         => 'dropbar',
                    'label'        => esc_html__('Dropbar', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/dropbar/',
                    'video_url'    => 'https://youtu.be/cXMq8nOCdqk',
                ],
                [
                    'name'         => 'fancy-card',
                    'label'        => esc_html__('Fancy Card', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/fancy-card/',
                    'video_url'    => 'https://youtu.be/BXdVB1pLfXE',
                ],
                [
                    'name'         => 'fancy-list',
                    'label'        => esc_html__('Fancy List', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/fancy-list/',
                    'video_url'    => 'https://youtu.be/t1_5uys8bto',
                ],
                [
                    'name'         => 'fancy-icons',
                    'label'        => esc_html__('Fancy Icons', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/fancy-icons/',
                    'video_url'    => 'https://youtu.be/Y4NoiuW2yBM',
                ],
                [
                    'name'         => 'fancy-slider',
                    'label'        => esc_html__('Fancy Slider', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/fancy-slider/',
                    'video_url'    => 'https://youtu.be/UGBnjbp90eA',
                ],
                [
                    'name'         => 'fancy-tabs',
                    'label'        => esc_html__('Fancy Tabs', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/fancy-tabs/',
                    'video_url'    => 'https://youtu.be/wBTRSjofce4',
                ],
                [
                    'name'         => 'flip-box',
                    'label'        => esc_html__('Flip Box', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/flip-box/',
                    'video_url'    => 'https://youtu.be/FLmKzk9KbQg',
                ],
                [
                    'name'         => 'featured-box',
                    'label'        => esc_html__('Featured Box', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/featured-box/',
                    'video_url'    => 'https://youtu.be/Qe4yYXajhQg',
                ],
                [
                    'name'         => 'google-reviews',
                    'label'        => esc_html__('Google Reviews', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'slider',
                    'demo_url'     => 'https://elementpack.pro/demo/element/google-reviews/',
                    'video_url'    => 'https://youtu.be/pp0mQpyKqfs',
                ],
                [
                    'name'         => 'iconnav',
                    'label'        => esc_html__('Icon Nav', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/icon-nav/',
                    'video_url'    => 'https://youtu.be/Q4YY8pf--ig',
                ],
                [
                    'name'         => 'iframe',
                    'label'        => esc_html__('Iframe', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/iframe/',
                    'video_url'    => 'https://youtu.be/3ABRMLE_6-I',
                ],
                [
                    'name'         => 'instagram',
                    'label'        => esc_html__('Instagram', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others carousel',
                    'demo_url'     => 'https://elementpack.pro/demo/element/instagram-feed/',
                    'video_url'    => 'https://youtu.be/uj9WpuFIZb8',
                ],
                [
                    'name'         => 'image-accordion',
                    'label'        => esc_html__('Image Accordion', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'custom new',
                    'demo_url'     => 'https://elementpack.pro/demo/element/image-accordion/',
                    'video_url'    => 'https://youtu.be/jQWU4kxXJpM',
                ],
                [
                    'name'         => 'image-compare',
                    'label'        => esc_html__('Image Compare', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/image-compare/',
                    'video_url'    => 'https://youtu.be/-Kwjlg0Fwk0',
                ],
                [
                    'name'         => 'image-expand',
                    'label'        => esc_html__('Image Expand', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom new',
                    'demo_url'     => 'https://elementpack.pro/demo/element/image-expand/',
                    'video_url'    => 'https://youtu.be/gNg7vpypycY',
                ],
                [
                    'name'         => 'image-magnifier',
                    'label'        => esc_html__('Image Magnifier', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/image-magnifier/',
                    'video_url'    => 'https://youtu.be/GSy3pLihNPY',
                ],
                [
                    'name'         => 'interactive-card',
                    'label'        => esc_html__('Interactive Card', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/interactive-card/',
                    'video_url'    => 'https://youtu.be/r8IXJUD3PA4',
                ],
                [
                    'name'         => 'helpdesk',
                    'label'        => esc_html__('Help Desk', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/help-desk/',
                    'video_url'    => 'https://youtu.be/bO__skhy4yk',
                ],
                [
                    'name'         => 'hover-box',
                    'label'        => esc_html__('Hover Box', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/hover-box/',
                    'video_url'    => 'https://youtu.be/lWdF9-SV-2I',
                ],
                [
                    'name'         => 'hover-video',
                    'label'        => esc_html__('Hover Video', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom new',
                    'demo_url'     => 'https://elementpack.pro/demo/element/hover-video/',
                    'video_url'    => 'https://youtu.be/RgoWlIm5KOo',
                ],
                [
                    'name'         => 'honeycombs',
                    'label'        => esc_html__('Honeycombs', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/honeycombs/',
                    'video_url'    => 'https://youtu.be/iTWXzc329vQ',
                ],
                [
                    'name'         => 'lightbox',
                    'label'        => esc_html__('Lightbox', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/lightbox/',
                    'video_url'    => 'https://youtu.be/1iKQD4HfZG4',
                ],
                [
                    'name'         => 'lottie-image',
                    'label'        => esc_html__('Lottie Image', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/lottie-image/',
                    'video_url'    => 'https://youtu.be/CbODBtLTxWc',
                ],
                [
                    'name'         => 'lottie-icon-box',
                    'label'        => esc_html__('Lottie Icon Box', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/lottie-icon-box/',
                    'video_url'    => 'https://youtu.be/1jKFSglW6qE',
                ],
                [
                    'name'         => 'logo-grid',
                    'label'        => esc_html__('Logo Grid', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/logo-grid/',
                    'video_url'    => 'https://youtu.be/Go1YE3O23J4',
                ],
                [
                    'name'         => 'logo-carousel',
                    'label'        => esc_html__('Logo Carousel', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/logo-carousel/',
                    'video_url'    => 'https://youtu.be/xe_SA0ZgAvA',
                ],
                [
                    'name'         => 'modal',
                    'label'        => esc_html__('Modal', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/modal/',
                    'video_url'    => 'https://youtu.be/4qRa-eYDGZU',
                ],
                [
                    'name'         => 'mailchimp',
                    'label'        => esc_html__('Mailchimp', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/mailchimp/',
                    'video_url'    => 'https://youtu.be/hClaXvxvkXM',
                ],
                [
                    'name'         => 'marker',
                    'label'        => esc_html__('Marker', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/marker/',
                    'video_url'    => 'https://youtu.be/1iKQD4HfZG4',
                ],
                [
                    'name'         => 'member',
                    'label'        => esc_html__('Member', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/buddypress-member/',
                    'video_url'    => 'https://youtu.be/m8_KOHzssPA',
                ],
                [
                    'name'         => 'navbar',
                    'label'        => esc_html__('Navbar', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/navbar/',
                    'video_url'    => 'https://youtu.be/ZXdDAi9tCxE',
                ],
                [
                    'name'         => 'news-ticker',
                    'label'        => esc_html__('News Ticker', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/news-ticker',
                    'video_url'    => 'https://youtu.be/FmpFhNTR7uY',
                ],
                [
                    'name'         => 'notification',
                    'label'        => esc_html__('Notification', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others new',
                    'demo_url'     => 'https://elementpack.pro/demo/element/notification',
                    'video_url'    => '',
                ],
                [
                    'name'         => 'offcanvas',
                    'label'        => esc_html__('Offcanvas', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/offcanvas/',
                    'video_url'    => 'https://youtu.be/CrrlirVfmQE',
                ],
                [
                    'name'         => 'open-street-map',
                    'label'        => esc_html__('Open Street Map', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/open-street-map',
                    'video_url'    => 'https://youtu.be/DCQ5g7yleyk',
                ],
                [
                    'name'         => 'price-list',
                    'label'        => esc_html__('Price List', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/price-list/',
                    'video_url'    => 'https://youtu.be/QsXkIYwfXt4',
                ],
                [
                    'name'         => 'price-table',
                    'label'        => esc_html__('Price Table', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/pricing-table',
                    'video_url'    => 'https://youtu.be/OWGRjG1mxOM',
                ],
                [
                    'name'         => 'panel-slider',
                    'label'        => esc_html__('Panel Slider', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'custom slider',
                    'demo_url'     => 'https://elementpack.pro/demo/element/panel-slider/',
                    'video_url'    => 'https://youtu.be/_piVTeJd0g4',
                ],
                [
                    'name'         => 'post-slider',
                    'label'        => esc_html__('Post Slider', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post slider',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post-slider',
                    'video_url'    => 'https://youtu.be/oPYzWVLPF7A',
                ],
                [
                    'name'         => 'post-card',
                    'label'        => esc_html__('Post Card', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post-card/',
                    'video_url'    => 'https://youtu.be/VKtQCjnEJvE',
                ],
                [
                    'name'         => 'post-block',
                    'label'        => esc_html__('Post Block', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post-block/',
                    'video_url'    => 'https://youtu.be/bFEyizMaPmw',
                ],
                [
                    'name'         => 'post-block-modern',
                    'label'        => esc_html__('Post Block Modern', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post-block/',
                    'video_url'    => 'https://youtu.be/bFEyizMaPmw',
                ],
                [
                    'name'         => 'progress-pie',
                    'label'        => esc_html__('Progress Pie', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/progress-pie/',
                    'video_url'    => 'https://youtu.be/c5ap86jbCeg',
                ],
                [
                    'name'         => 'post-gallery',
                    'label'        => esc_html__('Post Gallery', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post gallery',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post-gallery',
                    'video_url'    => 'https://youtu.be/iScykjTKlNA',
                ],
                [
                    'name'         => 'post-grid',
                    'label'        => esc_html__('Post Grid', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post%20grid/',
                    'video_url'    => 'https://youtu.be/z3gWwPIsCkg',
                ],
                [
                    'name'         => 'post-grid-tab',
                    'label'        => esc_html__('Post Grid Tab', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post-grid-tab',
                    'video_url'    => 'https://youtu.be/kFEL4AGnIv4',
                ],
                [
                    'name'         => 'post-list',
                    'label'        => esc_html__('Post List', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/post-list/',
                    'video_url'    => 'https://youtu.be/5aQTAsLRF0o',
                ],
                [
                    'name'         => 'profile-card',
                    'label'        => esc_html__('Profile Card', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/profile-card/',
                    'video_url'    => 'https://youtu.be/Slnx_mxDBqo',
                ],
                [
                    'name'         => 'protected-content',
                    'label'        => esc_html__('Protected Content', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/protected-content/',
                    'video_url'    => 'https://youtu.be/jcLWace-JpE',
                ],
                [
                    'name'         => 'qrcode',
                    'label'        => esc_html__('QR Code', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/qr-code/',
                    'video_url'    => 'https://youtu.be/3ofLAjpnmO8',
                ],
                [
                    'name'         => 'reading-progress',
                    'label'        => esc_html__('Reading Progress', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/reading-progress/',
                    'video_url'    => 'https://youtu.be/cODL1E2f9FI',
                ],
                [
                    'name'         => 'slider',
                    'label'        => esc_html__('Slider', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'custom slider',
                    'demo_url'     => 'https://elementpack.pro/demo/element/layer-slider/',
                    'video_url'    => 'https://youtu.be/SI4K4zuNOoE',
                ],
                [
                    'name'         => 'slideshow',
                    'label'        => esc_html__('Slideshow', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/slideshow/',
                    'video_url'    => 'https://youtu.be/BrrKmDfJ5ZI',
                ],
                [
                    'name'        => 'scrollnav',
                    'label'       => esc_html__('Scrollnav', 'bdthemes-element-pack'),
                    'type'        => 'checkbox',
                    'default'     => "on",
                    'widget_type' => 'pro',
                    'demo_url'    => 'https://elementpack.pro/demo/element/scrollnav/',
                    'video_url'   => 'https://youtu.be/P3DfE53_w5I',
                ],
                [
                    'name'         => 'search',
                    'label'        => esc_html__('Search', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/search/',
                    'video_url'    => 'https://youtu.be/H3F1LHc97Gk',
                ],
                [
                    'name'         => 'scroll-button',
                    'label'        => esc_html__('Scroll Button', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/search/',
                    'video_url'    => 'https://youtu.be/y8LJCO3tQqk',
                ],
                [
                    'name'         => 'scroll-image',
                    'label'        => esc_html__('Scroll Image', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/scroll-image',
                    'video_url'    => 'https://youtu.be/UpmtN1GsJkQ',
                ],
                [
                    'name'         => 'source-code',
                    'label'        => esc_html__('Source Code', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/source-code',
                    'video_url'    => 'https://youtu.be/vnqpD9aAmzg',
                ],
                [
                    'name'         => 'single-post',
                    'label'        => esc_html__('Single Post', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/single-post',
                    'video_url'    => 'https://youtu.be/32g-F4_Avp4',
                ],
                [
                    'name'         => 'social-share',
                    'label'        => esc_html__('Social Share', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/social-share/',
                    'video_url'    => 'https://youtu.be/3OPYfeVfcb8',
                ],
                [
                    'name'         => 'social-proof',
                    'label'        => esc_html__('Social Proof', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/social-proof/',
                    'video_url'    => 'https://youtu.be/jpIX4VHzSxA',
                ],
                [
                    'name'         => 'step-flow',
                    'label'        => esc_html__('Step Flow', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/step-flow/',
                    'video_url'    => 'https://youtu.be/YNjbt-5GO4k',
                ],
                [
                    'name'         => 'switcher',
                    'label'        => esc_html__('Switcher', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/switcher/',
                    'video_url'    => 'https://youtu.be/BIEFRxDF1UE',
                ],
                [
                    'name'         => 'svg-image',
                    'label'        => esc_html__('SVG Image', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/svg-image/',
                    'video_url'    => 'https://youtu.be/XRbjpcp5dJ0',
                ],
                [
                    'name'         => 'tabs',
                    'label'        => esc_html__('Tabs', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/tabs/',
                    'video_url'    => 'https://youtu.be/1BmS_8VpBF4',
                ],
                [
                    'name'         => 'table',
                    'label'        => esc_html__('Table', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/crypto-currency-table/',
                    'video_url'    => 'https://youtu.be/dviKkEPsg04',
                ],
                [
                    'name'         => 'table-of-content',
                    'label'        => esc_html__('Table Of Content', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/table-of-content-test-post/',
                    'video_url'    => 'https://youtu.be/DbPrqUD8cOY',
                ],
                [
                    'name'         => 'tags-cloud',
                    'label'        => esc_html__('Tags Cloud', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom new',
                    'demo_url'     => 'https://elementpack.pro/demo/element/tags-cloud/',
                    'video_url'    => '#',
                ],
                [
                    'name'         => 'timeline',
                    'label'        => esc_html__('Timeline', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post',
                    'demo_url'     => 'https://elementpack.pro/demo/element/timeline/',
                    'video_url'    => 'https://youtu.be/lp4Zqn6niXU',
                ],
                [
                    'name'         => 'time-zone',
                    'label'        => esc_html__('Time Zone', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/time-zone/',
                    'video_url'    => 'https://youtu.be/WOMIk_FVRz4',
                ],
                [
                    'name'         => 'trailer-box',
                    'label'        => esc_html__('Trailer Box', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/trailer-box/',
                    'video_url'    => 'https://youtu.be/3AR5RlBAAYg',
                ],
                [
                    'name'         => 'thumb-gallery',
                    'label'        => esc_html__('Thumb Gallery', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'post gallery',
                    'demo_url'     => 'https://elementpack.pro/demo/element/thumb-gallery/',
                    'video_url'    => 'https://youtu.be/NJ5ZR-9ODus',
                ],
                [
                    'name'         => 'toggle',
                    'label'        => esc_html__('Toggle', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'free',
                    'content_type' => 'custom',
                    'demo_url'     => 'https://elementpack.pro/demo/element/toggle/',
                    'video_url'    => 'https://youtu.be/7_jk_NvbKls',
                ],
                [
                    'name'         => 'twitter-carousel',
                    'label'        => esc_html__('Twitter Carousel', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others carousel',
                    'demo_url'     => 'https://elementpack.pro/demo/element/twitter-carousel/',
                    'video_url'    => 'https://youtu.be/eeyR1YtUFZw',
                ],
                [
                    'name'         => 'twitter-grid',
                    'label'        => esc_html__('Twitter Grid', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'free',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/twitter-grid/',
                    'video_url'    => '',
                ],
                [
                    'name'         => 'twitter-slider',
                    'label'        => esc_html__('Twitter Slider', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others slider',
                    'demo_url'     => 'https://elementpack.pro/demo/element/twitter-slider',
                    'video_url'    => 'https://youtu.be/Bd3I7ipqMms',
                ],
                [
                    'name'         => 'threesixty-product-viewer',
                    'label'        => esc_html__('360 Product Viewer', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/360-product-viewer/',
                    'video_url'    => 'https://youtu.be/60Q4sK-FzLI',
                ],
                [
                    'name'         => 'user-login',
                    'label'        => esc_html__('User Login', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/user-login/',
                    'video_url'    => 'https://youtu.be/JLdKfv_-R6c',
                ],
                [
                    'name'         => 'user-register',
                    'label'        => esc_html__('User Register', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "on",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/user-register/',
                    'video_url'    => 'https://youtu.be/hTjZ1meIXSY',
                ],
                [
                    'name'         => 'video-gallery',
                    'label'        => esc_html__('Video Gallery', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'custom gallery',
                    'demo_url'     => 'https://elementpack.pro/demo/element/video-gallery/',
                    'video_url'    => 'https://youtu.be/wbkou6p7l3s',
                ],
                [
                    'name'         => 'video-player',
                    'label'        => esc_html__('Video Player', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/video-player/',
                    'video_url'    => 'https://youtu.be/ksy2uZ5Hg3M',
                ],
                [
                    'name'         => 'weather',
                    'label'        => esc_html__('Weather', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'widget_type'  => 'pro',
                    'content_type' => 'others',
                    'demo_url'     => 'https://elementpack.pro/demo/element/weather/',
                    'video_url'    => 'https://youtu.be/Vjyl4AAAufg',
                ],
            ],
            'element_pack_elementor_extend' => [
                [
                    'name'      => 'widget_parallax_show',
                    'label'     => esc_html__('Widget Parallax Effects', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "on",
                    'demo_url'  => 'https://elementpack.pro/demo/element/element-parallax',
                    'video_url' => 'https://youtu.be/Aw9TnT_L1g8',
                ],
                [
                    'name'      => 'section_parallax_show',
                    'label'     => esc_html__('Background Parallax', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "on",
                    'demo_url'  => 'https://elementpack.pro/demo/element/parallax-background/',
                    'video_url' => 'https://youtu.be/UI3xKt2IlCQ',
                ],
                [
                    'name'      => 'section_parallax_content_show',
                    'label'     => esc_html__('Section Parallax Images', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "on",
                    'demo_url'  => 'https://elementpack.pro/demo/element/parallax-section/',
                    'video_url' => 'https://youtu.be/nMzk55831MY',
                ],
                [
                    'name'      => 'section_particles_show',
                    'label'     => esc_html__('Section Particles', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "on",
                    'demo_url'  => 'https://elementpack.pro/demo/element/section-particles/',
                    'video_url' => 'https://youtu.be/8mylXgB2bYg',
                ],
                [
                    'name'      => 'section_schedule_show',
                    'label'     => esc_html__('Section Schedule', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "on",
                    'demo_url'  => '',
                    'video_url' => 'https://youtu.be/qWaJBg3PS-Q',
                ],
                [
                    'name'      => 'section_sticky_show',
                    'label'     => esc_html__('Section Sticky', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "on",
                    'demo_url'  => 'https://elementpack.pro/demo/sticky-section/',
                    'video_url' => 'https://youtu.be/Vk0EoQSX0K8',
                ],
                [
                    'name'      => 'widget_tooltip_show',
                    'label'     => esc_html__('Widget Tooltip', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "off",
                    'demo_url'  => 'https://elementpack.pro/demo/element/widget-tooltip/',
                    'video_url' => 'https://youtu.be/LJgF8wt7urw',
                ],
                [
                    'name'      => 'widget_transform_effects',
                    'label'     => esc_html__('Widget Transform', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "off",
                    'demo_url'  => 'https://elementpack.pro/demo/element/transform-example/',
                    'video_url' => 'https://youtu.be/Djc6bP7CF18',
                ],

                [
                    'name'      => 'widget_equal_height',
                    'label'     => esc_html__('Widget Equal Height', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "off",
                    'demo_url'  => 'https://elementpack.pro/demo/element/widget-equal-height/',
                    'video_url' => 'https://youtu.be/h19c3FOxYlc',
                ],

                [
                    'name'         => 'visibility_control',
                    'label'        => esc_html__('Visibility Control', 'bdthemes-element-pack'),
                    'type'         => 'checkbox',
                    'default'      => "off",
                    'content_type' => 'new',
                    'demo_url'     => 'https://elementpack.pro/demo/element/visibility-control/',
                    'video_url'    => '',
                ],

            ],
            'element_pack_api_settings'     => [
                [
                    'name'              => 'google_map_key',
                    'label'             => esc_html__('Google Map API Key', 'bdthemes-element-pack'),
                    'desc'              => __('Go to <a href="https://developers.google.com/maps/documentation/javascript/get-api-key" target="_blank">https://developers.google.com</a> and <a href="https://console.cloud.google.com/google/maps-apis/overview">generate the API key</a> and insert here. This API key needs for show Advanced Google Map widget correctly. API Key also works for Google Review widget so you must enabled Places API too.', 'bdthemes-element-pack'),
                    'placeholder'       => '------------- -------------------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field',
                    'video_url'         => 'https://youtu.be/cssyofmylFA',
                ],
                [
                    'name'              => 'disqus_user_name',
                    'label'             => esc_html__('Disqus User Name', 'bdthemes-element-pack'),
                    'desc'              => __('Go to <a href="https://help.disqus.com/customer/portal/articles/1255134-updating-your-disqus-settings#account" target="_blank">https://help.disqus.com/</a> for know how to get user name of your disqus account.', 'bdthemes-element-pack'),
                    'placeholder'       => 'for example: bdthemes',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name'  => 'social_login_group_start',
                    'label' => esc_html__('Social Login Access', 'bdthemes-element-pack'),
                    'desc'  => __('Please fill up below fields for enbled your social login feature in user login widget.', 'bdthemes-element-pack'),
                    'type'  => 'start_group',
                ],

                [
                    'name'              => 'facebook_app_id',
                    'label'             => esc_html__('Facebook APP ID', 'bdthemes-element-pack'),
                    'desc'              => __('Go to <a href="https://developers.facebook.com/docs/apps/register#create-app" target="_blank">https://developers.facebook.com</a> for create your facebook APP ID.', 'bdthemes-element-pack'),
                    'placeholder'       => '---------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'facebook_app_secret',
                    'label'             => esc_html__('Facebook APP Secret', 'bdthemes-element-pack'),
                    'desc'              => __('Go to your Google <a href="https://developers.facebook.com/docs/apps/register#create-app" target="_blank">developer</a>', 'bdthemes-element-pack'),
                    'placeholder'       => '---------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'google_client_id',
                    'label'             => esc_html__('Google Client ID', 'bdthemes-element-pack'),
                    'desc'              => __('Go to your Google <a href="https://console.developers.google.com/" target="_blank">developer</a> > Account.', 'bdthemes-element-pack'),
                    'placeholder'       => '---------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name' => 'social_login_group_end',
                    'type' => 'end_group',
                ],


                //                [
                //                    'name'              => 'instagram_access_token',
                //                    'label'             => esc_html__( 'Instagram Access Token', 'bdthemes-element-pack' ),
                //                    'desc'              => __( 'Go to <a href="https://instagram.pixelunion.net/" target="_blank">This Link</a> and Generate the access token then copy and paste here.', 'bdthemes-element-pack' ),
                //                    'placeholder'       => '---------------',
                //                    'type'              => 'text',
                //                    'sanitize_callback' => 'sanitize_text_field'
                //                ],
                [
                    'name'      => 'instagram_group_start',
                    'label'     => esc_html__('Instagram Access', 'bdthemes-element-pack'),
                    'desc'      => __('Go to <a href="https://developers.facebook.com/docs/instagram-basic-display-api/getting-started" target="_blank">https://developers.facebook.com/docs/instagram-basic-display-api/getting-started</a> for create your Consumer key and Access Token.', 'bdthemes-element-pack'),
                    'type'      => 'start_group',
                    'video_url' => 'https://youtu.be/IrQVteaaAow',
                ],

                [
                    'name'              => 'instagram_app_id',
                    'label'             => esc_html__('Instagram App ID', 'bdthemes-element-pack'),
                    'placeholder'       => '---------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'instagram_app_secret',
                    'label'             => esc_html__('Instagram App Secret', 'bdthemes-element-pack'),
                    'placeholder'       => '---------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name'              => 'instagram_access_token',
                    'label'             => esc_html__('Instagram Access Token', 'bdthemes-element-pack'),
                    'desc'              => __('Go to <a href="https://instagram.pixelunion.net/" target="_blank">This Link</a> and Generate the access token then copy and paste here.', 'bdthemes-element-pack'),
                    'placeholder'       => '---------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name' => 'instagram_group_end',
                    'type' => 'end_group',
                ],

                [
                    'name'      => 'twitter_group_start',
                    'label'     => esc_html__('Twitter Access', 'bdthemes-element-pack'),
                    'desc'      => __('Go to <a href="https://developer.twitter.com/en/apps/create/" target="_blank">https://developer.twitter.com/en/apps/create</a> for create your Consumer key and Access Token.', 'bdthemes-element-pack'),
                    'type'      => 'start_group',
                    'video_url' => 'https://youtu.be/IrQVteaaAow',
                ],

                [
                    'name'              => 'twitter_name',
                    'label'             => esc_html__('User Name', 'bdthemes-element-pack'),
                    'placeholder'       => 'for example: bdthemescom',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'twitter_consumer_key',
                    'label'             => esc_html__('Consumer Key', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'twitter_consumer_secret',
                    'label'             => esc_html__('Consumer Secret', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'twitter_access_token',
                    'label'             => esc_html__('Access Token', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'twitter_access_token_secret',
                    'label'             => esc_html__('Access Token Secret', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name' => 'twitter_group_end',
                    'type' => 'end_group',
                ],

                [
                    'name'  => 'recaptcha_group_start',
                    'label' => esc_html__('reCAPTCHA Access', 'bdthemes-element-pack'),
                    'desc'  => __('Go to your Google <a href="https://www.google.com/recaptcha/" target="_blank">reCAPTCHA</a> > Account > Generate Keys (reCAPTCHA V2 > Invisible) and Copy and Paste here.', 'bdthemes-element-pack'),
                    'type'  => 'start_group',
                ],

                [
                    'name'              => 'recaptcha_site_key',
                    'label'             => esc_html__('Site key', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'recaptcha_secret_key',
                    'label'             => esc_html__('Secret key', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name' => 'recaptcha_group_end',
                    'type' => 'end_group',
                ],

                [
                    'name'  => 'mailchimp_group_start',
                    'label' => esc_html__('Mailchimp Access', 'bdthemes-element-pack'),
                    'desc'  => __('Go to your Mailchimp > Account > Extras > API Keys (<a href="http://prntscr.com/k4li1n" target="_blank">http://prntscr.com/k4li1n</a>) then create a key and paste here.', 'bdthemes-element-pack'),
                    'type'  => 'start_group',
                ],


                [
                    'name'              => 'mailchimp_api_key',
                    'label'             => esc_html__('Mailchimp API Key', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'mailchimp_list_id',
                    'label'             => esc_html__('Mailchimp List ID', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name' => 'mailchimp_group_end',
                    'type' => 'end_group',
                ],

                [
                    'name'              => 'weatherstack_api_key',
                    'label'             => esc_html__('WeatherStack Key', 'bdthemes-element-pack'),
                    'desc'              => __('Go to <a href="https://weatherstack.com/quickstart" target="_blank">https://weatherstack.com/quickstart</a> > Copy Key and Paste here.', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name'              => 'open_street_map_access_token',
                    'label'             => esc_html__('MapBox Access Token (for Open Street Map)', 'bdthemes-element-pack'),
                    'desc'              => __('<a href="https://www.mapbox.com/account/access-tokens" target="_blank">Click Here</a> to get access token. This Access Token needs for show Open Street Map widget correctly.', 'bdthemes-element-pack'),
                    'placeholder'       => '------------- -------------------------',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name'              => 'contact_form_email',
                    'label'             => esc_html__('Contact Form Email', 'bdthemes-element-pack'),
                    'desc'              => __('You can set alternative email for simple contact form', 'bdthemes-element-pack'),
                    'placeholder'       => 'example@email.com',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name'  => 'yelp_social_group_start',
                    'label' => esc_html__('Yelp Access', 'bdthemes-element-pack'),
                    'desc'  => __('Go to your <a href="https://www.yelp.com/developers/v3/manage_app" target="_blank">Yelp Developer Account</a> to get access client ID and Key. This credential need for Social Proof widget.', 'bdthemes-element-pack'),
                    'type'  => 'start_group',
                ],

                [
                    'name'              => 'yelp_client_id',
                    'label'             => esc_html__('Yelp Client ID', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],
                [
                    'name'              => 'yelp_api_key',
                    'label'             => esc_html__('Yelp API Key', 'bdthemes-element-pack'),
                    'placeholder'       => '',
                    'type'              => 'text',
                    'sanitize_callback' => 'sanitize_text_field'
                ],

                [
                    'name' => 'yelp_social_group_end',
                    'type' => 'end_group',
                ],

            ],
            'element_pack_other_settings'   => [

                [
                    'name'  => 'live_copy_group_start',
                    'label' => esc_html__('Live Copy or Paste', 'bdthemes-element-pack'),
                    'desc'  => __('Live copy is a copy feature that allow you to copy our demo content directly from our demo website.', 'bdthemes-element-pack'),
                    'type'  => 'start_group',
                ],

                [
                    'name'      => 'live_copy',
                    'label'     => esc_html__('Live Copy/Paste', 'bdthemes-element-pack'),
                    'type'      => 'checkbox',
                    'default'   => "off",
                    'demo_url'  => '',
                    'video_url' => '',
                ],

                [
                    'name' => 'live_copy_group_end',
                    'type' => 'end_group',
                ],
            ]
        ];

        $third_party_widget = [];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'bbpress',
            'label'       => esc_html__('bbPress', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'bbpress',
            'plugin_path' => 'bbpress/bbpress.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/bbpress',
            'video_url'   => 'https://youtu.be/7vkAHZ778c4',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'bp_member',
            'label'       => esc_html__('BuddyPress Member', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'buddypress',
            'plugin_path' => 'buddypress/bp-loader.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/buddypress-member/',
            'video_url'   => 'https://youtu.be/t6t0M5kGEig',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'bp_group',
            'label'       => esc_html__('BuddyPress Group', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'buddypress',
            'plugin_path' => 'buddypress/bp-loader.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/buddypress-member/',
            'video_url'   => 'https://youtu.be/CccODcBw_9w',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'bp_friends',
            'label'       => esc_html__('BuddyPress Friends', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'buddypress',
            'plugin_path' => 'buddypress/bp-loader.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/buddypress-member/',
            'video_url'   => 'https://youtu.be/CLV9RCdq09k',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'contact-form-seven',
            'label'       => esc_html__('Contact Form 7', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'contact-form-7',
            'plugin_path' => 'contact-form-7/wp-contact-form-7.php',
            'widget_type' => 'free',
            'demo_url'    => 'https://elementpack.pro/demo/element/contact-form-7/',
            'video_url'   => 'https://youtu.be/oWepfrLrAN4',
        ];


        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'download-monitor',
            'label'       => esc_html__('Download Monitor', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'download-monitor',
            'plugin_path' => 'download-monitor/download-monitor.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/download-monitor',
            'video_url'   => 'https://youtu.be/7LaBSh3_G5A',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'easy-digital-downloads',
            'label'       => esc_html__('Easy Digital Download', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'easy-digital-downloads',
            'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/easy-digital-downloads/',
            'video_url'   => 'https://youtu.be/dXfcvTQQV8Q',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'everest-forms',
            'label'        => esc_html__('Everest Forms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'everest-forms',
            'plugin_path'  => 'everest-forms/everest-forms.php',
            'widget_type'  => 'free',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/everest-forms/',
            'video_url'    => 'https://youtu.be/jfZhIFpdvcg',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'faq',
            'label'        => esc_html__('FAQ', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'bdthemes-faq',
            'plugin_path'  => 'bdthemes-faq/bdthemes-faq.php',
            'paid'         => 'https://bdthemes.com/secure/plugins/bdthemes-faq.zip?key=40fb823b8016d31411a7fe281f41044g',
            'widget_type'  => 'pro',
            'content_type' => 'post',
            'demo_url'     => 'https://elementpack.pro/demo/element/carousel/faq/',
            'video_url'    => 'https://youtu.be/jGGdCuSjesY',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'fluent-forms',
            'label'        => esc_html__('Fluent Forms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'fluentform',
            'plugin_path'  => 'fluentform/fluentform.php',
            'widget_type'  => 'free',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/fluent-forms/',
            'video_url'    => '',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'formidable-forms',
            'label'        => esc_html__('Formidable Forms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'formidable',
            'plugin_path'  => 'formidable/formidable.php',
            'widget_type'  => 'pro',
            'content_type' => 'forms new',
            'demo_url'     => 'https://elementpack.pro/demo/element/formidable-forms/',
            'video_url'    => 'https://youtu.be/jfZhIFpdvcg',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'instagram-feed',
            'label'       => esc_html__('Instagram Feed', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'instagram-feed',
            'plugin_path' => 'instagram-feed/instagram-feed.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/instagram-feed/',
            'video_url'   => 'https://youtu.be/Wf7naA7EL7s',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'event-grid',
            'label'       => esc_html__('Event Grid', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "off",
            'plugin_name' => 'the-events-calendar',
            'plugin_path' => 'the-events-calendar/the-events-calendar.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/event-grid/',
            'video_url'   => 'https://youtu.be/QeqrcDx1Vus',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'event-carousel',
            'label'       => esc_html__('Event Carousel', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "off",
            'plugin_name' => 'the-events-calendar',
            'plugin_path' => 'the-events-calendar/the-events-calendar.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/event-carousel/',
            'video_url'   => 'https://youtu.be/_ZPPBmKmGGg',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'event-list',
            'label'       => esc_html__('Event List', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "off",
            'plugin_name' => 'the-events-calendar',
            'plugin_path' => 'the-events-calendar/the-events-calendar.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/event-list/',
            'video_url'   => 'https://youtu.be/2J4XhOe8J0o',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'layer-slider',
            'label'        => esc_html__('Layer Slider', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'LayerSlider',
            'plugin_path'  => 'LayerSlider/layerslider.php',
            'paid'         => 'https://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin/1362246',
            'widget_type'  => 'pro',
            'content_type' => 'slider',
            'demo_url'     => 'https://elementpack.pro/demo/element/layer-slider/',
            'video_url'    => 'https://youtu.be/I2xpXLyCkkE',
        ];


        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'mailchimp-for-wp',
            'label'       => esc_html__('Mailchimp For WP', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'mailchimp-for-wp',
            'plugin_path' => 'mailchimp-for-wp/mailchimp-for-wp.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/mailchimp-for-wordpress',
            'video_url'   => 'https://youtu.be/AVqliwiyMLg',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'portfolio-gallery',
            'label'        => esc_html__('Portfolio Gallery', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'bdthemes-portfolio',
            'plugin_path'  => 'bdthemes-portfolio/bdthemes-portfolio.php',
            'paid'         => 'https://bdthemes.com/secure/plugins/bdthemes-portfolio.zip?key=40fb823b8016d31411a7fe281f41044g',
            'widget_type'  => 'pro',
            'content_type' => 'post',
            'demo_url'     => 'https://elementpack.pro/demo/element/portfolio-gallery/',
            'video_url'    => 'https://youtu.be/dkKPuZwWFks',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'portfolio-carousel',
            'label'        => esc_html__('Portfolio Carousel', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'bdthemes-portfolio',
            'plugin_path'  => 'bdthemes-portfolio/bdthemes-portfolio.php',
            'paid'         => 'https://bdthemes.com/secure/plugins/bdthemes-portfolio.zip?key=40fb823b8016d31411a7fe281f41044g',
            'widget_type'  => 'pro',
            'content_type' => 'post',
            'demo_url'     => 'https://elementpack.pro/demo/element/portfolio-carousel/',
            'video_url'    => 'https://youtu.be/6fMQzv47HTU',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'portfolio-list',
            'label'        => esc_html__('Portfolio List', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'bdthemes-portfolio',
            'plugin_path'  => 'bdthemes-portfolio/bdthemes-portfolio.php',
            'paid'         => 'https://bdthemes.com/secure/plugins/bdthemes-portfolio.zip?key=40fb823b8016d31411a7fe281f41044g',
            'widget_type'  => 'pro',
            'content_type' => 'post',
            'demo_url'     => 'https://elementpack.pro/demo/element/portfolio-list/',
            'video_url'    => 'https://youtu.be/WdXZMoEEn4I',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wc_products',
            'label'        => esc_html__('Woocommerce Products', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'woocommerce',
            'plugin_path'  => 'woocommerce/woocommerce.php',
            'widget_type'  => 'pro',
            'content_type' => 'ecommerce grid gallery',
            'demo_url'     => 'https://elementpack.pro/demo/element/woocommerce-products/',
            'video_url'    => 'https://youtu.be/3VkvEpVaNAM',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wc_add_to_cart',
            'label'        => esc_html__('WooCommerce Add To Cart', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'woocommerce',
            'plugin_path'  => 'woocommerce/woocommerce.php',
            'widget_type'  => 'pro',
            'content_type' => 'ecommerce',
            'demo_url'     => 'https://elementpack.pro/demo/element/woocommerce-add-to-cart/',
            'video_url'    => 'https://youtu.be/1gZJm2-xMqY',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wc_elements',
            'label'        => esc_html__('WooCommerce Elements', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'woocommerce',
            'plugin_path'  => 'woocommerce/woocommerce.php',
            'widget_type'  => 'pro',
            'content_type' => 'ecommerce grid',
            'demo_url'     => '',
            'video_url'    => '',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wc_categories',
            'label'        => esc_html__('WooCommerce Categories', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'woocommerce',
            'plugin_path'  => 'woocommerce/woocommerce.php',
            'widget_type'  => 'pro',
            'content_type' => 'ecommerce grid gallery',
            'demo_url'     => 'https://elementpack.pro/demo/element/woocommerce-categories/',
            'video_url'    => 'https://youtu.be/SJuArqtnC1U',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wc_carousel',
            'label'        => esc_html__('WooCommerce Carousel', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'woocommerce',
            'plugin_path'  => 'woocommerce/woocommerce.php',
            'widget_type'  => 'pro',
            'content_type' => 'ecommerce carousel',
            'demo_url'     => 'https://elementpack.pro/demo/element/woocommerce-carousel/',
            'video_url'    => 'https://youtu.be/5lxli5E9pc4',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wc_slider',
            'label'        => esc_html__('WooCommerce Slider', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'woocommerce',
            'plugin_path'  => 'woocommerce/woocommerce.php',
            'widget_type'  => 'pro',
            'content_type' => 'ecommerce slider',
            'demo_url'     => 'https://elementpack.pro/demo/element/woocommerce-slider',
            'video_url'    => 'https://youtu.be/ic8p-3jO35U',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wc_mini_cart',
            'label'        => esc_html__('WooCommerce Mini Cart', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'woocommerce',
            'plugin_path'  => 'woocommerce/woocommerce.php',
            'widget_type'  => 'pro',
            'content_type' => 'ecommerce slider',
            'demo_url'     => 'https://elementpack.pro/demo/element/woocommerce-slider',
            'video_url'    => 'https://youtu.be/ic8p-3jO35U',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'booked-calendar',
            'label'       => esc_html__('Booked', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'booked',
            'plugin_path' => 'booked/booked.php',
            'paid'        => 'https://codecanyon.net/item/booked-appointments-appointment-booking-for-wordpress/9466968',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/booked-calendar/',
            'video_url'   => 'https://youtu.be/bodvi_5NkDU',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'caldera-forms',
            'label'        => esc_html__('Caldera Forms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'caldera-forms',
            'plugin_path'  => 'caldera-forms/caldera-core.php',
            'widget_type'  => 'free',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/caldera-form/',
            'video_url'    => 'https://youtu.be/2EiVSLows20',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'gravity-forms',
            'label'        => esc_html__('Gravity Forms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'gravityforms',
            'plugin_path'  => 'gravityforms/gravityforms.php',
            'paid'         => 'https://www.gravityforms.com/',
            'widget_type'  => 'pro',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/gravity-forms/',
            'video_url'    => 'https://youtu.be/452ZExESiBI',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'ninja-forms',
            'label'        => esc_html__('Ninja Forms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'ninja-forms',
            'plugin_path'  => 'ninja-forms/ninja-forms.php',
            'widget_type'  => 'free',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/ninja-forms/',
            'video_url'    => 'https://youtu.be/rMKAUIy1fKc',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'quform',
            'label'        => esc_html__('QuForm', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'quform',
            'plugin_path'  => 'quform/quform.php',
            'paid'         => 'https://codecanyon.net/item/quform-wordpress-form-builder/706149',
            'widget_type'  => 'pro',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/quform/',
            'video_url'    => 'https://youtu.be/LM0JtQ58UJM',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'revolution-slider',
            'label'       => esc_html__('Revolution Slider', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'revslider',
            'plugin_path' => 'revslider/revslider.php',
            'paid'        => 'https://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/revolution-slider/',
            'video_url'   => 'https://youtu.be/S3bs8FfTBsI',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'tablepress',
            'label'       => esc_html__('TablePress', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "on",
            'plugin_name' => 'tablepress',
            'plugin_path' => 'tablepress/tablepress.php',
            'widget_type' => 'pro',
            'demo_url'    => 'https://elementpack.pro/demo/element/tablepress/',
            'video_url'   => 'https://youtu.be/TGnc0ap-cWs',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'testimonial-carousel',
            'label'        => esc_html__('Testimonial Carousel', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'bdthemes-testimonials',
            'plugin_path'  => 'bdthemes-testimonials/bdthemes-testimonials.php',
            'paid'         => 'https://bdthemes.com/secure/plugins/bdthemes-testimonials.zip?key=40fb823b8016d31411a7fe281f41044g',
            'widget_type'  => 'pro',
            'content_type' => 'post carousel',
            'demo_url'     => 'https://elementpack.pro/demo/element/testimonial-carousel/',
            'video_url'    => 'https://youtu.be/VbojVJzayvE',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'testimonial-grid',
            'label'        => esc_html__('Testimonial Grid', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'bdthemes-testimonials',
            'plugin_path'  => 'bdthemes-testimonials/bdthemes-testimonials.php',
            'paid'         => 'https://bdthemes.com/secure/plugins/bdthemes-testimonials.zip?key=40fb823b8016d31411a7fe281f41044g',
            'widget_type'  => 'pro',
            'content_type' => 'post',
            'demo_url'     => 'https://elementpack.pro/demo/element/testimonial-grid/',
            'video_url'    => 'https://youtu.be/pYMTXyDn8g4',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'testimonial-slider',
            'label'        => esc_html__('Testimonial Slider', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'bdthemes-testimonials',
            'plugin_path'  => 'bdthemes-testimonials/bdthemes-testimonials.php',
            'paid'         => 'https://bdthemes.com/secure/plugins/bdthemes-testimonials.zip?key=40fb823b8016d31411a7fe281f41044g',
            'widget_type'  => 'pro',
            'content_type' => 'post',
            'demo_url'     => 'https://elementpack.pro/demo/element/testimonial-slider/',
            'video_url'    => 'https://youtu.be/pI-DLKNlTGg',

        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'tutor-lms-course-grid',
            'label'       => esc_html__('Tutor LMS Grid', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "off",
            'plugin_name' => 'tutor',
            'plugin_path' => 'tutor/tutor.php',
            'widget_type' => 'free',
            'demo_url'    => 'https://elementpack.pro/demo/element/tutor-lms-course-grid/',
            'video_url'   => 'https://youtu.be/WWCE-_Po1uo',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'        => 'tutor-lms-course-carousel',
            'label'       => esc_html__('Tutor LMS Carousel', 'bdthemes-element-pack'),
            'type'        => 'checkbox',
            'default'     => "off",
            'plugin_name' => 'tutor',
            'plugin_path' => 'tutor/tutor.php',
            'widget_type' => 'free',
            'demo_url'    => 'https://elementpack.pro/demo/element/tutor-lms-course-carousel/',
            'video_url'   => 'https://youtu.be/VYrIYQESjXs',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'we-forms',
            'label'        => esc_html__('weForms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "off",
            'plugin_name'  => 'weforms',
            'plugin_path'  => 'weforms/weforms.php',
            'widget_type'  => 'free',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/we-forms/',
            'video_url'    => 'https://youtu.be/D-vUfbMclOk',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wp-forms',
            'label'        => esc_html__('Wp Forms Lite', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'wpforms-lite',
            'plugin_path'  => 'wpforms-lite/wpforms.php',
            'widget_type'  => 'pro',
            'content_type' => 'forms',
            'demo_url'     => '',
            'video_url'    => '',
        ];

        $third_party_widget['element_pack_third_party_widget'][] = [
            'name'         => 'wp-forms',
            'label'        => esc_html__('Wp Forms', 'bdthemes-element-pack'),
            'type'         => 'checkbox',
            'default'      => "on",
            'plugin_name'  => 'wpforms',
            'plugin_path'  => 'wpforms/wpforms.php',
            'paid'         => 'https://wpforms.com/pricing/',
            'widget_type'  => 'pro',
            'content_type' => 'forms',
            'demo_url'     => 'https://elementpack.pro/demo/element/wp-forms/',
            'video_url'    => 'https://youtu.be/p_FRLsEVNjQ',
        ];

        return array_merge($settings_fields, $third_party_widget);
    }


    function element_pack_welcome() {

        $current_user = wp_get_current_user();

        ?>

      <div class="ep-dashboard-panel"
           bdt-scrollspy="target: > div > div > .bdt-card; cls: bdt-animation-slide-bottom-small; delay: 300">
        <div class="bdt-grid bdt-hidden@xl" bdt-grid bdt-height-match="target: > div > .bdt-card">
          <div class=" ep-welcome-banner">
            <div class="ep-welcome-content bdt-card bdt-card-body">
              <h1 class="ep-feature-title">
                Welcome <?php echo esc_html($current_user->user_firstname); ?> <?php echo esc_html($current_user->user_lastname); ?>
                !</h1>
              <p>Thanks for joining the Element Pack Pro family. You are in the right place to build your amazing site
                and lift it to the next level. Element Pack makes everything easy for you. Its drag and drop options can
                create magic. If you feel any challenges visit our youtube channel, nock on our support system.
                Stay tuned and see you at the top of success.</p>

              <a class="bdt-button bdt-btn-red bdt-margin-small-top bdt-margin-small-right" target="_blank" rel=""
                 href="https://elementpack.pro/support/element-pack-knowledge-base/">Read Knowledge Base</a>
              <a class="bdt-button bdt-btn-blue bdt-margin-small-top" target="_blank" rel=""
                 href="https://www.facebook.com/groups/elementpack/">Join Facebook Group</a>
            </div>
          </div>
        </div>


        <div class="bdt-grid bdt-visible@xl" bdt-grid bdt-height-match="target: > div > .bdt-card">
          <div class="bdt-width-1-2@l ep-welcome-banner">
            <div class="ep-welcome-content bdt-card bdt-card-body">
              <h1 class="ep-feature-title">
                Welcome <?php echo esc_html($current_user->user_firstname); ?> <?php echo esc_html($current_user->user_lastname); ?>
                !</h1>
              <p>Thanks for joining the Element Pack Pro family. You are in the right place to build your amazing site
                and lift it to the next level. Element Pack makes everything easy for you. Its drag and drop options can
                create magic. If you feel any challenges visit our youtube channel, nock on our support system.
                Stay tuned and see you at the top of success.</p>
            </div>
          </div>

          <div class="bdt-width-1-2@l">
            <div class="bdt-card bdt-card-body bdt-card-blue ep-facebook-community">

              <h1 class="ep-feature-title">Join Facebook Community</h1>
              <p style="max-width: 690px;">
                Join our Element Pack Community to get instant help by our super active user and get exciting offer for our all of awesome product frequently.
              </p>
              <a class="bdt-button bdt-btn-blue bdt-margin-small-top" target="_blank" rel=""
                 href="https://www.facebook.com/groups/elementpack/">Join The Community</a>

            </div>
          </div>
        </div>

        <div class="bdt-grid" bdt-grid bdt-height-match="target: > div > .bdt-card">

          <div class="bdt-width-2-3@m">
            <div class="bdt-card bdt-card-red bdt-card-body">
              <h1 class="ep-feature-title">Frequently Asked Questions</h1>

              <ul bdt-accordion="collapsible: false">
                <li>
                  <a class="bdt-accordion-title" href="#">Is Element Pack compatible my theme?</a>
                  <div class="bdt-accordion-content">
                    <p>
                      Normally our plugin is compatible with most of theme and cross browser that we have tested. If
                      happen very few change to your site looking, no problem our strong support team is dedicated for
                      fixing your minor problem.
                    </p>
                    <p>
                      Here some theme compatibility video example: <a href="https://youtu.be/5U6j7X5kA9A"
                                                                      target="_blank">Avada</a> ,<a
                          href="https://youtu.be/HdZACDwrrdM" target="_blank">Astra</a>, <a
                          href="https://youtu.be/kjqpQRsVyY0" target="_blank">OcecanWP</a>
                    </p>

                  </div>
                </li>
                <li>
                  <a class="bdt-accordion-title" href="#">How to resolve elementor stuck on loading screen error?</a>
                  <div class="bdt-accordion-content">
                    <p>First you need to edit the wp-config.php file on your WordPress site. It is located in your
                      WordPress site’s root folder, and you will need to use an FTP client or file manager in your web
                      hosting control panel. Next, you need to paste this code in wp-config.php file just before the
                      line that says <br><em>That's all, stop editing! Happy blogging.</em></p>

                    <pre class="bdt-background-muted bdt-padding-small">
define('WP_MEMORY_LIMIT', '350M');
set_time_limit(90);
</pre>

                    <p>This code tells WordPress to increase the PHP memory limit to 350MB and execution time limit 90
                      Seconds. Once you are done, you need to save your changes and upload your wp-config.php file back
                      to your server. I hope those line can solve your loading widget panel problem. Don't forget to
                      check your System Requirement box so you understand what you should need to do.</p>

                  </div>
                </li>
                <li>
                  <a class="bdt-accordion-title" href="#">What is 3rd Party Widgets?</a>
                  <div class="bdt-accordion-content">
                    <p>
                      3rd Party widgets mean you should install that 3rd party plugin to use that widget. For example,
                      There have WC Carousel or WC Products. If you want to use those widgets so you must install
                      WooCommerce Plugin first. So you can access those widgets.
                    </p>
                  </div>
                </li>
              </ul>
            </div>
          </div>

          <div class="bdt-width-1-3@m">
            <div class="ep-video-tutorial bdt-card bdt-card-body bdt-card-green">
              <h1 class="ep-feature-title">Video Tutorial</h1>

              <ul class="bdt-list bdt-list-divider" bdt-lightbox>
                <li>
                  <a href="https://youtu.be/fzq1GsNcPAw">
                    <h4 class="ep-link-title">What's New in Version V5.2.0</h4>
                  </a>
                </li>
                <li>
                  <a href="https://www.youtube.com/watch?v=RgoWlIm5KOo">
                    <h4 class="ep-link-title">How to use Hover Video Widget</h4>
                  </a>
                </li>
                <li>
                  <a href="https://youtu.be/Slnx_mxDBqo">
                    <h4 class="ep-link-title">How to Use Profile Card Widget</h4>
                  </a>
                </li>
                <li>
                  <a href="https://youtu.be/Y2E0vfcUtBs">
                    <h4 class="ep-link-title">How to Use Mini Cart Widget</h4>
                  </a>
                </li>
                <li>
                  <a href="https://youtu.be/TnSjwUKrw00">
                    <h4 class="ep-link-title">How to Use Crypto Currency card</h4>
                  </a>
                </li>
              </ul>

              <a class="bdt-video-btn" target="_blank"
                 href="https://www.youtube.com/playlist?list=PLP0S85GEw7DOJf_cbgUIL20qqwqb5x8KA">View more videos <span
                    class="dashicons dashicons-arrow-right"></span></a>
            </div>


          </div>

        </div>


        <div class="bdt-grid" bdt-grid bdt-height-match="target: > div > .bdt-card">
          <div class="bdt-width-1-3@m ep-support-section">
            <div class="ep-support-content bdt-card bdt-card-green bdt-card-body">
              <h1 class="ep-feature-title">Support And Feedback</h1>
              <p>Feeling like to consult with an expert? Take live Chat support immediately from <a
                    href="https://elementpack.pro" target="_blank" rel="">ElementPack</a>. We are always ready to help
                you 24/7.</p>
              <p><strong>Or if you’re facing technical issues with our plugin, then please create a support
                  ticket</strong></p>
              <a class="bdt-button bdt-btn-green bdt-margin-small-top bdt-margin-small-right" target="_blank"
                 href="https://elementpack.pro/go/support/">Get Support</a>
              <a class="bdt-button bdt-btn-red bdt-margin-small-top" target="_blank" rel=""
                 href="https://elementpack.pro/support/element-pack-knowledge-base/">Go knowledge page</a>
            </div>
          </div>

          <div class="bdt-width-2-3@m">
            <div class="bdt-card bdt-card-body bdt-card-green ep-system-requirement">
              <h1 class="ep-feature-title bdt-margin-small-bottom">System Requirement</h1>
                <?php $this->element_pack_system_requirement(); ?>
            </div>
          </div>
        </div>

        <div class="bdt-grid" bdt-grid bdt-height-match="target: > div > .bdt-card">
          <div class="bdt-width-2-3@m ep-support-section">
            <div class="bdt-card bdt-card-body bdt-card-red ep-support-feedback">
              <h1 class="ep-feature-title">Missing Any Feature?</h1>
              <p style="max-width: 800px;">Are you in need of a feature that’s not available in our plugin? Feel free to
                do a
                feature request from here,</p>
              <a class="bdt-button bdt-btn-red bdt-margin-small-top" target="_blank" rel=""
                 href="https://elementpack.pro/make-a-suggestion/">Request Feature</a>
            </div>
          </div>

          <div class="bdt-width-1-3@m">
            <div class="ep-newsletter-content bdt-card bdt-card-green bdt-card-body">
              <h1 class="ep-feature-title">Newsletter Subscription</h1>
              <p>To get updated news, current offers, deals, and tips please subscribe to our Newsletters.</p>
              <a class="bdt-button bdt-btn-green bdt-margin-small-top" target="_blank" rel=""
                 href="https://elementpack.pro/newsletter/">Subscribe Now</a>
            </div>
          </div>
        </div>

      </div>


        <?php
    }

    public static function get_license_key() {
        return trim(get_option('element_pack_license_key'));
    }

    public static function get_license_email() {
        return trim(get_option('element_pack_license_email', get_bloginfo('admin_email')));
    }

    public static function set_license_key($license_key) {
        return update_option('element_pack_license_key', $license_key);
    }

    public static function set_license_email($license_email) {
        return update_option('element_pack_license_email', $license_email);
    }

    function license_page() {

        if ( $this->is_activated ) {

            $this->license_activated();

        } else {
            if ( !empty($licenseKey) && !empty($this->licenseMessage) ) {
                $this->showMessage = true;
            }

            $this->license_form();
        }
    }


    function element_pack_system_requirement() {
        $php_version        = phpversion();
        $max_execution_time = ini_get('max_execution_time');
        $memory_limit       = ini_get('memory_limit');
        $post_limit         = ini_get('post_max_size');
        $uploads            = wp_upload_dir();
        $upload_path        = $uploads['basedir'];
        $yes_icon           = '<span class="valid"><i class="dashicons-before dashicons-yes"></i></span>';
        $no_icon            = '<span class="invalid"><i class="dashicons-before dashicons-no-alt"></i></span>';

        $environment = Utils::get_environment_info();


        ?>
      <ul class="check-system-status bdt-grid bdt-child-width-1-2@m bdt-grid-small ">
        <li>
          <div>

            <span class="label1">PHP Version: </span>

              <?php
              if ( version_compare($php_version, '5.6.0', '<') ) {
                  echo $no_icon;
                  echo '<span class="label2">Currently: ' . $php_version . ' (Min: 5.6 Recommended)</span>';
              } else {
                  echo $yes_icon;
                  echo '<span class="label2">Currently: ' . $php_version . '</span>';
              }
              ?>
          </div>
        </li>

        <li>
          <div>
            <span class="label1">Maximum execution time: </span>

              <?php
              if ( $max_execution_time < '90' ) {
                  echo $no_icon;
                  echo '<span class="label2">Currently: ' . $max_execution_time . '(Min: 90 Recommended)</span>';
              } else {
                  echo $yes_icon;
                  echo '<span class="label2">Currently: ' . $max_execution_time . '</span>';
              }
              ?>
          </div>
        </li>
        <li>
          <div>
            <span class="label1">Memory Limit: </span>

              <?php
              if ( intval($memory_limit) < '256' ) {
                  echo $no_icon;
                  echo '<span class="label2">Currently: ' . $memory_limit . ' (Min: 256M Recommended)</span>';
              } else {
                  echo $yes_icon;
                  echo '<span class="label2">Currently: ' . $memory_limit . '</span>';
              }
              ?>
          </div>
        </li>

        <li>
          <div>
            <span class="label1">Max Post Limit: </span>

              <?php
              if ( intval($post_limit) < '32' ) {
                  echo $no_icon;
                  echo '<span class="label2">Currently: ' . $post_limit . ' (Min: 32M Recommended)</span>';
              } else {
                  echo $yes_icon;
                  echo '<span class="label2">Currently: ' . $post_limit . '</span>';
              }
              ?>
          </div>
        </li>

        <li>
          <div>
            <span class="label1">Uploads folder writable: </span>

              <?php
              if ( !is_writable($upload_path) ) {
                  echo $no_icon;
              } else {
                  echo $yes_icon;
              }
              ?>
          </div>
        </li>

        <li>
          <div>
            <span class="label1">MultiSite: </span>

              <?php
              if ( $environment['wp_multisite'] ) {
                  echo '<span class="label2">MultiSite</span>';
              } else {
                  echo '<span class="label2">No MultiSite </span>';
              }
              ?>
          </div>
        </li>

        <li>
          <div>
            <span class="label1">GZip Enabled: </span>

              <?php
              if ( $environment['gzip_enabled'] ) {
                  echo $yes_icon;
              } else {
                  echo $no_icon;
              }
              ?>
          </div>
        </li>

        <li>
          <div>
            <span class="label1">Debug Mode: </span>
              <?php
              if ( $environment['wp_debug_mode'] ) {
                  echo $no_icon;
                  echo '<span class="label2">Currently Turned On</span>';
              } else {
                  echo $yes_icon;
                  echo '<span class="label2">Currently Turned Off</span>';
              }
              ?>
          </div>
        </li>

      </ul>

      <div class="bdt-admin-alert">
        <strong>Note:</strong> If you have multiple addons like element pack so you need some more requirement some
        cases so make sure you added more memory for others addon too.
      </div>
        <?php
    }


    function plugin_page() {

        echo '<div class="wrap element-pack-dashboard">';
        echo '<h1>' . BDTEP_TITLE . ' Settings</h1>';

        $this->settings_api->show_navigation();

        ?>


      <div class="bdt-switcher">
        <div id="element_pack_welcome_page" class="ep-option-page group">
            <?php $this->element_pack_welcome(); ?>
        </div>

          <?php
          $this->settings_api->show_forms();
          ?>

        <div id="element_pack_license_settings_page" class="ep-option-page group">
            <?php $this->license_page(); ?>
        </div>
      </div>

      </div>

        <?php if ( !defined('BDTEP_WL') ) {
            $this->footer_info();
        } ?>

        <?php

        $this->script();

        ?>

        <?php
    }

    function action_activate_license() {
        check_admin_referer('el-license');

        $licenseKey   = !empty($_POST['element_pack_license_key']) ? $_POST['element_pack_license_key'] : "";
        $licenseEmail = !empty($_POST['element_pack_license_email']) ? $_POST['element_pack_license_email'] : "";

        update_option("element_pack_license_key", $licenseKey) || add_option("element_pack_license_key", $licenseKey);
        update_option("element_pack_license_email", $licenseEmail) || add_option("element_pack_license_email", $licenseEmail);
        wp_safe_redirect(admin_url('admin.php?page=' . 'element_pack_options#element_pack_license_settings'));
    }

    function action_deactivate_license() {


        check_admin_referer('el-license');
        if ( Element_Pack_Base::RemoveLicenseKey(BDTEP__FILE__, $message) ) {
            update_option("element_pack_license_key", "") || add_option("element_pack_license_key", "");
        }
        wp_safe_redirect(admin_url('admin.php?page=' . 'element_pack_options#element_pack_license_settings'));
    }


    function license_activated() {
        ?>
      <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
        <input type="hidden" name="action" value="element_pack_deactivate_license"/>
        <div class="el-license-container">
          <h3 class="el-license-title"><span
                class="dashicons dashicons-admin-network"></span> <?php _e("Element Pack License Information", 'bdthemes-element-pack'); ?>
          </h3>

          <ul class="element-pack-license-info bdt-list bdt-list-divider">
            <li>
              <div>
                <span class="license-info-title"><?php _e('Status', 'bdthemes-element-pack'); ?></span>

                  <?php if ( Element_Pack_Base::GetRegisterInfo()->is_valid ) : ?>
                    <span class="license-valid">Valid License</span>
                  <?php else : ?>
                    <span class="license-valid">Invalid License</span>
                  <?php endif; ?>
              </div>
            </li>

            <li>
              <div>
                <span class="license-info-title"><?php _e('License Type', 'bdthemes-element-pack'); ?></span>
                  <?php echo Element_Pack_Base::GetRegisterInfo()->license_title; ?>
              </div>
            </li>

            <li>
              <div>
                <span class="license-info-title"><?php _e('License Expired on', 'bdthemes-element-pack'); ?></span>
                  <?php echo Element_Pack_Base::GetRegisterInfo()->expire_date; ?>
              </div>
            </li>

            <li>
              <div>
                <span class="license-info-title"><?php _e('Support Expired on', 'bdthemes-element-pack'); ?></span>
                  <?php echo Element_Pack_Base::GetRegisterInfo()->support_end; ?>
              </div>
            </li>

            <li>
              <div>
                <span class="license-info-title"><?php _e('License Email', 'bdthemes-element-pack'); ?></span>
                  <?php echo self::get_license_email(); ?>
              </div>
            </li>

            <li>
              <div>
                <span class="license-info-title"><?php _e('Your License Key', 'bdthemes-element-pack'); ?></span>
                <span
                    class="license-key"><?php echo esc_attr(substr(Element_Pack_Base::GetRegisterInfo()->license_key, 0, 9) . "XXXXXXXX-XXXXXXXX" . substr(Element_Pack_Base::GetRegisterInfo()->license_key, -9)); ?></span>
              </div>
            </li>
          </ul>

          <div class="el-license-active-btn">
              <?php wp_nonce_field('el-license'); ?>
              <?php submit_button('Deactivate License'); ?>
          </div>
        </div>
      </form>
        <?php
    }


    function license_form() {
        ?>
      <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
        <input type="hidden" name="action" value="element_pack_activate_license"/>
        <div class="el-license-container">

            <?php
            if ( !empty($this->showMessage) && !empty($this->licenseMessage) ) {
                ?>
              <div class="notice notice-error is-dismissible">
                <p><?php echo $this->licenseMessage; ?></p>
              </div>
                <?php
            }
            ?>

          <p><?php _e('Enter your license key here, to activate Element Pack Pro, and get full feature updates and premium support.', 'bdthemes-element-pack'); ?></p>

          <ol>
            <li><?php printf(__('Log in to your <a href="%1s" target="_blank">bdthemes</a> or <a href="%2s" target="_blank">envato</a> account to get your license key.', 'bdthemes-element-pack'), 'https://bdthemes.onfastspring.com/account', 'https://codecanyon.net/downloads'); ?></li>
            <li><?php printf(__('If you don\'t yet have a license key, <a href="%s" target="_blank">get Element Pack now</a>.', 'bdthemes-element-pack'), 'https://elementpack.pro/pricing/'); ?></li>
            <li><?php _e('Copy the license key from your account and paste it below.', 'bdthemes-element-pack'); ?></li>
          </ol>

          <div class="bdt-ep-license-field">
            <label for="element_pack_license_email">License Email
              <input type="text" class="regular-text code" name="element_pack_license_email" size="50"
                     placeholder="example@email.com" required="required">
            </label>
          </div>

          <div class="bdt-ep-license-field">
            <label for="element_pack_license_key">License code
              <input type="text" class="regular-text code" name="element_pack_license_key" size="50"
                     placeholder="xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx" required="required">
            </label>
          </div>


          <div class="el-license-active-btn">
              <?php wp_nonce_field('el-license'); ?>
              <?php submit_button('Activate License'); ?>
          </div>
        </div>
      </form>
        <?php
    }


    /**
     * Tabbable JavaScript codes & Initiate Color Picker
     *
     * This code uses localstorage for displaying active tabs
     */
    function script() {
        ?>
      <script>
          jQuery(document).ready(function ($) {
              'use strict';

              function hashHandler() {
                  var $tab = $('.element-pack-dashboard .bdt-tab');
                  if ( window.location.hash ) {
                      var hash = window.location.hash.substring(1);
                      bdtUIkit.tab($tab).show($('#bdt-' + hash).data('tab-index'));
                  }
              }

              $(window).on('load', function () {
                  hashHandler();
              });

              window.addEventListener("hashchange", hashHandler, true);

              $('.toplevel_page_element_pack_options > ul > li > a ').on('click', function (event) {
                  $(this).parent().siblings().removeClass('current');
                  $(this).parent().addClass('current');
              });

              jQuery("#element_pack_active_modules_page a.ep-active-all-widget").click(function () {
                  jQuery('#element_pack_active_modules_page .checkbox').attr('checked', 'checked');
                  jQuery(this).addClass('bdt-active');
                  jQuery("a.ep-deactive-all-widget").removeClass('bdt-active');
              });

              jQuery("#element_pack_active_modules_page a.ep-deactive-all-widget").click(function () {
                  jQuery('#element_pack_active_modules_page .checkbox').removeAttr('checked');
                  jQuery(this).addClass('bdt-active');
                  jQuery("a.ep-active-all-widget").removeClass('bdt-active');
              });

              jQuery("#element_pack_third_party_widget_page a.ep-active-all-widget").click(function () {
                  jQuery('#element_pack_third_party_widget_page .checkbox').attr('checked', 'checked');
                  jQuery(this).addClass('bdt-active');
                  jQuery("a.ep-deactive-all-widget").removeClass('bdt-active');
              });

              jQuery("#element_pack_third_party_widget_page a.ep-deactive-all-widget").click(function () {
                  jQuery('#element_pack_third_party_widget_page .checkbox').removeAttr('checked');
                  jQuery(this).addClass('bdt-active');
                  jQuery("a.ep-active-all-widget").removeClass('bdt-active');
              });


              jQuery('form.settings-save').submit(function (event) {
                  event.preventDefault();

                  bdtUIkit.notification({
                      message: '<div bdt-spinner></div> <?php esc_html_e('Please wait, Saving settings...', 'bdthemes-element-pack') ?>',
                      timeout: false
                  });

                  jQuery(this).ajaxSubmit({
                      success: function () {
                          bdtUIkit.notification.closeAll();
                          bdtUIkit.notification({
                              message: '<span class="dashicons dashicons-yes"></span> <?php esc_html_e('Settings Saved Successfully.', 'bdthemes-element-pack') ?>',
                              status : 'primary'
                          });
                      },
                      error  : function (data) {
                          bdtUIkit.notification.closeAll();
                          bdtUIkit.notification({
                              message: '<span bdt-icon=\'icon: warning\'></span> <?php esc_html_e('Unknown error, make sure access is correct!', 'bdthemes-element-pack') ?>',
                              status : 'warning'
                          });
                      }
                  });

                  return false;
              });

          });
      </script>
        <?php
    }


    function footer_info() {
        ?>
      <div class="element-pack-footer-info">
        <p>Element Pack Addon made with love by <a target="_blank" href="https://bdthemes.com">BdThemes</a> Team. <br>All
          rights reserved by BdThemes.</p>
      </div>
        <?php
    }

    public function license_activate_error_notice() {

        Notices::add_notice(
            [
                'id'               => 'license-error',
                'type'             => 'error',
                'dismissible'      => true,
                'dismissible-time' => 43200,
                'message'          => $this->licenseMessage,
            ]
        );
    }

    public function license_activate_notice() {

        Notices::add_notice(
            [
                'id'               => 'license-issue',
                'type'             => 'error',
                'dismissible'      => true,
                'dismissible-time' => 43200,
                'message'          => __('Thank you for purchase Element Pack. Please <a href="' . self::get_url() . '">activate your license</a> to get feature updates, premium support. <br> Don\'t have Element Pack license? Purchase and download your license copy <a href="https://elementpack.pro/" target="_blank">from here</a>.', 'bdthemes-element-pack'),
            ]
        );
    }

    /**
     * Get all the pages
     *
     * @return array page names with key value pairs
     */
    function get_pages() {
        $pages         = get_pages();
        $pages_options = [];
        if ( $pages ) {
            foreach ( $pages as $page ) {
                $pages_options[$page->ID] = $page->post_title;
            }
        }

        return $pages_options;
    }

}

new ElementPack_Admin_Settings();