Advertisement
sbstn_becker

Untitled

Jun 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.07 KB | None | 0 0
  1. <?php
  2. /* Template Name: Child List */
  3.  
  4. /**
  5.  * This template is used for displaying pages.
  6.  *
  7.  * @package Baskerville 2
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12.     <div class="wrapper section medium-padding child-page">
  13.     <main class="section-inner clear" role="main">
  14.  
  15.         <?php
  16.             $content_class = 'center';
  17.         ?>
  18.         <div class="content clear <?php echo $content_class; // WPCS: XSS OK. ?>" id="content">
  19.  
  20.             <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  21.  
  22.                 <?php get_template_part( 'content', 'child-page' ); ?>
  23.  
  24.             <?php endwhile; else : ?>
  25.            
  26.                 <?php get_template_part( 'content', 'none' ); ?>
  27.  
  28.                         <?php endif; ?>
  29.  
  30.  
  31.  
  32. <?php
  33.  
  34. ?>
  35.  
  36.                     </div> <!-- /content -->
  37.        
  38.         <?php //get_sidebar(); ?>
  39.  
  40.            
  41. <script>
  42. jQuery( document ).ready( function( $ ) {
  43.   $('.posts-masonry').masonry({
  44.     // options
  45.     itemSelector: '.post-container',
  46.     columnWidth: '.page-container',
  47.     percentPosition: true
  48.   });
  49. });
  50.     $('.posts-masonry-disabled').masonry({
  51.        
  52. </script>
  53.  
  54.            
  55.             </main> <!-- /section-inner -->
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement