function _adsense_format_box in Google AdSense integration 5.3
Generate a box to display instead of the ad when it is disabled
Return value
string with the HTML text to create the box
5 calls to _adsense_format_box()
- adsense_display in ./
adsense.module - Generates the Google AdSense Ad
- _adsense_cse_results in cse/
adsense_cse.results.inc - Creates the CSE search results page for site-embedded search results
- _adsense_managed_get_ad in managed/
adsense_managed.module - Generates the AdSense ad
- _adsense_oldcode_get_ad in old/
oldcode/ adsense_oldcode.module - Generates the AdSense ad
- _adsense_search_results in old/
search/ adsense_search.results.inc - Creates the Adsense for Search search results page for site-embedded search results
File
- ./
adsense.module, line 573 - Displays Google AdSense ads on Drupal pages
Code
function _adsense_format_box($text, $width, $height) {
$dimensions = !empty($width) && !empty($height) ? " width:" . $width . "px; height:" . $height . "px;" : "";
return "<div class='adsense' style='text-align:center;display: table-cell;vertical-align:middle;border:solid 1px;{$dimensions}'>{$text}</div>";
}