Guest User

Untitled

a guest
Aug 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <!-- HC Recent News & Why Choose us Section -->
  2. <div class="container">
  3. <?php $current_options = wp_parse_args( get_option('hc_pro_options', array() ), theme_data_setup()); ?>
  4.  
  5. <div id="sidebar-news" class="row sidebar-news">
  6.  
  7. <!--Recent News-->
  8. <div class="col-md-12">
  9. <?php
  10. if($current_options['news_enable'] == false){
  11. if(is_active_sidebar('sidebar-news'))
  12. {
  13. dynamic_sidebar('sidebar-news');
  14. }
  15. else
  16. {
  17. $current_options = get_option('hc_pro_options');
  18. if(!empty($current_options)) {
  19. get_template_part('index','news_two');
  20. }
  21. }
  22. }
  23. ?>
  24. </div>
  25.  
  26. <!--Why choose us-->
  27. <div class="col-md-12 hc_accordion_section">
  28. <?php
  29. $current_options = wp_parse_args( get_option('hc_pro_options', array() ), theme_data_setup());
  30. if($current_options['faq_enable']==false): ?>
  31.  
  32. <?php if($current_options['hc_head_faq']!='') { ?>
  33. <div class="hc_heading_title">
  34. <h3><?php echo $current_options['hc_head_faq']; ?></h3>
  35. </div>
  36. <?php } ?>
  37.  
  38. <div class="panel-group" id="accordion">
  39. <?php
  40. if( is_active_sidebar('sidebar-faq') ){
  41. dynamic_sidebar('sidebar-faq');
  42. }
  43. else
  44. {
  45. $current_options = wp_parse_args( get_option('hc_pro_options', array() ), theme_data_setup());
  46. if(!empty($current_options)) {
  47. get_template_part('index','faqs');
  48. }
  49. }
  50. ?>
  51. </div>
  52.  
  53. <?php endif; ?>
  54. </div>
  55.  
  56. </div>
  57. </div>
Add Comment
Please, Sign In to add comment