Пример #1
0
 public function __construct()
 {
     $widget_ops = array('description' => __('Add a custom menu to your sidebar.'));
     parent::__construct('nav_menu', __('Custom Menu'), $widget_ops);
 }
Пример #2
0
 /**
  * PHP4 constructor
  *
  * @param string $id_base
  * @param string $name
  * @param array  $widget_options
  * @param array  $control_options
  */
 public function HQ_Widget($id_base, $name, $widget_options = array(), $control_options = array())
 {
     _deprecated_constructor('HQ_Widget', '4.3.0');
     HQ_Widget::__construct($id_base, $name, $widget_options, $control_options);
 }