Skip to content

Commit

Permalink
Update Version and Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinvonBerg committed Jan 21, 2025
1 parent d92992c commit 7e96318
Show file tree
Hide file tree
Showing 17 changed files with 46 additions and 25 deletions.
10 changes: 5 additions & 5 deletions fotorama_multi.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Slider + Leaflet-Map + Chart
* Plugin URI: https://github.com/MartinvonBerg/Fotorama-Leaflet-Elevation
* Description: Image and Video Slider, Leaflet Map and Elevation Chart Integration. Shows images from any directory in your upload folder. Uses Fotorama or Swiper for the Slider.
* Version: 0.32.0
* Version: 0.33.0
* Requires at least: 6.2
* Tested up to: 6.7
* Requires PHP: 7.4
Expand Down Expand Up @@ -59,8 +59,8 @@ function showmulti($attr, $content = null)
{
//require_once __DIR__ . '/fotorama_multi_enq_scripts.php';
$plugin_path = plugins_url('/', __FILE__);
\wp_enqueue_style('swiperCss', $plugin_path . 'js/swiperClass.min.css',[],'0.32.0','all');
\wp_enqueue_style('swiperThumbsCss', $plugin_path . 'js/thumbnailClass.min.css',[],'0.32.0','all');
\wp_enqueue_style('swiperCss', $plugin_path . 'js/swiperClass.min.css',[],'0.33.0','all');
\wp_enqueue_style('swiperThumbsCss', $plugin_path . 'js/thumbnailClass.min.css',[],'0.33.0','all');

// Define global Values and Variables. We need the globals for the state-transition of the post.
global $post_state_pub_2_draft;
Expand Down Expand Up @@ -494,9 +494,9 @@ function showmulti($attr, $content = null)
);

if ( isset($charttype) && $charttype === 'chartjs') {
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_chartjs/fm_main.js', ['jquery'], '0.32.0', true);
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_chartjs/fm_main.js', ['jquery'], '0.33.0', true);
} else {
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_bundle/fm_main.js', ['jquery'], '0.32.0', true);
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_bundle/fm_main.js', ['jquery'], '0.33.0', true);
}

