![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/cwd/wp-content/plugins/bdthemes-element-pack/includes/ |
<?php namespace ElementPack\Includes; use ElementPack\Admin\ModuleService; if (!defined('ABSPATH')) exit; // Exit if accessed directly class Pro_Widget_Map { public function get_pro_widget_map() { $arr_obj = ModuleService::get_widget_settings( function ($settings) { $core_widgets = $settings['settings_fields']['element_pack_active_modules']; $arr = []; foreach ($core_widgets as $key => $widget) { if ('pro' == $widget['widget_type']) { $ar = [ 'categories' => ['element-pack-pro'], 'name' => $widget['name'], 'title' => $widget['label'], 'icon' => 'bdt-wi-' . $widget['name'] . ' bdt-pro-unlock-icon', 'action_button' => [ 'classes' => ['elementor-button', 'elementor-button-success'], 'text' => esc_html__('See it in Action', 'bdthemes-element-pack'), 'url' => esc_url($widget['demo_url']) ] ]; array_push($arr, $ar); } } return $arr; } ); return $arr_obj; } }