Plugin Directory

Changeset 1580671


Ignore:
Timestamp:
01/23/2017 10:19:02 PM (9 years ago)
Author:
pushpress
Message:

Fixed a bug on the workouts page.

Location:
pushpress-integration
Files:
4 edited
7 copied

Legend:

Unmodified
Added
Removed
  • pushpress-integration/tags/1.5.12/inc/wp_pushpress_model.php

    r1576771 r1580671  
    417417            }
    418418
    419                        
     419
    420420            $results = array();
    421421            foreach ($tracks->data as $key => $track) {
     
    437437                        set_transient("pp_track_workouts_" . $track->uuid, $workouts, 600);
    438438                    }
    439                    
     439
    440440                    $results[$key]['workouts'] = $this->filter_data_by_date($workouts, $timeNow, $client, $public_setting);
    441441                   
  • pushpress-integration/tags/1.5.12/pushpress.php

    r1576771 r1580671  
    22/**
    33 * @package WP-PushPress
    4  * @version 1.5.11
     4 * @version 1.5.12
    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.11
     11Version: 1.5.12
    1212Author URI: https://pushpress.com
    1313*/
    1414define('PUSHPRESS_LOCAL', FALSE);
    1515define('PUSHPRESS_DEV', FALSE);
    16 define( 'PP_PLUGIN_VERSION', '1.5.11');
     16define( 'PP_PLUGIN_VERSION', '1.5.12');
    1717define( 'PUSHPRESS_ERROR_REPORT', 0 );
    1818define( 'PUSHPRESS_BUTTON_CLASS',  'pushpress-button-class-' . rand(0, 10000));
  • pushpress-integration/tags/1.5.12/readme.txt

    r1576771 r1580671  
    126126= 1.5.11 =
    127127Found an issue affecting *some* PHP versions / hosting providers in how they were treating the data being returned from our API.  This was causing white screens of death on our pages. Fixed the issue for those affected.
     128
     129= 1.5.12 =
     130Found an issue causing the workout page to not display workouts in some cases.
  • pushpress-integration/tags/1.5.12/templates/frontend/shortcode_workouts.php

    r1576771 r1580671  
    2020    <?php foreach ($workouts as $key => $workout): ?>
    2121        <h2><?php echo $workout['track_name']; ?></h2>
     22       
     23   
    2224        <div class="wp-pushpress-list">
    23             <?php if (count($workout->data) > 0): ?>
    24                 <?php foreach ($workout->data as $key => $item): ?>                         
     25            <?php if (count($workout['data']) > 0): ?>
     26
     27                <?php foreach ($workout['data'] as $key => $item): ?>                           
    2528                    <div class="item-other">
    2629                        <h3><?php echo $item['type']; ?>
  • pushpress-integration/trunk/inc/wp_pushpress_model.php

    r1576771 r1580671  
    417417            }
    418418
    419                        
     419
    420420            $results = array();
    421421            foreach ($tracks->data as $key => $track) {
     
    437437                        set_transient("pp_track_workouts_" . $track->uuid, $workouts, 600);
    438438                    }
    439                    
     439
    440440                    $results[$key]['workouts'] = $this->filter_data_by_date($workouts, $timeNow, $client, $public_setting);
    441441                   
  • pushpress-integration/trunk/pushpress.php

    r1576771 r1580671  
    22/**
    33 * @package WP-PushPress
    4  * @version 1.5.11
     4 * @version 1.5.12
    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.11
     11Version: 1.5.12
    1212Author URI: https://pushpress.com
    1313*/
    1414define('PUSHPRESS_LOCAL', FALSE);
    1515define('PUSHPRESS_DEV', FALSE);
    16 define( 'PP_PLUGIN_VERSION', '1.5.11');
     16define( 'PP_PLUGIN_VERSION', '1.5.12');
    1717define( 'PUSHPRESS_ERROR_REPORT', 0 );
    1818define( 'PUSHPRESS_BUTTON_CLASS',  'pushpress-button-class-' . rand(0, 10000));
  • pushpress-integration/trunk/readme.txt

    r1576771 r1580671  
    126126= 1.5.11 =
    127127Found an issue affecting *some* PHP versions / hosting providers in how they were treating the data being returned from our API.  This was causing white screens of death on our pages. Fixed the issue for those affected.
     128
     129= 1.5.12 =
     130Found an issue causing the workout page to not display workouts in some cases.
  • pushpress-integration/trunk/templates/frontend/shortcode_workouts.php

    r1576771 r1580671  
    2020    <?php foreach ($workouts as $key => $workout): ?>
    2121        <h2><?php echo $workout['track_name']; ?></h2>
     22       
     23   
    2224        <div class="wp-pushpress-list">
    23             <?php if (count($workout->data) > 0): ?>
    24                 <?php foreach ($workout->data as $key => $item): ?>                         
     25            <?php if (count($workout['data']) > 0): ?>
     26
     27                <?php foreach ($workout['data'] as $key => $item): ?>                           
    2528                    <div class="item-other">
    2629                        <h3><?php echo $item['type']; ?>
Note: See TracChangeset for help on using the changeset viewer.