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 the_content( ); ?>
- <?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; ?>
- </div> <!-- /content -->
- </main> <!-- /section-inner -->
- <?php get_footer(); ?>
- <script>
- console.log('JQUERY');
- $('.posts-masonry').masonry({
- itemSelector: '.page-container',
- columnWidth: 300
- });
- </script>
- <!--
- jQuery( document ).ready( function( $ ) {
- $('.posts-masonry').masonry({
- // options
- itemSelector: '.page-container',
- percentPosition: true
- });
- });
- $('.posts-masonry-disabled').masonry({
- /*
- // masonry
- $('.posts-masonry').masonry({
- itemSelector: '.page-container',
- columnWidth: 300
- });
- setTimeout(
- function()
- {
- console.log('DELAY');
- $('.posts-masonry').masonry({
- itemSelector: '.page-container',
- columnWidth: 300
- });
- }, 3000);
- */
- -->
Advertisement
Add Comment
Please, Sign In to add comment