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'));
         }
     }
 }
 function Woo_Twitter()
 {
     $widget_ops = array('description' => 'Add your Twitter feed to your sidebar with this widget.');
     parent::nxt_Widget(false, __('Woo - Twitter Stream', 'woothemes'), $widget_ops);
 }
 function Woo_NavWidget()
 {
     $widget_ops = array('description' => 'Use this widget to add one of your Woo Custom Navigation Menus as a widget.');
     parent::nxt_Widget(false, __('Woo - Custom Nav Menu', 'woothemes'), $widget_ops);
 }
Example #4
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 Woo_BlogAuthorInfo()
 {
     $widget_ops = array('description' => 'This is a WooThemes Blog Author Info widget.');
     parent::nxt_Widget(false, __('Woo - Blog Author Info', 'woothemes'), $widget_ops);
 }
 function Woo_Subscribe()
 {
     $widget_ops = array('description' => 'Add a subscribe/connect widget.');
     parent::nxt_Widget(false, __('Woo - Subscribe / Connect', 'woothemes'), $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);
 }
 function AboutMeWidget()
 {
     $widget_ops = array('description' => 'Displays About Me Information');
     $control_ops = array('width' => 400, 'height' => 300);
     parent::nxt_Widget(false, $name = 'ET About Me Widget', $widget_ops, $control_ops);
 }
Example #9
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();
 }
 function AdsenseWidget()
 {
     $widget_ops = array('description' => 'Displays Adsense Ads');
     $control_ops = array('width' => 400, 'height' => 500);
     parent::nxt_Widget(false, $name = 'ET Adsense Widget', $widget_ops, $control_ops);
 }
Example #11
0
 function __construct()
 {
     parent::__construct(false, $name = __('Recent Networkwide Posts', 'buddypress'));
 }
Example #12
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);
 }
 function Woo_AdWidget()
 {
     $widget_ops = array('description' => __('Use this widget to add any type of Ad as a widget.', 'woothemes'));
     parent::nxt_Widget(false, __('Woo - Adspace Widget', 'woothemes'), $widget_ops);
 }
 function CustomLogoWidget()
 {
     $widget_ops = array('description' => 'Displays Logo, Copyright and Additional Information');
     $control_ops = array('width' => 400, 'height' => 300);
     parent::nxt_Widget(false, $name = 'ET Custom Logo Widget', $widget_ops, $control_ops);
 }
 function Woo_EmbedWidget()
 {
     $widget_ops = array('description' => 'Display the Embed code from posts in tab like fashion.');
     parent::nxt_Widget(false, __('Woo - Embed/Video', 'woothemes'), $widget_ops);
 }
 function Woo_flickr()
 {
     $widget_ops = array('description' => 'This Flickr widget populates photos from a Flickr ID.');
     parent::nxt_Widget(false, __('Woo - Flickr', 'woothemes'), $widget_ops);
 }
 function Woo_Search()
 {
     $widget_ops = array('description' => 'This is a WooThemes standardized search widget.');
     parent::nxt_Widget(false, __('Woo - Search', 'woothemes'), $widget_ops);
 }