/** * Get all neccessary widgets information * * @return type */ public static function widgets() { $Ig_Pb_Widgets = array(); $widgets = IG_Pb_Helper_Functions::list_widgets(); foreach ($widgets as $id => $widget) { if ($widget['class'] == 'IG_Pb_Objects_Widget') { continue; } $config = array('shortcode' => $widget['class'], 'name' => $widget['name'], 'identity_name' => __('Widget', IGPBL) . ' ' . $widget['name'], 'extra_' => sprintf('data-value="%1$s" data-type="%2$s" data-sort="%2$s"', esc_attr($id), 'widget')); $Ig_Pb_Widgets[$widget['class']] = $config; } return $Ig_Pb_Widgets; }