$image_class = ''; } elseif ($image_size == 'fill') { $image_width = '100%'; $image_class = 'fill'; } else { $image_width = ''; $image_class = ''; } /* |---------------------------------------------------------------- | If the '$image' isn't empty display it. |---------------------------------------------------------------- */ if (!empty($image)) { echo '<div class="image">'; echo '<img style="' . align_left_right_center($image_align) . '; ' . border_style($border, $border_size, $border_style, $border_color) . ' max-width: ' . $max_image_width . 'px; border-radius: ' . $border_radius . 'px;" src="' . $image . '" width="' . $image_width . '" />'; echo '</div>'; // Image closing tag } /* |---------------------------------------------------------------- | If the '$title' isn't empty display it. |---------------------------------------------------------------- */ if (!empty($title)) { // Display the title echo '<h3 class="title no-margin" style="color: ' . $title_color . '; ' . text_transform($title_uppercase) . '; text-align: ' . $title_align . ';">' . $title . '</h3>'; /* |---------------------------------------------------------------- | If the '$subtitle' isn't empty display it. |----------------------------------------------------------------
| Render for each style. |---------------------------------------------------------------- */ /* The From element */ echo '.' . $form_style_name . ' form {'; echo 'background-color: ' . $form_background_color . ';'; echo border_style($form_border, $form_border_size, $form_border_style, $form_border_color); echo 'margin: ' . $form_margin . ';'; echo 'padding: ' . $form_padding . ';'; echo '}'; /* The From Control element */ echo '.' . $form_style_name . ' form .form-control {'; echo $input_background_color ? 'background-color: ' . $input_background_color . ';' : 'background-color: transparent;'; echo 'border-radius: ' . $input_border_radius . 'px;'; echo 'border: none;'; echo border_style($input_border, $input_border_size, $input_border_style, $input_border_color); echo 'color: ' . $input_text_color . ';'; echo '}'; /* The placeholder style */ echo '.' . $form_style_name . ' form .form-control::webkit-input-placeholder {'; echo 'color: ' . $placeholder_text_color . ';'; echo '}'; /* The Form Control element :focus */ echo '.' . $form_style_name . ' form .form-control:focus {'; echo 'border-color: ' . $input_border_focus_color . '!important;'; echo 'box-shadow: none;'; echo '}'; } ?> /* Center the element */ .contact-form form .form-group .center {