Thursday, May 23, 2013

EasyVideo Responsive Video Embeds / Shortcodes

EasyVideo - Responsive Video Embeds / Shortcodes - CodeCanyon Item for Sale


EasyVideo - Responsive Video Embeds / Shortcodes - CodeCanyon Item for Sale

dailymotion // embed // media // responsive // shortcodes // video // vimeo // wordpress // wp // youtube //



























Created 28 January 13
Last Update 28 February 13
Compatible Browsers IE7, IE8, IE9, IE10, Firefox, Safari, Opera, Chrome
Software Version WordPress 3.5, WordPress 3.4, WordPress 3.3, WordPress 3.2, WordPress 3.1, WordPress 3.0
High Resolution Yes
Files Included CSS, PHP



Version 1.02: Added LiveLeak support per user request
Version 1.01: Added SmugMug support per user request




Remove Support / Buttons you do not need!


You can simply hook into active buttons. Open buttons.php from plugin folder and the following snippet.

/* Remove sites you do not need */
add_filter('easyvideo_supported_videos','easyvideo_filter_sites');
function easyvideo_filter_sites($array) {

/* Just change this array to reflect the sites you want to remove/disable */
$remove = array('vimeo', 'youtube');

foreach($array as $k => $v) {
if (in_array($v, $remove)) {
unset($array[$k]);
}
}
return $array;
}


Add support / Support a new video site


You can hook into active list to add a video site that is not supported by plugin by default. Use that code in buttons.php. I assume the new shortcode video is blabla

/* Add support / new video site */
add_filter('easyvideo_supported_videos','easyvideo_add_site');
function easyvideo_add_site($array) {
$array[] = 'blabla';
return $array;
}

function easyvideo_blabla($atts) {
global $easyvideo;
$array = shortcode_atts( array('url' => null), $atts);
return $easyvideo->oembed( 'http://www.oohembed.com/oohembed/?' . http_build_query($array), $array );
}


Done! Now you added support to that video site using embed.ly. For the icon in visual editor make sure to add an image to /shortcodes/images/ folder.
Currently supports:
Vimeo – YouTube – Dailymotion – Blip.tv – Hulu – Viddler – Qik – Revision3 – WordPress.TV – Funny or Die – AOL On! – College Humor – Metacafe – Yfrog – Screenr – USTREAM – SAPO – dotSUB – Clikthrough – Kino Map – Twitvid – Bambuser – Gametrailers – VHX – Animoto – Justin.tv – Livestream – Minoto – Trailer Addict – FORA.tv – TED – Wistia – Zapiks – Snotr – ComedyCentral – Smugmug – LiveLeak – Your favorite site not listed? No problems, tell me to add it :)




What does this plugin do?


It let you embed and show videos anywhere on your blog without writing markup – via shortcode buttons. Very easy! And saves you tons of time! Plus, the video content is fully-responsive!

Click shortcode button, insert video URL and Publish!



Using the power of WordPress Shortcodes to easily embed videos in your post content. No coding required, no markup, nothing. You can also use the shortcode inside your sidebar widgets as well as your post/page content.

Which sites I can use? 36 Sites and Growing!



If you do not see your favorite site, please request and I will add it.

Where can I embed videos?


You can embed them in any WordPress content, post, page or sidebar widget.

Fully Responsive


The video will response to screen size automatically. Here is an example showing the videos on sidebar (Width adjusted automatically)




HOW TO EMBED VIDEO


1. Add/edit a post/page or a text widget
2. Use the video button to insert your video
3. Put your video URL and publish. That is all! :)





Related produck


Ultimate Ajax Grid for WordPress - CodeCanyon Item for Sale Ideas! Interactive feedback and commenting system - CodeCanyon Item for Sale User Profiles Plugin for WordPress - CodeCanyon Item for Sale Ajax Content Browser for WordPress - CodeCanyon Item for Sale FlexForms - Ajax Form Builder for WordPress - CodeCanyon Item for Sale VoicePro, Instant Ajax Feedback Form for WordPress - CodeCanyon Item for Sale SuperLike - Ajax content like system for WordPress - CodeCanyon Item for Sale

More items by ThemeFluent

No comments:

Post a Comment