wp_localize_script('fotorama_main_bundle', 'pageVarsForJs', $pageVarsForJs);
Expand Down
10 changes: 5 additions & 5 deletions inc/admin_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ final class FotoramaElevationAdmin
'default' => 'false',
'description' => 'Use Imperial (checked) or Metric Units (unchecked)',
'shortcode' => 'chartunits',
'info' => 'Use Imperial (checked) or Metric Units (upchecked)',
'info' => 'Use Imperial (checked) or Metric Units (unchecked)',
],
'param14' => [
'label' => 'charttype',
Expand Down Expand Up @@ -1270,14 +1270,14 @@ public function __construct()
public function fm_admin_scripts_enqueue() {
// enque the javascript for the admin page.
$plugin_path = plugins_url('/', __DIR__);
wp_enqueue_script('fotorama_admin', $plugin_path . 'build/fm_admin/fm_admin.js', ['jquery'], '0.32.0', true);
wp_enqueue_style('fm-admin-gpx', $plugin_path . 'css/fm_admin_gpx.css',[] ,'0.32.0' ,'all');
wp_enqueue_script('fotorama_admin', $plugin_path . 'build/fm_admin/fm_admin.js', ['jquery'], '0.33.0', true);
wp_enqueue_style('fm-admin-gpx', $plugin_path . 'css/fm_admin_gpx.css',[] ,'0.33.0' ,'all');

/* enque the javascript for the standard page too.
if ( isset($charttype) && $charttype === 'chartjs') {
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_chartjs/fm_main.js', ['jquery'], '0.32.0', true);
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_chartjs/fm_main.js', ['jquery'], '0.33.0', true);
} else {
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_bundle/fm_main.js', ['jquery'], '0.32.0', true);
wp_enqueue_script('fotorama_main_bundle', $plugin_path . 'build/fm_bundle/fm_main.js', ['jquery'], '0.33.0', true);
}
*/
$tracks['track_0']['url'] = ''; // $gpx_url . $f;
Expand Down
2 changes: 1 addition & 1 deletion inc/extractMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Requires PHP: 8.0
* Requires at least: 6.2
* Tested up to: 6.7
* Version: 0.32.0
* Version: 0.33.0
* Author: Martin von Berg
* Author URI: https://www.berg-reise-foto.de/software-wordpress-lightroom-plugins/wordpress-plugins-fotos-und-gpx/
* License: GPL-2.0
Expand Down
2 changes: 1 addition & 1 deletion inc/fotoramaClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* @link https://github.com/MartinvonBerg/Fotorama-Leaflet-Elevation
* @since 0.12.0
* @version 0.32.0
* @version 0.33.0
*/


Expand Down
2 changes: 1 addition & 1 deletion inc/gtb_blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function site_editor_styles() {
$path . 'build/fm_bundle/fm_main_func.js',
array('wp-blocks', 'wp-dom'),
//filemtime( get_stylesheet_directory() . '/assets/js/editor.js' ),
'0.32.0',
'0.33.0',
);

// Pass the class names to the script
Expand Down
2 changes: 1 addition & 1 deletion inc/miniMasonryClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* @link https://github.com/MartinvonBerg/Fotorama-Leaflet-Elevation
* @since 0.16.0
* @version 0.32.0
* @version 0.33.0
*/


Expand Down
2 changes: 1 addition & 1 deletion inc/swiperClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* @link https://github.com/MartinvonBerg/Fotorama-Leaflet-Elevation
* @since 0.12.0
* @version 0.32.0
* @version 0.33.0
*/


Expand Down
2 changes: 1 addition & 1 deletion js/fotoramaClass.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
FotoramaClass 0.32.0
FotoramaClass 0.33.0
license: GPL 2.0
Martin von Berg
*/
Expand Down
2 changes: 1 addition & 1 deletion js/leafletChartJs/gpxTrackClass.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
gpxTrackClass 0.32.0
gpxTrackClass 0.33.0
license: GPL 2.0
Martin von Berg
*/
Expand Down
2 changes: 1 addition & 1 deletion js/thumbnailClass.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
ThumbnailClass V 0.32.0
ThumbnailClass V 0.33.0
license: GPL 2.0
Martin von Berg
*/
Expand Down
2 changes: 1 addition & 1 deletion js/typescript/thumbnailClass.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
ThumbnailClass V 0.15.0
ThumbnailClass V 0.33.0
license: GPL 2.0
Martin von Berg
*/
Expand Down
10 changes: 10 additions & 0 deletions languages/leafletSettings-de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"description": "Zeige das Höhendiagramm",
"info": "Zeige das Höhendiagramm"
},
"param21": {
"text": "Benutze imperiale or metrische Einheiten",
"description": "Benutze imperiale (checked) oder metrische Einheiten (unchecked)",
"info": "Benutze imperiale (checked) oder metrische Einheiten (unchecked)"
},
"param14": {
"text": "Typ Höhendiagramm",
"description": "Auswahl des Diagrammtyps aus Leaflet-Elevation oder Chart.js",
Expand Down Expand Up @@ -52,6 +57,11 @@
"description": "Breite des GPX-Track in px",
"info": "Breite des GPX-Track in px"
},
"param20": {
"text": "Zeige GPX-Track als Hotline",
"description": "Zeige den GPX-Track als Hotline (mehrfarbig) oder mit einer Farbe. Die Trackfarbe wird bei Hotline:aktiv ignoriert.",
"info": "Zeige den GPX-Track als Hotline (mehrfarbig) oder mit einer Farbe. Die Trackfarbe wird bei Hotline:aktiv ignoriert."
},
"param17": {
"text": "Farbe (erster) GPX-Track*",
"description": "Farbe des (ersten) Tracks, definiert durch einen gültigen CSS-Namen in Hex",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fotorama-multi",
"version": "0.32.0",
"version": "0.33.0",
"description": "Provide settings for the Fotorama-Elevation shortcode by a Gutenberg block",
"author": "Martin von Berg",
"license": "GPL-2.0",
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ So, the current recommendation is to use the 'webp format.
3. Usage
- see above.
- NEW Options:
- It is now possible to use imperial Units with leaflet-elevation.js, only (So, not for chart.js) The default is metric units.
- Furthermore it is possible to deselect the 'hotline' in the leaflet-elevation.js. Hotline: coloured line on the map which indicates the elevation of the track.
4. TODO & Bugs w.r.t to Leaflet Elevation
- The track statistics is not updated if more than one track is shown in one map and the statistics is calculated by leaflet-elevation.js. The event.track_info is working for the first track but empty for the other tracks. Workaround: Upload the tracks (gpx-files) via the admin-panel and activate the setting 'Reduce GPX-File'. This will add statistics to the reduced GPX-file which is used on the page / post.
Expand Down Expand Up @@ -315,6 +318,10 @@ This plugin uses the great work from:
# Changelog
= 0.33.0 = 21.01.2025
Update swiper.js, chart.js. leaflet-elevation and dependant libraries. Clean-up in JS Folders.
Add options to select units and to (de-)select the hotline in leaflet-elevation.
= 0.32.0 = 14.01.2025
PHP-Bugfixes for initial installation. Update Gutenberg-Block.
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: slider, leaflet map, height chart, responsive, tile server
Requires at least: 6.4
Tested up to: 6.7
Stable tag: 0.32.0
Stable tag: 0.33.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -72,7 +72,7 @@ Yes, here it is:
- Enjoy.

= Which WordPress and PHP versions are supported?
The Plugin runs from WordPress 5.9.x - 6.7 and PHP 7.4.3 - 8.2.0.
The Plugin runs from WordPress 5.9.x - 6.7.x and PHP 7.4.3 - 8.2.0.

== Screenshots ==
1. Example Front End Output
Expand All @@ -86,6 +86,10 @@ No Upgrade to 0.32.0 required. Only if you want the new GPX-Track filtering and

== Changelog ==

= 0.33.0 = 21.01.2025
Update swiper.js, chart.js. leaflet-elevation and dependant libraries. Clean-up in JS Folders.
Add options to select units and to (de-)select the hotline in leaflet-elevation.

= 0.32.0 = 14.01.2025
PHP-Bugfixes for initial installation. Update Gutenberg-Block.

Expand Down
2 changes: 1 addition & 1 deletion src/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "fotoramamulti/fotorama-multi",
"version": "0.32.0",
"version": "0.33.0",
"title": "Fotorama Elevation",
"category": "media",
"icon": "embed-photo",
Expand Down

0 comments on commit 7e96318

Please sign in to comment.