| Server IP : 213.186.33.4 / Your IP : 216.73.216.146 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/amp/templates/admin/ |
Upload File : |
<?php
/**
* AMP status option in the submit meta box.
*
* @package AMP
*/
// Check referrer.
if ( ! ( $this instanceof AMP_Post_Meta_Box ) ) {
return;
}
/**
* Inherited template vars.
*
* @var array $labels Labels for enabled or disabled.
* @var string $status Enabled or disabled.
* @var array $errors Support errors.
*/
?>
<div class="misc-pub-section misc-amp-status">
<span class="amp-icon"></span>
<?php esc_html_e( 'AMP:', 'amp' ); ?>
<strong class="amp-status-text"><?php echo esc_html( $labels[ $status ] ); ?></strong>
<a href="#amp_status" class="edit-amp-status hide-if-no-js" role="button">
<span aria-hidden="true"><?php esc_html_e( 'Edit', 'amp' ); ?></span>
<span class="screen-reader-text"><?php esc_html_e( 'Edit Status', 'amp' ); ?></span>
</a>
<div id="amp-status-select" class="hide-if-js" data-amp-status="<?php echo esc_attr( $status ); ?>">
<?php if ( empty( $errors ) ) : ?>
<fieldset>
<input id="amp-status-enabled" type="radio" name="<?php echo esc_attr( self::STATUS_INPUT_NAME ); ?>" value="<?php echo esc_attr( self::ENABLED_STATUS ); ?>" <?php checked( self::ENABLED_STATUS, $status ); ?>>
<label for="amp-status-enabled" class="selectit"><?php echo esc_html( $labels['enabled'] ); ?></label>
<br />
<input id="amp-status-disabled" type="radio" name="<?php echo esc_attr( self::STATUS_INPUT_NAME ); ?>" value="<?php echo esc_attr( self::DISABLED_STATUS ); ?>" <?php checked( self::DISABLED_STATUS, $status ); ?>>
<label for="amp-status-disabled" class="selectit"><?php echo esc_html( $labels['disabled'] ); ?></label>
<br />
<?php wp_nonce_field( self::NONCE_ACTION, self::NONCE_NAME ); ?>
</fieldset>
<?php else : ?>
<div class="inline notice notice-warning notice-alt">
<p><?php echo implode( ' ', $error_messages ); // WPCS: xss ok. ?></p>
</div>
<?php endif; ?>
<div class="amp-status-actions">
<?php if ( empty( $errors ) ) : ?>
<a href="#amp_status" class="save-amp-status hide-if-no-js button"><?php esc_html_e( 'OK', 'amp' ); ?></a>
<?php endif; ?>
<a href="#amp_status" class="cancel-amp-status hide-if-no-js button-cancel"><?php esc_html_e( 'Cancel', 'amp' ); ?></a>
</div>
</div>
</div>