function theme_ad_text_text in Advertisement 7
Same name and namespace in other branches
- 6.3 text/ad_text.module \theme_ad_text_text()
- 6 text/ad_text.module \theme_ad_text_text()
- 6.2 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 87 - Enhances the ad module to support static text ads.
Code
function theme_ad_text_text($variables) {
$output = '<div class="ad-header">';
if (isset($variables['link']) && !empty($variables['link'])) {
$output .= l($variables['header'], $variables['link'], array(
'attributes' => ad_link_attributes(),
'html' => TRUE,
));
}
else {
$output .= $variables['header'];
}
$output .= '</div>';
$output .= '<div class="ad-body">' . $variables['body'] . '</div>';
return $output;
}