Changeset 784096
- Timestamp:
- 10/07/2013 05:42:26 PM (12 years ago)
- Location:
- runkeeper-activity-feed/trunk
- Files:
-
- 1 deleted
- 2 edited
-
assets-wp-repo (deleted)
-
readme.txt (modified) (2 diffs)
-
runkeeper-wordpress-activity-feed.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
runkeeper-activity-feed/trunk/readme.txt
r711369 r784096 4 4 Tags: runkeeper, widget, 5 5 Requires at least: 3.5 6 Tested up to: 3. 5.17 Stable tag: 1. 6.46 Tested up to: 3.6.1 7 Stable tag: 1.7.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 == Changelog == 60 60 61 = 1.7.0 = 62 * Updated Admin Interface, Thanks to HughbertD 63 61 64 = 1.6.4 = 62 65 * BUG FIX: Fix in Widget Loop -
runkeeper-activity-feed/trunk/runkeeper-wordpress-activity-feed.php
r711369 r784096 6 6 Description: A plugin to automatically draft posts of all your Runkeeper Activities. 7 7 Author: A. Kai Armstrong 8 Version: 1. 6.48 Version: 1.7.0 9 9 Author URI: http://www.kaiarmstrong.com 10 10 */ … … 102 102 <?php $toz_rk_auth_code = get_option( 'toz_rk_auth_code' ); 103 103 if ( empty($toz_rk_auth_code) ) { ?> 104 <p>Let's authorize RunKeeper: <a href="http://runkeeper.thinkonezero.com "><img src="<?php echo plugins_url( 'includes/images/runkeeper-connect-blue-white.png' , __FILE__ ); ?>" width="200" height="26" alt="Connect to RunKeeper" style="padding-left:10px" /></a></p>104 <p>Let's authorize RunKeeper: <a href="http://runkeeper.thinkonezero.com/"><img src="<?php echo plugins_url( 'includes/images/runkeeper-connect-blue-white.png' , __FILE__ ); ?>" width="200" height="26" alt="Connect to RunKeeper" style="padding-left:10px" /></a></p> 105 105 <?php } else { 106 106 $rkProfile = $toz_rkAPI->doRunkeeperRequest('Profile','Read'); … … 119 119 <th scope="row"><label for="toz_rk_author_id">Author ID:</label></th> 120 120 <td> 121 <input type="number" name="toz_rk_author_id" value="<?php echo(get_option('toz_rk_author_id')); ?>" class="regular-text code" /> 121 <select name="toz_rk_author_id"> 122 <?php foreach(get_users() as $user):?> 123 <option value="<?php echo $user->data->ID;?>" <?php echo (get_option('toz_rk_author_id') == $user->data->ID ? 'selected="selected"' : ''); ?>><?php echo $user->data->display_name;?></option> 124 <?php endforeach;?> 125 </select> 122 126 <span class="description">WordPress Author ID of the author who will make posts.</span> 123 127 </td> … … 137 141 <th scope="row"><label for="toz_rk_units">Units:</label></th> 138 142 <td width="200px"> 139 <input type="radio" name="toz_rk_units" value="standard" class="code" <?php if ( get_option('toz_rk_units') == 'standard' ) { echo 'checked'; } else { } ?> />140 < span class="description">Standard</span>141 </td> 142 <td> 143 <input type="radio" name="toz_rk_units" value="metric" class="code" <?php if ( get_option('toz_rk_units') == 'metric' ) { echo 'checked'; } else { } ?> />144 < span class="description">Metric</span>143 <input id="rk_units_standard" type="radio" name="toz_rk_units" value="standard" class="code" <?php if ( get_option('toz_rk_units') == 'standard' ) { echo 'checked'; } else { } ?> /> 144 <label for="rk_units_standard" class="description">Standard</label> 145 </td> 146 <td> 147 <input id="rk_units_metric" type="radio" name="toz_rk_units" value="metric" class="code" <?php if ( get_option('toz_rk_units') == 'metric' ) { echo 'checked'; } else { } ?> /> 148 <label for="rk_units_metric" class="description">Metric</label;> 145 149 </td> 146 150 </tr> … … 152 156 <th scope="row"><label for="toz_rk_post_options">Post Options:</label></th> 153 157 <td width="200px"> 154 <input type="checkbox" name="toz_rk_post_options_notes" value="true" class="code" <?php if ( get_option('toz_rk_post_options_notes') == true ) { echo 'checked'; } else { } ?> />155 < span class="description">Activity Notes</span>158 <input id="options_activity_notes" type="checkbox" name="toz_rk_post_options_notes" value="true" class="code" <?php if ( get_option('toz_rk_post_options_notes') == true ) { echo 'checked'; } else { } ?> /> 159 <label class="description" for="options_activity_notes">Activity Notes</label> 156 160 </td> 157 161 <td width="200px"> 158 <input type="checkbox" name="toz_rk_post_options_type" value="true" class="code" <?php if ( get_option('toz_rk_post_options_type') == true ) { echo 'checked'; } else { } ?> />159 < span class="description">Activity Type</span>160 </td> 161 <td> 162 <input type="checkbox" name="toz_rk_post_options_distance" value="true" class="code" <?php if ( get_option('toz_rk_post_options_distance') == true ) { echo 'checked'; } else { } ?> />163 < span class="description">Total Distance</span>162 <input id="options_type" type="checkbox" name="toz_rk_post_options_type" value="true" class="code" <?php if ( get_option('toz_rk_post_options_type') == true ) { echo 'checked'; } else { } ?> /> 163 <label class="description" for="options_type">Activity Type</label> 164 </td> 165 <td> 166 <input id="options_distance" type="checkbox" name="toz_rk_post_options_distance" value="true" class="code" <?php if ( get_option('toz_rk_post_options_distance') == true ) { echo 'checked'; } else { } ?> /> 167 <label class="description" for="options_distance">Total Distance</label> 164 168 </td> 165 169 </tr> … … 167 171 <th scope="row"></th> 168 172 <td> 169 <input type="checkbox" name="toz_rk_post_options_duration" value="true" class="code" <?php if ( get_option('toz_rk_post_options_duration') == true ) { echo 'checked'; } else { } ?> />170 < span class="description">Total Duration</span>171 </td> 172 <td> 173 <input type="checkbox" name="toz_rk_post_options_speed" value="true" class="code" <?php if ( get_option('toz_rk_post_options_speed') == true ) { echo 'checked'; } else { } ?> />174 < span class="description">Average Speed</span>175 </td> 176 <td> 177 <input type="checkbox" name="toz_rk_post_options_pace" value="true" class="code" <?php if ( get_option('toz_rk_post_options_pace') == true ) { echo 'checked'; } else { } ?> />178 < span class="description">Average Pace</span>173 <input id="options_duration" type="checkbox" name="toz_rk_post_options_duration" value="true" class="code" <?php if ( get_option('toz_rk_post_options_duration') == true ) { echo 'checked'; } else { } ?> /> 174 <label class="description" for="options_duration">Total Duration</label> 175 </td> 176 <td> 177 <input id="options_speed" type="checkbox" name="toz_rk_post_options_speed" value="true" class="code" <?php if ( get_option('toz_rk_post_options_speed') == true ) { echo 'checked'; } else { } ?> /> 178 <label class="description" for="options_speed">Average Speed</label> 179 </td> 180 <td> 181 <input id="options_pace" type="checkbox" name="toz_rk_post_options_pace" value="true" class="code" <?php if ( get_option('toz_rk_post_options_pace') == true ) { echo 'checked'; } else { } ?> /> 182 <label class="description" for="options_pace">Average Pace</label> 179 183 </td> 180 184 </tr> … … 182 186 <th scope="row"></th> 183 187 <td> 184 <input type="checkbox" name="toz_rk_post_options_calories" value="true" class="code" <?php if ( get_option('toz_rk_post_options_calories') == true ) { echo 'checked'; } else { } ?> />185 < span class="description">Total Calories</span>186 </td> 187 <td> 188 <input type="checkbox" name="toz_rk_post_options_heartrate" value="true" class="code" <?php if ( get_option('toz_rk_post_options_heartrate') == true ) { echo 'checked'; } else { } ?> />189 < span class="description">Heart Rate</span>190 </td> 191 <td> 192 <input type="checkbox" name="toz_rk_post_options_url" value="true" class="code" <?php if ( get_option('toz_rk_post_options_url') == true ) { echo 'checked'; } else { } ?> />193 < span class="description">Activity URL</span>188 <input id="options_calories" type="checkbox" name="toz_rk_post_options_calories" value="true" class="code" <?php if ( get_option('toz_rk_post_options_calories') == true ) { echo 'checked'; } else { } ?> /> 189 <label class="description" for="options_calories">Total Calories</label> 190 </td> 191 <td> 192 <input id="options_heartrate" type="checkbox" name="toz_rk_post_options_heartrate" value="true" class="code" <?php if ( get_option('toz_rk_post_options_heartrate') == true ) { echo 'checked'; } else { } ?> /> 193 <label class="description" for="options_heartrate">Heart Rate</label> 194 </td> 195 <td> 196 <input id="options_url" type="checkbox" name="toz_rk_post_options_url" value="true" class="code" <?php if ( get_option('toz_rk_post_options_url') == true ) { echo 'checked'; } else { } ?> /> 197 <label class="description" for="options_url">Activity URL</label> 194 198 </td> 195 199 </tr> … … 197 201 <th scope="row"></th> 198 202 <td> 199 <input type="checkbox" name="toz_rk_post_options_time" value="true" class="code" <?php if ( get_option('toz_rk_post_options_time') == true ) { echo 'checked'; } else { } ?> />200 <span class="description" >Start Time</span>203 <input id="options_time" type="checkbox" name="toz_rk_post_options_time" value="true" class="code" <?php if ( get_option('toz_rk_post_options_time') == true ) { echo 'checked'; } else { } ?> /> 204 <span class="description" for="options_time">Start Time</span> 201 205 </td> 202 206 </tr>
Note: See TracChangeset
for help on using the changeset viewer.