function theme_ad_html_ad in Advertisement 6.2
Same name and namespace in other branches
- 6.3 html/ad_html.module \theme_ad_html_ad()
- 6 html/ad_html.module \theme_ad_html_ad()
- 7 html/ad_html.module \theme_ad_html_ad()
Return a themed ad of type ad_html.
Parameters
@ad: The ad object.
Return value
A string containing the ad markup.
1 theme call to theme_ad_html_ad()
- ad_html_display_ad in html/
ad_html.module - Function used to display the selected ad.
File
- html/
ad_html.module, line 27 - Enhances the ad module to support html ads.
Code
function theme_ad_html_ad($ad) {
if (isset($ad->aid)) {
$output = '<div class="html-advertisement" id="ad-' . $ad->aid . '">';
if (isset($ad->html) && isset($ad->format)) {
$output .= check_markup($ad->html, $ad->format, FALSE);
}
$output .= '</div>';
return $output;
}
}