El botón del lightbox copia la URL de la imagen del mapa (v1.6.0)

Sustituye el botón de compartir por «Copy map URL»: copia al
portapapeles la URL del archivo de imagen a tamaño completo del mapa
visible, en lugar del enlace con ancla #map-<slug>, que resultaba
confuso. Los enlaces #map-<slug> siguen funcionando al abrirlos.
This commit is contained in:
Ana
2026-07-17 18:02:33 +02:00
parent aed764c130
commit b860cf6c40
2 changed files with 9 additions and 17 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
* Plugin Name: FP Genocide Maps
* Plugin URI: https://freepress.coop
* Description: Manages the "Architecture of Genocide" maps shown on the home page. Each map is a post (title + description + image); the [geep_maps] shortcode renders the accordion + map image replicating the original Divi design, swapping the image when a toggle is opened.
* Version: 1.5.2
* Version: 1.6.0
* Author: Freepress Coop
* Author URI: https://www.freepress.coop
* Requires PHP: 7.4
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
const FPGM_CPT = 'geep_map';
const FPGM_VERSION = '1.5.2';
const FPGM_VERSION = '1.6.0';
/**
* Register the Map custom post type (admin-only, not publicly queryable).
@@ -155,7 +155,7 @@ function fpgm_shortcode() {
// UI labels for the lightbox, in the language of the current page.
$is_ar = 'ar' === apply_filters( 'wpml_current_language', null );
$labels = array(
'share' => $is_ar ? 'مشاركة الخريطة' : 'Share map',
'copy' => $is_ar ? 'نسخ رابط الخريطة' : 'Copy map URL',
'copied' => $is_ar ? 'تم نسخ الرابط' : 'Link copied!',
'close' => $is_ar ? 'إغلاق' : 'Close',
'zoom' => $is_ar ? 'عرض الخريطة بحجم أكبر' : 'View map larger',