From 85d4b072d7b090e4702932a4ba3dae4ccade0a87 Mon Sep 17 00:00:00 2001 From: "Jorge vitrubio.net" Date: Thu, 28 Mar 2024 22:52:32 +0100 Subject: [PATCH] added support for maps on theme through xarxaprod-wp-plugin functions --- archive-xarxaprod-associat.php | 15 ++-- page-templates/associats-search.php | 77 +++++-------------- template-parts/content-xarxaprod-associat.php | 8 +- 3 files changed, 33 insertions(+), 67 deletions(-) diff --git a/archive-xarxaprod-associat.php b/archive-xarxaprod-associat.php index 86e5680..6ad2be2 100644 --- a/archive-xarxaprod-associat.php +++ b/archive-xarxaprod-associat.php @@ -21,21 +21,20 @@ get_header();
- +
+ +
have_posts() ) : ?> - - -
- + +
+ + have_posts() ) : $the_query_associat->the_post(); ?> - ' . get_the_title() . ''; - $associat_own_weblink = '' . get_field('xxp_associat_web') . ''; - $associat_email = '' . get_field('xxp_associat_mail') . ''; - $associat_lat = $marker['lat']; - $associat_lng = $marker['lng']; - $associat_blobcolor = get_field('xxp_associat_colormap'); - echo do_shortcode( ' - [leaflet-marker svg background="#555" color="#555" iconSize="17,19" iconClass="dashicons dashicons-marker" opacity="0.6" lat=' . $associat_lat . ' lng=' . $associat_lng . ']' - . '

' . $associat_address . '

' - . '
' . $associat_xxp_weblink . '
' - . '

' . $associat_own_weblink . '

' - . '

' . $associat_email . '

' - . '[/leaflet-marker]' - ); // end shortcode each marker - }; // end each marker - }; // end count all markers -?> - - -
-
- - - have_posts() ) : $the_query_associat->the_post(); ?> - - - - + + + + + + +
+ '; + //while ( $the_query_associat->have_posts() ) : $the_query_associat->the_post(); + //get_template_part( 'template-parts/section', 'eachmember' ); + //endwhile;//end of the loop + //echo ''; + ?>
diff --git a/template-parts/content-xarxaprod-associat.php b/template-parts/content-xarxaprod-associat.php index 1146cdc..f0d2e1b 100644 --- a/template-parts/content-xarxaprod-associat.php +++ b/template-parts/content-xarxaprod-associat.php @@ -100,7 +100,13 @@
Mapa:
-
+
+ + +