From 2dbdf30fa3ead57c1d50639bef303e6fcd5d5b27 Mon Sep 17 00:00:00 2001 From: "Jorge vitrubio.net" Date: Thu, 28 Mar 2024 20:20:22 +0100 Subject: [PATCH] created map for all associats template page --- page-templates/associats-search.php | 112 ++++++++++++++++------ template-parts/section-map-allmembers.php | 96 +++++++++++++++++++ 2 files changed, 180 insertions(+), 28 deletions(-) create mode 100644 template-parts/section-map-allmembers.php diff --git a/page-templates/associats-search.php b/page-templates/associats-search.php index e69bee9..3b5ab0c 100644 --- a/page-templates/associats-search.php +++ b/page-templates/associats-search.php @@ -37,40 +37,96 @@ get_header(); endif; ?>
- + + + + 'xarxaprod-associat', + 'order' => 'ASC', //order a b c d ... + 'order_by' => 'name', // by name slug + 'posts_per_page' => '-1' //all of them + ) + ); + ?> + + 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(); ?> + + + + + + +
- - 'xarxaprod-associat', - 'posts_per_page' => '-1' - ) - ); - ?> - have_posts() ) : ?> - - have_posts() ) : $the_query_associat->the_post(); ?> - - - - - - - - - - - + + + 'xarxaprod-associat', + 'order' => 'ASC', //order a b c d ... + 'order_by' => 'name', // by name slug + 'posts_per_page' => '-1' //all of them + ) + ); + ?> + + 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(); ?> + + + + + + +