Plugin Directory

Changeset 1571482


Ignore:
Timestamp:
01/09/2017 09:55:48 PM (9 years ago)
Author:
pushpress
Message:

Added '1.59

Location:
pushpress-integration
Files:
12 edited
7 copied

Legend:

Unmodified
Added
Removed
  • pushpress-integration/trunk/admin/config.php

    r1230496 r1571482  
    1 <?php
    2 
    3 ?>
    4 
     1<?php ?>
    52<div class="pushpress-wrap">
    63    <div class="header">
  • pushpress-integration/trunk/admin/main.php

    r1331831 r1571482  
    4545$linkTo = str_replace('{subdomain}', $this->subdomain, PUSHPRESS_CPANEL);
    4646?>
    47 
    4847<div class="pushpress-wrap">
    4948    <div class="header">
  • pushpress-integration/trunk/lib/php-sdk/lib/Pushpress/ApiResource.php

    r1276989 r1571482  
    5757    $requestor = new Pushpress_ApiRequestor($this->_apiKey);
    5858    $url = $this->emptyUrl();
    59     // echo $url;
    60     // die();
    6159    list($response, $apiKey) = $requestor->request('get', $url, $this->_retrieveOptions);
    6260    $this->refreshFrom($response, $apiKey);
     
    170168    $requestor = new Pushpress_ApiRequestor($apiKey);
    171169    $url = self::_scopedLsb($class, 'classUrl', $class);
    172     $url = preg_replace("/(ss)$/", "s", $url);
    173     // echo $url;
    174 //      echo '<br>';
    175   //    var_dump($params);
    176     //die();
     170    $url = preg_replace("/(ss)$/", "s", $url);   
    177171    list($response, $apiKey) = $requestor->request('post', $url, $params);
    178172    return Pushpress_Util::convertToPushpressObject($response, $apiKey);
     
    187181    if (count($params) > 0) {
    188182      $url = $this->instanceUrl();
    189       // echo "<br>URL: " . $url;
    190       // echo "<br>params:<br>";
    191       // var_dump($params);
    192       // die();
    193 
     183     
    194184      list($response, $apiKey) = $requestor->request('post', $url, $params);
    195185      $this->refreshFrom($response, $apiKey);
     
    203193    $requestor = new Pushpress_ApiRequestor($this->_apiKey);
    204194    $params = $this->serializeParameters();
    205     // echo 'PRARAMS:<br>';var_dump($params);
    206     // die();
     195   
    207196    if (count($params) > 0) {
    208197      $url = $this->instanceUrl();
  • pushpress-integration/trunk/lib/php-sdk/lib/Pushpress/Calendar.php

    r1230496 r1571482  
    8686        $url = self::classUrl($class);
    8787        $url .= "/registrations";
    88         echo $url;
    8988        $requestor = new Pushpress_ApiRequestor();
    9089     
  • pushpress-integration/trunk/lib/php-sdk/lib/Pushpress/ProductImages.php

    r1230496 r1571482  
    6161      );
    6262      $requestor = new Pushpress_ApiRequestor($this->_apiKey);
    63     echo 'createPreorder url: ' . $url;
    64     var_dump($params);
    6563       
    6664    list($response, $apiKey) = $requestor->request('post', $url, $params);
    6765    //$this->refreshFrom(array('subscription' => $response), $apiKey, true);
    68     echo "response" .
    69     var_dump( $response);
    7066    return $response;
    7167  }
     
    7975      );
    8076      $requestor = new Pushpress_ApiRequestor($this->_apiKey);
    81     echo 'saveImages url: ' . $url;
    82     var_dump($params);
    8377       
    8478    list($response, $apiKey) = $requestor->request('post', $url, $params);
    8579    //$this->refreshFrom(array('subscription' => $response), $apiKey, true);
    86     echo "response" .
    87     var_dump( $response);
    8880    return $response;
    8981  }
  • pushpress-integration/trunk/lib/php-sdk/lib/Pushpress/Pushpress.php

    r1276989 r1571482  
    99 
    1010  public final function __construct() {
    11       echo '<bR>constructing API:';
    12       var_dump($this);
     11     
    1312  }
    1413
  • pushpress-integration/trunk/lib/php-sdk/lib/Pushpress/Subscriptions.php

    r1230496 r1571482  
    7171     $url =  $this->instanceUrl() . '/contracts';
    7272     $params = array();
    73       // echo '<br>options:<br>';
    74       // var_dump($params);
    7573      $requestor = new Pushpress_ApiRequestor($this->_apiKey);
    7674       
  • pushpress-integration/trunk/pushpress.php

    r1567572 r1571482  
    1     <?php
     1<?php
    22/**
    33 * @package WP-PushPress
    4  * @version 1.5.9
     4 * @version 1.5.10
    55 */
    66/*
     
    99Description: Easily integrate your workouts, calendar, products, membership plans, events and more with your Wordpress blog!  This plugin is a free add-on for existing PushPress clients.  See https://pushpress.com for more info.
    1010Author: PushPress, Inc
    11 Version: 1.5.9
     11Version: 1.5.10
    1212Author URI: https://pushpress.com
    1313*/
    1414define('PUSHPRESS_LOCAL', FALSE);
    1515define('PUSHPRESS_DEV', FALSE);
    16 define( 'PP_PLUGIN_VERSION', '1.5.9');
     16define( 'PP_PLUGIN_VERSION', '1.5.10');
    1717define( 'PUSHPRESS_ERROR_REPORT', 0 );
    1818define( 'PUSHPRESS_BUTTON_CLASS',  'pushpress-button-class-' . rand(0, 10000));
     
    5555                add_action( 'wp_enqueue_scripts', array($this, 'pushpress_head_style') );
    5656                add_action( 'wp_enqueue_scripts', array($this, 'pushpress_head_script'), 30);
    57    
     57               
    5858                $this->model = new Wp_Pushpress_Model();
    5959                add_action( 'wp_ajax_pushpress_ajax', array($this->model, 'save_integration_page_status') );
     
    7171            echo"<div class=\"$class\"> <p>$message</p></div>";
    7272        }
     73
    7374       
    7475        function _checkDependencies() {
    7576            $errors = array();
     77           
    7678            if(!function_exists('curl_init')) {
    77                 $errors[] = 'Your environment does not support for CURL. You could not setup or run Pushpress plugin properly';
     79                $errors[] = 'In order to run the PushPress plugin, cURL support must be enabled (and it is not).  Please talk to your hosting provider to see if they can enable cURL support.';
    7880            }
    7981            return $errors;
     
    8284        function activation(){
    8385            $errors = $this->_checkDependencies();
     86
    8487            if(!empty($errors)) {
    85                 echo '<div style="color: #bd0000; border: 1px solid #bd0000; border-radius: 5px; padding: 10px;">';
    86                 foreach($errors as $error) {
    87                     echo '<div>' . $error . '</div>';
    88                 }
    89                 echo '</div>';             
    90                 exit;
    91             }
     88                $error_message = "<strong>There was an error installing PushPress</strong><br><br>" . implode("<br>", $errors);
     89                deactivate_plugins( plugin_basename( __FILE__ ) );
     90                wp_die( __( $error_message, 'my-plugin' ), 'Plugin dependency check', array( 'back_link' => true ) );           
     91            }
     92            else {
     93                // echo '<div style="color: #bd0000; border: 1px solid #bd0000; border-radius: 5px; padding: 10px;">Siuccess</div>';
     94            }
     95
     96            $error = ob_get_contents();
     97            mail("dan@pushpress.com", "WP Install Error", $error);
     98           
    9299        }
    93100
  • pushpress-integration/trunk/readme.txt

    r1567572 r1571482  
    120120= 1.5.9 =
    121121Fixed bug that was calculating average lead value incorrectly for FB Lead conversions.
     122
     123= 1.5.10 =
     124Fixed issue causing some systems to hang up / freeze due to output of characters before the <!DOCTYPE>
  • pushpress-integration/trunk/templates/frontend/shortcode_leads.php

    r1453043 r1571482  
    191191        </ul>
    192192    </div>
    193 
    194    
  • pushpress-integration/trunk/templates/frontend/shortcode_plans.php

    r1500641 r1571482  
    114114        ?>
    115115    </div>
    116 
  • pushpress-integration/trunk/templates/frontend/shortcode_products.php

    r1500641 r1571482  
    5959        }
    6060    }
    61 
Note: See TracChangeset for help on using the changeset viewer.