C:\xampp\htdocs\landing\wp-content\plugins\autoptimize\classes\critcss-inc\admin_settings_key.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
<?php
/**
 * Render key panel.
 */

/**
 * Function that renders key panel.
 *
 * @param string $key          API Key.
 * @param string $status       API Key status.
 * @param string $status_msg   Status message.
 * @param string $message      Message.
 * @param string $color        Color to highlight message in.
 */
function ao_ccss_render_key$key$status$status_msg$message$color ) {
    if ( 
defined'AUTOPTIMIZE_CRITICALCSS_API_KEY' ) ) {
        
$key __'API key provided by your host/ WordPress administrator, no need to enter anything here. In case of problems with the API key, contact your host/ WordPress administrator.''autoptimize' );
    }
    
?>
    <ul id="key-panel">
        <li class="itemDetail">
            <h2 class="itemTitle fleft"><?php _e'API Key''autoptimize' ); ?>: <span style="color:<?php echo $color?>;"><?php echo $status_msg?></span></h2>
            <button type="button" class="toggle-btn">
                <?php if ( 'valid' != $status ) { ?>
                    <span class="toggle-indicator dashicons dashicons-arrow-up"></span>
                <?php } else { ?>
                    <span class="toggle-indicator dashicons dashicons-arrow-up dashicons-arrow-down"></span>
                <?php ?>
            </button>
            <?php if ( 'valid' != $status ) { ?>
                <div class="collapsible">
            <?php } else { ?>
                <div class="collapsible hidden">
            <?php ?>
            <?php if ( 'valid' != $status ) { ?>
                <div style="clear:both;padding:2px 10px;border-left:solid;border-left-width:5px;border-left-color:<?php echo $color?>;background-color:white;">
                    <p><?php echo $message?></p>
                </div>
            <?php ?>
                <table id="key" class="form-table">
                    <tr>
                        <th scope="row">
                            <?php _e'Your API Key''autoptimize' ); ?>
                        </th>
                        <td>
                            <textarea id="autoptimize_ccss_key" name="autoptimize_ccss_key" rows='3' style="width:100%;" placeholder="<?php _e'Please enter your criticalcss.com API key here.''autoptimize' ); ?>"><?php echo trim$key ); ?></textarea>
                            <p class="notes">
                                <?php _e'Enter your <a href="https://criticalcss.com/account/api-keys?aff=1" target="_blank">criticalcss.com</a> API key above. The key is revalidated every time a new job is sent to it.<br />To obtain your API key, go to <a href="https://criticalcss.com/account/api-keys?aff=1" target="_blank">criticalcss.com</a> > Account > API Keys.<br />Requests to generate a critical CSS via the API are priced at £5 per domain per month.<br /><strong>Not sure yet? With the <a href="https://criticalcss.com/faq/?aff=1#trial" target="_blank">30 day money back guarantee</a>, you have nothing to lose!</strong>''autoptimize' ); ?>
                            </p>
                        </td>
                    </tr>
                </table>
            </div>
        </li>
    </ul>
<?php
}
x

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