Changeset 1064343
- Timestamp:
- 01/10/2015 03:31:52 AM (11 years ago)
- Location:
- masonry-post-gallery
- Files:
-
- 15 added
- 2 edited
-
tags/0.4.0.2b (added)
-
tags/0.4.0.2b/cactus-masonry-options.php (added)
-
tags/0.4.0.2b/cactus-masonry.js (added)
-
tags/0.4.0.2b/close.png (added)
-
tags/0.4.0.2b/imagesloaded.pkgd.min.js (added)
-
tags/0.4.0.2b/lightbox.css (added)
-
tags/0.4.0.2b/lightbox.min.js (added)
-
tags/0.4.0.2b/loading.gif (added)
-
tags/0.4.0.2b/masonry-post-gallery.css (added)
-
tags/0.4.0.2b/masonry-post-gallery.php (added)
-
tags/0.4.0.2b/masonry.pkgd.min.js (added)
-
tags/0.4.0.2b/next.png (added)
-
tags/0.4.0.2b/prev.png (added)
-
tags/0.4.0.2b/readme.txt (added)
-
tags/0.4.0.2b/spin.min.js (added)
-
trunk/masonry-post-gallery.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
masonry-post-gallery/trunk/masonry-post-gallery.php
r1064209 r1064343 307 307 if(!$thumbnail) 308 308 { 309 $output.=" <script>console.log('Cactus Masonry Error: -" . self::$a['default_image_id'] . "- Image with ID={$iid} cannot be found');</script>";309 $output.="console.log('Cactus Masonry Error: -" . self::$a['default_image_id'] . "- Image with ID={$iid} cannot be found');"; 310 310 return $output; 311 311 } … … 313 313 $link_class = "masonry_brick_a"; 314 314 if(self::$a['link_custom_class'] != '') $link_class .= " " . self::$a['link_custom_class']; 315 $link_class = "class= '{$link_class}'";316 $lightbox_text = " data-lightbox= '";317 if(self::$a['browse_with_lightbox'] === true) $lightbox_text .= "thispage '";318 else $lightbox_text .= $post->ID . " '";319 if(self::$a['show_lightbox_title'] === true) $lightbox_text .= " data-title= '" . $tit . "'";315 $link_class = "class=\"{$link_class}\""; 316 $lightbox_text = " data-lightbox=\""; 317 if(self::$a['browse_with_lightbox'] === true) $lightbox_text .= "thispage\""; 318 else $lightbox_text .= $post->ID . "\""; 319 if(self::$a['show_lightbox_title'] === true) $lightbox_text .= " data-title=\"" . $tit . "\""; 320 320 //Set where each image links and handle any interference with the show_lightbox parameter 321 321 if(has_post_thumbnail()) … … 386 386 if($show_databox) 387 387 { 388 $data_text = "<div class= 'cactus_masonry_databox'>";389 if(self::$a['display_post_titles'] && strlen($tit) > 0) $data_text .= "<div class= 'cm_title'>{$tit}</div>";390 if(self::$a['display_post_excerpts'] && strlen($excerpt) > 0) $data_text .= "<div class= 'cm_exerpt'>{$excerpt}</div>";388 $data_text = "<div class=\"cactus_masonry_databox\">"; 389 if(self::$a['display_post_titles'] && strlen($tit) > 0) $data_text .= "<div class=\"cm_title\">{$tit}</div>"; 390 if(self::$a['display_post_excerpts'] && strlen($excerpt) > 0) $data_text .= "<div class=\"cm_exerpt\">{$excerpt}</div>"; 391 391 $data_text .= "</div>"; 392 392 } … … 435 435 //Write the JavaScript 436 436 //Start with the innerHTML of the masonry_brick DIVs 437 $output .= " s = \"<{$link_type} {$lightbox_text} {$link_class} style='display: block;' href='{$lnk}'><img class='masonry_brick_img size-thumbnail' src='{$thumbnail[0]}' alt='{$tit}' style='";437 $output .= " s = '<{$link_type} {$lightbox_text} {$link_class} style=\"display: block;\" href=\"{$lnk}\"><img class=\"masonry_brick_img size-thumbnail\" src=\"{$thumbnail[0]}\" alt=\"{$tit}\" style=\""; 438 438 if(!($thumbnail[5] && strpos(self::$a['upscale_max_width'], '%') !== false) && (self::$a['width'] != 'auto')) $output .= "width: 100%; "; 439 439 $output .= "height: " . self::$a['height'] . "; "; 440 440 $output .= "max-height: " . self::$a['max_height'] . "; "; 441 441 if(self::$a['crop_images']) $output .= "visibility: hidden; "; 442 $output .= " '/>";443 if(self::$a['crop_images']) $output .= "<div class= 'cactus_masonry_cropped' style='background-image: url({$thumbnail[0]});'></div>";442 $output .= "\"/>"; 443 if(self::$a['crop_images']) $output .= "<div class=\"cactus_masonry_cropped\" style=\"background-image: url({$thumbnail[0]});\"></div>"; 444 444 //Add the databox containing the title and excerpt 445 445 if($show_databox) $output .= $data_text; 446 $output .= "</{$link_type}> \";";446 $output .= "</{$link_type}>';"; 447 447 //Create DOM Element for masonry_brick DIV 448 448 $output .= " -
masonry-post-gallery/trunk/readme.txt
r1064209 r1064343 63 63 64 64 == Changelog == 65 66 = 0.4.0.2b = 67 * Fixed a bug with the console error caused by an non-existent image id set as the default image id 68 * Fixed a major bug that may cause problems due to code changes caused by wptexturize on some sites... uh... wptexturize... 65 69 66 70 = 0.4.0.1b = … … 258 262 == Upgrade Notice == 259 263 264 = 0.4.0.2b = 265 WARNING: The 0.4 updates change the #masonry_post_gallery to div.masonry_post_gallery which could affect your custom CSS. Fixed a major bug caused by an interaction with wptexturize. 266 260 267 = 0.4.0.1b = 261 268 WARNING: The 0.4 updates change the #masonry_post_gallery to div.masonry_post_gallery which could affect your custom CSS. The latest update fixes a 404 warning for lightbox.min.map.
Note: See TracChangeset
for help on using the changeset viewer.