amp-ad.tpl.php in Accelerated Mobile Pages (AMP) 7
Template for an amp-ad.
Available variables:
- adtype: The ad network.
- height: The height of the ad.
- width: The width of the ad.
- slot_attributes: The slot attributes for the amp-ad.
See also
template_preprocess_amp_ad()
2 theme calls to amp-ad.tpl.php
- amp_adsense_block_view_alter in modules/
amp_adsense/ amp_adsense.module - Implements hook_block_view_alter().
- amp_block_view in ./
amp.module - Implements hook_block_view().
File
modules/amp_adsense/amp-ad.tpl.phpView source
<?php
/**
* @file
* Template for an amp-ad.
*
* Available variables:
* - adtype: The ad network.
* - height: The height of the ad.
* - width: The width of the ad.
* - slot_attributes: The slot attributes for the amp-ad.
*
* @see template_preprocess_amp_ad()
*/
?>
<amp-ad type="<?php
print $adtype;
?>" height="<?php
print $height;
?>" width="<?php
print $width;
?>" <?php
print $slot_attributes;
?>>
</amp-ad>