Changeset 564673
- Timestamp:
- 06/27/2012 04:20:45 PM (14 years ago)
- Location:
- runners-log/trunk
- Files:
-
- 12 edited
-
Includes/runnerslog_body_mass_index.php (modified) (1 diff)
-
Includes/runnerslog_converter_toolbox.php (modified) (1 diff)
-
Includes/runnerslog_stats_graphs.php (modified) (1 diff)
-
Includes/runnerslog_training_zones.php (modified) (2 diffs)
-
Includes/runnerslog_v02max.php (modified) (5 diffs)
-
Includes/runnerslog_vdot_race_time.php (modified) (2 diffs)
-
Includes/runnerslog_vdot_training_pace.php (modified) (1 diff)
-
Includes/runnerslog_weather_functions.php (modified) (1 diff)
-
Includes/runnerslog_weather_settings.php (modified) (1 diff)
-
readme.txt (modified) (6 diffs)
-
runnerslog.php (modified) (2 diffs)
-
runnerslog_admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
runners-log/trunk/Includes/runnerslog_body_mass_index.php
r398200 r564673 1 1 <div class="wrap"> 2 2 <p><?php 3 4 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');5 3 6 4 echo "<h2>" . __( 'Runners Log - Body Mass Calculator' ) . "</h2>"; ?></p> -
runners-log/trunk/Includes/runnerslog_converter_toolbox.php
r398200 r564673 1 1 <div class="wrap"> 2 2 <?php 3 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');4 3 5 4 echo "<h2>" . __( 'Runners Log - Coverter Toolbox', RUNNERSLOG) . "</h2>"; ?> -
runners-log/trunk/Includes/runnerslog_stats_graphs.php
r398200 r564673 2 2 <p><?php 3 3 4 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages'); 4 echo "<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> 5 6 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> 8 12 9 13 <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><?php if (function_exists(runners_log_graph)) echo runners_log_graph(); ?></code></div>14 <div class="block-content">In pages or posts use: <code>[runners_log_graph]</code> in a template</div> 11 15 12 16 <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><?php if (function_exists(runners_log_pie_distance)) echo runners_log_pie_distance(); ?></code></div>17 <div class="block-content">In pages or posts use:<code>[runners_log_pie_distance]</code> in a template</div> 14 18 15 19 <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><?php if (function_exists(runners_log_pie_hours)) echo runners_log_pie_hours(); ?></code></div>20 <div class="block-content">In pages or posts use:<code>[runners_log_pie_hours]</code> in a template</div> 17 21 18 22 <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><?php if (function_exists(runners_log_pie_calories)) echo runners_log_pie_calories(); ?></code></div>23 <div class="block-content">In pages or posts use:<code>[runners_log_pie_calories]</code> in a template</div> 20 24 21 25 <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><?php if (function_exists(runners_log_bar_distance)) echo runners_log_bar_distance(); ?></code></div>26 <div class="block-content">In pages or posts use:<code>[runners_log_bar_distance]</code> in a template</div> 23 27 24 28 <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><?php if (function_exists(runners_log_bar_hours)) echo runners_log_bar_hours(); ?></code></div>29 <div class="block-content">In pages or posts use:<code>[runners_log_bar_hours]</code> in a template</div> 26 30 27 31 <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><?php if (function_exists(runners_log_bar_calories)) echo runners_log_bar_calories(); ?></code></div>32 <div class="block-content">In pages or posts use:<code>[runners_log_bar_calories]</code> in a template</div> 29 33 30 34 <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><?php if (function_exists(runners_log_graphmini_distance)) echo runners_log_graphmini_distance(); ?></code></div>35 <div class="block-content">In pages or posts use:<code>[runners_log_graphmini_distance]</code> in a template</div> 32 36 33 37 <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><?php if (function_exists(runners_log_graphmini_hours)) echo runners_log_graphmini_hours(); ?></code></div>38 <div class="block-content">In pages or posts use:<code>[runners_log_graphmini_hours]</code> in a template</div> 35 39 36 40 <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><?php if (function_exists(runners_log_graphmini_calories)) echo runners_log_graphmini_calories(); ?></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> 38 51 39 52 </div> -
runners-log/trunk/Includes/runnerslog_training_zones.php
r398200 r564673 1 1 <div class="wrap"> 2 2 <?php 3 4 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');5 3 6 4 echo "<h2>" . __( 'Runners Log - HR Training Zones Calculator', RUNNERSLOG). "</h2>"; ?> … … 25 23 26 24 if ( $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>';25 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>'; 28 26 echo ' 29 27 <h2> -
runners-log/trunk/Includes/runnerslog_v02max.php
r398200 r564673 1 1 <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>"; ?> 3 3 <?php 4 5 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');6 7 4 $distancetype = get_option('runnerslog_distancetype'); 8 5 $coopers = get_option('runnerslog_coopers'); … … 27 24 ?> 28 25 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> 30 27 31 28 <form name="runnerslog_ops_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> … … 49 46 </table> 50 47 <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' ) ?>" /> 52 49 </p> 53 50 </form> … … 86 83 87 84 if ( $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".'; 89 86 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>'; 92 89 } 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.'; 94 91 } 95 92 ?> … … 514 511 </tbody> 515 512 </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>"; ?> 3 3 4 4 <?php 5 6 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');7 8 5 //We have to be sure that we have the variables needed for the calculations 9 6 $vdot_distance = get_option('runnerslog_vdot_distance'); … … 129 126 </table> 130 127 <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' ) ?>" /> 132 129 </p> 133 130 </form> -
runners-log/trunk/Includes/runnerslog_vdot_training_pace.php
r398200 r564673 3 3 4 4 <?php 5 6 load_plugin_textdomain( RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');7 5 8 6 //We have to be sure that we have the variables needed for the calculations -
runners-log/trunk/Includes/runnerslog_weather_functions.php
r391645 r564673 1 1 <?php 2 2 //retrieve information from Yahoo Weather channel depending on selected WOEID 3 4 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','runners-log/languages');5 3 6 4 function runnerslog_retrieveWeather($woid,$unit,$thingToMeasure) { -
runners-log/trunk/Includes/runnerslog_weather_settings.php
r391645 r564673 1 1 <div class="wrap"> 2 2 3 4 <p><?php 5 6 load_plugin_textdomain(RUNNERSLOG,PLUGINDIR.'runners-log/languages','rlanguages'); 3 <p><?php 7 4 8 5 echo "<h2>" . __( 'Runners Log - Weather Settings' ) . "</h2>"; ?></p> -
runners-log/trunk/readme.txt
r525000 r564673 4 4 Tags: 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 5 5 Requires at least: 2.7 6 Tested up to: 3. 37 Stable tag: 3. 1.06 Tested up to: 3.4 7 Stable tag: 3.2.0 8 8 9 9 This 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. … … 29 29 3. Use this short code `[runners_log_basic]` in a post or page. 30 30 Alternativly 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 40 43 * ~embed garmin connect map~ 41 44 4. 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. … … 74 77 8. Runners Log support the following short codes when you want to use Google Chart 75 78 * `[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` 84 86 85 87 == Frequently Asked Questions == … … 99 101 [runners_log_bar_calories] 100 102 [runners_log_garminmap] 101 [runners_log_weather]102 [runners_log_weather_footer]`103 [runners_log_weather] 104 [runners_log_weather_footer]` 103 105 104 106 = Howto use Google Chart = … … 388 390 * FL - Added support for 2012: http://wordpress.org/support/topic/764998 389 391 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 390 398 == Upgrade Notice == 391 399 … … 450 458 Ultimo Marts 2012 451 459 460 = 3.2.0 = 461 Ultimo June 2012 462 452 463 == To Do == 453 * gear list (started)454 * auto import from garmin connect464 * gear list (started) 465 * auto import from garmin connect -
runners-log/trunk/runnerslog.php
r525000 r564673 7 7 Author URI: http://www.liljefred.dk 8 8 Contributors: frold, TheRealEyeless, michaellasmanis 9 Version: 3. 1.09 Version: 3.2.0 10 10 License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 11 Requires WordPress 2.7 or later. … … 1190 1190 echo "No data available.<br/>\n"; 1191 1191 return; 1192 1192 1193 } 1193 1194 -
runners-log/trunk/runnerslog_admin.php
r525000 r564673 163 163 echo '<input name="runnerslog_cm" type="text" id="runnerslog_cm" value="', form_option('runnerslog_cm'), '" class="small-text" />'; 164 164 echo '<span class="description"> Centimeters</span>'; 165 165 166 } else { 166 167 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.