Changeset 702849
- Timestamp:
- 04/24/2013 01:25:45 PM (13 years ago)
- Location:
- tagged-gallery/trunk
- Files:
-
- 6 edited
-
css/tg.css (modified) (1 diff)
-
js/jquery.resizecrop-1.0.3.js (modified) (1 diff)
-
js/resize.js (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
tg.php (modified) (1 diff)
-
tg_class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tagged-gallery/trunk/css/tg.css
r702420 r702849 29 29 background: url(/wp-content/plugins/tagged-gallery/images/logo.jpg) no-repeat; 30 30 background-size: 100%; 31 width: 150px;32 min-height:150px;33 height:auto !important;34 height:150px;35 31 display: inline-block; 36 32 } -
tagged-gallery/trunk/js/jquery.resizecrop-1.0.3.js
r702413 r702849 22 22 $obj.css("display","none"); // remove blink transformation 23 23 $obj.removeAttr("width").removeAttr("height"); // remove attribute dimensions 24 24 options.width = $obj.attr("thumb-width"); 25 options.height = $obj.attr("thumb-height"); 26 25 27 // Wrapper default CSS 26 28 var wrapper = $(document.createElement(options.wrapper)).css({ -
tagged-gallery/trunk/js/resize.js
r702413 r702849 1 1 $j=jQuery.noConflict(); 2 2 $j(document).ready(function() { 3 $j('.tagged-gallery').resizecrop({ 4 width: '150', 5 height: '150' 6 }); 3 $j('.tagged-gallery').resizecrop({ }); 7 4 }); -
tagged-gallery/trunk/readme.txt
r702424 r702849 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 0.6 7 Stable tag: 0.6.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 Tagged Gallery enables you to easily generate a gallery in any post or page based on tagged media. 16 16 17 Useage 17 = Useage = 18 18 19 19 * Tag a image in your media library. For this example we use 'Spring2013' 20 20 * Make a page or a blogpost where you want to display your images and tag that post/page with 'tg:Spring2013' and Tagged Gallery will create an image gallery of alle the images tagged with 'Spring2013' 21 * Remeber to set thumb size in admin interface :) 21 22 22 Dependency 23 = Dependency = 23 24 24 25 * Tag Pages by Bjorn Wijers - http://wordpress.org/extend/plugins/tag-pages/ 25 26 * WordPress Media Tags by Typomedia Foundation - http://www.typomedia.org/wordpress/plugins/wordpress-media-tags/ 27 26 28 Tagged Gallery does NOT connect to any external servers. Just getting tags and images from your WordPress database 29 30 = 0.6.1 = 31 32 Bugfix - in 0.6 i added the jQuery and forgot to add the values from Tagged Gallery settings. 33 27 34 28 35 = 0.6 = … … 71 78 == Upgrade Notice == 72 79 80 "Bugfix" 81 82 When I converted into jQuery for the thummaking, I forgot to remove hardcoded values from the jq-script and add variables. This is now fixed. -
tagged-gallery/trunk/tg.php
r702663 r702849 5 5 Description: Tagged Gallery enables you to easily generate a gallery in any post or page based on tagged media. 6 6 Author: Erik Bergh 7 Version: 0.6 7 Version: 0.6.1 8 8 Author URI: http://www.bergh.me 9 9 */ -
tagged-gallery/trunk/tg_class.php
r702409 r702849 14 14 $height = get_option('tg_thumb_height'); 15 15 $width = get_option('tg_thumb_width'); 16 16 17 foreach($posttags as $tag) 17 18 { … … 41 42 $img=substr($post->guid,strlen($server),strlen($post->guid)-strlen($server)); 42 43 43 $string="<img src=\"".$img."\" class=\"tagged-gallery\" style=\"max-width: 500px;\" data-larger=\"/wp-content/plugins/tagged-gallery/img.php?img=".$img."&size=700x700\" alt=\"".$img."\" /> ";44 $string="<img src=\"".$img."\" class=\"tagged-gallery\" style=\"max-width: none;\" thumb-width=\"".$width."\" thumb-height=\"".$height."\" data-larger=\"/wp-content/plugins/tagged-gallery/img.php?img=".$img."&size=700x700\" alt=\"".$img."\" /> "; 44 45 $sup.="<div class=\"tg-thumb\">".$string."</div>"; 45 46 //$sup.=$string;
Note: See TracChangeset
for help on using the changeset viewer.