WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Easy iFrame Loader

Adds a shortcode/widget/template tag to manage iFrame loading, uses javascript for late loading to increase page speed. Additional iframes support for

Working with the Shortcodes It is possible to setup default for the shortcodes in the admin screen (Settings --> Easy iFrame)

iframe_loader... the default iframe technique

The default settings are

[iframe_loader width='100%' height='150'  frameborder = '0'  longdesc=' ' marginheight='0'  marginwidth='0' name=' ' click_words=' ' click_url=' '  scrolling='auto'   src=' ' class=' ' ]

Can I have an example of it loading a vimeo video?

[iframe_vimeo video="video_id"]

the video id is the numbers at the end of a video URL. i.e. http://vimeo.com/16185599

example of a YouTube video example

[iframe_youtube video="video_id"]

The video id is the numbers and letters that come after v= i.e. http://www.youtube.com/watch?v=Ntc4l-poovo

example of an A Store from Amazon

[a_store src="URL to store"]

You will find this information on the amazon site when you setup your store. The default width and height are 90% and 4000 respectivly example url http://astore.amazon.com/wwwphatreacti-20

example of a buy now button from amazon

[buy_amazon src="Amazon URL provided by Amazon with affiliate id"]

example url http://rcm-uk.amazon.co.uk/e/cm?lt1=_blank&bc1=3B5998&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=phatreaction-21&o=2&p=8&l=as1&m=amazon&f=ifr&md=0M5A6TN3AXP2JHJBWT02&asins=B00009QI1U

what about an example showing a google map?

[iframe_loader width='425' height='350'  click_words='View Larger Map' click_url='http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=Dam,+Amsterdam,+Nederland&sll=37.0625,-95.677068&sspn=50.777825,117.509766&ie=UTF8&hq=&hnear=Dam,+Amsterdam,+The+Netherlands&z=14&ll=52.372738,4.892738' src='http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Dam,+Amsterdam,+Nederland&sll=37.0625,-95.677068&sspn=50.777825,117.509766&ie=UTF8&hq=&hnear=Dam,+Amsterdam,+The+Netherlands&z=14&ll=52.372738,4.892738&output=embed']

Working with the Widget

How do I use the widget?

Just drag and drop the widget accross into the wanted dynamtic sidebar. (Apperance --> Widgets). The only necessary item is the URL of the iframe, all other items are pre-set, so it will still work. It is better though to spend the time to fill in all the items.

It is possible to setup default for the widget in the admin screen (Settings --> Easy iFrame)

Working with the Template taga

How does the template tag work?

inside a php file add

add_iframe_late_load($args)

minimum settings

<?php $args = array ('src'=>'URL-of-iFrame', 'height'=>'wanted-height-in-px')
add_iframe_late_load($args) ?>

All options

$args = array('height' => "150",'width' => "100%",'frameborder' => '0','scrolling'=>'auto', 'src'=>'',
            'longdesc'=>'','marginheight'=>'0','marginwidth'=>'0', 'name'=>'','click_words'=>'','click_url'=>'');

add_iframe_a_store($src, $width='', $height='', $class='')

If no height or width is set it will default back to the ones in the admin page. $src is vital!

add_iframe_amazon_buy($src, $class='')

needs the $src of the iframe only, height and width never change

add_iframe_youtube($video, $click_words='', $click_url='', $class='')

Just needs the alpha-numeric video id only, optional click URL and click words. Height and Width are from admin page. If you want different settings use the add_iframe_late_load($args)

add_iframe_vimeo($video, $click_words='', $click_url='', $class='')

Just needs the numeric video id only, optional click URL and click words. Height and Width are from admin page. If you want different settings use the add_iframe_late_load($args)

Requires: 2.8.6 or higher
Compatible up to: 3.3.2
Last Updated: 2011-2-22
Downloads: 35,749

Ratings

4 stars
4.1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,2,2 100,1,1
100,1,1 100,1,1 100,2,2 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,2,2 100,1,1
100,2,2 100,1,1 100,2,2 100,1,1
100,1,1 100,1,1 100,2,2 100,1,1
100,1,1 100,1,1 100,2,2 100,1,1
100,1,1 100,1,1 100,3,3 100,1,1
100,4,4 100,1,1 100,3,3 100,1,1
100,4,4 100,1,1 100,2,2 100,1,1 100,4,4
50,2,1
100,1,1
100,1,1
0,1,0
100,5,5
100,1,1
0,1,0
100,4,4