Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @author Armando Sosa
  */
 function __construct()
 {
     $this->name = get_class($this);
     if (!$this->title) {
         $this->title = $this->name;
     }
     if (empty($this->slug)) {
         $this->slug = str_replace('_widget', '', underscorize($this->name));
     }
     $widgetOptions = array('classname' => $this->slug, 'description' => $this->description);
     $controlOptions = array('width' => $this->width);
     parent::__construct($this->name, $this->title, $widgetOptions, $controlOptions);
 }
Exemplo n.º 2
0
 /**
  * Register widget with WordPress.
  */
 function __construct()
 {
     $this->gallery = new GridGallery_Galleries_Model_Galleries();
     parent::__construct('sggWidget', 'Gallery by Supsystic Widget', array('description' => 'Gallery by Supsystic plugin'));
 }
 function CodelessShortcodeWidget()
 {
     $options = array('classname' => 'widget_shortcode', 'description' => 'Add a text widget to show shortcodes');
     parent::__construct('widget_shortcode', THEMENAME . ' Widget Shortcode', $options);
 }
Exemplo n.º 4
0
 /**
  * Register widget with WordPress.
  */
 function __construct()
 {
     parent::__construct('sslWidget', 'Slider by Supsystic Widget', array('description' => 'Slider by Supsystic plugin'));
     $this->slider = new SupsysticSlider_Slider_Model_Sliders();
 }