/** * The constructor for this widget. * * @return void * @author Jimmy K. */ public function __construct() { parent::__construct(); // Set the plugin settings. $this->settings['namespace'] = 'oms_sw_content'; // Set the options. $options = array('classname' => 'OMS_SidebarContentWidget', 'description' => 'An open content area widget. Raw HTML can be pasted into it and displayed in your sidebar.'); // Set the fields. $this->fields = array('title' => '', 'html' => ''); // Initialize the widget. $this->WP_Widget('OMS_SidebarContentWidget', 'OMS Content Widget', $options, array('width' => 500)); }
/** * The constructor for this widget. * * @return void * @author Jimmy K. <*****@*****.**> */ public function __construct() { parent::__construct(); // Set the plugin settings. $this->settings['namespace'] = 'oms_sw_image'; // Set the options. $options = array('classname' => 'OMS_SidebarImageWidget', 'description' => 'An image widget. Images open in a prettyPhoto lightbox when clicked.'); // Set the fields. $this->fields = array('title' => '', 'thumbnail_image' => '', 'full_image' => '', 'caption' => ''); // Initialize the widget. $this->WP_Widget('OMS_SidebarImageWidget', 'OMS Image Widget', $options); }
/** * The constructor for this widget. * * @return void * @author Jimmy K. <*****@*****.**> */ public function __construct() { parent::__construct(); // Set the plugin settings. $this->settings['namespace'] = 'oms_sw_map'; // Set the options. $options = array('classname' => 'OMS_SidebarMapWidget', 'description' => 'A Google Maps widget. Locations can be automatically geocoded using the Google Maps API.'); // Set the fields. $this->fields = array('json' => '', 'title' => '', 'marker_image' => ''); // Initialize the widget. $this->WP_Widget('OMS_SidebarMapWidget', 'OMS Map Widget', $options); }
/** * The constructor for this widget. * * @return void * @author Jimmy K. <*****@*****.**> */ public function __construct() { parent::__construct(); // Set the plugin settings. $this->settings['namespace'] = 'oms_sw_video'; // Set the options. $options = array('classname' => 'OMS_SidebarVideoWidget', 'description' => 'A video widget. Videos play in a prettyPhoto lightbox when clicked. Supported video types are YouTube and Vimeo.'); // Set the fields. $this->fields = array('title' => '', 'thumbnail_image' => '', 'video_url' => '', 'caption' => '', 'length' => ''); // Initialize the widget. $this->WP_Widget('OMS_SidebarVideoWidget', 'OMS Video Widget', $options); }