Plugin Directory

Changeset 784096


Ignore:
Timestamp:
10/07/2013 05:42:26 PM (12 years ago)
Author:
phikai
Message:

Admin UI Update, Thanks HughbertD

Location:
runkeeper-activity-feed/trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • runkeeper-activity-feed/trunk/readme.txt

    r711369 r784096  
    44Tags: runkeeper, widget,
    55Requires at least: 3.5
    6 Tested up to: 3.5.1
    7 Stable tag: 1.6.4
     6Tested up to: 3.6.1
     7Stable tag: 1.7.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5959== Changelog ==
    6060
     61= 1.7.0 =
     62* Updated Admin Interface, Thanks to HughbertD
     63
    6164= 1.6.4 =
    6265* BUG FIX: Fix in Widget Loop
  • runkeeper-activity-feed/trunk/runkeeper-wordpress-activity-feed.php

    r711369 r784096  
    66Description: A plugin to automatically draft posts of all your Runkeeper Activities.
    77Author: A. Kai Armstrong
    8 Version: 1.6.4
     8Version: 1.7.0
    99Author URI: http://www.kaiarmstrong.com
    1010*/
     
    102102        <?php $toz_rk_auth_code = get_option( 'toz_rk_auth_code' );
    103103        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>
    105105        <?php } else {
    106106            $rkProfile = $toz_rkAPI->doRunkeeperRequest('Profile','Read');
     
    119119                        <th scope="row"><label for="toz_rk_author_id">Author ID:</label></th>
    120120                        <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>
    122126                            <span class="description">WordPress Author ID of the author who will make posts.</span>
    123127                        </td>
     
    137141                        <th scope="row"><label for="toz_rk_units">Units:</label></th>
    138142                        <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;>
    145149                        </td>
    146150                    </tr>
     
    152156                        <th scope="row"><label for="toz_rk_post_options">Post Options:</label></th>
    153157                        <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>
    156160                        </td>
    157161                        <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>
    164168                        </td>
    165169                    </tr>
     
    167171                        <th scope="row"></th>
    168172                        <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>
    179183                        </td>
    180184                    </tr>
     
    182186                        <th scope="row"></th>
    183187                        <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>
    194198                        </td>
    195199                    </tr>
     
    197201                        <th scope="row"></th>
    198202                        <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>
    201205                        </td>
    202206                    </tr>
Note: See TracChangeset for help on using the changeset viewer.