Changeset 1778908
- Timestamp:
- 11/30/2017 06:57:22 PM (7 years ago)
- Location:
- radcontrol/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
radcontrol/trunk/adcontrol.php
r1763298 r1778908 6 6 Description: 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. 7 7 Author: Automattic 8 Version: 1.3 8 Version: 1.3 9 9 Author URI: https://automattic.com 10 10 Text Domain: adcontrol … … 28 28 */ 29 29 30 define( 'ADCONTROL_VERSION', '1.3 ' );30 define( 'ADCONTROL_VERSION', '1.3' ); 31 31 define( 'ADCONTROL_ROOT', dirname( __FILE__ ) ); 32 32 define( 'ADCONTROL_BASENAME', plugin_basename( __FILE__ ) ); … … 186 186 */ 187 187 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() ); 191 190 $data_tags = ( $this->params->cloudflare ) ? ' data-cfasync="false"' : ''; 192 191 echo <<<HTML 193 192 <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 || []; 200 198 </script> 201 199 HTML; -
radcontrol/trunk/php/params.php
r1763298 r1778908 166 166 167 167 /** 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 168 197 * Returns true if page is static home 169 198 * @return boolean true if page is static home -
radcontrol/trunk/readme.txt
r1763298 r1778908 3 3 Tags: advertising, ad codes, ads 4 4 Requires at least: 3.4 5 Tested up to: 4.9 6 Stable tag: 1.3 5 Tested up to: 4.9 6 Stable tag: 1.3 7 7 8 8 Harness WordPress.com's advertising partners for your own website. … … 35 35 36 36 == Changelog == 37 38 39 40 37 41 38 42 = 1.3 =
Note: See TracChangeset
for help on using the changeset viewer.