Changeset 1261456
- Timestamp:
- 10/08/2015 04:55:56 AM (10 years ago)
- Location:
- fluid-video-embeds
- Files:
-
- 20 added
- 3 edited
-
tags/1.2.9 (added)
-
tags/1.2.9/fluid-video-embeds.php (added)
-
tags/1.2.9/images (added)
-
tags/1.2.9/images/play.svg (added)
-
tags/1.2.9/languages (added)
-
tags/1.2.9/languages/fluid-video-embeds-es_ES.mo (added)
-
tags/1.2.9/languages/fluid-video-embeds-es_ES.po (added)
-
tags/1.2.9/languages/fluid-video-embeds-pt_BR.mo (added)
-
tags/1.2.9/languages/fluid-video-embeds-pt_BR.po (added)
-
tags/1.2.9/languages/fluid-video-embeds.pot (added)
-
tags/1.2.9/lib (added)
-
tags/1.2.9/lib/constants.php (added)
-
tags/1.2.9/readme.txt (added)
-
tags/1.2.9/stylesheets (added)
-
tags/1.2.9/stylesheets/admin.css (added)
-
tags/1.2.9/stylesheets/main.css (added)
-
tags/1.2.9/views (added)
-
tags/1.2.9/views/elements (added)
-
tags/1.2.9/views/elements/_iframe_embed.php (added)
-
tags/1.2.9/views/options.php (added)
-
trunk/fluid-video-embeds.php (modified) (3 diffs)
-
trunk/lib/constants.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluid-video-embeds/trunk/fluid-video-embeds.php
r1259468 r1261456 5 5 Description: Makes your YouTube and Vimeo auto-embeds fluid/full width. 6 6 Author: jamie3d 7 Version: 1.2. 87 Version: 1.2.9 8 8 Author URI: http://jamie3d.com 9 9 Text Domain: fluid-video-embeds … … 419 419 420 420 $iframe_url = '//www.youtube.com/embed/' . $this->meta['id'] . '?wmode=transparent&modestbranding=1&autohide=1&showinfo=0&rel=0'; 421 $iframe_url = apply_filters( 'fve_youtube_iframe_url', $iframe_url, $this->meta ); 421 422 $permalink = '//www.youtube.com/watch?v=' . $this->meta['id']; 423 $permalink = apply_filters( 'fve_youtube_permalink', $permalink, $this->meta ); 422 424 $thumbnail = isset( $this->meta['full_image'] ) ? $this->meta['full_image'] : ''; 423 425 break; … … 426 428 427 429 $iframe_url = '//player.vimeo.com/video/' . $this->meta['id'] . '?portrait=0&byline=0&title=0'; 430 $iframe_url = apply_filters( 'fve_vimeo_iframe_url', $iframe_url, $this->meta ); 428 431 $permalink = '//vimeo.com/' . $this->meta['id']; 432 $permalink = apply_filters( 'fve_vimeo_permalink', $permalink, $this->meta ); 429 433 $thumbnail = isset( $this->meta['full_image'] ) ? $this->meta['full_image'] : ''; 430 434 break; -
fluid-video-embeds/trunk/lib/constants.php
r1259468 r1261456 7 7 8 8 // The current version of this plugin 9 if( !defined( 'FLUID_VIDEO_EMBEDS_VERSION' ) ) define( 'FLUID_VIDEO_EMBEDS_VERSION', '1.2. 8' );9 if( !defined( 'FLUID_VIDEO_EMBEDS_VERSION' ) ) define( 'FLUID_VIDEO_EMBEDS_VERSION', '1.2.9' ); 10 10 11 11 // The cache prefix -
fluid-video-embeds/trunk/readme.txt
r1259468 r1261456 29 29 30 30 <?php echo do_shortcode('[fve]http://youtu.be/oHg5SJYRHA0[/fve]'); ?> 31 32 You can filter the YouTube and or Vimeo URLs like this if you want to customize them (like explicitly specifying the https scheme): 33 34 // Filter the iframe URL for Vimeo 35 add_filter( 'fve_vimeo_iframe_url', 'fve_vimeo_iframe_url', 10, 2 ); 36 function fve_vimeo_iframe_url( $vimeo_iframe_url, $video_meta ) { 37 return 'https://player.vimeo.com/video/' . $video_meta['id'] . '?portrait=0&byline=0&title=0'; 38 } 39 40 Check the source to see all of the filters by searching for `apply_filters(` 41 31 42 32 43 = How It Works = … … 63 74 64 75 == Changelog == 76 = 1.2.9 = 77 * You can now filter the video URLs and permalinks with `fve_youtube_iframe_url`, `fve_youtube_permalink`, etc. 78 65 79 = 1.2.8 = 66 80 * Updating translation text domain … … 119 133 120 134 == Upgrade Notice == 135 = 1.2.9 = 136 * Adds filters for the YouTube and Vimeo URLs 137 121 138 = 1.2.8 = 122 139 * Updating translations for es_ES and pt_BR
Note: See TracChangeset
for help on using the changeset viewer.