Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

feature-top.php

By: a guest on Jan 5th, 2013  |  syntax: None  |  size: 2.22 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php global $wp_theme_options, $feature_top, $feature_top_width; ?>
  2.  
  3. <?php if(preg_match('/^(1|2|3)$/', $feature_top)) : ?>
  4. <div class="wrap" id="feature-top">
  5.  
  6.         <div class="<?php do_action('feature_top_style'); ?>" <?php if($feature_top != 1) echo 'id="feature-top-left"'; ?>>
  7.         <?php if($feature_top == 1) { $feature_top_section = 'Feature Top'; } else { $feature_top_section = 'Feature Top Left'; } ?>
  8.         <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar($feature_top_section) ) : ?>
  9.         <?php if ($wp_theme_options['identify_widget_areas'] == 'yes') : ?>
  10.         <div class="widget">
  11.         <h4>This is a Widget Section</h4>
  12.         <p>This section is widgetized. If you would like to add content to this section, you may do so by using the Widgets panel from within your WordPress Admin Dashboard. This Widget Section is called "<?php if($feature_top == 1) {echo 'Feature Top';} else {echo 'Feature Top Left';} ?>"</p>
  13.         </div>
  14.         <?php endif; endif; ?>
  15.         </div>
  16.        
  17. <?php if ($feature_top == 3) : ?>
  18.         <div class="<?php do_action('feature_top_style'); ?>" id="feature-top-middle">
  19.         <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Feature Top Middle') ) : ?>
  20.         <?php if ($wp_theme_options['identify_widget_areas'] == 'yes') : ?>
  21.         <div class="widget">
  22.         <h4>This is a Widget Section</h4>
  23.         <p>This section is widgetized. If you would like to add content to this section, you may do so by using the Widgets panel from within your WordPress Admin Dashboard. This Widget Section is called "Feature Top Middle"</p>
  24.         </div>
  25.         <?php endif; endif; ?>
  26.         </div>
  27. <?php endif; ?>
  28.  
  29. <?php if(preg_match('/^(2|3)$/', $feature_top)) : ?>
  30.         <div class="<?php do_action('feature_top_style'); ?>" id="feature-top-right">
  31.         <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Feature Top Right') ) : ?>
  32.         <?php if ($wp_theme_options['identify_widget_areas'] == 'yes') : ?>
  33.         <div class="widget">
  34.         <h4>This is a Widget Section</h4>
  35.         <p>This section is widgetized. If you would like to add content to this section, you may do so by using the Widgets panel from within your WordPress Admin Dashboard. This Widget Section is called "Feature Top Right"</p>
  36.         </div>
  37.         <?php endif; endif; ?>
  38.         </div>
  39. <?php endif; ?>
  40.  
  41. </div>
  42. <?php endif; ?>