diff --git a/wordpress/wp-content/mu-plugins/fea-audio-player.php b/wordpress/wp-content/mu-plugins/fea-audio-player.php
index ecb7c9f..b8642e2 100644
--- a/wordpress/wp-content/mu-plugins/fea-audio-player.php
+++ b/wordpress/wp-content/mu-plugins/fea-audio-player.php
@@ -9,14 +9,17 @@ if (!defined('ABSPATH')) exit;
/** Devuelve el HTML del reproductor para el post actual, o '' si no hay audio. */
function fea_audio_player_html(): string {
- $url = get_post_meta(get_the_ID(), 'fea_audio_url', true);
+ $id = get_the_ID();
+ $url = get_post_meta($id, 'fea_audio_url', true);
if (!$url) return '';
+ $voice = get_post_meta($id, 'fea_audio_voice', true) ?: 'NicoFeadulta2026';
return '
'
. ''
. ' Escucha'
- . ''
+ . ''
. '
';
}
@@ -60,3 +63,27 @@ add_action('wp_head', function () {
+// y carga de página, disparado en el primer 'play' (no en cada resume tras
+// pausa/seek). gtag ya está definido por fea-analytics.php en wp_head prio 1,
+// así que este script (footer) siempre lo encuentra disponible.
+add_action('wp_footer', function () {
+ if (!is_singular('post')) return;
+ if (!get_post_meta(get_queried_object_id(), 'fea_audio_url', true)) return;
+ ?>
+
+ ['section' => 'Comparte FeAdulta', 'fb' => 'Facebook',
+ 'ig' => 'Instagram', 'print' => 'Imprimir',
+ 'copied' => '¡Enlace copiado! Compártelo en Instagram'],
+ 'en' => ['section' => 'Share FeAdulta', 'fb' => 'Facebook',
+ 'ig' => 'Instagram', 'print' => 'Print',
+ 'copied' => 'Link copied! Share it on Instagram'],
+ 'fr' => ['section' => 'Partager FeAdulta', 'fb' => 'Facebook',
+ 'ig' => 'Instagram', 'print' => 'Imprimer',
+ 'copied' => 'Lien copié ! Partagez-le sur Instagram'],
+ 'it' => ['section' => 'Condividi FeAdulta', 'fb' => 'Facebook',
+ 'ig' => 'Instagram', 'print' => 'Stampa',
+ 'copied' => 'Link copiato! Condividilo su Instagram'],
+ 'pt' => ['section' => 'Partilha FeAdulta', 'fb' => 'Facebook',
+ 'ig' => 'Instagram', 'print' => 'Imprimir',
+ 'copied' => 'Link copiado! Partilha-o no Instagram'],
+ ];
+ return $all[$lang] ?? $all['es'];
+}
+
+function fea_share_block_html(): string {
+ $t = fea_share_labels();
+ $url = rawurlencode(get_permalink());
+
+ $svg_fb = '';
+ $svg_ig = '';
+ $svg_pr = '';
+
+ $copied_msg = esc_js($t['copied']);
+ $post_id = get_the_ID();
+
+ return '
+