PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
kingcomposer
/
shortcodes
<?php /* * Google maps shortcode template */ $output = $title = $wrap_class = $contact_form = $disable_wheel_mouse = ''; $map_width = '100%'; $map_height = '350px'; $contact_area_position = 'left'; $google_maps_info = array(); extract( $atts ); $css_classes = apply_filters( 'kc-el-class', $atts ); $element_attributes = array(); $map_attributes = array(); $css_classes = array_merge($css_classes, array( 'kc_google_maps', 'kc_shortcode' )); if ( !empty( $wrap_class ) ) $css_classes[] = $wrap_class; $element_attributes[] = 'class="'. esc_attr( implode( ' ', $css_classes ) ) .'"'; if( !empty( $title ) ){ $output .= '<h3 class="map_title">'. esc_html( $title ) .'</h3>'; } //Contact form on maps if( !empty($show_ocf) && 'yes' === $show_ocf ){ if(!empty( $contact_form_sc )){ $contact_form = '<div class="map_popup_contact_form '. $contact_area_position .'">'; $contact_form .= '<a class="close" href="javascript:;"><i class="sl-close"></i></a>'; $contact_form .= do_shortcode( $contact_form_sc ); $contact_form .= '</div>'; $contact_form .= '<a class="show_contact_form" href="javascript:;"><i class="fa fa-bars"></i></a>'; } } $map_attributes[] = 'style="height: '. esc_attr( $map_height ) .'px"'; $map_attributes[] = 'class="kc-google-maps"'; if( !empty( $disable_wheel_mouse ) ){ $element_attributes[] = 'data-wheel="disable"'; } $map_location = preg_replace( array('/width="\d+"/i', '/height="\d+"/i'), array( sprintf('width="%s"', $map_width ), sprintf('height="%d"', intval( $map_height )) ), $map_location ); if( isset( $_GET['kc_action'] ) && $_GET['kc_action'] === 'live-editor' ){ $map_location = '<div style="width: 100%;height:'.$map_height.'px;" class="disable-view-element"><h3>For best perfomance, the map has been disabled in this editing mode.</h3></div>'; } $output .= '<div '. implode( ' ', $element_attributes ) .'>'. $contact_form .'<div '. implode( ' ', $map_attributes ) .'>'. $map_location .'</div></div>'; echo $output;
[+]
..
[-] kc_video_play.php
[edit]
[-] kc_spacing.php
[edit]
[-] kc_feature_box.php
[edit]
[-] kc_column_text.php
[edit]
[-] kc_button.php
[edit]
[-] kc_accordion_tab.php
[edit]
[-] kc_image_fadein.php
[edit]
[-] kc_image_gallery.php
[edit]
[-] kc_tooltip.php
[edit]
[-] kc_counter_box.php
[edit]
[+]
live_editor
[-] kc_single_image.php
[edit]
[-] kc_divider.php
[edit]
[-] kc_raw_code.php
[edit]
[-] kc_wp_widget.php
[edit]
[-] .shortcodes.php
[edit]
[-] kc_google_maps.php
[edit]
[-] kc_tabs.php
[edit]
[-] kc_box_alert.php
[edit]
[-] kc_carousel_post.php
[edit]
[-] kc_column_inner.php
[edit]
[-] kc_creative_button.php
[edit]
[-] kc_contact_form7.php
[edit]
[-] kc_revslider.php
[edit]
[-] kc_column.php
[edit]
[-] kc_title.php
[edit]
[-] kc_nested.php
[edit]
[-] kc_tab.php
[edit]
[-] kc_fb_recent_post.php
[edit]
[-] kc_coundown_timer.php
[edit]
[-] kc_post_type_list.php
[edit]
[-] kc_row.php
[edit]
[-] kc_instagram_feed.php
[edit]
[-] kc_blog_posts.php
[edit]
[-] kc_raw_cos.php
[edit]
[-] kc_multi_icons.php
[edit]
[-] kc_accordion.php
[edit]
[-] kc_dropcaps.php
[edit]
[-] kc_call_to_action.php
[edit]
[-] kc_wp_sidebar.php
[edit]
[-] kc_box.php
[edit]
[-] kc_twitter_feed.php
[edit]
[-] kc_testimonial.php
[edit]
[-] kc_team.php
[edit]
[-] kc_pricing.php
[edit]
[-] kc_icon.php
[edit]
[-] _value.php
[edit]
[-] kc_carousel_images.php
[edit]
[-] kc_flip_box.php
[edit]
[-] kc_progress_bars.php
[edit]
[-] kc_pie_chart.php
[edit]
[-] kc_row_inner.php
[edit]
[-] kc_image_hover_effects.php
[edit]