Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Template Name: Child List */
- /**
- * This template is used for displaying pages.
- *
- * @package Baskerville 2
- */
- get_header(); ?>
- <div class="wrapper section medium-padding child-page">
- <main class="section-inner clear" role="main">
- <?php
- $content_class = 'center';
- ?>
- <div class="content clear <?php echo $content_class; // WPCS: XSS OK. ?>" id="content">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'child-page' ); ?>
- <?php endwhile; else : ?>
- <?php get_template_part( 'content', 'none' ); ?>
- <?php endif; ?>
- <?php
- ?>
- </div> <!-- /content -->
- <?php //get_sidebar(); ?>
- <script>
- jQuery( document ).ready( function( $ ) {
- $('.posts-masonry').masonry({
- // options
- itemSelector: '.post-container',
- columnWidth: '.page-container',
- percentPosition: true
- });
- });
- $('.posts-masonry-disabled').masonry({
- </script>
- </main> <!-- /section-inner -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement