Advertisement
grappler

home.php - wide text

Oct 4th, 2012
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.34 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.             <?php $options = get_option('responsive_theme_options');
  29.             // First let's check if headline was set
  30.                 if ($options['home_headline']) {
  31.                     echo '<h1 class="featured-title">';
  32.                     echo $options['home_headline'];
  33.                     echo '</h1>';
  34.             // If not display dummy headline for preview purposes
  35.                   } else {
  36.                     echo '<h1 class="featured-title">';
  37.                     echo __('Hello, World!','responsive');
  38.                     echo '</h1>';
  39.                   }
  40.             ?>
  41.                    
  42.             <?php $options = get_option('responsive_theme_options');
  43.             // First let's check if headline was set
  44.                 if ($options['home_subheadline']) {
  45.                     echo '<h2 class="featured-subtitle">';
  46.                     echo $options['home_subheadline'];
  47.                     echo '</h2>';
  48.             // If not display dummy headline for preview purposes
  49.                   } else {
  50.                     echo '<h2 class="featured-subtitle">';
  51.                     echo __('Your H2 subheadline here','responsive');
  52.                     echo '</h2>';
  53.                   }
  54.             ?>
  55.            
  56.             <?php $options = get_option('responsive_theme_options');
  57.             // First let's check if content is in place
  58.                 if (!empty($options['home_content_area'])) {
  59.                     echo '<p>';
  60.                     echo do_shortcode($options['home_content_area']);
  61.                     echo '</p>';
  62.             // If not let's show dummy content for demo purposes
  63.                   } else {
  64.                     echo '<p>';
  65.                     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');
  66.                     echo '</p>';
  67.                   }
  68.             ?>
  69.            
  70.             <?php $options = get_option('responsive_theme_options'); ?>
  71.             <?php if ($options['cta_button'] == 0): ?>    
  72.             <div class="call-to-action">
  73.  
  74.             <?php $options = get_option('responsive_theme_options');
  75.             // First let's check if headline was set
  76.                 if (!empty($options['cta_url']) && $options['cta_text']) {
  77.                     echo '<a href="'.$options['cta_url'].'" class="blue button">';
  78.                     echo $options['cta_text'];
  79.                     echo '</a>';
  80.             // If not display dummy headline for preview purposes
  81.                   } else {
  82.                     echo '<a href="#nogo" class="blue button">';
  83.                     echo __('Call to Action','responsive');
  84.                     echo '</a>';
  85.                   }
  86.             ?>  
  87.            
  88.             </div><!-- end of .call-to-action -->
  89.             <?php endif; ?>
  90.        
  91.         </div><!-- end of #featured -->
  92.                
  93. <?php get_sidebar('home'); ?>
  94. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement