Changeset 468257
- Timestamp:
- 11/27/2011 01:52:03 PM (14 years ago)
- File:
-
- 1 edited
-
ninja-embed-plugin/trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ninja-embed-plugin/trunk/readme.txt
r468227 r468257 1 1 === Plugin Name === 2 2 Contributors: gerhard 3 Donate link: http://example.com/3 Plugin URI: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/ 4 4 Tags: media, embed, youtube, vimeo, soundcloud 5 Author: Ninjas for Hire 6 Author URI: http://www.ninjasforhire.co.za 7 Donate link: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/ 5 8 Requires at least: 3.2.1 6 9 Tested up to: 3.2.1 … … 17 20 == Installation == 18 21 19 1. Copy the PHP file from the zip file at the bottom of this post into your WordPress pluginsfolder.22 1. Copy the PHP file from the zip file at the bottom of this post into your WordPress "plugins" folder. 20 23 2. Log in to your installation of WordPress. 21 3. Go to the Plugins menu and activate the plugin called Ninja Embed Plugin24 3. Go to the "Plugins" menu and activate the plugin called "Ninja Embed Plugin" 22 25 4. Enjoy! 23 26 … … 33 36 * First Version of the plugin 34 37 35 == A brief Markdown Example ==38 == Usage == 36 39 37 40 **How do users use it?** … … 39 42 To embed a piece of media in a post or page you simply need to add the following shortcode to you post or page content: 40 43 41 '[media link="http://www.youtube.com/watch?v=EojN6r2VSR4"]' 44 *[media link="http://www.youtube.com/watch?v=EojN6r2VSR4"]* 42 45 43 46 You can also set a custom width and height to your media by adding the width and height parameters to the shortcode: 44 47 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"]* 46 49 47 50 **How do developers use it?** 48 51 49 Don t worry, we did not forget about the developers.52 Don't worry, we did not forget about the developers. 50 53 51 54 To embed a piece of media somewhere in the code you simply need to add the following function to the template: 52 55 53 '<?php media_embed(http://www.youtube.com/watch?v=EojN6r2VSR4'); ?>' 56 *`<?php media_embed(http://www.youtube.com/watch?v=EojN6r2VSR4'); ?>`* 54 57 55 58 You can also set a custom width and height to the media by adding arguments for width and height respectively: 56 59 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.