C:\xampp\htdocs\landing\wp-content\plugins\amp\src\QueryVar.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
 * Interface QueryVar.
 *
 * @package AmpProject\AmpWP
 */

namespace AmpProject\AmpWP;

/**
 * An interface to capture URL query vars used in the plugin.
 *
 * @package AmpProject\AmpWP
 * @since 2.0
 * @internal
 */
interface QueryVar {

    
/**
     * Query var used to signal the request for an AMP page.
     *
     * Historically this value may be filtered via `amp_query_var` or overridden via the `AMP_QUERY_VAR` constant. The
     * value then was also used as an endpoint (`/amp/`) in addition to being used as a URL query var (`?amp`).
     * Nevertheless, in 2.0 this will no longer be supported in the theme itself when a Reader theme is selected.
     * Additionally, the logic for determining whether a request is for an AMP endpoint or not may also be arbitrarily
     * overridden as of amp-wp#2204.
     *
     * @link https://github.com/ampproject/amp-wp/issues/2204
     * @see amp_get_slug()
     * @var string
     */
    
const AMP 'amp';

    
/**
     * Query var used to signal the request for an non-AMP page.
     *
     * This is used in a paired mode (Transitional or Reader) in two ways:
     *
     * - To indicate that a mobile visitor should not be redirected to the AMP version. This is used in links from the
     *   AMP version back to the non-AMP version to prevent redirection. The value for the query var in this case is
     *   the NOAMP_MOBILE constant below.
     * - To indicate that the AMP version should not even be made available when making a request. This is used when a
     *   user had tried to access the AMP version but there were validation errors which have kept invalid markup,
     *   causing the AMP version to not be available. In such case, non-authenticated users who cannot validate are then
     *   redirected to the non-AMP version with this query var added, along the below NOAMP_AVAILABLE constant as the value.
     *
     * This has no effect on an AMP-first site (Standard mode).
     *
     * @var string
     */
    
const NOAMP 'noamp';

    
/**
     * Value for the noamp query var to indicate that a mobile visitor should not be redirected to the AMP version of a page.
     *
     * @var string
     */
    
const NOAMP_MOBILE 'mobile';

    
/**
     * Value for the noamp query var to indicate that AMP should be disabled entirely for a given request.
     *
     * @var string
     */
    
const NOAMP_AVAILABLE 'available';

    
/**
     * Value for the query var that allows switching to verbose server-timing output.
     *
     * @var string
     */
    
const VERBOSE_SERVER_TIMING 'amp_verbose_server_timing';
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586