instagram-block-image.tpl.php in Instagram Block 7
Default theme implementation of an Instagram image link.
Available variables:
- post: The entire data array returned from the Instagram API request.
- href: The url to the Instagram post page.
- src: The source url to the instagram image.
- width: The display width of the image.
- height: The display height of the image.
1 theme call to instagram-block-image.tpl.php
- instagram_block_block_view in ./
instagram_block.module - Implements hook_block_view().
File
instagram-block-image.tpl.phpView source
<?php
/**
* @file
* Default theme implementation of an Instagram image link.
*
* Available variables:
* - post: The entire data array returned from the Instagram API request.
* - href: The url to the Instagram post page.
* - src: The source url to the instagram image.
* - width: The display width of the image.
* - height: The display height of the image.
*/
?>
<a class="group" target="_blank" data-instagram-rel="1" href="<?php
print $href;
?>">
<img alt="<?php
print $caption;
?>" style="float: left; margin: 0 5px 5px 0px; width: <?php
print $width;
?>px; height: <?php
print $height;
?>px;" src="<?php
print $src;
?>">
</a>