Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Exit if accessed directly
- if ( !defined('ABSPATH')) exit;
- /**
- * Home Page
- *
- * Note: You can overwrite home.php as well as any other Template in Child Theme.
- * Create the same file (name) include in /responsive-child-theme/ and you're all set to go!
- * @see http://codex.wordpress.org/Child_Themes
- *
- * @file home.php
- * @package Responsive
- * @author Emil Uzelac
- * @copyright 2003 - 2012 ThemeID
- * @license license.txt
- * @version Release: 1.0
- * @filesource wp-content/themes/responsive/home.php
- * @link http://codex.wordpress.org/Template_Hierarchy
- * @since available since Release 1.0
- */
- ?>
- <?php get_header(); ?>
- <div id="featured" class="grid col-940">
- <div id="featured-image" class="grid col-940 fit">
- <?php $options = get_option('responsive_theme_options');
- // First let's check if image was set
- if (!empty($options['featured_content'])) {
- echo do_shortcode($options['featured_content']);
- // If not display dummy image for preview purposes
- } else {
- echo '<img class="aligncenter" src="'.get_stylesheet_directory_uri().'/images/featured-image.png" width="440" height="300" alt="" />';
- }
- ?>
- </div><!-- end of #featured-image -->
- </div><!-- end of #featured -->
- <?php get_sidebar('home'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement