page-home.php 798 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. Template Name: Home
  4. */
  5. ?>
  6. <?php
  7. /**
  8. * @package WordPress
  9. * @subpackage Default_Theme
  10. */
  11. get_header(); ?>
  12. <?php if ( is_front_page() ) { ?>
  13. <div class="slider">
  14. <div class="bg-color">
  15. <div class="inner-wrapper">
  16. <?php
  17. echo do_shortcode("[metaslider id=130 percentwidth=100]");
  18. ?>
  19. </div>
  20. </div>
  21. </div>
  22. <?php } ?>
  23. <div id="main-content" class="main-content inner-wrapper">
  24. <div id="primary" class="content-area">
  25. <div id="content" class="site-content" role="main">
  26. <?php
  27. // Start the Loop.
  28. while ( have_posts() ) : the_post();
  29. // Include the page content template.
  30. get_template_part( 'content', 'page' );
  31. endwhile;
  32. ?>
  33. </div><!-- #content -->
  34. </div><!-- #primary -->
  35. </div><!-- #main-content -->
  36. <?php get_footer(); ?>