Changeset 4082


Ignore:
Timestamp:
Oct 21, 2009, 8:25:32 PM (15 years ago)
Author:
vdigital
Message:

[Public Piwigo WordPress Widget] Don't make any mistake it is a WordPress sidebar widget!

Set release 1.01
Co-Authors,
Link bug with some theme: solved

Location:
extensions/Public_Piwigo_WordPress_Widget
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Public_Piwigo_WordPress_Widget/Public_WP_Piwigo_Widget.php

    r4073 r4082  
    44Plugin URI: http://piwigo.org/ext/extension_view.php?eid=316
    55Description: Public Piwigo WordPress Widget (PW^2) is a WordPress 2.8 widget, it links a public picture in your Piwigo gallery (<a href="http://piwigo.org/">Piwigo</a>). In other words, it's a WordPress Sidebar Widget with some available public pictures in your Piwigo gallery as a prereq.
    6 Version: 1.00
    7 Author: VDigital
     6Version: 1.01
     7Author: VDigital, rvelices, Laurent Duretz, ddtddt (The Piwigo Team)
    88Author URI: http://www.vdigital.org/sharing/
    99*/
  • extensions/Public_Piwigo_WordPress_Widget/Public_WP_Piwigo_code.php

    r4073 r4082  
    2525if (!empty($gallery['from'])) $options .= '&f_min_date_created=' . $from;
    2626
    27 $divclass = empty($gallery['divclass']) ? '' : (' class="' . $gallery['divclass'] .'"');
    28 $class = empty($gallery['class']) ? '' : (' class="' . $gallery['class'] .'"');
     27$PW2_divclass = empty($gallery['divclass']) ? '' : (' class="' . $gallery['divclass'] .'"');
     28$PW2_class = empty($gallery['class']) ? '' : (' class="' . $gallery['class'] .'"');
    2929$mbcategories = empty($gallery['mbcategories']) ? '' : $gallery['mbcategories'];
    3030$most_visited = empty($gallery['most_visited']) ? '' : $gallery['most_visited'];
     
    4949                $pictures = $thumbc["result"]["images"]["_content"];
    5050                foreach ($pictures as $picture) {
    51                         echo '<div' . $divclass . '><a title="' . $title . '" href="'
     51                        echo '<div' . $PW2_divclass . '><a title="' . htmlspecialchars($picture['name']) . '" href="'
    5252                                . $piwigo_url . 'picture.php?/' . $picture['id'] . '"><img '
    53                                 . $class . ' src="' . $picture['tn_url'] . '" alt="" /></a></div>';
     53                                . $PW2_class . ' src="' . $picture['tn_url'] . '" alt="" /></a></div>';
    5454                }
    5555        }
  • extensions/Public_Piwigo_WordPress_Widget/readme.txt

    r4056 r4082  
    7373== Changelog ==
    7474
     75= 1.01 =
     76* I18n version (French, Spanish,...)
     77  Link bug with some theme... Solved.
     78
    7579= 1.0 =
    7680* First version.
Note: See TracChangeset for help on using the changeset viewer.