This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***** Slider Widget (Homepage) *****/ | |
class mh_slider_hp_widget extends WP_Widget { | |
function mh_slider_hp_widget () { | |
$widget_ops = array('classname' => 'mh_slider_hp', 'description' => __('Slider widget for use on homepage templates', 'mh')); | |
$this->WP_Widget('mh_slider_hp', __('MH Slider Widget (Homepage)', 'mh'), $widget_ops); | |
} | |
function widget($args, $instance) { | |
extract($args); | |
$postcount = empty($instance['postcount']) ? '5' : $instance['postcount']; |