Guest User

Untitled

a guest
Nov 23rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1. /*
  2. * 3 Big feature boxes
  3. */
  4. if ($featureBoxesEnabled) {
  5. ?>
  6. <div class="col4 featurebox">
  7. <div class="colcontents">
  8. <?php
  9. $title = get_option(BFI_SHORTNAME.'_featurebox1_title');
  10. $subtitle = get_option(BFI_SHORTNAME.'_featurebox1_subtitle');
  11. $image = get_option(BFI_SHORTNAME.'_featurebox1_image');
  12. $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox1_text'));
  13. $url = get_option(BFI_SHORTNAME.'_featurebox1_url');
  14.  
  15. if ($title) { echo "<h3 class='title'>$title</h3>"; }
  16. if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
  17. if ($image) { echo "<p style='margin-bottom: 0;'>"; }
  18. if ($url) { echo "<a href='$url'>"; }
  19. if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
  20. if ($url) { echo "</a>"; }
  21. if ($image) { echo "</p>"; }
  22. if ($text) { echo "<p>$text</p>"; }
  23. ?>
  24. <div class="clearfix"></div>
  25. </div>
  26. </div>
  27.  
  28. <div class="col4 featurebox">
  29. <div class="colcontents">
  30. <?php
  31. $title = get_option(BFI_SHORTNAME.'_featurebox2_title');
  32. $subtitle = get_option(BFI_SHORTNAME.'_featurebox2_subtitle');
  33. $image = get_option(BFI_SHORTNAME.'_featurebox2_image');
  34. $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox2_text'));
  35. $url = get_option(BFI_SHORTNAME.'_featurebox2_url');
  36.  
  37. if ($title) { echo "<h3 class='title'>$title</h3>"; }
  38. if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
  39. if ($image) { echo "<p style='margin-bottom: 0;'>"; }
  40. if ($url) { echo "<a href='$url'>"; }
  41. if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
  42. if ($url) { echo "</a>"; }
  43. if ($image) { echo "</p>"; }
  44. if ($text) { echo "<p>$text</p>"; }
  45. ?>
  46. <div class="clearfix"></div>
  47. </div>
  48. </div>
  49.  
  50. <div class="col4 featurebox">
  51. <div class="colcontents">
  52. <?php
  53. $title = get_option(BFI_SHORTNAME.'_featurebox3_title');
  54. $subtitle = get_option(BFI_SHORTNAME.'_featurebox3_subtitle');
  55. $image = get_option(BFI_SHORTNAME.'_featurebox3_image');
  56. $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox3_text'));
  57. $url = get_option(BFI_SHORTNAME.'_featurebox3_url');
  58.  
  59. if ($title) { echo "<h3 class='title'>$title</h3>"; }
  60. if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
  61. if ($image) { echo "<p style='margin-bottom: 0;'>"; }
  62. if ($url) { echo "<a href='$url'>"; }
  63. if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
  64. if ($url) { echo "</a>"; }
  65. if ($image) { echo "</p>"; }
  66. if ($text) { echo "<p>$text</p>"; }
  67. ?>
  68. <div class="clearfix"></div>
  69. </div>
  70. </div>
  71.  
  72. <div class="col4 featurebox last">
  73. <div class="colcontents">
  74. <?php
  75. $title = get_option(BFI_SHORTNAME.'_featurebox4_title');
  76. $subtitle = get_option(BFI_SHORTNAME.'_featurebox4_subtitle');
  77. $image = get_option(BFI_SHORTNAME.'_featurebox4_image');
  78. $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox4_text'));
  79. $url = get_option(BFI_SHORTNAME.'_featurebox4_url');
  80.  
  81. if ($title) { echo "<h3 class='title'>$title</h3>"; }
  82. if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
  83. if ($image) { echo "<p style='margin-bottom: 0;'>"; }
  84. if ($url) { echo "<a href='$url'>"; }
  85. if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
  86. if ($url) { echo "</a>"; }
  87. if ($image) { echo "</p>"; }
  88. if ($text) { echo "<p>$text</p>"; }
  89. ?>
  90. <div class="clearfix"></div>
  91. </div>
  92. </div>
  93. <div class="clearfix"></div>
  94. <?php
  95. }
Add Comment
Please, Sign In to add comment