diff -r 000000000000 -r d970ebf37754 wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/widget-video.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/widget-video.php Wed Nov 06 03:21:17 2013 +0000
@@ -0,0 +1,108 @@
+ 'video_widget',
+ 'description' => 'Custom video widget.');
+
+ $control_options = array( //dodama svoje incializirane mere
+ 'width' => 200,
+ 'height' => 400,
+ 'id_base' => 'video_widget'
+ );
+
+ $this->WP_Widget( 'video_widget', 'Video Widget', $widget_options, $control_options );
+
+}
+
+
+function widget( $args, $instance ) {
+
+ extract( $args );
+ $title = apply_filters('widget_title', $instance['title'] );
+ $embed_code = $instance['embed_code'];
+ $description = $instance['description'];
+
+ echo $before_widget;
+
+ if ( $title )
+ {
+ echo $before_title;
+ echo $title;
+ echo $after_title;
+ }
+ ?>
+ '.$embed_code.'