







Secrétariat Association d’Aide aux Membres et Familles de la Gendarmerie
Secrétaire : Myriam MARSAUD
07.88.31.56.91
secretariat@aamfg.frRégion Rhône Alpes
AAMFG - Marianne BARALE
86 impasse Hera, Bâtiment C2 Appartement 38
83160 LA VALETTE DU VAR
06 65 65 39 23
mariannebarale@aamfg.fr AAMFG – Mme Fabienne GOESLIER-CHALLES
70, rue des Capucins
41200 ROMORANTIN-LANTHENAY
06 86 30 17 40
fabiennechalles@aamfg.fr
Secrétariat Association d'Aide aux Membres et Familles de la Gendarmerie
Membre du conseil d'administration
Secrétaire : Myriam MARSAUD
Bureau de l'association: 07.88.31.56.91
email : secretariat@aamfg.fr
1,
'post_type' => 'delegations',
'posts_per_page'=> -1,
'order' => 'ASC'
);
$curr_city = null;
$jMaps = '{"maps":[';
$wp_query = new WP_Query($args);
while ($wp_query->have_posts()) : $wp_query->the_post();
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID));
$t = get_post_meta( $post->ID, 'delegation_type', TRUE );
$address1 = get_post_meta( $post->ID, 'delegation_adresse', TRUE );
$address2 = get_post_meta( $post->ID, 'delegation_adresse2', TRUE );
$zip = get_post_meta( $post->ID, 'delegation_cp', TRUE );
$city = get_post_meta( $post->ID, 'delegation_ville', TRUE );
$lng = get_post_meta( $post->ID, 'delegation_longitude', TRUE );
$lat = get_post_meta( $post->ID, 'delegation_latitude', TRUE );
$type = get_post_meta( $post->ID, 'delegation_type', TRUE );
$phone = get_post_meta( $post->ID, 'delegation_tel', TRUE );
$email = get_post_meta( $post->ID, 'delegation_email', TRUE );
$mapaddress = "";
$mapaddress.= $address1 ? $address1.'
' : '';
$mapaddress.= $address2 ? $address2.'
' : '';
$mapaddress.= $zip ? $zip.' ' : '';
$mapaddress.= $city ? strtoupper($city) : '';
$bubbletpl = '
'.get_the_title().'
'.$mapaddress;
$bubbletpl .= $phone ? '
'.$phone : '';
$bubbletpl .= $email ? '
'.$email.'' : '';
$bubbletpl = str_replace(array("\r\n", "\r", "\n", "\t"), '',$bubbletpl);
$jMaps.='{';
$jMaps.= '"mapid":"mapl", "zoom" : 6, "control" : "small", "typecontrol" : "small", "type": "normal",';
$jMaps.= get_the_title() ? '"title":"'.addslashes(get_the_title).'",' : '';
$jMaps.= $lng ? '"lng":"'.$lng.'",' : '';
$jMaps.= $lat ? '"lat":"'.$lat.'",' : '';
$jMaps.= $address1 != NULL ? '"address1":"'.addslashes($address1).'",' : '';
$jMaps.= $address2 ? '"address2":"'.addslashes($address2).'",' : '';
$jMaps.= $zip ? '"city":"'.addslashes($zip).'",' : '';
$jMaps.= $city ? '"zip":"'.addslashes($city).'",' : '';
$jMaps.= '"showbubble":"0",';
$jMaps.= '"marker":"'.(int)$type.'",';
$jMaps.= '"bubbleevt":"'.$post->ID.'",';
$jMaps.= '"bubbletpl":"'.addslashes($bubbletpl).'"';
$jMaps.='}';
if ($i
*/ ?>