$( "#citation-list-<?php print $post->ID; ?> " ).slideToggle(); $( "#citation-header-<?php print $post->ID; ?> " ).toggleClass('expanded collapsed'); $( "#citation-header-<?php print $post->ID; ?> " ).attr('aria-pressed', pressed); }); }); </script> </div> </section> <?php } ?> </div><!-- #content --> <?php comments_template('', true); } else { pb_private(); } get_footer(); } }
<?php if ($fm['post_status'] != 'publish') continue; // Skip ?> <li class="front-matter <?php echo pb_get_section_type( get_post($fm['ID']) ) ?>"><a href="<?php echo get_permalink($fm['ID']); ?>"><?php echo $fm['post_title']; ?></a></li> <?php endforeach; ?> </ul> </li> <?php foreach ($book['part'] as $part) : ?> <li><h4><?php if ( count( $book['part'] ) > 1 ) echo $part['post_title']; ?></h4><ul> <?php foreach ($part['chapters'] as $chapter) : ?> <?php if ($chapter['post_status'] != 'publish') continue; // Skip ?> <li class="chapter <?php echo pb_get_section_type( get_post($chapter['ID']) ) ?>"><a href="<?php echo get_permalink($chapter['ID']); ?>"><?php echo $chapter['post_title']; ?></a></li> <?php endforeach; ?> </ul></li> <?php endforeach; ?> <li> <ul> <?php foreach ($book['back-matter'] as $bm) : ?> <?php if ($bm['post_status'] != 'publish') continue; // Skip ?> <li class="back-matter <?php echo pb_get_section_type( get_post($bm['ID']) ) ?>"><a href="<?php echo get_permalink($bm['ID']); ?>"><?php echo $bm['post_title']; ?></a></li> <?php endforeach; ?> </ul> </li> </ul> </div><!-- #post-## --> <?php else: ?> <?php pb_private(); ?> <?php endif; ?> <?php get_footer(); ?>