'amp-facebook-0.1.js', 'amp-youtube' => 'amp-youtube-0.1.js', 'amp-vine' => 'amp-vine-0.1.js', 'amp-twitter' => 'amp-twitter-0.1.js', 'amp-instagram' => 'amp-instagram-0.1.js', 'amp-social-share' => 'amp-social-share-0.1.js', 'amp-ad' => 'amp-ad-0.1.js', 'amp-iframe' => 'amp-iframe-0.1.js', 'amp-audio' => 'amp-audio-0.1.js', 'amp-video' => 'amp-video-0.1.js', 'amp-image-lightbox' => 'amp-image-lightbox-0.1.js', 'amp-mathml' => 'amp-mathml-0.1.js', ); //var_dump($the_content); foreach( $elements as $key => $val ) { if( includes_string($all_content, '<'.$key) ) { echo ''.PHP_EOL; } } //AMP用の検索フォームが存在するか if( includes_string($all_content, 'class="amp-form') ) { echo ''.PHP_EOL; } //AMP Analytics用のライブラリ if ( is_analytics() && get_ga4_tracking_id() ) { echo ''.PHP_EOL; } //AMP Lightboxギャラリーが有効な時 if (is_amp_image_zoom_effect_gallery()) { echo ''.PHP_EOL; } // //数式表示が有効な時 // if (is_formula_enable()) { // echo ''.PHP_EOL; // } //Font Awesomeのスタイルの読み込み echo ''.PHP_EOL; //Google Fontsスタイルの読み込み if (!is_site_font_family_local()) { echo ''.PHP_EOL; } // //LinkSwitchが有効な時 // if (is_all_linkswitch_enable()) { // echo ''.PHP_EOL; // } ?> 手前コード cocoon_template_part('tmp/ad-amp-auto-adsense-in-head') ?> 手前コード cocoon_template_part('tmp/ad-amp-linkswitch-in-head') ?> 手前コード cocoon_template_part('tmp/amp-button-go-to-top-in-head') ?> '.PHP_EOL; //Google Fontsスタイルの読み込み if (!is_site_font_family_local()) { echo ''.PHP_EOL; } ?>
itemscope itemtype="http://schema.org/WebPage" data-amp-auto-lightbox-disable=""> 直後コード cocoon_template_part('tmp/ad-amp-auto-adsense-in-body') ?> 直後コード cocoon_template_part('tmp/ad-amp-linkswitch-in-body') ?> 直後コード cocoon_template_part('tmp/amp-button-go-to-top-in-body') ?>