add files
This commit is contained in:
42
amp/header-bar.php
Normal file
42
amp/header-bar.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Header bar 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
|
||||
*/
|
||||
|
||||
?>
|
||||
<header id="top" class="amp-wp-header">
|
||||
<div>
|
||||
<a href="<?php echo esc_url( $this->get( 'home_url' ) ); ?>">
|
||||
<?php $site_icon_url = $this->get( 'site_icon_url' ); ?>
|
||||
<?php if ( $site_icon_url ) : ?>
|
||||
<amp-img src="<?php echo esc_url( $site_icon_url ); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img>
|
||||
<?php endif; ?>
|
||||
<span class="amp-site-title">
|
||||
<?php echo esc_html( wptexturize( $this->get( 'blog_name' ) ) ); ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<?php $canonical_link_url = $this->get( 'post_canonical_link_url' ); ?>
|
||||
<?php if ( $canonical_link_url ) : ?>
|
||||
<?php $canonical_link_text = $this->get( 'post_canonical_link_text' ); ?>
|
||||
<a class="amp-wp-canonical-link" href="<?php echo esc_url( $canonical_link_url ); ?>">
|
||||
<?php echo esc_html( $canonical_link_text ); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user