sdobwm

Untitled

Oct 22nd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 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. <?php if(!empty($theme_feature_image)) {?>
  32. <div class="col-md-6 col-sm-6">
  33. <?php if($current_options['feature_image_link']) { ?>
  34. <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>
  35. <?php } else { ?>
  36. <img class="img-responsive features-img" alt="Wallstreet Image" style="height:331px; width:525px;" src="<?php echo $theme_feature_image; ?>">
  37. <?php } ?>
  38. </div>
  39. <?php } ?>
  40. <div class="col-md-12 col-sm-6">
  41. <div class="features-title"><?php if(!empty($theme_feature_title)) { echo $theme_feature_title; } ?></div>
  42. <div class="media features-area">
  43. <div class="feature-icon"><i class="fa <?php if(!empty($theme_first_feature_icon)){ echo $theme_first_feature_icon; } ?>"></i></div>
  44. <div class="media-body">
  45. <h3><?php if(!empty($theme_first_title)){ echo $theme_first_title; } ?></h3>
  46. <p><?php if(!empty($theme_first_description)){ echo $theme_first_description; } ?></p>
  47. </div>
  48. </div>
  49. <div class="media features-area">
  50. <div class="feature-icon"><i class="fa <?php if(!empty($theme_second_feature_icon)){ echo $theme_second_feature_icon; } ?>"></i></div>
  51. <div class="media-body">
  52. <h3><?php if(!empty($theme_second_title)){ echo $theme_second_title; } ?></h3>
  53. <p><?php if(!empty($theme_second_description)){ echo $theme_second_description; } ?></p>
  54. </div>
  55. </div>
  56. <div class="media features-area">
  57. <div class="feature-icon"><i class="fa <?php if(!empty($theme_third_feature_icon)){ echo $theme_third_feature_icon; } ?>"></i></div>
  58. <div class="media-body">
  59. <h3><?php if(!empty($theme_third_title)){ echo $theme_third_title; } ?></h3>
  60. <p><?php if(!empty($theme_third_description)){ echo $theme_third_description; } ?></p>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66.  
  67. </div>
  68. </div>
  69. <?php } ?>
Add Comment
Please, Sign In to add comment