Plugin Directory

Changeset 842553


Ignore:
Timestamp:
01/21/2014 05:38:21 PM (12 years ago)
Author:
sazze
Message:

version 1.5.2

Location:
progrids-widgets/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • progrids-widgets/trunk/classes/ProGridsApi.php

    r842537 r842553  
    7070        $startDate = $startDate ? $startDate : date('Y-m-d', strtotime('-30 days'));
    7171        $endDate = $endDate ? $endDate : date('Y-m-d');
    72         $url = PROGRIDS_BASE_URL . (PROGRIDS_DEV_ENVIRON ? '/publisher/report' : '/reportData') . "?startDate=$startDate&endDate=$endDate";
     72        $url = PROGRIDS_BASE_URL . "/publisher/report?startDate=$startDate&endDate=$endDate"; //(PROGRIDS_DEV_ENVIRON ? '/publisher/report' : '/reportData') .
    7373        $resp = $this->request($url);
    74         if (isset($resp->total) && !PROGRIDS_DEV_ENVIRON) {
    75             $t = $resp->total;
    76             $t->cpc = $t->click > 0 ? $t->commission / $t->click : 0;
    77             $t->ecpm = $t->impression > 0 ? $t->commission / $t->impression * 1000 : 0;
    78             $t->ctr = $t->impression > 0 ? $t->click / $t->impression * 100 : 0;
    79         }
     74//        if (isset($resp->total) && !PROGRIDS_DEV_ENVIRON) {
     75//            $t = $resp->total;
     76//            $t->cpc = $t->click > 0 ? $t->commission / $t->click : 0;
     77//            $t->ecpm = $t->impression > 0 ? $t->commission / $t->impression * 1000 : 0;
     78//            $t->ctr = $t->impression > 0 ? $t->click / $t->impression * 100 : 0;
     79//        }
    8080        return $resp;
    8181    }
  • progrids-widgets/trunk/functions.php

    r842537 r842553  
    44 * Plugin Name: ProGrids Widget Plugin
    55 * Description: ProGrids.com widget management plugin
    6  * Version:     1.5.0
     6 * Version:     1.5.1
    77 * Author:      Sazze, Inc.
    88 * Author URI: http://progrids.com/
     
    2020
    2121define('PROGRIDS_PLUGIN_DIR', dirname(__FILE__));
    22 //if (preg_match('~.*(localdev|blog1).*~', $_SERVER['HTTP_HOST'])) {
    23 //    define('PROGRIDS_PLUGIN_URL', plugins_url('', 'progrids/functions.php'));
    24 //} else {
    25     define('PROGRIDS_PLUGIN_URL', PROGRIDS_DEV_ENVIRON || preg_match('~.*current.*~', __FILE__) ? plugins_url('', 'progrids/functions.php') : (plugins_url() . '/' . basename(dirname(__FILE__))));
    26 //}
     22
     23define('PROGRIDS_PLUGIN_URL', PROGRIDS_DEV_ENVIRON ? plugins_url('', 'progrids/functions.php') : (plugins_url() . '/' . basename(dirname(__FILE__)))); //|| preg_match('~.*current.*~', __FILE__)
    2724
    2825define('PROGRIDS_VIEW_DIR', dirname(__FILE__) . '/views');
  • progrids-widgets/trunk/readme.txt

    r842537 r842553  
    44Requires at least: 3.2
    55Tested up to: 3.8
    6 Stable tag: 1.5.0
     6Stable tag: 1.5.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.