Changeset 2068696
- Timestamp:
- 04/15/2019 08:13:08 AM (7 years ago)
- Location:
- here-mobility/trunk
- Files:
-
- 5 edited
-
css/gutenberg-here-block-editor.css (modified) (1 diff)
-
heremobility.php (modified) (2 diffs)
-
js/here-widget-button.js (modified) (4 diffs)
-
js/loader.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
here-mobility/trunk/css/gutenberg-here-block-editor.css
r1995227 r2068696 82 82 margin-bottom: 8px; 83 83 } 84 85 .display-container .components-notice.is-error { 86 margin: 0; 87 } -
here-mobility/trunk/heremobility.php
r2062123 r2068696 8 8 The Web Widget supports pickup location, destination, and required departure time, in addition, your users can also customize their ride according to any special requirements they have from suitcases to number of passengers. 9 9 The HERE Mobility Web Widget connects to the Mobility Marketplace to find the most relevant rides matching your users' requests and displays them to your users to choose from and book. To activate your Web Widget, please create an account(https://developer.mobility.here.com/signup) and request your app credentials. 10 * Version: 1.0.1 010 * Version: 1.0.11 11 11 * Author: HERE Mobility 12 12 * Author URI: https://mobility.here.com/ … … 382 382 'here-mobility-widget', 383 383 plugins_url('js/gutenberg-here-widget.js', __FILE__), 384 array('wp- blocks', 'wp-i18n', 'wp-element', 'jquery'),384 array('wp-editor', 'wp-blocks', 'wp-i18n', 'wp-element', 'jquery'), 385 385 filemtime(plugin_dir_path(__FILE__) . 'gutenberg-here-widget.js') 386 386 ); -
here-mobility/trunk/js/here-widget-button.js
r2062123 r2068696 48 48 49 49 function showError(error) { 50 jQuery('.dialog-warnings'). text(error).show();50 jQuery('.dialog-warnings').html(error).show(); 51 51 } 52 52 … … 116 116 <p style="white-space: pre-line; font-style: italic; color: #ccc;">\ 117 117 You can use the default size of the widget or set a custom size. \ 118 Please note that HERE Mobility The widget’s minimum size is <b>360x450</b> pixels\118 Please note that HERE Mobility widget’s minimum size is <b>360x450</b> pixels\ 119 119 and its maximum size is <b>1200x450</b> pixels.\ 120 The HERE web widget is mobile-responsive in portrait mode below the break point of <b>512 *450</b> pixels.\120 The HERE web widget is mobile-responsive in portrait mode below the break point of <b>512x450</b> pixels.\ 121 121 </p>\ 122 122 <input type="radio" name="display" value="default" id="display_default"> \ … … 175 175 } 176 176 177 if (data.unit === 'px' && ( ( data.width && parseInt(data.width, 10) < 360) || ( data.height && parseInt(data.height, 10) < 450 ) ) ) { 178 showError('Please set correct widget size. Widget’s minimum size is <b>360x450</b> pixels.'); 179 return false; 180 } 181 177 182 var shortcode_str = '[' + shTag; 178 183 var update = !!data.id; … … 199 204 }, 200 205 onOpen: function () { 201 202 203 206 204 207 setTimeout(function () { -
here-mobility/trunk/js/loader.js
r2067950 r2068696 36 36 if (response) { 37 37 38 var d = new Date(Date.now()); // plus two hours38 var d = new Date(Date.now()); 39 39 hmw({ 40 40 eventTime: d.getTime(), -
here-mobility/trunk/readme.txt
r2062132 r2068696 6 6 Requires at least: 4.0 7 7 Tested up to: 5.0.8 8 Stable tag: 1.0.1 08 Stable tag: 1.0.11 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 75 75 == Changelog == 76 76 77 = 1.0.11 = 78 * Added notifications 79 77 80 = 1.0.10 = 78 81 * Added height & width settings
Note: See TracChangeset
for help on using the changeset viewer.