sbstn_becker

child-page.php 14072020

Jul 14th, 2020
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. <?php the_content( ); ?>
  15.  
  16. <?php
  17. $content_class = 'center';
  18. ?>
  19. <div class="content clear <?php echo $content_class; // WPCS: XSS OK. ?>" id="content">
  20.  
  21. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  22.  
  23. <?php get_template_part( 'content', 'child-page' ); ?>
  24.  
  25. <?php endwhile; else : ?>
  26.  
  27. <?php get_template_part( 'content', 'none' ); ?>
  28.  
  29. <?php endif; ?>
  30.  
  31.  
  32.  
  33. </div> <!-- /content -->
  34.  
  35.  
  36.  
  37.  
  38. </main> <!-- /section-inner -->
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. <?php get_footer(); ?>
  46.  
  47.  
  48. <script>
  49. console.log('JQUERY');
  50.  
  51. $('.posts-masonry').masonry({
  52. itemSelector: '.page-container',
  53. columnWidth: 300
  54. });
  55.  
  56. </script>
  57.  
  58. <!--
  59. jQuery( document ).ready( function( $ ) {
  60. $('.posts-masonry').masonry({
  61. // options
  62. itemSelector: '.page-container',
  63. percentPosition: true
  64. });
  65. });
  66. $('.posts-masonry-disabled').masonry({
  67. /*
  68.  
  69.  
  70. // masonry
  71.  
  72. $('.posts-masonry').masonry({
  73. itemSelector: '.page-container',
  74. columnWidth: 300
  75. });
  76.  
  77. setTimeout(
  78. function()
  79. {
  80. console.log('DELAY');
  81. $('.posts-masonry').masonry({
  82. itemSelector: '.page-container',
  83. columnWidth: 300
  84. });
  85. }, 3000);
  86. */
  87. -->
RAW Paste Data