laipower/wp-content/upgrade-temp-backup/plugins/w3-total-cache/Extension_Amp_Page_View.php

43 lines
1.2 KiB
PHP
Raw Normal View History

2023-10-22 22:21:44 +00:00
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
?>
<form action="admin.php?page=w3tc_extensions&amp;extension=amp&amp;action=view" method="post">
2023-12-08 23:23:36 +00:00
<?php Util_UI::print_control_bar( 'extension_amp_form_control' ); ?>
<div class="metabox-holder">
<?php Util_Ui::postbox_header( esc_html__( 'Configuration', 'w3-total-cache' ), '', 'configuration' ); ?>
<table class="form-table">
<?php
Util_Ui::config_item(
array(
'key' => array( 'amp', 'url_type' ),
'label' => esc_html__( 'AMP URL Type:', 'w3-total-cache' ),
'control' => 'radiogroup',
'radiogroup_values' => array(
'tag' => 'tag',
'querystring' => 'query string',
),
'description' => esc_html__(
'If AMP page URLs are tag based (/my-page/amp/) or query string based (/my-page?amp)',
'w3-total-cache'
),
)
);
Util_Ui::config_item(
array(
'key' => array( 'amp', 'url_postfix' ),
'label' => esc_html__( 'AMP URL Postfix:', 'w3-total-cache' ),
'control' => 'textbox',
'description' => 'Postfix used',
)
);
?>
</table>
<?php Util_Ui::postbox_footer(); ?>
</div>
2023-10-22 22:21:44 +00:00
</form>