Permalink
Browse files

Merge branch 'develop'

  • Loading branch information...
2 parents b36b61b + 85e25da commit 19acd4a21030ba0768ac72767c7f401297e4a532 @founddrama committed Mar 16, 2012
Showing with 7 additions and 2 deletions.
  1. +1 −1 js/wp-flickr-badge.js
  2. +2 −0 src/js/wp-flickr-badge.js
  3. +4 −1 widget.php
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -4,6 +4,8 @@
if (window.jQuery) {
(function($){
$(document).ready(function(){
+ $('.flickr_badge_image').prependTo('#flickr_badge_wrapper');
+
var i, w = $('#flickr_www_wrapper');
$('.flickr_badge_image').hover(function(){
View
@@ -25,8 +25,11 @@ function widget($args, $instance) {
$size = $instance['photo_size'];
echo $before_widget;
if ( $flickr_user ) ?>
- <div id="flickr_badge_uber_wrapper"><div id="flickr_badge_wrapper"><script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=<?php echo $count; ?>&display=<?php echo $display; ?>&size=<?php echo $size; ?>&layout=x&source=user&user=<?php echo $flickr_user; ?>"></script></div><a href="http://www.flickr.com" id=flickr_www><span id="flickr_www_wrapper">flick<span style="color:#ff1c92;">r</span></span></a></div>
+ <div id="flickr_badge_uber_wrapper"><div id="flickr_badge_wrapper"></div><a href="http://www.flickr.com" id=flickr_www><span id="flickr_www_wrapper">flick<span style="color:#ff1c92;">r</span></span></a></div>
<?php
+ add_action('wp_footer',
+ create_function('', 'echo \'<script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=' . $count . '&display=' . $display . '&size=' . $size . '&layout=x&source=user&user=' . $flickr_user . '"></script>\';')
+ );
echo $after_widget;
}

0 comments on commit 19acd4a

Please sign in to comment.