Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $consultstreet_cta_disabled = get_theme_mod('consultstreet_cta_disabled', true);
- $consultstreet_cta_area_subtitle = get_theme_mod('consultstreet_cta_area_subtitle', 'Do you have any questions?');
- $consultstreet_cta_layout = get_theme_mod('consultstreet_cta_layout', 'consultstreet_cta_layout1');
- $consultstreet_cta_area_des = get_theme_mod('consultstreet_cta_area_des', 'How can we help your business? Because many people love our free consultation for growing their businesses which gives the user complete freedom to set up a business.');
- $consultstreet_cta_button_text = get_theme_mod('consultstreet_cta_button_text', 'Contact Us');
- $consultstreet_cta_button_link = get_theme_mod('consultstreet_cta_button_link', '#');
- $consultstreet_cta_open_new_tab_disabled = get_theme_mod('consultstreet_cta_open_new_tab_disabled', true);
- $consultstreet_cta_front_container_size = get_theme_mod('consultstreet_cta_front_container_size', 'container');
- $consultstreet_cta_area_before_content = get_theme_mod('consultstreet_cta_area_before_content');
- $consultstreet_cta_area_after_content = get_theme_mod('consultstreet_cta_area_after_content');
- if($consultstreet_cta_area_before_content != null):
- echo do_shortcode($consultstreet_cta_area_before_content);
- endif;
- if($consultstreet_cta_disabled == true): ?>
- <!--Call to Action Section-->
- <section class="theme-cta <?php if($consultstreet_cta_layout == 'consultstreet_cta_layout2'){ echo 'vrsn-two'; } ?>" id="theme-cta">
- <div class="theme-cta-overlay"></div>
- <div class="<?php echo $consultstreet_cta_front_container_size; ?>">
- <div class="row align-self-center">
- <?php if($consultstreet_cta_layout == 'consultstreet_cta_layout2'){ ?>
- <div class="col-lg-<?php if($consultstreet_cta_button_text == null){echo '12';}else{echo '9';} ?> col-md-8 col-sm-12">
- <div class="cta-block">
- <?php if($consultstreet_cta_area_subtitle != null): ?>
- <h2 class="title text-white"><?php echo $consultstreet_cta_area_subtitle; ?></h2>
- <?php endif; ?>
- <?php if($consultstreet_cta_area_des != null): ?>
- <p class="text-white"><?php echo $consultstreet_cta_area_des; ?></p>
- <?php endif; ?>
- </div>
- </div>
- <?php if($consultstreet_cta_button_text != null): ?>
- <div class="col-lg-3 col-md-4 col-sm-12 align-self-center">
- <div class="cta-btn">
- <a href="<?php echo $consultstreet_cta_button_link; ?>" <?php if($consultstreet_cta_open_new_tab_disabled == true){?>target="_blank" <?php }?> class="btn-small btn-default"><?php echo $consultstreet_cta_button_text; ?></a>
- </div>
- </div>
- <?php endif; ?>
- <?php } else { ?>
- <div class="col-lg-12 col-md-12 col-sm-12">
- <div class="cta-block text-center">
- <?php if($consultstreet_cta_area_subtitle != null): ?>
- <h2 class="title text-white"><?php echo $consultstreet_cta_area_subtitle; ?></h2>
- <?php endif; ?>
- <?php if($consultstreet_cta_area_des != null): ?>
- <p class="text-white"><?php echo $consultstreet_cta_area_des; ?></p>
- <?php endif; ?>
- <?php if($consultstreet_cta_button_text != null): ?>
- <div class="mx-auto mt-3">
- <a href="<?php echo $consultstreet_cta_button_link; ?>" <?php if($consultstreet_cta_open_new_tab_disabled == true){?>target="_blank" <?php }?> class="btn-small btn-default"><?php echo $consultstreet_cta_button_text; ?></a>
- <a href="#" target="_blank" class="btn-small btn-light">Add Button Text</a>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- </section>
- <!--/End of Call to Action Section-->
- <?php endif;
- if($consultstreet_cta_area_after_content != null):
- echo do_shortcode($consultstreet_cta_area_after_content);
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement