Plugin Directory

Changeset 2068696


Ignore:
Timestamp:
04/15/2019 08:13:08 AM (7 years ago)
Author:
heremobilitydemand
Message:

1.0.11 Added notifications

Location:
here-mobility/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • here-mobility/trunk/css/gutenberg-here-block-editor.css

    r1995227 r2068696  
    8282    margin-bottom: 8px;
    8383}
     84
     85.display-container .components-notice.is-error {
     86    margin: 0;
     87}
  • here-mobility/trunk/heremobility.php

    r2062123 r2068696  
    88The 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.
    99The 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.10
     10 * Version: 1.0.11
    1111 * Author: HERE Mobility
    1212 * Author URI: https://mobility.here.com/
     
    382382            'here-mobility-widget',
    383383            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'),
    385385            filemtime(plugin_dir_path(__FILE__) . 'gutenberg-here-widget.js')
    386386        );
  • here-mobility/trunk/js/here-widget-button.js

    r2062123 r2068696  
    4848
    4949            function showError(error) {
    50                 jQuery('.dialog-warnings').text(error).show();
     50                jQuery('.dialog-warnings').html(error).show();
    5151            }
    5252
     
    116116                                <p style="white-space: pre-line; font-style: italic; color: #ccc;">\
    117117                        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>360x 450</b> pixels\
     118                      Please note that HERE Mobility widget’s minimum size is <b>360x450</b> pixels\
    119119                      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.\
    121121                          </p>\
    122122                                <input type="radio" name="display" value="default" id="display_default"> \
     
    175175                    }
    176176
     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
    177182                    var shortcode_str = '[' + shTag;
    178183                    var update = !!data.id;
     
    199204                },
    200205                onOpen: function () {
    201 
    202 
    203206
    204207                    setTimeout(function () {
  • here-mobility/trunk/js/loader.js

    r2067950 r2068696  
    3636            if (response) {
    3737
    38                 var d = new Date(Date.now()); // plus two hours
     38                var d = new Date(Date.now());
    3939                hmw({
    4040                    eventTime: d.getTime(),
  • here-mobility/trunk/readme.txt

    r2062132 r2068696  
    66Requires at least: 4.0
    77Tested up to: 5.0.8
    8 Stable tag: 1.0.10
     8Stable tag: 1.0.11
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    7575== Changelog ==
    7676
     77= 1.0.11 =
     78* Added notifications
     79
    7780= 1.0.10 =
    7881* Added height & width settings
Note: See TracChangeset for help on using the changeset viewer.