| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/thevoux-wp/vc_templates/ |
Upload File : |
<?php function thb_contactmap_pin( $atts, $content = null ) {
$atts = vc_map_get_attributes( 'thb_contactmap_pin', $atts );
extract( $atts );
if ($marker_image) {
$marker = wp_get_attachment_image_src( $marker_image, 'full' );
$marker_image = $marker[0];
$marker_size = array($marker[1],$marker[2]);
$retina_marker = $retina_marker;
} else {
$marker_image = Thb_Theme_Admin::$thb_theme_directory_uri . 'assets/img/pin.png';
$marker_size = array(54,74);
$retina_marker = true;
}
$options = array(
'marker_image' => $marker_image,
'marker_title' => esc_attr($marker_title),
'marker_description' => esc_attr($marker_description),
'marker_size' => $marker_size,
'retina_marker' => esc_attr($retina_marker),
'latitude' => esc_attr($latitude),
'longitude' => esc_attr($longitude),
);
ob_start(); ?>
<input class="thb-location" type="hidden" data-option="<?php echo esc_attr(json_encode($options)); ?>" />
<?php
$out = ob_get_clean();
return $out;
}
thb_add_short('thb_contactmap_pin', 'thb_contactmap_pin');