Changeset 3493078
- Timestamp:
- 03/28/2026 01:47:07 AM (13 hours ago)
- Location:
- traveledmap-trip-itinerary-embedded-map/trunk
- Files:
-
- 7 added
- 6 edited
-
assets/banner-772x250.png (modified) (previous)
-
assets/example-1-block-global-map.png (added)
-
assets/example-2-block-sticky-map.png (added)
-
assets/example-3-block-show-pictures.png (added)
-
assets/example-4-lock-global-itinerary.png (added)
-
assets/example-5-extandable-widget.png (added)
-
assets/example-6-extended-widget.png (added)
-
assets/example-7-extended-widget-with-pictures.png (added)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (11 diffs)
-
src/categories/traveledmap.php (modified) (1 diff)
-
src/init.php (modified) (2 diffs)
-
src/shared/constants/env.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
traveledmap-trip-itinerary-embedded-map/trunk/plugin.php
r3208285 r3493078 6 6 * Author: TraveledMap 7 7 * Author URI: https://www.traveledmap.com 8 * Version: 1. 2.18 * Version: 1.3.0 9 9 * License: GPL2+ 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt -
traveledmap-trip-itinerary-embedded-map/trunk/readme.txt
r3209732 r3493078 2 2 Contributors: traveledmap 3 3 Tags: map, trip, travel, pictures, traveledmap, embed, travel, blog, post, itinerary 4 Donate link: https://donorbox.org/help-traveledmap-to-stay-free5 4 Requires at least: 3.0.1 6 Tested up to: 6. 6.25 Tested up to: 6.9 7 6 Requires PHP: 5.6 8 Stable tag: 1. 2.17 Stable tag: 1.3.0 9 8 License: GPLv2 10 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 21 20 By creating your trip on [TraveledMap](https://www.traveledmap.com/builder "Build your first trip with TraveledMap"), you will be 22 21 able to create a brand new type of blog post in a few minutes ! 22 The plugin is connected to [TraveledMap Trip Itinerary](https://www.traveledmap.com/services/trip-itinerary), which includes a <strong>free version for bloggers</strong>. 23 23 A short demonstration video is worth a thousand words: 24 24 <iframe … … 57 57 - <strong>Map height</strong>: The default map's height when it's not expanded. 58 58 - <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. 59 61 - <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 60 62 is over the step marker, or the step currently scrolled. … … 77 79 You 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 78 80 location you visited while users is reading your article. 79 There are multiple options to customi se it.81 There are multiple options to customize it. 80 82 81 83 In the "Map content" section: … … 85 87 to expand the pictures panel, at the bottom of the map. 86 88 - <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. 87 91 88 92 In the "Map settings" section: … … 99 103 The value is in pixels, but you have to omit the "px". For example use "18", NOT "18px" 100 104 105 When using shortcodes, make sure you use <strong>standard straight double quotes</strong> (<code>"</code>) around attributes. 106 Some editors or copy/paste flows replace them with typographic quotes, which breaks shortcode parsing. 107 101 108 **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"] 103 110 104 111 … … 111 118 112 119 **Shortcode example** 113 [embedded_trip_step location="vancouver"]120 [embedded_trip_step location="vancouver"] 114 121 If you're not using block but shortcode, you will have to use locations specified on the "Embed a trip" page, where you found 115 122 your user id and trip id. … … 120 127 121 128 === 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") 129 The plugin connects to [TraveledMap Trip Itinerary](https://www.traveledmap.com/services/trip-itinerary), which includes a <strong>free version for bloggers</strong>. 130 If you need more advanced usage or higher traffic limits, you can learn more on the service page. 125 131 126 132 … … 131 137 To create a trip, go to [traveledmap.com trip editor](https://www.traveledmap.com/builder "Create a new trip") and follow the steps. 132 138 It'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")139 If 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") 134 140 135 141 = I don't see steps in the Embedded trip step block, what's wrong? = 136 142 To 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. 143 and 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? = 146 The most common cause is quote characters. WordPress shortcodes require standard straight double quotes (<code>"</code>) around attributes. 147 If your editor replaced them with typographic quotes, retype them manually and the shortcode should work again. 138 148 139 149 = Why do I have to pay? = … … 141 151 Embedding trips on frequently visited sites and blogs has a cost. TraveledMap tool is totally free, that's why it seems 142 152 reasonable 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") 153 There is still a free version for bloggers on [TraveledMap Trip Itinerary](https://www.traveledmap.com/services/trip-itinerary). 154 If you think you can't handle this pricing, contact us at [contact@traveledmap.com](mailto:contact@traveledmap.com "Contact us") 144 155 145 156 == Screenshots == 146 157 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` 158 1. Example - Gutenberg Block or shortcode / global itinerary view: `/assets/example-1-block-global-map.png` 159 2. Example - Gutenberg Block or shortcode / sticky map while reading: `/assets/example-2-block-sticky-map.png` 160 3. Example - Gutenberg Block or shortcode / pictures panel opened: `/assets/example-3-block-show-pictures.png` 161 4. Example - Gutenberg Block or shortcode / lock on the full itinerary: `/assets/example-4-lock-global-itinerary.png` 162 5. Example - Widget / default extendable state: `/assets/example-5-extandable-widget.png` 163 6. Example - Widget / extended state: `/assets/example-6-extended-widget.png` 164 7. Example - Widget / extended state with pictures: `/assets/example-7-extended-widget-with-pictures.png` 165 8. How to use - metabox: `/assets/metabox.png` 166 9. How to use - Standard map block: `/assets/trip-block.png` 167 10. How to use - Widget configuration: `/assets/widget-config.png` 153 168 154 169 == Changelog == … … 210 225 Added options for road duration and distance 211 226 227 = 1.3.0 = 228 Updated the embedded SDK to 1.0.8 which adds visual improvements and better UX 229 Improved compatibility with newer WordPress versions 230 Updated the public documentation and shortcode guidance 231 212 232 == Upgrade Notice == 233 = 1.3.0 = 234 This release updates the embedded SDK and improves compatibility with newer WordPress versions. 235 213 236 = 1.1.0 = 214 237 When upgrading to 1.1.0, you will need to recover content from the trip-steps' blocks because the content 215 238 changed. To do this, you just have to visit the editor page of the post where the trip is displayed, and click on the 216 239 button to recover the content. 217 -
traveledmap-trip-itinerary-embedded-map/trunk/src/categories/traveledmap.php
r2136499 r3493078 1 1 <?php 2 2 3 function add_new_traveledmap_category($categories ) {3 function add_new_traveledmap_category($categories, $block_editor_context = null) { 4 4 return array_merge( 5 5 $categories, -
traveledmap-trip-itinerary-embedded-map/trunk/src/init.php
r3207917 r3493078 20 20 'traveledmap-metabox-style-css', 21 21 plugins_url('src/metabox/style.css', dirname(__FILE__)), 22 array( 'wp-editor'),22 array(), 23 23 null 24 24 ); … … 26 26 wp_enqueue_style('traveledmap-metabox-style-css'); 27 27 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 } 31 33 32 34 -
traveledmap-trip-itinerary-embedded-map/trunk/src/shared/constants/env.php
r3208285 r3493078 3 3 define("ENV_URL", "https://www.traveledmap.com"); 4 4 define("API_URL", "https://us-central1-traveledmap.cloudfunctions.net"); 5 define("SDK_VERSION", "1.0. 3");5 define("SDK_VERSION", "1.0.8");
Note: See TracChangeset
for help on using the changeset viewer.