400, 'height' => 350);
parent::__construct(
'dnx-countdown', // id_base
__('danixland CountDown', 'dnxcd' ), // Name
array( 'description' => __('Use this widget to add a simple Count Down to your Sidebar', 'dnxcd') ),
$control_ops
);
}
/**
* How to display the widget on the public side of the site.
*/
public function widget( $args, $instance ) {
extract( $args );
/* Our variables from the widget settings. */
$title = apply_filters('widget_title', $instance['title'] );
/* Before widget (defined by themes). */
echo $before_widget;
/* Display the widget title if one was input (before and after defined by themes). */
if ( $title ) {
echo $before_title . $title . $after_title;
}
if ( '' != get_option('dnxcd_future_date') ) {
echo '