function theme_uptolike_iframe in Uptolike share buttons 7
Return HTML for Uptolike iframe.
Parameters
array $variables: An associative array containing:
- url: url of embed iframe.
- class: css class of embed iframe.
2 theme calls to theme_uptolike_iframe()
- uptolike_constructor in ./
uptolike.module - Build constructor iframe.
- uptolike_statistic in ./
uptolike.module - Build statistic iframe.
File
- ./
uptolike.module, line 751 - Main file for Uptolike module.
Code
function theme_uptolike_iframe(array $variables) {
$url = $variables['url'];
if (!empty($url)) {
$class = $variables['class'];
$output = '<iframe id="uptolike"';
if (!empty($class)) {
$output .= ' class="' . $class . '"';
}
$output .= ' src="' . $url . '"></iframe>';
}
else {
$output = '';
}
return $output;
}