예제 #1
0
            }
            ?>
					<?php 
            if ($chap_author = get_post_meta($post->ID, 'pb_section_author', true)) {
                ?>
						<h2 class="chapter_author"><?php 
                echo $chap_author;
                ?>
</h2>
					<?php 
            }
            ?>

					<?php 
            if (get_post_type($post->ID) !== 'part') {
                if (pb_should_parse_sections()) {
                    $content = pb_tag_sections(apply_filters('the_content', get_the_content()), $post->ID);
                    echo $content;
                } else {
                    $content = apply_filters('the_content', get_the_content());
                    echo $content;
                }
            } else {
                echo apply_filters('the_content', get_post_meta($post->ID, 'pb_part_content', true));
            }
            ?>

				</div><!-- .entry-content -->
			</div><!-- #post-## -->

            }
            // 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 pb_strip_br($bm['post_title']);
            ?>
</a>
						<?php 
            $sections = pb_get_sections($bm['ID']);
            if ($sections && pb_should_parse_sections()) {
                $s = 1;
                ?>
								<ul class="sections">
								<?php 
                foreach ($sections as $id => $name) {
                    ?>
									<li class="section"><a href="<?php 
                    echo get_permalink($bm['ID']);
                    ?>
#<?php 
                    echo $id;
                    ?>
"><?php 
                    echo $name;
                    ?>