Plugin Directory

Changeset 1778908

Timestamp:
11/30/2017 06:57:22 PM (7 years ago)
Author:
derekspringer
Message:

1.3.1 release

Location:
radcontrol/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • radcontrol/trunk/adcontrol.php

    r1763298 r1778908  
    66Description: Harness WordPress.com's advertising partners for your own website. Requires <a href="https://jetpack.com/" target="_blank">Jetpack</a> to be installed and connected.
    77Author: Automattic
    8 Version: 1.3
     8Version: 1.3
    99Author URI: https://automattic.com
    1010Text Domain: adcontrol
     
    2828*/
    2929
    30 define( 'ADCONTROL_VERSION', '1.3' );
     30define( 'ADCONTROL_VERSION', '1.3' );
    3131define( 'ADCONTROL_ROOT', dirname( __FILE__ ) );
    3232define( 'ADCONTROL_BASENAME', plugin_basename( __FILE__ ) );
     
    186186     */
    187187    function insert_head_meta() {
    188         $domain = $this->params->targeting_tags['Domain'];
    189         $pageURL = $this->params->targeting_tags['PageURL'];
    190         $adsafe = $this->params->targeting_tags['AdSafe'];
     188        $themename = esc_js( get_stylesheet() );
     189        $pagetype = intval( $this->params->get_page_type_ipw() );
    191190        $data_tags = ( $this->params->cloudflare ) ? ' data-cfasync="false"' : '';
    192191        echo <<<HTML
    193192        <script$data_tags type="text/javascript">
    194             var _ipw_custom = {
    195                 wordAds: '1',
    196                 domain:  '$domain',
    197                 pageURL: '$pageURL',
    198                 adSafe:  '$adsafe'
    199             };
     193            var __ATA_PP = { pt: $pagetype, ht: 3, tn: '$themename', amp: false };
     194            var __ATA = __ATA || {};
     195            __ATA.cmd = __ATA.cmd || [];
     196            __ATA.criteo = __ATA.criteo || {};
     197            __ATA.criteo.cmd = __ATA.criteo.cmd || [];
    200198        </script>
    201199HTML;
  • radcontrol/trunk/php/params.php

    r1763298 r1778908  
    166166
    167167    /**
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
    168197     * Returns true if page is static home
    169198     * @return boolean true if page is static home
  • radcontrol/trunk/readme.txt

    r1763298 r1778908  
    33Tags: advertising, ad codes, ads
    44Requires at least: 3.4
    5 Tested up to: 4.9
    6 Stable tag: 1.3
     5Tested up to: 4.9
     6Stable tag: 1.3
    77
    88Harness WordPress.com's advertising partners for your own website.
     
    3535
    3636== Changelog ==
     37
     38
     39
     40
    3741
    3842= 1.3 =
Note: See TracChangeset for help on using the changeset viewer.