equal
deleted
inserted
replaced
14 |
14 |
15 /*-----------------------------------------------------------------------------------*/ |
15 /*-----------------------------------------------------------------------------------*/ |
16 /* Widget Setup |
16 /* Widget Setup |
17 /*-----------------------------------------------------------------------------------*/ |
17 /*-----------------------------------------------------------------------------------*/ |
18 |
18 |
19 function video_Widget() { |
19 function __construct() { |
20 |
20 |
21 $widget_options = array( |
21 $widget_options = array( |
22 'classname' => 'video_widget', |
22 'classname' => 'video_widget', |
23 'description' => 'Custom video widget.'); |
23 'description' => 'Custom video widget.'); |
24 |
24 |
26 'width' => 200, |
26 'width' => 200, |
27 'height' => 400, |
27 'height' => 400, |
28 'id_base' => 'video_widget' |
28 'id_base' => 'video_widget' |
29 ); |
29 ); |
30 |
30 |
31 $this->WP_Widget( 'video_widget', 'Video Widget', $widget_options, $control_options ); |
31 parent::__construct( 'video_widget', 'Video Widget', $widget_options, $control_options ); |
32 |
32 |
33 } |
33 } |
34 |
34 |
35 |
35 |
36 function widget( $args, $instance ) { |
36 function widget( $args, $instance ) { |