Plugin Directory

Changeset 718787


Ignore:
Timestamp:
05/27/2013 09:37:42 AM (13 years ago)
Author:
erikrasmussen
Message:

2.3 fixed another tagging bug

Location:
javascript-flickr-badge
Files:
1 deleted
2 edited
7 copied

Legend:

Unmodified
Added
Removed
  • javascript-flickr-badge/tags/2.3/javascript-flickr-badge.php

    r718422 r718787  
    44Plugin URI: http://blog.jyst.us/javascript-flickr-badge?utm_source=Wordpress&utm_medium=Plugin%2BAdmin&utm_campaign=Javascript%2BFlickr%2BBadge
    55Description: Displays photos from Flickr, with optional tag filtering, with client-side javascript. Several eye-catching effects available.
    6 Version: 2.2
     6Version: 2.3
    77Author: Jyst
    88Author URI: http://jyst.us/
     
    2121    $options = get_option('javascript_flickr_badge');
    2222  if($options['flickrId']) {
     23    if($options["tags"]) {
     24            $tagString = "'".join('\',\'',$options['tags'])."'";
     25    }
     26    else {
     27      $tagString = "";
     28    }
    2329  ?>
    2430  <script type="text/javascript">
    25     jsFlickrBadge(document.getElementById('jsFlickrBadge'), {
    26       flickrId: '<?php echo $options['flickrId'] ? $options['flickrId'] : '40969270@N00'; ?>',
    27       feed: '<?php echo $options['feed'] ? $options['feed'] : 'group'; ?>',
    28       tags: '<?php echo $options['tags'] ? $options['tags'] : ''; ?>',
    29       rows: <?php echo $options['rows'] ? $options['rows'] : 3; ?>,
    30       columns: <?php echo $options['columns'] ? $options['columns'] : 3; ?>,
    31       size: <?php echo $options['size'] ? $options['size'] : 75; ?>,
    32       animation: '<?php echo $options['animation'] ? $options['animation'] : 'none'; ?>',
    33       animationSpeed: <?php echo $options['animationSpeed'] ? $options['animationSpeed'] : '1'; ?>,
    34       animationPause: <?php echo $options['animationPause'] ? $options['animationPause'] : '2'; ?>
     31    jsFlickrBadge(document.getElementById("jsFlickrBadge"), {
     32      flickrId: "<?php echo $options["flickrId"] ? $options["flickrId"] : "40969270@N00"; ?>",
     33      feed: "<?php echo $options["feed"] ? $options["feed"] : "group"; ?>",
     34      tags: [<?php echo $tagString; ?>],
     35      rows: <?php echo $options["rows"] ? $options["rows"] : 3; ?>,
     36      columns: <?php echo $options["columns"] ? $options["columns"] : 3; ?>,
     37      size: <?php echo $options["size"] ? $options["size"] : 75; ?>,
     38      animation: "<?php echo $options["animation"] ? $options["animation"] : "none"; ?>",
     39      animationSpeed: <?php echo $options["animationSpeed"] ? $options["animationSpeed"] : "1"; ?>,
     40      animationPause: <?php echo $options["animationPause"] ? $options["animationPause"] : "2"; ?>
    3541    });
    3642  </script>
     
    5157 else {
    5258        $tags = join('+', $options['tags']);
    53         $tagstitle = join(' & ', $options['tags']);
    5459        $photostream = 'http://www.flickr.com/photos/' . $options['flickrId'] . '/';
    5560        $rows = $options['rows'] ? $options['rows'] : 3;
    5661        $size = $options['size'] ? $options['size'] : 75;
     62        echo '<!-- Javascript Flickr Badge (http://blog.jyst.us/javascript-flickr-badge) v2.3 -->';
    5763        echo $before_widget . $before_title . '<a id="jsFlickrBadgeTitle" href="' . $photostream . '">' . $title . '</a>' . $after_title;
    5864        echo '<div id="jsFlickrBadge" style="position:relative;height:'.($rows * $size).'px;"><div style="padding:10px;"><a href="http://blog.jyst.us/javascript-flickr-badge?utm_source=Wordpress&utm_medium=Plugin&utm_campaign=Javascript%2BFlickr%2BBadge">Javascript Flickr Badge</a>, by <a href="http://jyst.us/" title="Social Media Aggregator">Jyst</a>, a <a href="http://jyst.us/" title="Social Media Aggregator">Social Media Aggregator</a>, requires javascript.</div></div>';
  • javascript-flickr-badge/tags/2.3/readme.txt

    r718422 r718787  
    44Requires at least: 2.0.2
    55Tested up to: 3.5.1
    6 Stable tag: 2.2
     6Stable tag: 2.3
    77
    88Displays photos from Flickr, with optional tag filtering, with pure client-side javascript. Several eye-catching effects available.
     
    7979= 2.2 =
    8080* Fixed bug with tag filtering
     81= 2.3 =
     82* Fixed another bug with tag filtering
  • javascript-flickr-badge/trunk/javascript-flickr-badge.php

    r718422 r718787  
    44Plugin URI: http://blog.jyst.us/javascript-flickr-badge?utm_source=Wordpress&utm_medium=Plugin%2BAdmin&utm_campaign=Javascript%2BFlickr%2BBadge
    55Description: Displays photos from Flickr, with optional tag filtering, with client-side javascript. Several eye-catching effects available.
    6 Version: 2.2
     6Version: 2.3
    77Author: Jyst
    88Author URI: http://jyst.us/
     
    2121    $options = get_option('javascript_flickr_badge');
    2222  if($options['flickrId']) {
     23    if($options["tags"]) {
     24            $tagString = "'".join('\',\'',$options['tags'])."'";
     25    }
     26    else {
     27      $tagString = "";
     28    }
    2329  ?>
    2430  <script type="text/javascript">
    25     jsFlickrBadge(document.getElementById('jsFlickrBadge'), {
    26       flickrId: '<?php echo $options['flickrId'] ? $options['flickrId'] : '40969270@N00'; ?>',
    27       feed: '<?php echo $options['feed'] ? $options['feed'] : 'group'; ?>',
    28       tags: '<?php echo $options['tags'] ? $options['tags'] : ''; ?>',
    29       rows: <?php echo $options['rows'] ? $options['rows'] : 3; ?>,
    30       columns: <?php echo $options['columns'] ? $options['columns'] : 3; ?>,
    31       size: <?php echo $options['size'] ? $options['size'] : 75; ?>,
    32       animation: '<?php echo $options['animation'] ? $options['animation'] : 'none'; ?>',
    33       animationSpeed: <?php echo $options['animationSpeed'] ? $options['animationSpeed'] : '1'; ?>,
    34       animationPause: <?php echo $options['animationPause'] ? $options['animationPause'] : '2'; ?>
     31    jsFlickrBadge(document.getElementById("jsFlickrBadge"), {
     32      flickrId: "<?php echo $options["flickrId"] ? $options["flickrId"] : "40969270@N00"; ?>",
     33      feed: "<?php echo $options["feed"] ? $options["feed"] : "group"; ?>",
     34      tags: [<?php echo $tagString; ?>],
     35      rows: <?php echo $options["rows"] ? $options["rows"] : 3; ?>,
     36      columns: <?php echo $options["columns"] ? $options["columns"] : 3; ?>,
     37      size: <?php echo $options["size"] ? $options["size"] : 75; ?>,
     38      animation: "<?php echo $options["animation"] ? $options["animation"] : "none"; ?>",
     39      animationSpeed: <?php echo $options["animationSpeed"] ? $options["animationSpeed"] : "1"; ?>,
     40      animationPause: <?php echo $options["animationPause"] ? $options["animationPause"] : "2"; ?>
    3541    });
    3642  </script>
     
    5157 else {
    5258        $tags = join('+', $options['tags']);
    53         $tagstitle = join(' & ', $options['tags']);
    5459        $photostream = 'http://www.flickr.com/photos/' . $options['flickrId'] . '/';
    5560        $rows = $options['rows'] ? $options['rows'] : 3;
    5661        $size = $options['size'] ? $options['size'] : 75;
     62        echo '<!-- Javascript Flickr Badge (http://blog.jyst.us/javascript-flickr-badge) v2.3 -->';
    5763        echo $before_widget . $before_title . '<a id="jsFlickrBadgeTitle" href="' . $photostream . '">' . $title . '</a>' . $after_title;
    5864        echo '<div id="jsFlickrBadge" style="position:relative;height:'.($rows * $size).'px;"><div style="padding:10px;"><a href="http://blog.jyst.us/javascript-flickr-badge?utm_source=Wordpress&utm_medium=Plugin&utm_campaign=Javascript%2BFlickr%2BBadge">Javascript Flickr Badge</a>, by <a href="http://jyst.us/" title="Social Media Aggregator">Jyst</a>, a <a href="http://jyst.us/" title="Social Media Aggregator">Social Media Aggregator</a>, requires javascript.</div></div>';
  • javascript-flickr-badge/trunk/readme.txt

    r718422 r718787  
    44Requires at least: 2.0.2
    55Tested up to: 3.5.1
    6 Stable tag: 2.2
     6Stable tag: 2.3
    77
    88Displays photos from Flickr, with optional tag filtering, with pure client-side javascript. Several eye-catching effects available.
     
    7979= 2.2 =
    8080* Fixed bug with tag filtering
     81= 2.3 =
     82* Fixed another bug with tag filtering
Note: See TracChangeset for help on using the changeset viewer.