configSlug = $config['slug']; $this->configPluginName = $config['plugin_name']; $this->configDescription = $config['description']; $this->configTextDomain = $config['text_domain']; $this->widgetsApi = $widgetsApi; parent::__construct( $this->configSlug, esc_html__($this->configPluginName, $this->configTextDomain), array('description' => esc_html__($this->configDescription, $this->configTextDomain)) ); } public function widget($args, $instance) { extract($instance, EXTR_SKIP); if (!empty($instance['id'])) { echo do_shortcode('[' . str_replace('-', '_', $this->configSlug) . ' id="' . $instance['id'] . '"]'); } } public function form($instance) { $widgets = array(); $widgetsList = array(); $this->widgetsApi->getList($widgets); if (!empty($widgets['data'])) {?>

configTextDomain); ?> configTextDomain); ?>