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