Changeset 578236
- Timestamp:
- 07/27/2012 09:54:44 PM (14 years ago)
- Location:
- gallery-and-caption/trunk
- Files:
-
- 2 added
- 2 deleted
- 2 edited
-
fancybox/jquery.fancybox-1.3.4.1.js (deleted)
-
fancybox/jquery.fancybox-1.3.4.1.pack.js (deleted)
-
fancybox/jquery.fancybox-1.3.4.js (added)
-
fancybox/jquery.fancybox-1.3.4.pack.js (added)
-
gallery-and-caption.php (modified) (10 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gallery-and-caption/trunk/gallery-and-caption.php
r429775 r578236 2 2 /* 3 3 Plugin Name: Gallery And Caption 4 Version: 1. 24 Version: 1.3 5 5 Plugin URI: http://www.dyerware.com/main/products/gallery-and-caption 6 6 Description: Transparently upgrades your site's native galleries and captions with attractive image viewing and navigation. Adds caption grouping to create containers of sub-galleries from your posts. Disabling the plugin will return to the original WordPress behavior. … … 8 8 Author URI: http://www.dyerware.com 9 9 */ 10 /* Copyright © 2010, 2011 dyerware10 /* Copyright © 2010, 2011, 2012 dyerware 11 11 Support: support@dyerware.com 12 12 … … 57 57 { 58 58 $jsDir = plugins_url ( plugin_basename ( dirname ( __FILE__ ) ) ) . '/fancybox/'; 59 wp_register_script('dyerware-gac-fancybox', "{$jsDir}jquery.fancybox-1.3.4. 1.pack.js");59 wp_register_script('dyerware-gac-fancybox', "{$jsDir}jquery.fancybox-1.3.4.pack.js"); 60 60 wp_register_script('dyerware-gac-easing', "{$jsDir}jquery.easing-1.3.pack.js"); 61 61 … … 69 69 70 70 if (strpos($_SERVER['REQUEST_URI'], 'post.php') || strpos($_SERVER['REQUEST_URI'], 'post-new.php') || strpos($_SERVER['REQUEST_URI'], 'page-new.php') || strpos($_SERVER['REQUEST_URI'], 'page.php') || strpos($_SERVER['REQUEST_URI'], 'comment.php')) { 71 add_action('admin_footer', array(&$this, 'init_html_editor_tags')); 71 //add_action('admin_footer', array(&$this, 'init_html_editor_tags')); 72 add_action('admin_print_footer_scripts', array(&$this, 'init_html_editor_tags'), 100 ); 72 73 } 73 74 } … … 224 225 echo '<script type="text/javascript">'; 225 226 ?> 227 226 228 if (gac_edbar=document.getElementById("ed_toolbar") ) 227 229 { … … 243 245 gac_edbar.appendChild(gac_But); 244 246 } 247 } 248 249 else if (typeof QTags!="undefined") 250 { 251 QTags.addButton( 'dyerware_gac', 'Captions', '[captiongroup]', '[/captiongroup]', '' ); 245 252 } 246 253 <?php … … 322 329 function do_caption_shortcode($attr, $content = null) 323 330 { 331 // New-style shortcode with the caption inside the shortcode with the link and image tags. 332 if ( ! isset( $attr['caption'] ) ) { 333 if ( preg_match( '#((?:<a [^>]+>\s*)?<img [^>]+>(?:\s*</a>)?)(.*)#is', $content, $matches ) ) { 334 $content = $matches[1]; 335 $attr['caption'] = trim( $matches[2] ); 336 } 337 } 338 324 339 // Allow plugins/themes to override the default caption template. 325 340 $output = apply_filters('img_caption_shortcode', '', $attr, $content); … … 344 359 $xml=simplexml_import_dom($doc); 345 360 $links=$xml->xpath('//a'); 361 346 362 foreach ($links as $a) 347 363 { … … 375 391 { 376 392 $a->addAttribute('rel', 'GACREL' . $this->currentGroup); 393 } 394 } 395 else 396 { 397 if ($a['rel']) 398 { 399 $a['rel'] = 'nofollow'; 400 } 401 else 402 { 403 $a->addAttribute('rel', 'nofollow'); 377 404 } 378 405 } … … 411 438 return '<div ' . $id . ' class=' . $class . ' style=' . $style . '>' . $scontent . '<span class="wp-caption-text">' . $caption . '</span></div>'; 412 439 } 413 414 440 415 441 // Complex group organization = 416 442 return <<<gacCode -
gallery-and-caption/trunk/readme.txt
r429775 r578236 5 5 Tags: gallery,galleries,caption,captions,images,lightbox,colorbox,organization,dyerware 6 6 Requires at least: 2.8 7 Tested up to: 3. 2.18 Stable tag: 1. 27 Tested up to: 3.4.1 8 Stable tag: 1.3 9 9 10 10 Upgrades behavior of native galleries and captions in posts with dynamic animations and styling. Captions can be grouped into 'mini' galleries. … … 69 69 == Upgrade Notice == 70 70 71 = 1.3 = 72 Fix for Wordpress 3.3+ editor buttons 73 Fix for Wordpress 3.4 captions not appearing or corrupted 74 Fix for Wordpress 3.3+ navigation buttons not appearing (wp 3.2 may lose them) 75 71 76 = 1.2 = 72 77 Now supports multibyte languages in image file links … … 95 100 96 101 == Changelog == 102 103 = 1.3 = 104 * Fix for Wordpress 3.3+ editor buttons 105 * Fix for Wordpress 3.4 captions not appearing or corrupted 106 * Fix for Wordpress 3.3+ navigation buttons not appearing (wp 3.2 may lose them) 97 107 98 108 = 1.2 =
Note: See TracChangeset
for help on using the changeset viewer.