function killping_setting_page() { $widget_ops = array('description' => 'This is text widget.'); $control_ops = array('width' => '400'); parent::Wp_Widget(false, 'My Setting Widget', $widget_ops, $control_ops); }
/** * 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); }
function form($instance) { if (!empty($this->options)) { $this->initOptions($instance); $this->includeTemplate($this->slug . "_control"); } else { parent::form($instance); } }
/** * 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(); }