83 lines
2.2 KiB
PHP
83 lines
2.2 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* Single view template.
|
||
|
|
*
|
||
|
|
* 🚫🚫🚫
|
||
|
|
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
|
||
|
|
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
|
||
|
|
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
|
||
|
|
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
|
||
|
|
* 🚫🚫🚫
|
||
|
|
*
|
||
|
|
* @package AMP
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Context.
|
||
|
|
*
|
||
|
|
* @var AMP_Post_Template $this
|
||
|
|
*/
|
||
|
|
|
||
|
|
$this->load_parts( [ 'html-start' ] );
|
||
|
|
?>
|
||
|
|
|
||
|
|
<?php $this->load_parts( [ 'header' ] ); ?>
|
||
|
|
|
||
|
|
<article class="amp-wp-article">
|
||
|
|
<header class="amp-wp-article-header">
|
||
|
|
<h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1>
|
||
|
|
<?php $this->load_parts( apply_filters( 'amp_post_article_header_meta', [ 'meta-author', 'meta-time' ] ) ); ?>
|
||
|
|
</header>
|
||
|
|
|
||
|
|
<?php if (has_secondary_title()): ?>
|
||
|
|
|
||
|
|
<h2 class="profile_onenews__subtitle mb-4">
|
||
|
|
|
||
|
|
<?= get_secondary_title(); ?>
|
||
|
|
|
||
|
|
</h2>
|
||
|
|
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<?php
|
||
|
|
|
||
|
|
if ( function_exists( 'get_disclaimer' ) ) {
|
||
|
|
|
||
|
|
echo get_disclaimer();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|
||
|
|
<?= get_first_pharagraph( get_the_content() ) ?>
|
||
|
|
|
||
|
|
<?php $this->load_parts( [ 'featured-image' ] ); ?>
|
||
|
|
|
||
|
|
<div class="amp-wp-article-content">
|
||
|
|
<?php echo $this->get( 'post_amp_content' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||
|
|
</div>
|
||
|
|
<div class="partners">
|
||
|
|
<?php if((int)get_option('show_ad') == 1): ?>
|
||
|
|
<amp-ad width="320" height="250"
|
||
|
|
type="adfox"
|
||
|
|
data-owner-id="242477"
|
||
|
|
data-adfox-params='{
|
||
|
|
"p1": "cizsc",
|
||
|
|
"p2": "fqzb"
|
||
|
|
}'>
|
||
|
|
<div placeholder></div>
|
||
|
|
<div fallback></div>
|
||
|
|
</amp-ad>
|
||
|
|
<?php endif; ?>
|
||
|
|
</div>
|
||
|
|
<?php $this->load_parts( [ 'content-partners' ] ); ?>
|
||
|
|
<?php $this->load_parts( [ 'content-popular' ] ); ?>
|
||
|
|
<footer class="amp-wp-article-footer">
|
||
|
|
<?php $this->load_parts( apply_filters( 'amp_post_article_footer_meta', [ 'meta-taxonomy', 'meta-comments-link' ] ) ); ?>
|
||
|
|
</footer>
|
||
|
|
</article>
|
||
|
|
|
||
|
|
<?php //$this->load_parts( [ 'footer' ] ); ?>
|
||
|
|
|
||
|
|
<?php
|
||
|
|
$this->load_parts( [ 'html-end' ] );
|