PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
themes
/
salient
/
nectar
/
nectar-vc-addons
/
vc_templates
<?php extract(shortcode_atts(array( 'size' => '400', "img_link_target" => '', 'map_center_lat'=> '', 'map_center_lng'=> '', 'zoom' => '12', 'enable_zoom' => '', 'marker_image'=> '', 'map_greyscale' => '', 'map_color' => '', 'ultra_flat' => '', 'dark_color_scheme' => '', 'marker_animation'=> 'false', 'map_markers' => '', 'marker_style' => 'default', 'nectar_marker_color' => 'accent-color' ), $atts)); wp_enqueue_script('nectarMap', get_template_directory_uri() . '/js/map.js', array('jquery'), '8.5.4', TRUE); $markersArr = array(); $explodedByBr = explode("\n", $map_markers); $count = 0; foreach ($explodedByBr as $brExplode) { $markersArr[$count] = array(); $explodedBySep = explode('|', $brExplode); foreach ($explodedBySep as $sepExploded) { $markersArr[$count][] = $sepExploded; } $count++; } $map_data = null; $unique_id = uniqid("map_"); $marker_image_src = null; if(!empty($marker_image)) { $marker_image_src = wp_get_attachment_image_src($marker_image, 'full'); $marker_image_src = $marker_image_src[0]; } echo '<div id="'.$unique_id.'" style="height: '.$size.'px;" class="nectar-google-map" data-dark-color-scheme="'. $dark_color_scheme .'" data-marker-style="'.$marker_style.'" data-nectar-marker-color="'.$nectar_marker_color.'" data-ultra-flat="'.$ultra_flat.'" data-greyscale="'.$map_greyscale.'" data-extra-color="'.$map_color.'" data-enable-animation="'.$marker_animation.'" data-enable-zoom="'.$enable_zoom.'" data-zoom-level="'.$zoom.'" data-center-lat="'.$map_center_lat.'" data-center-lng="'.$map_center_lng.'" data-marker-img="'.$marker_image_src.'"></div>'; echo '<div class="'.$unique_id.' map-marker-list">'; $count = 0; for($i = 1; $i <= sizeof($markersArr); $i++){ if(empty($markersArr[$count][0])) $markersArr[$count][0] = null; if(empty($markersArr[$count][1])) $markersArr[$count][1] = null; if(empty($markersArr[$count][2])) $markersArr[$count][2] = null; echo '<div class="map-marker" data-lat="'.$markersArr[$count][0].'" data-lng="'.$markersArr[$count][1].'" data-mapinfo="'.$markersArr[$count][2].'"></div>'; $count++; } echo '</div>'; ?>
[+]
..
[-] nectar_horizontal_list_item.php
[edit]
[-] morphing_outline.php
[edit]
[-] vc_column.php
[edit]
[-] tabbed_section.php
[edit]
[-] testimonial.php
[edit]
[-] nectar_animated_title.php
[edit]
[-] vc_pie.php
[edit]
[-] client.php
[edit]
[-] nectar_image_comparison.php
[edit]
[-] testimonial_slider.php
[edit]
[-] nectar_icon_list_item.php
[edit]
[-] nectar_gradient_text.php
[edit]
[-] toggle.php
[edit]
[-] item.php
[edit]
[-] vc_column_inner.php
[edit]
[-] vc_widget_sidebar.php
[edit]
[-] nectar_icon.php
[edit]
[-] tab.php
[edit]
[-] vc_row_inner.php
[edit]
[-] desktop.ini
[edit]
[-] nectar_video_lightbox.php
[edit]
[-] toggles.php
[edit]
[-] nectar_hotspot.php
[edit]
[-] vc_column_text.php
[edit]
[-] nectar_gmap.php
[edit]
[-] carousel.php
[edit]
[-] vc_row.php
[edit]
[-] nectar_woo_products.php
[edit]
[-] nectar_cta.php
[edit]
[-] page_submenu.php
[edit]
[-] page_link.php
[edit]
[-] nectar_icon_list.php
[edit]
[-] clients.php
[edit]
[-] pricing_table.php
[edit]
[-] nectar_image_with_hotspots.php
[edit]
[-] nectar_flip_box.php
[edit]
[-] nectar_single_testimonial.php
[edit]
[-] fancy_box.php
[edit]
[-] full_width_section.php
[edit]
[-] nectar_food_menu_item.php
[edit]
[-] nectar_cascading_images.php
[edit]
[-] pricing_column.php
[edit]
[-] nectar_btn.php
[edit]
[-] split_line_heading.php
[edit]
[-] vc_gallery.php
[edit]