niyazadvt

Responsive Child theme Home Page Code

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