-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
42 lines (37 loc) · 1.45 KB
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?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-child-theme/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">
<?php $options = get_option('responsive_theme_options');
// First let's check if content is in place
if (!empty($options['home_content_area'])) {
echo do_shortcode($options['home_content_area']);
// 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>';
}
?>
</div><!-- end of #featured -->
<?php get_sidebar('home'); ?>
<?php get_footer(); ?>