<# if( data === undefined ) data = {}; var output = '', contact_form = '', map_location = '', map_height = '250px', contact_position = 'left', element_attributes = [], map_attributes = [], atts = ( data.atts !== undefined ) ? data.atts : {}; var css_classes = []; css_classes = kc.front.el_class( atts ); css_classes.push( 'kc_google_maps' ); css_classes.push( 'kc_shortcode' ); if( atts['contact_position'] !== undefined && atts['contact_area_position'] != '' ) contact_position = atts['contact_area_position']; if( atts['wrap_class'] !== undefined && atts['wrap_class'] !== '' ) css_classes.push( atts['wrap_class'] ); element_attributes.push( 'class="'+ css_classes.join(' ') +'"' ); if( atts['title'] !== undefined && atts['title'] !== '' ){ output += '

'+ atts['title'] +'

'; } //Contact form on maps if( atts['show_ocf'] !== undefined && 'yes' == atts['show_ocf'] ){ if( atts['contact_form_sc'] !== undefined && atts['contact_form_sc'] != '' ){ contact_form += '
'; contact_form += ''; contact_form += kc.tools.base64.decode(atts['contact_form_sc']); contact_form += '
'; contact_form += ''; } } map_attributes.push( 'class="kc-google-maps"' ); map_attributes.push( 'style="height: '+ parseInt(atts['map_height']) +'px"' ); if( atts['disable_wheel_mouse'] !== undefined && atts['disable_wheel_mouse'] != '' ){ map_attributes.push( 'data-wheel="disable"' ); } map_location = '

For best perfomance, the map has been disabled in this editing mode.

'; output += '
'+ contact_form +'
'+ map_location +'
'; #>
{{{contact_form}}}
{{{map_location}}}
<# data.callback = function( wrp, $ ){ kc_front.google_maps( wrp.parent() ); } #>