Plugin Directory

Changeset 496088


Ignore:
Timestamp:
01/27/2012 12:17:49 PM (14 years ago)
Author:
gerhard
Message:
 
Location:
ninja-embed-plugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ninja-embed-plugin/trunk/ninja_embed_plugin.php

    r472341 r496088  
    44Plugin URI: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/
    55Description: 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.1
     6Version: 1.2
    77Author: Ninjas for Hire
    88Author URI: http://www.ninjasforhire.co.za
     
    9494        }
    9595       
     96        ob_start();
     97       
    9698        if ( ($width != '') && ($height != '') ) {
    97             return media_embed($link, $width, $height);
     99            media_embed($link, $width, $height);
    98100        } else {
    99             return media_embed($link);
     101            media_embed($link);
    100102        }
    101103       
     104        $output_string = ob_get_contents();
     105        ob_end_clean();
     106       
     107        return $output_string;
    102108       
    103109    }
  • ninja-embed-plugin/trunk/readme.txt

    r472346 r496088  
    77Donate link: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/
    88Requires at least: 3.2.1
    9 Tested up to: 3.2.1
     9Tested up to: 3.3.1
    1010Stable tag: trunk
    1111
     
    3939* Added support for videos on YouTube profile pages
    4040
     41= 1.2 =
     42* Fixed issue where videos always appeared above post/page content
     43
    4144== Usage ==
    4245
Note: See TracChangeset for help on using the changeset viewer.