$image_width = ''; $image_class = ''; } /* |---------------------------------------------------------------- | Image Block. |---------------------------------------------------------------- */ echo '<div class="image ' . set_col_size($block_width) . ' col ' . $image_class . ' no-padding" style="margin: ' . $margin . '; padding: ' . $padding . ';">'; /* |---------------------------------------------------------------- | If vertical center is true set img in middle wrap. |---------------------------------------------------------------- */ if ($vertical_center) { echo '<div class="image-content on-top-overlay">'; echo '<div class="middle-wrap">'; echo '<img style="' . align_left_right_center($image_align) . '; max-width: ' . $max_image_width . 'px;" src="' . $image . '" width="' . $image_width . '" />'; echo '</div>'; echo '</div>'; } else { echo '<img class="on-top-overlay" style="' . align_left_right_center($image_align) . '; max-width: ' . $max_image_width . 'px;" src="' . $image . '" width="' . $image_width . '" />'; } /* |---------------------------------------------------------------- | If image overlay set active show the overlay. |---------------------------------------------------------------- */ get_template_part('includes/acf/parts/assets/image-overlay'); echo '</div>'; // Image closing tag
/* |---------------------------------------------------------------- | If the '$title' isn't empty display it. |---------------------------------------------------------------- */ if ($show_title) { // Display the title echo '<h1 class="title no-margin" style="color: ' . $title_color . '; text-align: ' . $title_align . '; ' . text_transform($title_uppercase) . '; ">' . $title . '</h1>'; /* |---------------------------------------------------------------- | If the '$divider' is set true display it. |---------------------------------------------------------------- */ if ($divider == true) { echo '<div class="divider">'; echo '<hr style="' . align_left_right_center($title_align) . '; border-color: ' . $divider_color . ';" />'; echo '</div>'; } } /* |---------------------------------------------------------------- | If the '$subtitle' isn't empty display it. |---------------------------------------------------------------- */ if ($show_subtitle) { // Display the subtitle echo '<h3 class="subtitle no-margin" style="font-style: ' . $subtitle_style . '; color: ' . $subtitle_color . '; text-align: ' . $title_align . ';">' . $subtitle . '</h3>'; } echo '</div>'; } /*
|------------------------------------------------------------------------------------------------------------------------------------------------- | The Contact Form Block |------------------------------------------------------------------------------------------------------------------------------------------------- */ echo '<div id="contact-form" class="container-fluid container-capped" style="' . set_background_style($background, $background_color, $background_image, $background_align, $background_size, $background_repeat) . ' margin: ' . $margin . '; padding: ' . $padding . ';">'; echo '<div class="row contact-form ' . $contact_form_style . ' on-top-overlay">'; /* |---------------------------------------------------------------- | Title/Divider/Subtitle. |---------------------------------------------------------------- */ get_template_part('includes/acf/parts/assets/title-divider-subtitle'); /* |---------------------------------------------------------------- | Contact Form. |---------------------------------------------------------------- */ echo '<div class="' . set_col_size($contact_form_width) . '" style="' . align_left_right_center($contact_form_align) . '">'; echo do_shortcode($contact_form_shortcode); echo '</div>'; // Col Size closing tag echo '</div>'; // Contact Form closing tag /* |---------------------------------------------------------------- | If image overlay set active show the overlay. |---------------------------------------------------------------- */ get_template_part('includes/acf/parts/assets/image-overlay'); echo '</div>'; // Container closing tag