Advertisement
grappler

home.php (full width slider)

Sep 9th, 2012
1,349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7. * Home Page
  8. *
  9. * Note: You can overwrite home.php as well as any other Template in Child Theme.
  10. * Create the same file (name) include in /responsive-child-theme/ and you're all set to go!
  11. * @see http://codex.wordpress.org/Child_Themes
  12. *
  13. * @file home.php
  14. * @package Responsive
  15. * @author Emil Uzelac
  16. * @copyright 2003 - 2012 ThemeID
  17. * @license license.txt
  18. * @version Release: 1.0
  19. * @filesource wp-content/themes/responsive/home.php
  20. * @link http://codex.wordpress.org/Template_Hierarchy
  21. * @since available since Release 1.0
  22. */
  23. ?>
  24. <?php get_header(); ?>
  25.  
  26. <div id="featured" class="grid col-940">
  27.  
  28. <div id="featured-image" class="grid col-940 fit">
  29.  
  30. <?php $options = get_option('responsive_theme_options');
  31. // First let's check if image was set
  32. if (!empty($options['featured_content'])) {
  33. echo do_shortcode($options['featured_content']);
  34. // If not display dummy image for preview purposes
  35. } else {
  36. echo '<img class="aligncenter" src="'.get_stylesheet_directory_uri().'/images/featured-image.png" width="440" height="300" alt="" />';
  37. }
  38. ?>
  39.  
  40. </div><!-- end of #featured-image -->
  41.  
  42. </div><!-- end of #featured -->
  43.  
  44. <?php get_sidebar('home'); ?>
  45. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement