EasyVideo - Responsive Video Embeds / Shortcodes

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

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! :)
by
by
by
by
by
by