Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 3 Big feature boxes
- */
- if ($featureBoxesEnabled) {
- ?>
- <div class="col4 featurebox">
- <div class="colcontents">
- <?php
- $title = get_option(BFI_SHORTNAME.'_featurebox1_title');
- $subtitle = get_option(BFI_SHORTNAME.'_featurebox1_subtitle');
- $image = get_option(BFI_SHORTNAME.'_featurebox1_image');
- $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox1_text'));
- $url = get_option(BFI_SHORTNAME.'_featurebox1_url');
- if ($title) { echo "<h3 class='title'>$title</h3>"; }
- if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
- if ($image) { echo "<p style='margin-bottom: 0;'>"; }
- if ($url) { echo "<a href='$url'>"; }
- if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
- if ($url) { echo "</a>"; }
- if ($image) { echo "</p>"; }
- if ($text) { echo "<p>$text</p>"; }
- ?>
- <div class="clearfix"></div>
- </div>
- </div>
- <div class="col4 featurebox">
- <div class="colcontents">
- <?php
- $title = get_option(BFI_SHORTNAME.'_featurebox2_title');
- $subtitle = get_option(BFI_SHORTNAME.'_featurebox2_subtitle');
- $image = get_option(BFI_SHORTNAME.'_featurebox2_image');
- $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox2_text'));
- $url = get_option(BFI_SHORTNAME.'_featurebox2_url');
- if ($title) { echo "<h3 class='title'>$title</h3>"; }
- if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
- if ($image) { echo "<p style='margin-bottom: 0;'>"; }
- if ($url) { echo "<a href='$url'>"; }
- if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
- if ($url) { echo "</a>"; }
- if ($image) { echo "</p>"; }
- if ($text) { echo "<p>$text</p>"; }
- ?>
- <div class="clearfix"></div>
- </div>
- </div>
- <div class="col4 featurebox">
- <div class="colcontents">
- <?php
- $title = get_option(BFI_SHORTNAME.'_featurebox3_title');
- $subtitle = get_option(BFI_SHORTNAME.'_featurebox3_subtitle');
- $image = get_option(BFI_SHORTNAME.'_featurebox3_image');
- $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox3_text'));
- $url = get_option(BFI_SHORTNAME.'_featurebox3_url');
- if ($title) { echo "<h3 class='title'>$title</h3>"; }
- if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
- if ($image) { echo "<p style='margin-bottom: 0;'>"; }
- if ($url) { echo "<a href='$url'>"; }
- if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
- if ($url) { echo "</a>"; }
- if ($image) { echo "</p>"; }
- if ($text) { echo "<p>$text</p>"; }
- ?>
- <div class="clearfix"></div>
- </div>
- </div>
- <div class="col4 featurebox last">
- <div class="colcontents">
- <?php
- $title = get_option(BFI_SHORTNAME.'_featurebox4_title');
- $subtitle = get_option(BFI_SHORTNAME.'_featurebox4_subtitle');
- $image = get_option(BFI_SHORTNAME.'_featurebox4_image');
- $text = do_shortcode(get_option(BFI_SHORTNAME.'_featurebox4_text'));
- $url = get_option(BFI_SHORTNAME.'_featurebox4_url');
- if ($title) { echo "<h3 class='title'>$title</h3>"; }
- if ($subtitle) { echo "<p class='subtitle'>$subtitle</p>"; }
- if ($image) { echo "<p style='margin-bottom: 0;'>"; }
- if ($url) { echo "<a href='$url'>"; }
- if ($image) { echo "<img src='".bfi_timthumber($image, 192, 120)."' width='192' height='120' style='margin-top: 13px;' noprettyphoto/>"; }
- if ($url) { echo "</a>"; }
- if ($image) { echo "</p>"; }
- if ($text) { echo "<p>$text</p>"; }
- ?>
- <div class="clearfix"></div>
- </div>
- </div>
- <div class="clearfix"></div>
- <?php
- }
Add Comment
Please, Sign In to add comment