Example #1
0
 function __construct()
 {
     $widget_ops = array('description' => __('A dynamic list of recently active, popular, and newest groups', 'buddypress'));
     parent::__construct(false, __('Groups', 'buddypress'), $widget_ops);
     if (is_active_widget(false, false, $this->id_base) && !is_admin() && !is_network_admin()) {
         if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
             nxt_enqueue_script('groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.dev.js', array('jquery'));
         } else {
             nxt_enqueue_script('groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.js', array('jquery'));
         }
     }
 }
Example #2
0
 function __construct()
 {
     $widget_ops = array('description' => __('Use this widget to add one of your custom menus as a widget.'));
     parent::__construct('nav_menu', __('Custom Menu'), $widget_ops);
 }
 function __construct()
 {
     $widget_ops = array('description' => __('Avatars of recently active members', 'buddypress'));
     parent::__construct(false, $name = __('Recently Active Member Avatars', 'buddypress'), $widget_ops);
 }
Example #4
0
 /**
  * Initializes the widget.
  *
  * As part of initialization, this method uses the values of two required
  * methods and one optional attribute on the widget.
  *
  * The first required method, `get_name()`, should return the name to use
  * for the widget.  The second, `get_description()`, should return the
  * widget's description.  The optional attribute, `$css_class`, may be
  * given a value to provide the widget with a custom CSS class.
  *
  * In addition to these methods and attributes, this also calls the `init()`
  * method on the descending plugin, which can contain any custom initializaiton
  * code that the plugin wants to run.
  *
  * @access protected
  * @since 0.1
  */
 public function __construct()
 {
     parent::__construct(false, $this->get_name(), array('description' => $this->get_description(), 'classname' => 'cb-widget ' . $this->css_class));
     $this->init();
 }
Example #5
0
 function __construct()
 {
     parent::__construct(false, $name = __('Recent Networkwide Posts', 'buddypress'));
 }
Example #6
0
 /**
  * PHP4 constructor
  */
 function nxt_Widget($id_base = false, $name, $widget_options = array(), $control_options = array())
 {
     nxt_Widget::__construct($id_base, $name, $widget_options, $control_options);
 }