Changeset 1474381
- Timestamp:
- 08/15/2016 03:19:57 AM (10 years ago)
- Location:
- bmlt-tabbed-ui/tags/6.0.11
- Files:
-
- 5 copied
-
. (copied) (copied from bmlt-tabbed-ui/trunk)
-
bmlt-tabbed-ui.php (copied) (copied from bmlt-tabbed-ui/trunk/bmlt-tabbed-ui.php) (7 diffs)
-
css/bmlt_tabs.css (copied) (copied from bmlt-tabbed-ui/trunk/css/bmlt_tabs.css)
-
js/bmlt_tabs.js (copied) (copied from bmlt-tabbed-ui/trunk/js/bmlt_tabs.js)
-
readme.txt (copied) (copied from bmlt-tabbed-ui/trunk/readme.txt) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bmlt-tabbed-ui/tags/6.0.11/bmlt-tabbed-ui.php
r1454420 r1474381 5 5 Description: Adds a jQuery Tabbed UI for BMLT. 6 6 Author: Jack S Florida Region 7 Version: 6.0.1 07 Version: 6.0.11 8 8 */ 9 9 /* Disallow direct access to the plugin file */ … … 229 229 "header" => '1', 230 230 "format_key" => '', 231 232 "time_format" => '', 233 231 234 "exclude_zip_codes" => Null 232 235 ), $atts)); … … 241 244 $include_weekday_button = ($has_meetings == '0' ? '0' : $include_weekday_button); 242 245 $format_key = ($format_key != '' ? strtoupper($format_key) : ''); 246 247 $time_format = ($time_format == '' ? 'g:i a' : $time_format); 248 243 249 // $has_tabs = ($view_by == 'city' ? '0' : $has_tabs); 244 250 if ($view_by != 'city' && $view_by != 'weekday') { … … 391 397 $minutes = intval($duration[0]) * 60 + intval((isset($duration[1]) ? $duration[1] : '0')); 392 398 $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'])); 395 401 $value['start_time'] = $value['start_time'] . " - " . $end_time; 396 402 $location = $this->getLocation($value, $format_key); … … 602 608 } 603 609 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>'; 605 611 } 606 612 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>'; 608 614 } 609 615 $output = $this_title . $sub_title . $meeting_count. $group_count . $output; … … 1208 1214 <p><em>Title, meeting and group count have unique CSS classes that can be used for custom styling.</em></p> 1209 1215 </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 1210 1234 <h3 class="help-accordian"><strong>BMLT Tabs Shortcode Usage</strong></h3> 1235 1211 1236 <div> 1237 1212 1238 <p>Insert the following shortcodes into a page.</p> 1239 1213 1240 <p><strong>[bmlt_tabs]</strong></p> 1241 1214 1242 <p><strong>[meeting_count]</strong></p> 1243 1215 1244 <p><strong>[group_count]</strong></p> 1245 1216 1246 <p><strong>Example: We now have [group_count] groups with [meeting_count] per week.</strong></p> 1247 1217 1248 <p><em>Detailed instructions for each shortcode are provided as follows.</em></p> 1218 </div> 1249 1250 </div> 1251 1219 1252 <h3 class="help-accordian"><strong>Service Body Parameter</strong></h3> 1220 1253 <div> … … 1248 1281 <div> 1249 1282 <p>With this parameter you can exclude the City button.</p> 1283 1250 1284 <p><strong>[bmlt_tabs include_city_button="0|1"]</strong></p> 1285 1251 1286 <p>0 = exclude City button</p> 1287 1252 1288 <p>1 = include City button (default)</p> 1289 1253 1290 <p><em>City button will be included when view_by = "city" (include_city_button will be set to "1").</em></p> 1254 1291 </div> -
bmlt-tabbed-ui/tags/6.0.11/readme.txt
r1454420 r1474381 9 9 Tested up to: 4.5.3 10 10 11 Stable tag: 6.0.1 011 Stable tag: 6.0.11 12 12 13 13 BMLT Tabbed UI implements a Tabbed UI for BMLT. … … 39 39 == Changelog == 40 40 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 41 45 = 6.0.10 = 42 46
Note: See TracChangeset
for help on using the changeset viewer.