sdobwm

Untitled

Oct 14th, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. <?php
  2. /**
  3. * @Theme Name : Wallstreet-Pro
  4. * @file : index-features.php
  5. * @package : wallstreet-Pro
  6. @author : webriti
  7. * @filesource : wp-content/themes/wallstreet/index-features.php
  8. */
  9. ?>
  10. <?php
  11. $wallstreet_pro_options=theme_data_setup();
  12. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options );
  13. $theme_feature_enabled = $current_options['theme_feature_enabled'];
  14. $theme_feature_image = $current_options['theme_feature_image'];
  15. $theme_feature_title = $current_options['theme_feature_title'];
  16. $theme_first_feature_icon = $current_options['theme_first_feature_icon'];
  17. $theme_first_title = $current_options['theme_first_title'];
  18. $theme_first_description = $current_options['theme_first_description'];
  19. $theme_second_feature_icon = $current_options['theme_second_feature_icon'];
  20. $theme_second_title = $current_options['theme_second_title'];
  21. $theme_second_description = $current_options['theme_second_description'];
  22. $theme_third_feature_icon = $current_options['theme_third_feature_icon'];
  23. $theme_third_title = $current_options['theme_third_title'];
  24. $theme_third_description = $current_options['theme_third_description'];
  25. ?>
  26. <?php if($theme_feature_enabled ==true) { ?>
  27. <div class="features-section" style="background: url('<?php echo $current_options['theme_feature_background']; ?>'); background-size:cover;">
  28. <div class="overlay">
  29. <div class="container">
  30. <div class="row">
  31.  
  32. <div class="col-md-6 col-sm-6">
  33. <div class="features-title"><?php if(!empty($theme_feature_title)) { echo $theme_feature_title; } ?></div>
  34. <div class="media features-area">
  35. <div class="feature-icon"><i class="fa <?php if(!empty($theme_first_feature_icon)){ echo $theme_first_feature_icon; } ?>"></i></div>
  36. <div class="media-body">
  37. <h3><?php if(!empty($theme_first_title)){ echo $theme_first_title; } ?></h3>
  38. <p><?php if(!empty($theme_first_description)){ echo $theme_first_description; } ?></p>
  39. </div>
  40. </div>
  41. <div class="media features-area">
  42. <div class="feature-icon"><i class="fa <?php if(!empty($theme_second_feature_icon)){ echo $theme_second_feature_icon; } ?>"></i></div>
  43. <div class="media-body">
  44. <h3><?php if(!empty($theme_second_title)){ echo $theme_second_title; } ?></h3>
  45. <p><?php if(!empty($theme_second_description)){ echo $theme_second_description; } ?></p>
  46. </div>
  47. </div>
  48. <div class="media features-area">
  49. <div class="feature-icon"><i class="fa <?php if(!empty($theme_third_feature_icon)){ echo $theme_third_feature_icon; } ?>"></i></div>
  50. <div class="media-body">
  51. <h3><?php if(!empty($theme_third_title)){ echo $theme_third_title; } ?></h3>
  52. <p><?php if(!empty($theme_third_description)){ echo $theme_third_description; } ?></p>
  53. </div>
  54. </div>
  55. </div>
  56. <?php if(!empty($theme_feature_image)) {?>
  57. <div class="col-md-6 col-sm-6">
  58. <?php if($current_options['feature_image_link']) { ?>
  59. <a href="<?php echo $current_options['feature_image_link']; ?>" <?php if($current_options['image_link_target'] == true) { ?>target="_blank" <?php } ?>><img class="img-responsive features-img" alt="Wallstreet Image" style="height:331px; width:525px;" src="<?php echo $theme_feature_image; ?>"></a>
  60. <?php } else { ?>
  61. <img class="img-responsive features-img" alt="Wallstreet Image" style="height:331px; width:525px;" src="<?php echo $theme_feature_image; ?>">
  62. <?php } ?>
  63. </div>
  64. <?php } ?>
  65.  
  66. </div>
  67. </div>
  68.  
  69. </div>
  70. </div>
  71. <?php } ?>
Add Comment
Please, Sign In to add comment