Files
profile/amp/footer.php

52 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2025-07-09 21:21:17 +03:00
<?php
/**
* Footer template part.
*
* 🚫🚫🚫
* 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
*/
?>
<footer class="amp-wp-footer">
<div>
<h2><?php echo esc_html( wptexturize( $this->get( 'blog_name' ) ) ); ?></h2>
<a href="#top" class="back-to-top"><?php esc_html_e( 'Back to top', 'amp' ); ?></a>
</div>
</footer>
<amp-analytics id="1qazxsw2<?=get_the_ID()?>" type="googleanalytics">
<script type="application/json">
{
"requests": {
"nextpage": "<?php get_permalink(get_the_ID()); ?>?amp=1"
},
"vars": {
"account": "UA-50205759-1"
},
"triggers": {
"trackScrollThrough": {
"on": "amp-next-page-scroll",
"request": "nextpage"
},
"trackClickThrough": {
"on": "amp-next-page-click",
"request": "nextpage"
},
"trackPageview": {
"on": "visible",
"request": "pageview"
}
}
}
</script>
</amp-analytics>