page.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The template for displaying all pages
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages and that
  7. * other 'pages' on your WordPress site will use a different template.
  8. *
  9. * @package WordPress
  10. * @subpackage Twenty_Fourteen
  11. * @since Twenty Fourteen 1.0
  12. */
  13. get_header(); ?>
  14. <?php if ( is_front_page() ) { ?>
  15. <div class="slider">
  16. <div class="bg-color">
  17. <div class="inner-wrapper">
  18. <?php
  19. echo do_shortcode("[metaslider id=130]");
  20. ?>
  21. </div>
  22. </div>
  23. </div>
  24. <?php } ?>
  25. <div id="main-content" class="main-content inner-wrapper">
  26. <div id="primary" class="content-area">
  27. <div id="content" class="site-content" role="main">
  28. <?php
  29. // Start the Loop.
  30. while ( have_posts() ) : the_post();
  31. // Include the page content template.
  32. get_template_part( 'content', 'page' );
  33. endwhile;
  34. ?>
  35. </div><!-- #content -->
  36. </div><!-- #primary -->
  37. </div><!-- #main-content -->
  38. <?php
  39. get_footer();