You are here

function theme_ad_html_ad in Advertisement 7

Same name and namespace in other branches
  1. 6.3 html/ad_html.module \theme_ad_html_ad()
  2. 6 html/ad_html.module \theme_ad_html_ad()
  3. 6.2 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($variables) {
  $ad = $variables['ad'];
  if (isset($ad->aid)) {
    $output = '<div class="html-advertisement" id="ad-' . $ad->aid . '">';
    if (isset($ad->html)) {
      $output .= check_markup($ad->html, 'full_html');
    }
    $output .= '</div>';
    return $output;
  }
}