Guest User

Untitled

a guest
Jun 15th, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. <?php
  2. $consultstreet_cta_disabled = get_theme_mod('consultstreet_cta_disabled', true);
  3. $consultstreet_cta_area_subtitle = get_theme_mod('consultstreet_cta_area_subtitle', 'Do you have any questions?');
  4. $consultstreet_cta_layout = get_theme_mod('consultstreet_cta_layout', 'consultstreet_cta_layout1');
  5. $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.');
  6. $consultstreet_cta_button_text = get_theme_mod('consultstreet_cta_button_text', 'Contact Us');
  7. $consultstreet_cta_button_link = get_theme_mod('consultstreet_cta_button_link', '#');
  8. $consultstreet_cta_open_new_tab_disabled = get_theme_mod('consultstreet_cta_open_new_tab_disabled', true);
  9. $consultstreet_cta_front_container_size = get_theme_mod('consultstreet_cta_front_container_size', 'container');
  10. $consultstreet_cta_area_before_content = get_theme_mod('consultstreet_cta_area_before_content');
  11. $consultstreet_cta_area_after_content = get_theme_mod('consultstreet_cta_area_after_content');
  12. if($consultstreet_cta_area_before_content != null):
  13. echo do_shortcode($consultstreet_cta_area_before_content);
  14. endif;
  15. if($consultstreet_cta_disabled == true): ?>
  16. <!--Call to Action Section-->
  17. <section class="theme-cta <?php if($consultstreet_cta_layout == 'consultstreet_cta_layout2'){ echo 'vrsn-two'; } ?>" id="theme-cta">
  18. <div class="theme-cta-overlay"></div>
  19.  
  20. <div class="<?php echo $consultstreet_cta_front_container_size; ?>">
  21. <div class="row align-self-center">
  22.  
  23. <?php if($consultstreet_cta_layout == 'consultstreet_cta_layout2'){ ?>
  24.  
  25. <div class="col-lg-<?php if($consultstreet_cta_button_text == null){echo '12';}else{echo '9';} ?> col-md-8 col-sm-12">
  26. <div class="cta-block">
  27. <?php if($consultstreet_cta_area_subtitle != null): ?>
  28. <h2 class="title text-white"><?php echo $consultstreet_cta_area_subtitle; ?></h2>
  29. <?php endif; ?>
  30. <?php if($consultstreet_cta_area_des != null): ?>
  31. <p class="text-white"><?php echo $consultstreet_cta_area_des; ?></p>
  32. <?php endif; ?>
  33. </div>
  34. </div>
  35.  
  36. <?php if($consultstreet_cta_button_text != null): ?>
  37. <div class="col-lg-3 col-md-4 col-sm-12 align-self-center">
  38. <div class="cta-btn">
  39. <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>
  40. </div>
  41. </div>
  42. <?php endif; ?>
  43.  
  44.  
  45. <?php } else { ?>
  46.  
  47. <div class="col-lg-12 col-md-12 col-sm-12">
  48. <div class="cta-block text-center">
  49. <?php if($consultstreet_cta_area_subtitle != null): ?>
  50. <h2 class="title text-white"><?php echo $consultstreet_cta_area_subtitle; ?></h2>
  51. <?php endif; ?>
  52. <?php if($consultstreet_cta_area_des != null): ?>
  53. <p class="text-white"><?php echo $consultstreet_cta_area_des; ?></p>
  54. <?php endif; ?>
  55. <?php if($consultstreet_cta_button_text != null): ?>
  56. <div class="mx-auto mt-3">
  57. <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>
  58. <a href="#" target="_blank" class="btn-small btn-light">Add Button Text</a>
  59. </div>
  60. <?php endif; ?>
  61. </div>
  62. </div>
  63.  
  64. <?php } ?>
  65.  
  66. </div>
  67. </div>
  68. </section>
  69. <!--/End of Call to Action Section-->
  70. <?php endif;
  71. if($consultstreet_cta_area_after_content != null):
  72. echo do_shortcode($consultstreet_cta_area_after_content);
  73. endif;
  74. ?>
Advertisement
Add Comment
Please, Sign In to add comment