add files
This commit is contained in:
36
amp/html-start.php
Normal file
36
amp/html-start.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* HTML start 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
|
||||
*/
|
||||
?>
|
||||
<!doctype html>
|
||||
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<head>
|
||||
<title><?php the_title(); ?></title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
|
||||
<?php do_action( 'amp_post_template_head', $this ); ?>
|
||||
<style amp-custom>
|
||||
<?php $this->load_parts( [ 'style' ] ); ?>
|
||||
<?php do_action( 'amp_post_template_css', $this ); ?>
|
||||
</style>
|
||||
<script async custom-element="amp-next-page" src="https://cdn.ampproject.org/v0/amp-next-page-1.0.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="<?php echo esc_attr( $this->get( 'body_class' ) ); ?>">
|
||||
<?php do_action( 'amp_post_template_body_open', $this ); ?>
|
||||
Reference in New Issue
Block a user