Easy iFrame Loader – Template Tags

There are a whole host of possible template tags that can be used to display iframes.

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 possible arguments, with default settings

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

example code

<?php $args = array ('src'=>'http://speckyboy.com', 'height'=>'250','scrolling'=>'yes'); add_iframe_late_load($args); ?>

example code used

add_iframe_a_store

standard syntax

<?php 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! It you wish to use a class you will need to have the high and width unset

example code

<?php add_iframe_a_store('http://astore.amazon.com/wwwphatreacti-20','', '', 'astore-class') ?>