Plugin Directory

Changeset 3493078


Ignore:
Timestamp:
03/28/2026 01:47:07 AM (13 hours ago)
Author:
traveledmap
Message:

Version 1.3.0: Updated the embedded SDK to 1.0.8 which adds visual improvements and better UX

Location:
traveledmap-trip-itinerary-embedded-map/trunk
Files:
7 added
6 edited

Legend:

Unmodified
Added
Removed
  • traveledmap-trip-itinerary-embedded-map/trunk/plugin.php

    r3208285 r3493078  
    66 * Author: TraveledMap
    77 * Author URI: https://www.traveledmap.com
    8  * Version: 1.2.1
     8 * Version: 1.3.0
    99 * License: GPL2+
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
  • traveledmap-trip-itinerary-embedded-map/trunk/readme.txt

    r3209732 r3493078  
    22Contributors: traveledmap
    33Tags: map, trip, travel, pictures, traveledmap, embed, travel, blog, post, itinerary
    4 Donate link: https://donorbox.org/help-traveledmap-to-stay-free
    54Requires at least: 3.0.1
    6 Tested up to: 6.6.2
     5Tested up to: 6.9
    76Requires PHP: 5.6
    8 Stable tag: 1.2.1
     7Stable tag: 1.3.0
    98License: GPLv2
    109License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2120By creating your trip on [TraveledMap](https://www.traveledmap.com/builder "Build your first trip with TraveledMap"), you will be
    2221able to create a brand new type of blog post in a few minutes !
     22The plugin is connected to [TraveledMap Trip Itinerary](https://www.traveledmap.com/services/trip-itinerary), which includes a <strong>free version for bloggers</strong>.
    2323A short demonstration video is worth a thousand words:
    2424<iframe
     
    5757 - <strong>Map height</strong>: The default map's height when it's not expanded.
    5858 - <strong>Widget is sticky</strong>: If checked, the widget will be sticky to the top of the screen even if he's not expanded. This way, it will follow the user scroll even in reduced size.
     59 - <strong>Show roads duration or distance</strong>: Displays extra information on roads between steps when available for your account.
     60 - <strong>Show focused roads duration or distance</strong>: Displays road duration or distance only for the currently focused road.
    5961 - <strong>When the map is not extended, show steps</strong>: You can decide if the name of your trip's steps will be shown by default or not. If not checked, steps will be shown only when the mouse
    6062 is over the step marker, or the step currently scrolled.
     
    7779You can place this map everywhere in your article thanks to a **Block** or a **Shortcode**. Its behavior is the same as the widget, it will move along the
    7880location you visited while users is reading your article.
    79 There are multiple options to customise it.
     81There are multiple options to customize it.
    8082
    8183In the "Map content" section:
     
    8587 to expand the pictures panel, at the bottom of the map.
    8688 - <strong>Show overview pictures</strong>: Overview pictures are the pictures you choose as the best pictures of your trip. You can decide to show them or not with this option.
     89 - <strong>Show roads duration or distance</strong>: Displays extra information on roads between steps when available for your account.
     90 - <strong>Show focused roads duration or distance</strong>: Displays road duration or distance only for the currently focused road.
    8791
    8892In the "Map settings" section:
     
    99103 The value is in pixels, but you have to omit the "px". For example use "18", NOT "18px"
    100104
     105When using shortcodes, make sure you use <strong>standard straight double quotes</strong> (<code>"</code>) around attributes.
     106Some editors or copy/paste flows replace them with typographic quotes, which breaks shortcode parsing.
     107
    101108**Shortcode example**
    102 [embedded_trip show_popup="0" show_pictures="1" show_pictures_at_start="0" map_height="60%" is_sticky="1" show_on_phones="1" show_on_tablets="1" show_on_large_screens="1" standard_map_height="35%" extended_map_height="70%" margin_top="10"]
     109    [embedded_trip show_popup="0" show_pictures="1" show_pictures_at_start="0" map_height="60%" is_sticky="1" show_on_phones="1" show_on_tablets="1" show_on_large_screens="1" standard_map_height="35%" extended_map_height="70%" margin_top="10" show_road_duration_or_distance="0" show_only_focused_road_duration_or_distance="0"]
    103110
    104111
     
    111118
    112119**Shortcode example**
    113 [embedded_trip_step location="vancouver"]
     120    [embedded_trip_step location="vancouver"]
    114121If you're not using block but shortcode, you will have to use locations specified on the "Embed a trip" page, where you found
    115122your user id and trip id.
     
    120127
    121128=== Pricing ===
    122 The WordPress plugin is free but to embed the map on your posts, it stays free under 1000 page views by month but
    123 has a pricing from $9.99 to $49.99 by month depending on the number of visits on your site.
    124 You can learn more at [Embed page](https://www.traveledmap.com/pricing "TraveledMap pricing")
     129The plugin connects to [TraveledMap Trip Itinerary](https://www.traveledmap.com/services/trip-itinerary), which includes a <strong>free version for bloggers</strong>.
     130If you need more advanced usage or higher traffic limits, you can learn more on the service page.
    125131
    126132
     
    131137To create a trip, go to [traveledmap.com trip editor](https://www.traveledmap.com/builder "Create a new trip") and follow the steps.
    132138It's easy and it won't take time !
    133 If you have a lot of trips to add and you don't want to spend time creating a map, contact me at [contact@traveledmap.com](mailto:contact@traveledmap.com "Contact me")
     139If you have a lot of trips to add and you don't want to spend time creating a map, contact us at [contact@traveledmap.com](mailto:contact@traveledmap.com "Contact us")
    134140
    135141= I don't see steps in the Embedded trip step block, what's wrong? =
    136142To get the steps in this block, you have to validate your user id an trip id in the right column of the post edit, then save draft
    137 and finally add an Embedded trip step block. If you still have issues, please contact me.
     143and finally add an Embedded trip step block. If you still have issues, please contact us.
     144
     145= My shortcode does not work after copy/paste, why? =
     146The most common cause is quote characters. WordPress shortcodes require standard straight double quotes (<code>"</code>) around attributes.
     147If your editor replaced them with typographic quotes, retype them manually and the shortcode should work again.
    138148
    139149= Why do I have to pay? =
     
    141151Embedding trips on frequently visited sites and blogs has a cost. TraveledMap tool is totally free, that's why it seems
    142152reasonable to charge for those fees.
    143 If you think you can't handle this pricing, contact me at [contact@traveledmap.com](mailto:contact@traveledmap.com "Contact me")
     153There is still a free version for bloggers on [TraveledMap Trip Itinerary](https://www.traveledmap.com/services/trip-itinerary).
     154If you think you can't handle this pricing, contact us at [contact@traveledmap.com](mailto:contact@traveledmap.com "Contact us")
    144155
    145156== Screenshots ==
    146157
    147 1. Example - Expanded widget: `/assets/example-1.png`
    148 2. Example - Reduced widget: `/assets/example-2.png`
    149 3. Example - Standard map: `/assets/example-3.png`
    150 4. How to use - metabox: `/assets/metabox.png`
    151 5. How to use - Standard map block: `/assets/trip-block.png`
    152 6. How to use - Widget configuration: `/assets/widget-config.png`
     1581. Example - Gutenberg Block or shortcode / global itinerary view: `/assets/example-1-block-global-map.png`
     1592. Example - Gutenberg Block or shortcode / sticky map while reading: `/assets/example-2-block-sticky-map.png`
     1603. Example - Gutenberg Block or shortcode / pictures panel opened: `/assets/example-3-block-show-pictures.png`
     1614. Example - Gutenberg Block or shortcode / lock on the full itinerary: `/assets/example-4-lock-global-itinerary.png`
     1625. Example - Widget / default extendable state: `/assets/example-5-extandable-widget.png`
     1636. Example - Widget / extended state: `/assets/example-6-extended-widget.png`
     1647. Example - Widget / extended state with pictures: `/assets/example-7-extended-widget-with-pictures.png`
     1658. How to use - metabox: `/assets/metabox.png`
     1669. How to use - Standard map block: `/assets/trip-block.png`
     16710. How to use - Widget configuration: `/assets/widget-config.png`
    153168
    154169== Changelog ==
     
    210225Added options for road duration and distance
    211226
     227= 1.3.0 =
     228Updated the embedded SDK to 1.0.8 which adds visual improvements and better UX
     229Improved compatibility with newer WordPress versions
     230Updated the public documentation and shortcode guidance
     231
    212232== Upgrade Notice ==
     233= 1.3.0 =
     234This release updates the embedded SDK and improves compatibility with newer WordPress versions.
     235
    213236= 1.1.0 =
    214237When upgrading to 1.1.0, you will need to recover content from the trip-steps' blocks because the content
    215238changed. To do this, you just have to visit the editor page of the post where the trip is displayed, and click on the
    216239button to recover the content.
    217 
  • traveledmap-trip-itinerary-embedded-map/trunk/src/categories/traveledmap.php

    r2136499 r3493078  
    11<?php
    22
    3 function add_new_traveledmap_category($categories) {
     3function add_new_traveledmap_category($categories, $block_editor_context = null) {
    44    return array_merge(
    55        $categories,
  • traveledmap-trip-itinerary-embedded-map/trunk/src/init.php

    r3207917 r3493078  
    2020        'traveledmap-metabox-style-css',
    2121        plugins_url('src/metabox/style.css', dirname(__FILE__)),
    22         array('wp-editor'),
     22        array(),
    2323        null
    2424    );
     
    2626    wp_enqueue_style('traveledmap-metabox-style-css');
    2727
    28     // TODO: Introduced in 5.8.0: add_filter('block_categories_all', 'add_new_traveledmap_category', 10, 2);
    29     // but wait to introduce it for older versions
    30     add_filter('block_categories', 'add_new_traveledmap_category', 10, 2);
     28    if (version_compare(get_bloginfo('version'), '5.8', '>=')) {
     29        add_filter('block_categories_all', 'add_new_traveledmap_category', 10, 2);
     30    } else {
     31        add_filter('block_categories', 'add_new_traveledmap_category', 10, 2);
     32    }
    3133
    3234
  • traveledmap-trip-itinerary-embedded-map/trunk/src/shared/constants/env.php

    r3208285 r3493078  
    33define("ENV_URL", "https://www.traveledmap.com");
    44define("API_URL", "https://us-central1-traveledmap.cloudfunctions.net");
    5 define("SDK_VERSION", "1.0.3");
     5define("SDK_VERSION", "1.0.8");
Note: See TracChangeset for help on using the changeset viewer.