Plugin Directory

Changeset 468257


Ignore:
Timestamp:
11/27/2011 01:52:03 PM (14 years ago)
Author:
gerhard
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ninja-embed-plugin/trunk/readme.txt

    r468227 r468257  
    11=== Plugin Name ===
    22Contributors: gerhard
    3 Donate link: http://example.com/
     3Plugin URI: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/
    44Tags: media, embed, youtube, vimeo, soundcloud
     5Author: Ninjas for Hire
     6Author URI: http://www.ninjasforhire.co.za
     7Donate link: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/
    58Requires at least: 3.2.1
    69Tested up to: 3.2.1
     
    1720== Installation ==
    1821
    19 1. Copy the PHP file from the zip file at the bottom of this post into your WordPress “plugins” folder.
     221. Copy the PHP file from the zip file at the bottom of this post into your WordPress "plugins" folder.
    20232. Log in to your installation of WordPress.
    21 3. Go to the “Plugins” menu and activate the plugin called “Ninja Embed Plugin”
     243. Go to the "Plugins" menu and activate the plugin called "Ninja Embed Plugin"
    22254. Enjoy!
    2326
     
    3336* First Version of the plugin
    3437
    35 == A brief Markdown Example ==
     38== Usage ==
    3639
    3740**How do users use it?**
     
    3942To embed a piece of media in a post or page you simply need to add the following shortcode to you post or page content:
    4043
    41 '[media link="http://www.youtube.com/watch?v=EojN6r2VSR4"]'
     44*[media link="http://www.youtube.com/watch?v=EojN6r2VSR4"]*
    4245
    4346You can also set a custom width and height to your media by adding the width and height parameters to the shortcode:
    4447
    45 '[media width="800" height="600" link="http://www.youtube.com/watch?v=EojN6r2VSR4"]'
     48*[media width="800" height="600" link="http://www.youtube.com/watch?v=EojN6r2VSR4"]*
    4649
    4750**How do developers use it?**
    4851
    49 Don’t worry, we did not forget about the developers.
     52Don't worry, we did not forget about the developers.
    5053
    5154To embed a piece of media somewhere in the code you simply need to add the following function to the template:
    5255
    53 '<?php media_embed(‘http://www.youtube.com/watch?v=EojN6r2VSR4'); ?>'
     56*`<?php media_embed(‘http://www.youtube.com/watch?v=EojN6r2VSR4'); ?>`*
    5457
    5558You can also set a custom width and height to the media by adding arguments for width and height respectively:
    5659
    57 '<?php media_embed(‘http://www.youtube.com/watch?v=EojN6r2VSR4', 800, 600); ?>'
     60*`<?php media_embed(‘http://www.youtube.com/watch?v=EojN6r2VSR4', 800, 600); ?>`*
Note: See TracChangeset for help on using the changeset viewer.