Plugin Directory

Changeset 1874627


Ignore:
Timestamp:
05/15/2018 11:44:41 AM (8 years ago)
Author:
devdmkr
Message:

update

Location:
prime-ads/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • prime-ads/trunk/inc/controllers/ApiController.php

    r1849088 r1874627  
    165165        if(function_exists('w3tc_flush_all'))
    166166            update_option('ads-flush-w3tc', true);
     167        if(function_exists('rocket_clean_domain')) rocket_clean_domain();
     168       
    167169        echo json_encode(array('result' => 'ok', 'ver' => ADS_VERSION));
    168170        return false;
  • prime-ads/trunk/inc/services/AdsHelper.php

    r1870799 r1874627  
    8585    public function generateSyncPositionContnent($positionObj, $turbo = false)
    8686    {
    87         global $wp_cache_mfunc_enabled, $wp_super_cache_late_init;
     87        /*global $wp_cache_mfunc_enabled, $wp_super_cache_late_init;
    8888        if($wp_cache_mfunc_enabled && $wp_super_cache_late_init){
    8989            return '<!-- POSITION_' . $positionObj->position . '_' . $positionObj->id . '_' . ($turbo ? 1 : 0) . ' -->';
    90         }
     90        }*/
    9191        return $this->generatePositionContent($positionObj, $turbo);
    9292    }
  • prime-ads/trunk/prime-ads.php

    r1870799 r1874627  
    33    Plugin Name: Prime Ads
    44    Description: Вывод рекламы с сервиса Prime Ads
    5     Version: 2.2.7
     5    Version: 2.2.8
    66    Author: Proffit
    77    Author URI: http://proffit.guru/
     
    1919use AdsNS\SxGeo\SxGeo;
    2020
    21 define('ADS_VERSION', '2.2.7');
     21define('ADS_VERSION', '2.2.8');
    2222define('ADS_DB_VERSION', '2.2.7');
    2323define('ADS_PATH', realpath(__DIR__));
     
    6969        add_action('admin_notices', array(&$this, 'ads_admin_notices'));
    7070
    71         if(function_exists('add_cacheaction')){
     71        /*if(function_exists('add_cacheaction')){
    7272            add_cacheaction('wpsc_cachedata', array(&$this, 'generateOrInsertSyncContent'));
    7373            add_cacheaction('wpsc_cachedata_safety', array(&$this, 'dynamicOutputBufferTestSafety'));
    74         }
     74        }*/
    7575    }
    7676
     
    276276    {
    277277        $this->_adsHelper->setScreenWidth(intVal($_POST['width']));
    278         $this->_adsHelper->setDevice();
     278        //$this->_adsHelper->setDevice();
    279279        $this->_adsHelper->getPostAndCat();
    280280        $this->_adsHelper->screenWidthInPx = intVal($_POST['width']);
     
    293293        if(intVal($_POST['id']) > 0){
    294294            $this->_adsHelper->setScreenWidth(intVal($_POST['width']));
    295             $this->_adsHelper->setDevice();
     295            //$this->_adsHelper->setDevice();
    296296            $this->_adsHelper->getPostAndCat();
    297297            echo json_encode(
     
    352352        if($tags) foreach($tags as $tag) $this->_adsHelper->tags[] = $tag->term_id;
    353353
    354         $this->_adsHelper->setDevice();
     354        //$this->_adsHelper->setDevice();
    355355
    356356        $this->_adsHelper->postLength = mb_strlen(strip_tags($content));
     
    602602                $tags = get_the_tags();
    603603                if($tags) foreach($tags as $tag) $this->_adsHelper->tags[] = $tag->term_id;
    604                 $this->_adsHelper->setDevice();
     604                //$this->_adsHelper->setDevice();
    605605                $this->_adsHelper->postLength = mb_strlen(strip_tags($content));
    606606
  • prime-ads/trunk/readme.txt

    r1870799 r1874627  
    77Requires at least: 4.0
    88Tested up to: 4.7
    9 Stable tag: 2.2.7
     9Stable tag: 2.2.8
    1010
    1111Ответная часть сервиса монитизации Prime Ads (http://primeads.ru)
Note: See TracChangeset for help on using the changeset viewer.