Plugin Directory

Changeset 564673


Ignore:
Timestamp:
06/27/2012 04:20:45 PM (14 years ago)
Author:
frold
Message:

Minor bug fixes and testing for WP 3.4

Location:
runners-log/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • runners-log/trunk/Includes/runnerslog_body_mass_index.php

    r398200 r564673  
    11<div class="wrap">
    22<p><?php
    3 
    4 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
    53
    64echo "<h2>" . __( 'Runners Log - Body Mass Calculator' ) . "</h2>"; ?></p>
  • runners-log/trunk/Includes/runnerslog_converter_toolbox.php

    r398200 r564673  
    11<div class="wrap">
    22<?php
    3 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
    43
    54echo "<h2>" . __( 'Runners Log - Coverter Toolbox', RUNNERSLOG) . "</h2>"; ?>
  • runners-log/trunk/Includes/runnerslog_stats_graphs.php

    r398200 r564673  
    22<p><?php
    33
    4 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
     4echo "<h2>" . __( 'Runners Log - Stats and Graph' ) . "</h2>"; ?></p>
     5<h3>Below the graphs you'll find the code you need to use in a page, post or template to insert a simular graph as shown.</h3>
    56
    6 echo "<h2>" . __( 'Runners Log - Stats and Graph' ) . "</h2>"; ?></p>
    7 <h3><?php _e("Below the graphs you'll find the code you need to use in a page, post or template to insert a simular graph as shown.", RUNNERSLOG)?></h3>
     7<p><?php if (function_exists(runners_log)) echo runners_log(); ?></p>
     8<div class="block-content">In pages or posts use: <code>[runners_log]</code> in a template</div>
     9
     10<p><?php if (function_exists(runners_log_basic)) echo runners_log_basic(); ?></p>
     11<div class="block-content">In pages or posts use: <code>[runners_log_basic]</code> in a template</div>
    812
    913<p><?php if (function_exists(runners_log_graph)) echo runners_log_graph(); ?></p>
    10 <div class="block-content"><?php _e("In pages or posts use:", RUNNERSLOG)?> <code>[runners_log_graph]</code> <?php _e('in a template', RUNNERSLOG)?> <code>&lt;?php if (function_exists(runners_log_graph)) echo runners_log_graph(); ?&gt;</code></div>
     14<div class="block-content">In pages or posts use: <code>[runners_log_graph]</code> in a template</div>
    1115
    1216<p><?php if (function_exists(runners_log_pie_distance)) echo runners_log_pie_distance(); ?></p>
    13 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_pie_distance]</code> <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_pie_distance)) echo runners_log_pie_distance(); ?&gt;</code></div>
     17<div class="block-content">In pages or posts use:<code>[runners_log_pie_distance]</code> in a template</div>
    1418
    1519<p><?php if (function_exists(runners_log_pie_hours)) echo runners_log_pie_hours(); ?></p>
    16 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_pie_hours]</code>  <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_pie_hours)) echo runners_log_pie_hours(); ?&gt;</code></div>
     20<div class="block-content">In pages or posts use:<code>[runners_log_pie_hours]</code>  in a template</div>
    1721
    1822<p><?php if (function_exists(runners_log_pie_calories)) echo runners_log_pie_calories(); ?></p>
    19 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_pie_calories]</code>  <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_pie_calories)) echo runners_log_pie_calories(); ?&gt;</code></div>
     23<div class="block-content">In pages or posts use:<code>[runners_log_pie_calories]</code>  in a template</div>
    2024
    2125<p><?php if (function_exists(runners_log_bar_distance)) echo runners_log_bar_distance(); ?></p>
    22 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_bar_distance]</code> <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_bar_distance)) echo runners_log_bar_distance(); ?&gt;</code></div>
     26<div class="block-content">In pages or posts use:<code>[runners_log_bar_distance]</code> in a template</div>
    2327
    2428<p><?php if (function_exists(runners_log_bar_hours)) echo runners_log_bar_hours(); ?></p>
    25 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_bar_hours]</code> <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_bar_hours)) echo runners_log_bar_hours(); ?&gt;</code></div>
     29<div class="block-content">In pages or posts use:<code>[runners_log_bar_hours]</code> in a template</div>
    2630
    2731<p><?php if (function_exists(runners_log_bar_calories)) echo runners_log_bar_calories(); ?></p>
    28 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_bar_calories]</code> <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_bar_calories)) echo runners_log_bar_calories(); ?&gt;</code></div>
     32<div class="block-content">In pages or posts use:<code>[runners_log_bar_calories]</code> in a template</div>
    2933
    3034<p><?php if (function_exists(runners_log_graphmini_distance)) echo runners_log_graphmini_distance(); ?></p>
    31 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_graphmini_distance]</code> <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_graphmini_distance)) echo runners_log_graphmini_distance(); ?&gt;</code></div>
     35<div class="block-content">In pages or posts use:<code>[runners_log_graphmini_distance]</code> in a template</div>
    3236
    3337<p><?php if (function_exists(runners_log_graphmini_hours)) echo runners_log_graphmini_hours(); ?></p>
    34 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_graphmini_hours]</code> <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_graphmini_hours)) echo runners_log_graphmini_hours(); ?&gt;</code></div>
     38<div class="block-content">In pages or posts use:<code>[runners_log_graphmini_hours]</code> in a template</div>
    3539
    3640<p><?php if (function_exists(runners_log_graphmini_calories)) echo runners_log_graphmini_calories(); ?></p>
    37 <div class="block-content"><?php _e('In pages or posts use:', RUNNERSLOG)?> <code>[runners_log_graphmini_calories]</code> <?php_e('in a template', RUNNERSLOG)?><code>&lt;?php if (function_exists(runners_log_graphmini_calories)) echo runners_log_graphmini_calories(); ?&gt;</code></div>
     41<div class="block-content">In pages or posts use:<code>[runners_log_graphmini_calories]</code> in a template</div>
     42
     43<p><?php if (function_exists(runners_log_garminmap)) echo runners_log_garminmap(); ?></p>
     44<div class="block-content">In pages or posts use:<code>[runners_log_garminmap]</code> in a template</div>
     45
     46<p><?php if (function_exists(runners_log_weather)) echo runners_log_weather(); ?></p>
     47<div class="block-content">In pages or posts use:<code>[runners_log_weather]</code> in a template</div>
     48
     49<p><?php if (function_exists(runners_log_weather_footer)) echo runners_log_weather_footer(); ?></p>
     50<div class="block-content">In pages or posts use:<code>[runners_log_weather_footer]</code> in a template</div>
    3851
    3952</div>
  • runners-log/trunk/Includes/runnerslog_training_zones.php

    r398200 r564673  
    11<div class="wrap">
    22<?php
    3 
    4 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
    53
    64echo "<h2>" . __( 'Runners Log - HR Training Zones Calculator', RUNNERSLOG). "</h2>"; ?>
     
    2523
    2624if ( $hrrest AND $hrmax ) {
    27 echo '<p>'.__('Based on a Resting Heart Rate at <b>', RUNNERSLOG).$hrrest.'</b>'. __('and a Maximum Heart Rate at <b>', RUNNERSLOG) .$hrmax.'</b>'. __('the commanded training zones are:', RUNNERSLOG).'</p>';
     25echo '<p>'.__('Based on a Resting Heart Rate at <b>', RUNNERSLOG).$hrrest.'</b> '. __('and a Maximum Heart Rate at <b>', RUNNERSLOG) .$hrmax.'</b> '. __('the commanded training zones are:', RUNNERSLOG).'</p>';
    2826echo '
    2927<h2>
  • runners-log/trunk/Includes/runnerslog_v02max.php

    r398200 r564673  
    11<div class="wrap">
    2 <?php echo "<h2>" . __( 'Runners Log - V0<sub>2</sub>max Calculator', RUNNERSLOG) . "</h2>"; ?>
     2<?php echo "<h2>" . __( 'Runners Log V0<sub>2</sub>maxulator Calculator', 'runnerslog_ops' ) . "</h2>"; ?>
    33<?php
    4 
    5 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
    6 
    74$distancetype = get_option('runnerslog_distancetype');
    85$coopers = get_option('runnerslog_coopers');
     
    2724?>
    2825
    29 <h3><?php _e('The Cooper test is a test of physical fitness. It was designed by Kenneth H. Cooper in 1968 for US military use. In the original form, the point of the test is to run as far as possible within 12 minutes.', RUNNERSLOG) ?></h3>
     26<h3>The Cooper test is a test of physical fitness. It was designed by Kenneth H. Cooper in 1968 for US military use. In the original form, the point of the test is to run as far as possible within 12 minutes.</h3>
    3027
    3128<form name="runnerslog_ops_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
     
    4946    </table>
    5047    <p class="submit">
    51         <input type="submit" name="Submit" value="<?php _e('Calculate Vo2-max', RUNNERSLOG) ?>" />
     48        <input type="submit" name="Submit" value="<?php _e('Calculate Vo2-max', 'runnerslog_ops' ) ?>" />
    5249    </p>
    5350</form>
     
    8683 
    8784if ( $coopers && $gender && $weight ) {
    88     echo __('Based on your gender <b>', RUNNERSLOG),$gender,__e('</b> and your weight <b>', RUNNERSLOG),$weight,'</b> <b>',$weightlang,__('</b> and the distance <b>', RUNNERSLOG),$coopers,'</b> <b>',$distancelang,__('</b> in 12min gives you the following "V0<sub>2</sub>max" and "absorption of oxygen value".', RUNNERSLOG);
     85    echo 'Based on your gender <b>',$gender,'</b> and your weight <b>',$weight,'</b> <b>',$weightlang,'</b> and the distance <b>',$coopers,'</b> <b>',$distancelang,'</b> in 12min gives you the following "V0<sub>2</sub>max" and "absorption of oxygen value".';
    8986    echo '<p>V0<sub>2</sub>max <b>',ROUND($v02max,1),'</b> ml/kg/min</p>';
    90     echo '<p>'.__('Absorption of oxygen', RUNNERSLOG).' <b>',ROUND($absorption02,1),'</b> l/min</p>';
    91     echo '<p>'.__('Below you can compare the V0<sub>2</sub>max with your age. You find a chart for men, women and elite.', RUNNERSLOG).'</p>';
     87    echo '<p>Absorption of oxygen <b>',ROUND($absorption02,1),'</b> l/min</p>';
     88    echo '<p>Below you can compare the V0<sub>2</sub>max with your age. You find a chart for men, women and elite.</p>';
    9289        } else {
    93     _e('To calculate your "V0<sub>2</sub>max" and "Absorption of oxygen value" you need to specify your weight and gender in the settings. And a distance above.', RUNNERSLOG);
     90    echo 'To calculate your "V0<sub>2</sub>max" and "Absorption of oxygen value" you need to specify your weight and gender in the settings. And a distance above.';
    9491}
    9592?>
     
    514511    </tbody>
    515512</table>
    516 
    517 </div>
  • runners-log/trunk/Includes/runnerslog_vdot_race_time.php

    r398200 r564673  
    1 <div class="wrap">
    2 <?php echo "<h2>" . __( 'Runners Log - VDOT Race Time Calculator', RUNNERSLOG) . "</h2>"; ?>
     1<div class="wrap">
     2<?php echo "<h2>" . __( 'Runners Log VDOT Race Time Calculator', 'runnerslog_ops' ) . "</h2>"; ?>
    33
    44<?php
    5 
    6 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
    7 
    85//We have to be sure that we have the variables needed for the calculations
    96$vdot_distance = get_option('runnerslog_vdot_distance');
     
    129126    </table>
    130127    <p class="submit">
    131         <input type="submit" name="Submit" value="<?php _e('Calculate VDOT-value', RUNNERSLOG) ?>" />
     128        <input type="submit" name="Submit" value="<?php _e('Calculate VDOT-value', 'runnerslog_ops' ) ?>" />
    132129    </p>
    133130</form>
  • runners-log/trunk/Includes/runnerslog_vdot_training_pace.php

    r398200 r564673  
    33
    44<?php
    5 
    6 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
    75
    86//We have to be sure that we have the variables needed for the calculations
  • runners-log/trunk/Includes/runnerslog_weather_functions.php

    r391645 r564673  
    11<?php
    22//retrieve information from Yahoo Weather channel depending on selected WOEID
    3 
    4 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');
    53
    64function runnerslog_retrieveWeather($woid,$unit,$thingToMeasure) {
  • runners-log/trunk/Includes/runnerslog_weather_settings.php

    r391645 r564673  
    11<div class="wrap">
    22
    3 
    4 <p><?php
    5 
    6 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','rlanguages');
     3<p><?php
    74
    85echo "<h2>" . __( 'Runners Log - Weather Settings' ) . "</h2>"; ?></p>
  • runners-log/trunk/readme.txt

    r525000 r564673  
    44Tags: plugin, sport, training, running, activity log, fitness, stats, statistics, garmin, VDOT, BMI, calculator, Training Zones, Race Time Calculator, Training Pace, Body Mass Index, gear, gear management
    55Requires at least: 2.7
    6 Tested up to: 3.3
    7 Stable tag: 3.1.0
     6Tested up to: 3.4
     7Stable tag: 3.2.0
    88
    99This plugin let you convert your blog into a training log and let you track your activities. You get advance statistics and running related calculators. See screenshots.
     
    29293. Use this short code `[runners_log_basic]` in a post or page.
    3030Alternativly place this `<?php if (function_exists(runners_log_basic)) echo runners_log_basic(); ?>` in your templates to have basic statistics. It gives you data like:
    31     * Meters: 8500
    32     * Time: 00:49:59
    33     * Km/hour: 10.2
    34     * Min/km: 05:52 minutes
    35     * Puls average: 172 bpmis 86% of Max HR and 80% of HRR
    36     * Calories: 654 C
    37     * Garmin Connect Link: http://connect.garmin.com/activity/id
    38     * Km in 2009: 693.7 km based on 122 runs with an avg of 5.69 km
    39     * Km in 2010: 100.8 km based on 12 runs with an avg of 8.4 km
     31    * Meters: 8500
     32        * Time: 00:49:59
     33        * Km/hour: 10.2
     34        * Min/km: 05:52 minutes
     35        * Puls average: 172 bpmis 86% of Max HR and 80% of HRR
     36        * Calories: 654 C
     37        * Garmin Connect Link: http://connect.garmin.com/activity/id
     38    * 2009: 693.7 km based on 122 runs with an avg of 5.69 km
     39    * 2010: 727.9 km based on 85 runs with an avg of 8.56 km
     40    * 2011: 539.3 km based on 70 runs with an avg of 7.7 km
     41    * 2012: 131.4 km based on 30 runs with an avg of 4.38 km
     42    * At all: 2292.1 km based on 351 runs with an avg of 6.53 km
    4043    * ~embed garmin connect map~
    41444. Use this short code `[runners_log_graph]` in a post or page. Alternativly place this `<?php if (function_exists(runners_log_basic)) echo runners_log_basic(); ?>` in your templates to have a chart of your total distance and hours per month.
     
    74778. Runners Log support the following short codes when you want to use Google Chart
    7578    * `[runners_log_gchart type="pie" format="d" year="2010" month="May" color="224499" width="600" height="300"]`
    76 
    77     *Type: bar, graph, pie, 3dpie
    78     *Format: d="distance", ds="distance sum", ts="time sum",  cs="calories sum", p="pulse average"
    79     *Year: 2009, 2010, 2011, 2012
    80     *Month: Jan, Feb, Marts, April, May, June, July, Aug, Sep, Oct, Nov, Dec
    81     *Color: Is the color scheme used eg: "224499" for the html color #224499
    82     *Width: The width of the chart: Default: 475 pixel
    83     *Height: The height of the chart: Default: 250 pixel
     79        * `Type: bar, graph, pie, 3dpie`
     80        * `Format: d="distance", ds="distance sum", ts="time sum",  cs="calories sum", p="pulse average"`
     81        * `Year: 2009, 2010, 2011, 2012`
     82        * `Month: Jan, Feb, Marts, April, May, June, July, Aug, Sep, Oct, Nov, Dec`
     83        * `Color: Is the color scheme used eg: "224499" for the html color #224499`
     84        * `Width: The width of the chart: Default: 475 pixel`
     85        * `Height: The height of the chart: Default: 250 pixel`
    8486
    8587== Frequently Asked Questions ==
     
    99101    [runners_log_bar_calories]
    100102    [runners_log_garminmap]
    101     [runners_log_weather]
    102     [runners_log_weather_footer]`
     103        [runners_log_weather]
     104        [runners_log_weather_footer]`
    103105
    104106= Howto use Google Chart =
     
    388390* FL - Added support for 2012: http://wordpress.org/support/topic/764998
    389391
     392= 3.2.0 =
     393* FL - Minor bug fixs regarding the old multilanguage function
     394* FL - Fixed bug in runnerslog_stats_graphs.php resulting in not printing all graphs
     395* FL - Fixed minor bug in running related calculators
     396* FL - Tested in WP 3.4
     397
    390398== Upgrade Notice ==
    391399
     
    450458Ultimo Marts 2012
    451459
     460= 3.2.0 =
     461Ultimo June 2012
     462
    452463== To Do ==
    453     * gear list (started)
    454     * auto import from garmin connect
     464* gear list (started)
     465* auto import from garmin connect
  • runners-log/trunk/runnerslog.php

    r525000 r564673  
    77Author URI: http://www.liljefred.dk
    88Contributors: frold, TheRealEyeless, michaellasmanis
    9 Version: 3.1.0
     9Version: 3.2.0
    1010License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1111Requires WordPress 2.7 or later.
     
    11901190        echo "No data available.<br/>\n";
    11911191        return;
     1192
    11921193    }
    11931194
  • runners-log/trunk/runnerslog_admin.php

    r525000 r564673  
    163163                        echo '<input name="runnerslog_cm" type="text" id="runnerslog_cm"  value="', form_option('runnerslog_cm'), '" class="small-text" />';
    164164                        echo '<span class="description"> Centimeters</span>';
     165
    165166                            } else {
    166167                        echo '<input name="runnerslog_feets" type="text" id="runnerslog_feets"  value="', form_option('runnerslog_feets'), '" class="small-text" />';
Note: See TracChangeset for help on using the changeset viewer.