Plugin Directory

Changeset 1474382


Ignore:
Timestamp:
08/15/2016 03:20:27 AM (10 years ago)
Author:
odathp
Message:

Commit v6.0.11

Location:
bmlt-tabbed-ui/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bmlt-tabbed-ui/trunk/bmlt-tabbed-ui.php

    r1454420 r1474382  
    55Description: Adds a jQuery Tabbed UI for BMLT.
    66Author: Jack S Florida Region
    7 Version: 6.0.10
     7Version: 6.0.11
    88*/
    99/* Disallow direct access to the plugin file */
     
    229229                "header" => '1',
    230230                "format_key" => '',
     231
     232                "time_format" => '',
     233
    231234                "exclude_zip_codes" => Null
    232235            ), $atts));
     
    241244            $include_weekday_button = ($has_meetings == '0' ? '0' : $include_weekday_button);
    242245            $format_key             = ($format_key != '' ? strtoupper($format_key) : '');
     246
     247            $time_format            = ($time_format == '' ? 'g:i a' : $time_format);
     248
    243249            // $has_tabs = ($view_by == 'city' ? '0' : $has_tabs);
    244250            if ($view_by != 'city' && $view_by != 'weekday') {
     
    391397                        $minutes             = intval($duration[0]) * 60 + intval((isset($duration[1]) ? $duration[1] : '0'));
    392398                        $addtime             = '+ ' . $minutes . ' minutes';
    393                         $end_time            = date('g:i A', strtotime($value['start_time'] . ' ' . $addtime));
    394                         $value['start_time'] = date('g:i A', strtotime($value['start_time']));
     399                        $end_time            = date($time_format, strtotime($value['start_time'] . ' ' . $addtime));
     400                        $value['start_time'] = date($time_format, strtotime($value['start_time']));
    395401                        $value['start_time'] = $value['start_time'] . " - " . $end_time;
    396402                        $location = $this->getLocation($value, $format_key);
     
    602608            }
    603609            if ( $_GET['meeting_count'] != Null ) {
    604                 $meeting_count = '<span class="bmlt_tabs_meeting_count">Meeting Weekly: ' . $this->meeting_count() . '</span>';
     610                $meeting_count = '<span class="bmlt_tabs_meeting_count">Meeting Weekly: ' . $this->meeting_count('', Null) . '</span>';
    605611            }
    606612            if ( $_GET['group_count'] != Null ) {
    607                 $group_count = '<span class="bmlt_tabs_group_count">Groups: ' . $this->bmlt_group_count() . '</span>';
     613                $group_count = '<span class="bmlt_tabs_group_count">Groups: ' . $this->bmlt_group_count('', Null) . '</span>';
    608614            }
    609615            $output = $this_title . $sub_title . $meeting_count. $group_count . $output;
     
    12081214                        <p><em>Title, meeting and group count have unique CSS classes that can be used for custom styling.</em></p>
    12091215                    </div>
     1216                    <h3 class="help-accordian"><strong>Time Format (New)</strong></h3>
     1217
     1218                    <div>
     1219
     1220                        <p>With this parameter you can configure the time format.</p>
     1221
     1222                        <p><strong>[bmlt_tabs time_format="G:i"]</strong></p>
     1223
     1224                        <p>"G:i" = 24 Hour Time Format (14:00)</p>
     1225
     1226                        <p>"g:i A" = 12 Hour Time Format (2:00 PM) (Default)</p>
     1227
     1228                        <p><em>Default is 12 Hour Time Fomat</em></p>
     1229                       
     1230                        <p>Refer to the <a style='color:#0073aa;' target='_blank' href='http://php.net/manual/en/function.date.php'>PHP Date</a> function for other ways to configure the time.
     1231
     1232                    </div>
     1233
    12101234                    <h3 class="help-accordian"><strong>BMLT Tabs Shortcode Usage</strong></h3>
     1235
    12111236                    <div>
     1237
    12121238                        <p>Insert the following shortcodes into a page.</p>
     1239
    12131240                        <p><strong>[bmlt_tabs]</strong></p>
     1241
    12141242                        <p><strong>[meeting_count]</strong></p>
     1243
    12151244                        <p><strong>[group_count]</strong></p>
     1245
    12161246                        <p><strong>Example: We now have [group_count] groups with [meeting_count] per week.</strong></p>
     1247
    12171248                        <p><em>Detailed instructions for each shortcode are provided as follows.</em></p>
    1218                     </div>
     1249
     1250                    </div>
     1251
    12191252                    <h3 class="help-accordian"><strong>Service Body Parameter</strong></h3>
    12201253                    <div>
     
    12481281                    <div>
    12491282                        <p>With this parameter you can exclude the City button.</p>
     1283
    12501284                        <p><strong>[bmlt_tabs include_city_button="0|1"]</strong></p>
     1285
    12511286                        <p>0 = exclude City button</p>
     1287
    12521288                        <p>1 = include City button (default)</p>
     1289
    12531290                        <p><em>City button will be included when view_by = "city" (include_city_button will be set to "1").</em></p>
    12541291                    </div>
  • bmlt-tabbed-ui/trunk/readme.txt

    r1454420 r1474382  
    99Tested up to: 4.5.3
    1010
    11 Stable tag: 6.0.10
     11Stable tag: 6.0.11
    1212
    1313BMLT Tabbed UI implements a Tabbed UI for BMLT.
     
    3939== Changelog ==
    4040
     41= 6.0.11 =
     42
     43* New - Shortcode parameter "time_format".  This will allow configuring the meeting time using a given PHP format string. See BMLT-Settings-Help.
     44
    4145= 6.0.10 =
    4246
Note: See TracChangeset for help on using the changeset viewer.