You are here

function theme_ad_text_text in Advertisement 6.3

Same name and namespace in other branches
  1. 6 text/ad_text.module \theme_ad_text_text()
  2. 6.2 text/ad_text.module \theme_ad_text_text()
  3. 7 text/ad_text.module \theme_ad_text_text()

Return a themed text ad.

Parameters

$header: The header of the text ad.

$body: The body of the text ad.

$link: Optional link URL for header.

Return value

A string containing the text ad.

1 theme call to theme_ad_text_text()
theme_ad_text_ad in text/ad_text.module
Return a themed ad of type ad_text.

File

text/ad_text.module, line 55
Enhances the ad module to support static text ads.

Code

function theme_ad_text_text($header, $body, $link = NULL) {
  $output = '<div class="ad-header">';
  if (isset($link) && !empty($link)) {
    $output .= l($header, $link, array(
      'attributes' => ad_link_attributes(),
      'html' => TRUE,
    ));
  }
  else {
    $output .= $header;
  }
  $output .= '</div>';
  $output .= '<div class="ad-body">' . $body . '</div>';
  return $output;
}