fblikebutton.tpl.php in Facebook Like Button 7.2
Template file for fblikebutton.
The variable of primary importance is $src. This is generated and sanitized the preprocess function. As facebook's services change frequently you can override these settings without altering this module by overriding the preprocess function in your theme's template.php file. The overriding preprocessor should be a function named MYTHEME_preprocess_fblikebutton. You can also override the output of this file by copying it into your own theme directory. For maintainability you should not alter this file on your site as it will lead to complications when updating the module later.
1 theme call to fblikebutton.tpl.php
- _fblikebutton_field in ./
fblikebutton.module - Build the like button. This is essentially just a convienience function that appends the url to the configuration array.
File
fblikebutton.tpl.phpView source
<?php
/**
* @file
* Template file for fblikebutton.
*
* The variable of primary importance is $src. This is generated and sanitized
* the preprocess function. As facebook's services change frequently you can
* override these settings without altering this module by overriding the
* preprocess function in your theme's template.php file. The overriding
* preprocessor should be a function named MYTHEME_preprocess_fblikebutton. You
* can also override the output of this file by copying it into your own theme
* directory. For maintainability you should not alter this file on your site as
* it will lead to complications when updating the module later.
*
*/
?>
<iframe src="//www.facebook.com/plugins/like.php?<?php
print $src;
?>" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: <?php
print $width;
?>px; height: <?php
print $height;
?>px; <?php
print $other_css;
?>" allowTransparency="true"></iframe>