Changeset 1874627
- Timestamp:
- 05/15/2018 11:44:41 AM (8 years ago)
- Location:
- prime-ads/trunk
- Files:
-
- 4 edited
-
inc/controllers/ApiController.php (modified) (1 diff)
-
inc/services/AdsHelper.php (modified) (1 diff)
-
prime-ads.php (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
prime-ads/trunk/inc/controllers/ApiController.php
r1849088 r1874627 165 165 if(function_exists('w3tc_flush_all')) 166 166 update_option('ads-flush-w3tc', true); 167 if(function_exists('rocket_clean_domain')) rocket_clean_domain(); 168 167 169 echo json_encode(array('result' => 'ok', 'ver' => ADS_VERSION)); 168 170 return false; -
prime-ads/trunk/inc/services/AdsHelper.php
r1870799 r1874627 85 85 public function generateSyncPositionContnent($positionObj, $turbo = false) 86 86 { 87 global $wp_cache_mfunc_enabled, $wp_super_cache_late_init;87 /*global $wp_cache_mfunc_enabled, $wp_super_cache_late_init; 88 88 if($wp_cache_mfunc_enabled && $wp_super_cache_late_init){ 89 89 return '<!-- POSITION_' . $positionObj->position . '_' . $positionObj->id . '_' . ($turbo ? 1 : 0) . ' -->'; 90 } 90 }*/ 91 91 return $this->generatePositionContent($positionObj, $turbo); 92 92 } -
prime-ads/trunk/prime-ads.php
r1870799 r1874627 3 3 Plugin Name: Prime Ads 4 4 Description: Вывод рекламы с сервиса Prime Ads 5 Version: 2.2. 75 Version: 2.2.8 6 6 Author: Proffit 7 7 Author URI: http://proffit.guru/ … … 19 19 use AdsNS\SxGeo\SxGeo; 20 20 21 define('ADS_VERSION', '2.2. 7');21 define('ADS_VERSION', '2.2.8'); 22 22 define('ADS_DB_VERSION', '2.2.7'); 23 23 define('ADS_PATH', realpath(__DIR__)); … … 69 69 add_action('admin_notices', array(&$this, 'ads_admin_notices')); 70 70 71 if(function_exists('add_cacheaction')){71 /*if(function_exists('add_cacheaction')){ 72 72 add_cacheaction('wpsc_cachedata', array(&$this, 'generateOrInsertSyncContent')); 73 73 add_cacheaction('wpsc_cachedata_safety', array(&$this, 'dynamicOutputBufferTestSafety')); 74 } 74 }*/ 75 75 } 76 76 … … 276 276 { 277 277 $this->_adsHelper->setScreenWidth(intVal($_POST['width'])); 278 $this->_adsHelper->setDevice();278 //$this->_adsHelper->setDevice(); 279 279 $this->_adsHelper->getPostAndCat(); 280 280 $this->_adsHelper->screenWidthInPx = intVal($_POST['width']); … … 293 293 if(intVal($_POST['id']) > 0){ 294 294 $this->_adsHelper->setScreenWidth(intVal($_POST['width'])); 295 $this->_adsHelper->setDevice();295 //$this->_adsHelper->setDevice(); 296 296 $this->_adsHelper->getPostAndCat(); 297 297 echo json_encode( … … 352 352 if($tags) foreach($tags as $tag) $this->_adsHelper->tags[] = $tag->term_id; 353 353 354 $this->_adsHelper->setDevice();354 //$this->_adsHelper->setDevice(); 355 355 356 356 $this->_adsHelper->postLength = mb_strlen(strip_tags($content)); … … 602 602 $tags = get_the_tags(); 603 603 if($tags) foreach($tags as $tag) $this->_adsHelper->tags[] = $tag->term_id; 604 $this->_adsHelper->setDevice();604 //$this->_adsHelper->setDevice(); 605 605 $this->_adsHelper->postLength = mb_strlen(strip_tags($content)); 606 606 -
prime-ads/trunk/readme.txt
r1870799 r1874627 7 7 Requires at least: 4.0 8 8 Tested up to: 4.7 9 Stable tag: 2.2. 79 Stable tag: 2.2.8 10 10 11 11 Ответная часть сервиса монитизации Prime Ads (http://primeads.ru)
Note: See TracChangeset
for help on using the changeset viewer.