Integrating Easy Maps into other themes

Home Forums General Questions Integrating Easy Maps into other themes

This topic contains 0 replies, has 1 voice, and was last updated by  js248801 1 month, 1 week ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #22458

    js248801
    Participant

    Hi – thanks for any suggestions and apologies if Im submitting too technical a question or in the wrong part of the forum.

    I’m trying to integrate the easy map with a wordpress template contact page I know I can get it working standalone with a form below but I like the contact box floating in the middle of the map which fits in more aesthetically with the site style:

    Contact2

    The template developer kindly helped but they recently changed the code and there current suggestion returns a critical error.
    their advice was:
    Go to Appearance » Theme Editor » HighendWP » page-templates » contact.php and replace the following code with the shortcode:

    highend_print_google_map(
    apply_filters(
    ‘highend_contact_map_args’,
    array(
    ‘wrapper_start’ => ‘<div class=”fw-map”>’,
    ‘wrapper_end’ => ‘</div>’
    ),
    $page_id
    )
    );
    both the shortcode and php return the error – any suggestions where the code should go?

    Thanks

    John
    ****
    page code
    ****
    <div class=”fw-map-wrapper”>

    <?php
    // Background.
    if ( ‘map’ === $highend_contact_background ) {
    highend_print_google_map(
    apply_filters(
    ‘highend_contact_map_args’,
    array(
    ‘wrapper_start’ => ‘<div class=”fw-map”>’,
    ‘wrapper_end’ => ‘</div>’
    ),
    $page_id
    )
    );
    } elseif ( ‘image’ === $highend_contact_background ) {
    echo wp_kses_post(
    sprintf(
    ‘<div class=”fw-map parallax” style=”background-image: url(\’%s\’ );”></div>’,
    esc_url( vp_metabox( ‘contact_page_settings.hb_contact_background_image’, ”, $page_id ) )
    )
    );
    }
    ?>

    <div class=”container”>

    <div class=”map-info-section<?php echo esc_attr( $highend_contact_animation ); ?>”>

    <i class=”hb-moon-contract-3″></i>

    <?php if ( $highend_contact_title ) { ?>
    <h5 class=”hb-heading alt-color-1″><span><?php echo esc_html( $highend_contact_title ); ?></span></h5>
    <?php } ?>

    <?php if ( ! empty( $highend_contact_content ) || ! empty( $highend_contact_details ) ) { ?>
    <div class=”hb-contact-details”>

    <?php
    if ( ! empty( $highend_contact_content ) ) {
    echo wp_kses_post( ‘<div><p>’ . $highend_contact_content . ‘</p></div>’ );
    }
    ?>

    <?php if ( ! empty( $highend_contact_details ) ) { ?>
    <div>
    <ul class=”hb-ul-list”>
    <?php foreach ( $highend_contact_details as $detail ) { ?>

  • <?php if ( $detail[‘hb_contact_detail_icon’] ) { ?>
    <i class=”<?php echo esc_attr( $detail[‘hb_contact_detail_icon’] ); ?>”></i>
    <?php } ?>

    <span><?php echo wp_kses_post( $detail[‘hb_contact_detail_content’] ); ?></span>

  • <?php } ?>

    </div>
    <?php } ?>
    </div>
    <?php } ?>

    <?php if ( $highend_form_title ) { ?>
    <h5 class=”hb-heading alt-color-1″><span><?php echo wp_kses_post( $highend_form_title ); ?></span></h5>
    <?php } ?>

    <?php do_action( ‘highend_contact_page_form’ ); ?>

    </div><!– END .map-info-section –>

    </div>

    </div>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Get plugins bundle today and save over 80%