Changeset 496088
- Timestamp:
- 01/27/2012 12:17:49 PM (14 years ago)
- Location:
- ninja-embed-plugin/trunk
- Files:
-
- 2 edited
-
ninja_embed_plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ninja-embed-plugin/trunk/ninja_embed_plugin.php
r472341 r496088 4 4 Plugin URI: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/ 5 5 Description: This plugin allows you to filter media links from YouTube, Vimeo and Soundcloud and also allows for shortcodes in posts e.g. [media width="400" height="225" link="http://www.vimeo.com/12345"]. In the code it can be called like this: media_embed($mediaurl, $width, $height). For both methods Width and height is to change player dimentions and is optional. 6 Version: 1. 16 Version: 1.2 7 7 Author: Ninjas for Hire 8 8 Author URI: http://www.ninjasforhire.co.za … … 94 94 } 95 95 96 ob_start(); 97 96 98 if ( ($width != '') && ($height != '') ) { 97 returnmedia_embed($link, $width, $height);99 media_embed($link, $width, $height); 98 100 } else { 99 returnmedia_embed($link);101 media_embed($link); 100 102 } 101 103 104 $output_string = ob_get_contents(); 105 ob_end_clean(); 106 107 return $output_string; 102 108 103 109 } -
ninja-embed-plugin/trunk/readme.txt
r472346 r496088 7 7 Donate link: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/ 8 8 Requires at least: 3.2.1 9 Tested up to: 3. 2.19 Tested up to: 3.3.1 10 10 Stable tag: trunk 11 11 … … 39 39 * Added support for videos on YouTube profile pages 40 40 41 = 1.2 = 42 * Fixed issue where videos always appeared above post/page content 43 41 44 == Usage == 42 45
Note: See TracChangeset
for help on using the changeset viewer.