Created
December 2, 2016 13:32
-
-
Save webloglife/6bda126934cc95802126f23b440987e6 to your computer and use it in GitHub Desktop.
amp-ad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article class="amp-wp-article"> | |
<header class="amp-wp-article-header"> | |
<h1 class="amp-wp-title"><?php echo wp_kses_data( $this->get( 'post_title' ) ); ?></h1> | |
<!--記事タイトル下--> | |
<div> | |
<p>スポンサードリンク</p> | |
<amp-ad | |
type="adsense" | |
data-ad-client="ca-pub-XXXXXXXX" | |
data-ad-slot="XXXXXXXX" | |
width="320" | |
height="100"> | |
</amp-ad> | |
</div> | |
<?php $this->load_parts( apply_filters( 'amp_post_article_header_meta', array( 'meta-author', 'meta-time' ) ) ); ?> | |
</header> | |
<?php $this->load_parts( array( 'featured-image' ) ); ?> | |
<div class="amp-wp-article-content"> | |
<?php echo $this->get( 'post_amp_content' ); // amphtml content; no kses ?> | |
<!--記事本文下--> | |
<div> | |
<p>スポンサードリンク</p> | |
<amp-ad | |
type="adsense" | |
data-ad-client="ca-pub-XXXXXXXX" | |
data-ad-slot="XXXXXXXX" | |
width="320" | |
height="100"> | |
</amp-ad> | |
</div> | |
<div> | |
<amp-social-share type="twitter"></amp-social-share> | |
<amp-social-share type="gplus"></amp-social-share> | |
<amp-social-share type="facebook" | |
data-param-app_id="(FacebookのAPP ID)"></amp-social-share> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment