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 Template
- *
- Template Name: Home Page Flipped (w/ home widgets)
- *
- * @file home-page.php
- * @package Responsive
- * @author Emil Uzelac
- * @copyright 2003 - 2011 ThemeID
- * @license license.txt
- * @version Release: 1.0
- * @filesource wp-content/themes/responsive/full-width-page.php
- * @link http://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
- * @since available since Release 1.0
- */
- ?>
- <?php get_header(); ?>
- <div id="featured" class="grid col-940">
- <div id="featured-image" class="grid col-460">
- <?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 class="grid col-460 fit">
- <?php $options = get_option('responsive_theme_options');
- // First let's check if headline was set
- if ($options['home_headline']) {
- echo '<h1 class="featured-title">';
- echo $options['home_headline'];
- echo '</h1>';
- // If not display dummy headline for preview purposes
- } else {
- echo '<h1 class="featured-title">';
- echo __('Hello, World!','responsive');
- echo '</h1>';
- }
- ?>
- <?php $options = get_option('responsive_theme_options');
- // First let's check if headline was set
- if ($options['home_subheadline']) {
- echo '<h2 class="featured-subtitle">';
- echo $options['home_subheadline'];
- echo '</h2>';
- // If not display dummy headline for preview purposes
- } else {
- echo '<h2 class="featured-subtitle">';
- echo __('Your H2 subheadline here','responsive');
- echo '</h2>';
- }
- ?>
- <?php $options = get_option('responsive_theme_options');
- // First let's check if content is in place
- if (!empty($options['home_content_area'])) {
- echo '<p>';
- echo do_shortcode($options['home_content_area']);
- echo '</p>';
- // If not let's show dummy content for demo purposes
- } else {
- echo '<p>';
- echo __('Your title, subtitle and this very content is editable from Theme Option. Call to Action button and its destination link as well. Image on your right can be an image or even YouTube video if you like.','responsive');
- echo '</p>';
- }
- ?>
- <?php $options = get_option('responsive_theme_options'); ?>
- <?php if ($options['cta_button'] == 0): ?>
- <div class="call-to-action">
- <?php $options = get_option('responsive_theme_options');
- // First let's check if headline was set
- if (!empty($options['cta_url']) && $options['cta_text']) {
- echo '<a href="'.$options['cta_url'].'" class="blue button">';
- echo $options['cta_text'];
- echo '</a>';
- // If not display dummy headline for preview purposes
- } else {
- echo '<a href="#nogo" class="blue button">';
- echo __('Call to Action','responsive');
- echo '</a>';
- }
- ?>
- </div><!-- end of .call-to-action -->
- <?php endif; ?>
- </div><!-- end of .col-460 fit -->
- </div><!-- end of #featured -->
- <?php get_sidebar('home'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement