diff -r 000000000000 -r d970ebf37754 wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/widget-Flickr.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/widget-Flickr.php Wed Nov 06 03:21:17 2013 +0000 @@ -0,0 +1,109 @@ + 'flickr_widget', + 'description' => 'Custom Flickr widget.'); + + $control_options = array( //dodama svoje incializirane mere + 'width' => 200, + 'height' => 400, + 'id_base' => 'flickr_widget' + ); + + $this->WP_Widget( 'flickr_widget', 'Flickr Widget', $widget_options, $control_options ); + +} + + + +function widget( $args, $instance ) { + + extract( $args ); + $title = apply_filters('widget_title', $instance['title'] ); + $username = $instance['username']; + $pics_number = $instance['pics_number']; + + echo $before_widget; + + if ( $title ) + { + echo $before_title; + echo $title; + echo $after_title; + } + + ?> + +
+ +
+
'Flickr Widget', + 'username' => '62421008@N06', + 'pics_number' => '9' + ); + $instance = wp_parse_args( (array) $instance, $defaults ); + + ?> + + + + + + + + + + + \ No newline at end of file