Want more features on Pastebin? Sign Up, it's FREE!
Guest

sidebar-home.php

By: a guest on Nov 27th, 2012  |  syntax: PHP  |  size: 1.41 KB  |  views: 87  |  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
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Home Widgets Template
  8.  *
  9.  *
  10.  * @file           sidebar-home.php
  11.  * @package        Responsive
  12.  * @author         Emil Uzelac
  13.  * @copyright      2003 - 2012 ThemeID
  14.  * @license        license.txt
  15.  * @version        Release: 1.0
  16.  * @filesource     wp-content/themes/responsive/sidebar-home.php
  17.  * @link           http://codex.wordpress.org/Theme_Development#Widgets_.28sidebar.php.29
  18.  * @since          available since Release 1.0
  19.  */
  20. ?>  
  21.     <div id="widgets" class="home-widgets">
  22.         <div class="grid col-940">
  23.         <?php responsive_widgets(); // above widgets hook ?>
  24.            
  25.             <?php if (!dynamic_sidebar('home-widget-1')) : ?>
  26.             <div class="widget-wrapper">
  27.            
  28.                 <div class="widget-title-home"><h3><?php _e('Home Widget 1', 'responsive'); ?></h3></div>
  29.                 <div class="textwidget"><?php _e('This is your first home widget box. To edit please go to Appearance > Widgets and choose 6th widget from the top in area six called Home Widget 1. Title is also manageable from widgets as well.','responsive'); ?></div>
  30.            
  31.                         </div><!-- end of .widget-wrapper -->
  32.                         <?php endif; //end of home-widget-1 ?>
  33.  
  34.         <?php responsive_widgets_end(); // responsive after widgets hook ?>
  35.         </div><!-- end of .col-940 -->
  36.  
  37.     </div><!-- end of #widgets -->
clone this paste RAW Paste Data