Changeset 692229
- Timestamp:
- 04/05/2013 02:14:13 PM (13 years ago)
- Location:
- piwigomedia
- Files:
-
- 5 edited
- 8 copied
-
tags/1.1.2 (copied) (copied from piwigomedia/trunk)
-
tags/1.1.2/css/piwigomedia.css (copied) (copied from piwigomedia/trunk/css/piwigomedia.css)
-
tags/1.1.2/functions.php (copied) (copied from piwigomedia/trunk/functions.php)
-
tags/1.1.2/js/galleria (copied) (copied from piwigomedia/trunk/js/galleria)
-
tags/1.1.2/js/piwigomedia.js (modified) (2 diffs)
-
tags/1.1.2/piwigomedia.php (copied) (copied from piwigomedia/trunk/piwigomedia.php) (4 diffs)
-
tags/1.1.2/readme.txt (copied) (copied from piwigomedia/trunk/readme.txt) (2 diffs)
-
tags/1.1.2/shortcode.php (copied) (copied from piwigomedia/trunk/shortcode.php) (3 diffs)
-
tags/1.1.2/widget.php (copied) (copied from piwigomedia/trunk/widget.php)
-
trunk/js/piwigomedia.js (modified) (2 diffs)
-
trunk/piwigomedia.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shortcode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
piwigomedia/tags/1.1.2/js/piwigomedia.js
r606936 r692229 167 167 'input[name="url"]:checked').val(); 168 168 if (url_ == 'fullsize') 169 url_ = img. element_url; // fullsize image169 url_ = img.derivatives.xxlarge.url; // fullsize image 170 170 else 171 171 url_ = img.categories[0].page_url; // image page … … 174 174 'input[name="whatinsert"]:checked').val(); 175 175 if (imurl_ == 'fullsize') 176 imurl_ = img. element_url;176 imurl_ = img.derivatives.xxlarge.url; 177 177 else 178 178 imurl_ = get_image_thumb(img); -
piwigomedia/tags/1.1.2/piwigomedia.php
r691230 r692229 4 4 Plugin URI: http://joaoubaldo.com 5 5 Description: This plugins allows media from a Piwigo site to be inserted into WordPress posts. 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: João C. 8 8 Author URI: http://joaoubaldo.com … … 11 11 12 12 require_once("shortcode.php"); 13 require_once("widget.php");13 //require_once("widget.php"); 14 14 15 15 … … 40 40 add_shortcode('pwg-gallery', 'pwg_gallery'); 41 41 42 wp_register_sidebar_widget("piwigomedia-images", "Piwigo Images", "piwigomedia_widget",43 array("description" => __("Display Piwigo media on a sidebar widget", "piwigomedia"),44 "site" => "s", "category" => "cate"));42 //wp_register_sidebar_widget("piwigomedia-images", "Piwigo Images", "piwigomedia_widget", 43 //array("description" => __("Display Piwigo media on a sidebar widget", "piwigomedia"), 44 //"site" => "s", "category" => "cate")); 45 45 } 46 46 … … 53 53 54 54 add_action('init', 'register_piwigomedia_plugin'); 55 add_action('widgets_init', function() { return register_widget( "PiwigoMediaWidget" ); });55 //add_action('widgets_init', function() { return register_widget( "PiwigoMediaWidget" ); }); 56 56 add_action('wp_enqueue_scripts', 'load_piwigomedia_headers'); 57 57 -
piwigomedia/tags/1.1.2/readme.txt
r691230 r692229 5 5 Requires at least: 3.0.1 6 6 Tested up to: 3.3.1 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 9 9 This plugins allows media from a Piwigo site to be inserted into WordPress posts. … … 65 65 66 66 == Changelog == 67 = 1.1.2 = 68 * update: Fixed full image urls. 69 * update: Disabled PiwigoMedia's Widget as it was causing issues on some installations. 70 * update: pwg-gallery shortcode now has links to xxlarge image and image name is displayed in info box. 71 67 72 = 1.1.1 = 68 73 * new: pwg-gallery shortcode. This shortcode uses Galleria JS library (http://galleria.io/) to display Piwigo categories as inline galleries. -
piwigomedia/tags/1.1.2/shortcode.php
r691230 r692229 22 22 $out .= "<div id=\"piwigomedia-gallery-$id\" style=\"height: ".$height."px;\">"; 23 23 foreach($res->result->images->_content as $img) { 24 $out .= "<a href=\"".$img-> element_url."\"><img src=\"".$img->derivatives->thumb->url."\"></a>";24 $out .= "<a href=\"".$img->derivatives->xxlarge->url."\"><img src=\"".$img->derivatives->thumb->url."\" data-title=\"".$img->name."\" data-link=\"".$img->derivatives->xxlarge->url."\"></a>"; 25 25 } 26 26 $out .= "</div>"; … … 49 49 $out .= "<ul class=\"piwigomedia-category-preview\">"; 50 50 foreach($res->result->images->_content as $img) { 51 $out .= "<li><a class=\"piwigomedia-single-image\" href=\"".$img-> element_url."\"><img src=\"".$img->derivatives->thumb->url."\"></a></li>";51 $out .= "<li><a class=\"piwigomedia-single-image\" href=\"".$img->derivatives->xxlarge->url."\"><img src=\"".$img->derivatives->thumb->url."\"></a></li>"; 52 52 } 53 53 $out .= "</ul>"; … … 72 72 if ($res->stat != "ok") 73 73 return; 74 $out = "<a class=\"piwigomedia-single-image\" href=\"".$res->result-> element_url."\"><img src=\"".$res->result->derivatives->thumb->url."\"></a>";74 $out = "<a class=\"piwigomedia-single-image\" href=\"".$res->result->derivatives->xxlarge->url."\"><img src=\"".$res->result->derivatives->thumb->url."\"></a>"; 75 75 return "$out"; 76 76 } -
piwigomedia/trunk/js/piwigomedia.js
r606936 r692229 167 167 'input[name="url"]:checked').val(); 168 168 if (url_ == 'fullsize') 169 url_ = img. element_url; // fullsize image169 url_ = img.derivatives.xxlarge.url; // fullsize image 170 170 else 171 171 url_ = img.categories[0].page_url; // image page … … 174 174 'input[name="whatinsert"]:checked').val(); 175 175 if (imurl_ == 'fullsize') 176 imurl_ = img. element_url;176 imurl_ = img.derivatives.xxlarge.url; 177 177 else 178 178 imurl_ = get_image_thumb(img); -
piwigomedia/trunk/piwigomedia.php
r691230 r692229 4 4 Plugin URI: http://joaoubaldo.com 5 5 Description: This plugins allows media from a Piwigo site to be inserted into WordPress posts. 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: João C. 8 8 Author URI: http://joaoubaldo.com … … 11 11 12 12 require_once("shortcode.php"); 13 require_once("widget.php");13 //require_once("widget.php"); 14 14 15 15 … … 40 40 add_shortcode('pwg-gallery', 'pwg_gallery'); 41 41 42 wp_register_sidebar_widget("piwigomedia-images", "Piwigo Images", "piwigomedia_widget",43 array("description" => __("Display Piwigo media on a sidebar widget", "piwigomedia"),44 "site" => "s", "category" => "cate"));42 //wp_register_sidebar_widget("piwigomedia-images", "Piwigo Images", "piwigomedia_widget", 43 //array("description" => __("Display Piwigo media on a sidebar widget", "piwigomedia"), 44 //"site" => "s", "category" => "cate")); 45 45 } 46 46 … … 53 53 54 54 add_action('init', 'register_piwigomedia_plugin'); 55 add_action('widgets_init', function() { return register_widget( "PiwigoMediaWidget" ); });55 //add_action('widgets_init', function() { return register_widget( "PiwigoMediaWidget" ); }); 56 56 add_action('wp_enqueue_scripts', 'load_piwigomedia_headers'); 57 57 -
piwigomedia/trunk/readme.txt
r691230 r692229 5 5 Requires at least: 3.0.1 6 6 Tested up to: 3.3.1 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 9 9 This plugins allows media from a Piwigo site to be inserted into WordPress posts. … … 65 65 66 66 == Changelog == 67 = 1.1.2 = 68 * update: Fixed full image urls. 69 * update: Disabled PiwigoMedia's Widget as it was causing issues on some installations. 70 * update: pwg-gallery shortcode now has links to xxlarge image and image name is displayed in info box. 71 67 72 = 1.1.1 = 68 73 * new: pwg-gallery shortcode. This shortcode uses Galleria JS library (http://galleria.io/) to display Piwigo categories as inline galleries. -
piwigomedia/trunk/shortcode.php
r691230 r692229 22 22 $out .= "<div id=\"piwigomedia-gallery-$id\" style=\"height: ".$height."px;\">"; 23 23 foreach($res->result->images->_content as $img) { 24 $out .= "<a href=\"".$img-> element_url."\"><img src=\"".$img->derivatives->thumb->url."\"></a>";24 $out .= "<a href=\"".$img->derivatives->xxlarge->url."\"><img src=\"".$img->derivatives->thumb->url."\" data-title=\"".$img->name."\" data-link=\"".$img->derivatives->xxlarge->url."\"></a>"; 25 25 } 26 26 $out .= "</div>"; … … 49 49 $out .= "<ul class=\"piwigomedia-category-preview\">"; 50 50 foreach($res->result->images->_content as $img) { 51 $out .= "<li><a class=\"piwigomedia-single-image\" href=\"".$img-> element_url."\"><img src=\"".$img->derivatives->thumb->url."\"></a></li>";51 $out .= "<li><a class=\"piwigomedia-single-image\" href=\"".$img->derivatives->xxlarge->url."\"><img src=\"".$img->derivatives->thumb->url."\"></a></li>"; 52 52 } 53 53 $out .= "</ul>"; … … 72 72 if ($res->stat != "ok") 73 73 return; 74 $out = "<a class=\"piwigomedia-single-image\" href=\"".$res->result-> element_url."\"><img src=\"".$res->result->derivatives->thumb->url."\"></a>";74 $out = "<a class=\"piwigomedia-single-image\" href=\"".$res->result->derivatives->xxlarge->url."\"><img src=\"".$res->result->derivatives->thumb->url."\"></a>"; 75 75 return "$out"; 76 76 }
Note: See TracChangeset
for help on using the changeset viewer.