Changeset 1361864
- Timestamp:
- 03/01/2016 03:36:00 PM (10 years ago)
- Location:
- wp-topbar/trunk
- Files:
-
- 4 edited
-
lib/css/jquery-ui-timepicker-addon.css (modified) (1 diff)
-
lib/js/jquery-ui-timepicker-addon.js (modified) (9 diffs)
-
readme.txt (modified) (3 diffs)
-
wp-topbar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-topbar/trunk/lib/css/jquery-ui-timepicker-addon.css
r1180497 r1361864 7 7 .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } 8 8 .ui-timepicker-div .ui_tpicker_unit_hide{ display: none; } 9 10 .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input { background: none; color: inherit; border: none; outline: none; border-bottom: solid 1px #555; width: 95%; } 11 .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus { border-bottom-color: #aaa; } 9 12 10 13 .ui-timepicker-rtl{ direction: rtl; } -
wp-topbar/trunk/lib/js/jquery-ui-timepicker-addon.js
r1180497 r1361864 1 /*! jQuery Timepicker Addon - v1. 5.3 - 2015-04-191 /*! jQuery Timepicker Addon - v1.6.1 - 2015-11-14 2 2 * http://trentrichardson.com/examples/timepicker 3 3 * Copyright (c) 2015 Trent Richardson; Licensed MIT … … 27 27 jQuery(document).ready(function($) { 28 28 29 30 29 /* 31 30 * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded" … … 41 40 $.extend($.ui, { 42 41 timepicker: { 43 version: "1. 5.3"42 version: "1.6.1" 44 43 } 45 44 }); … … 228 227 for (i in overrides) { 229 228 if (overrides.hasOwnProperty(i)) { 230 fns[i] = opts[i] || null;229 fns[i] = opts[i] || this._defaults[i] || null; 231 230 } 232 231 } … … 405 404 if ($dp.find("div.ui-timepicker-div").length === 0 && o.showTimepicker) { 406 405 var noDisplay = ' ui_tpicker_unit_hide', 407 html = '<div class="ui-timepicker-div' + (o.isRTL ? ' ui-timepicker-rtl' : '') + (o.oneLine && o.controlType === 'select' ? ' ui-timepicker-oneLine' : '') + '"><dl>' + '<dt class="ui_tpicker_time_label "' + ((o.showTime) ? '' : noDisplay) + '>' + o.timeText + '</dt>' +408 '<dd class="ui_tpicker_time '+ ((o.showTime) ? '' : noDisplay) + '">< /dd>';406 html = '<div class="ui-timepicker-div' + (o.isRTL ? ' ui-timepicker-rtl' : '') + (o.oneLine && o.controlType === 'select' ? ' ui-timepicker-oneLine' : '') + '"><dl>' + '<dt class="ui_tpicker_time_label' + ((o.showTime) ? '' : noDisplay) + '">' + o.timeText + '</dt>' + 407 '<dd class="ui_tpicker_time '+ ((o.showTime) ? '' : noDisplay) + '"><input class="ui_tpicker_time_input" ' + (o.timeInput ? '' : 'disabled') + '/></dd>'; 409 408 410 409 // Create the markup … … 543 542 } 544 543 545 this.$timeObj = $tp.find('.ui_tpicker_time'); 544 this.$timeObj = $tp.find('.ui_tpicker_time_input'); 545 this.$timeObj.change(function () { 546 var timeFormat = tp_inst.inst.settings.timeFormat; 547 var parsedTime = $.datepicker.parseTime(timeFormat, this.value); 548 var update = new Date(); 549 if (parsedTime) { 550 update.setHours(parsedTime.hour); 551 update.setMinutes(parsedTime.minute); 552 update.setSeconds(parsedTime.second); 553 $.datepicker._setTime(tp_inst.inst, update); 554 } else { 555 this.value = tp_inst.formattedTime; 556 this.blur(); 557 } 558 }); 546 559 547 560 if (this.inst !== null) { … … 881 894 this.formattedTime = $.datepicker.formatTime(o.timeFormat, this, o); 882 895 if (this.$timeObj) { 896 var sPos = this.$timeObj[0].selectionStart; 897 var ePos = this.$timeObj[0].selectionEnd; 883 898 if (pickerTimeFormat === o.timeFormat) { 884 this.$timeObj. text(this.formattedTime + pickerTimeSuffix);899 this.$timeObj.val(this.formattedTime + pickerTimeSuffix); 885 900 } 886 901 else { 887 this.$timeObj.text($.datepicker.formatTime(pickerTimeFormat, this, o) + pickerTimeSuffix); 888 } 902 this.$timeObj.val($.datepicker.formatTime(pickerTimeFormat, this, o) + pickerTimeSuffix); 903 } 904 this.$timeObj[0].setSelectionRange(sPos, ePos); 889 905 } 890 906 … … 1561 1577 1562 1578 /* 1563 * override "Today" button to also grab the time .1579 * override "Today" button to also grab the time and set it to input field. 1564 1580 */ 1565 1581 $.datepicker._base_gotoToday = $.datepicker._gotoToday; 1566 1582 $.datepicker._gotoToday = function (id) { 1567 var inst = this._getInst($(id)[0]) ,1568 $dp = inst.dpDiv;1583 var inst = this._getInst($(id)[0]); 1584 this._base_gotoToday(id); 1569 1585 var tp_inst = this._get(inst, 'timepicker'); 1570 selectLocalTimezone(tp_inst);1586 var tzoffset = $.timepicker.timezoneOffsetNumber(tp_inst.timezone); 1571 1587 var now = new Date(); 1588 now.setMinutes(now.getMinutes() + now.getTimezoneOffset() + tzoffset); 1572 1589 this._setTime(inst, now); 1573 1590 this._setDate(inst, now); 1574 t his._base_gotoToday(id);1591 tp_inst._onSelectHandler(); 1575 1592 }; 1576 1593 … … 2259 2276 * Keep up with the version 2260 2277 */ 2261 $.timepicker.version = "1. 5.3";2278 $.timepicker.version = "1.6.1"; 2262 2279 2263 2280 }); -
wp-topbar/trunk/readme.txt
r1303092 r1361864 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YQQURY7VW2B2J 4 4 Tags: topbar, header bar,beforesite, heads up, fixed bar, link, heads up bar,attention, quick notice, bar, notification bar, popup, self promotion, toolbar, top of the page, plugin, important, message, php 5 Requires at least: 3. 2.16 Tested up to: 4.4 7 Stable tag: 5.3 35 Requires at least: 3.6 6 Tested up to: 4.4.2 7 Stable tag: 5.34 8 8 9 9 Create MULTIPLE, ROTATABLE TopBars that will be shown at the top of your website. TopBars are selected by a variety of options - includes scheduler! … … 210 210 == Upgrade Notice == 211 211 212 = 5.3 3=213 214 Minor fix to remove debug code.212 = 5.34 = 213 214 Fix to how plugin handles archive pages when using Category control options. 215 215 216 216 … … 225 225 226 226 == Changelog == 227 228 = 5.34 - 3/1/2016 = 229 230 1. FIXED: How plugin handles archive pages when using Category control options. (thanks to iamjatinkumar for reporting this!) 231 2. UPDATED: timepicker.js updated to version 1.6.1 - http://trentrichardson.com/examples/timepicker/ 232 3. VALIDATED: Version 5.34 supports WordPress 4.4.2 227 233 228 234 = 5.33 - 12/08/2015 = -
wp-topbar/trunk/wp-topbar.php
r1305647 r1361864 5 5 Plugin URI: http://wordpress.org/extend/plugins/wp-topbar/ 6 6 Description: Create MULTIPLE TopBars that will be shown at the top of your website. TopBars are selected by a variety of options - includes scheduler, custom PHP, custom CSS and more! 7 Version: 5.3 37 Version: 5.34 8 8 Author: Bob Goetz 9 9 Author URI: http://zwebify.com/wordpress-plugins/ … … 28 28 29 29 30 $WPTB_VERSION = "5.3 3";30 $WPTB_VERSION = "5.34"; 31 31 $WPTB_DB_VERSION = "5.09"; // rev this only when the database structure changes -- also update below in TWO places! 32 32 … … 491 491 } 492 492 493 if ( $wptbOptions['include_categories'] == 0 )494 $category_id_found = true; 493 if ($wptbOptions['include_categories'] == 0) 494 $category_id_found = true; 495 495 else { 496 496 $category_id_found = false; 497 if ( $wptbOptions['include_logic'] != 'page_only' ) { //skip this logic if we are only checking pages 498 foreach((get_the_category($thePostID)) as $category) { 499 if ( in_array( $category->cat_ID, explode( ',', $wptbOptions['include_categories'] ) ) ) { 500 $category_id_found = true; 501 break; 497 if ($wptbOptions['include_logic'] != 'page_only') { //skip this logic if we are only checking pages 498 if ( is_single() ) { // single page 499 foreach ((get_the_category($thePostID)) as $category) { 500 if (in_array($category->cat_ID, explode(', ', $wptbOptions['include_categories']) )) { 501 $category_id_found = true; 502 break; 503 } 502 504 } 503 505 } 504 if ( $wptbOptions['invert_categories'] == 'yes' ) 505 $category_id_found = ! $category_id_found; 506 else { // archive page 507 $category = get_category( get_query_var( 'cat' ) ); 508 if (in_array($category->cat_ID, explode(', ', $wptbOptions['include_categories']) )) 509 $category_id_found = true; 510 } 511 if ($wptbOptions['invert_categories'] == 'yes') $category_id_found = ! $category_id_found; 506 512 } 507 513 } 514 508 515 // check the logic the user selected if not on debug page 509 516
Note: See TracChangeset
for help on using the changeset viewer.