if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <?php get_template_part('content-single'); ?> <?php } ?> <?php wp_recent_posts(); ?> <?php } else { ?> В данном разделе ещё нет записей. <?php } ?> </div> <?php if (comments_open() || get_comments_number()) { comments_template(); } ?> </div>
if($show_pages == "true"){?> <div class="box_head clearfix"> <h3 class="wpbook_box_header"> <?php _e('Pages'); ?></h3> <ul> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> </div> <?php }?> <div class="box_head clearfix"> <h3 class="wpbook_box_header"> <?php _e('Recent Posts'); ?></h3> <ul> <?php wp_recent_posts(10); ?> </ul> </div> <?php if($give_credit == "true"){ ?> <div class="box_head clearfix" style="padding: 5px 0 0 0;"> <p><small> This Facebook Application powered by <a href="http://www.wordpress.org/extend/plugins/wpbook/">the WPBook plugin</a> for <a href="http://www.wordpress.org/">WordPress</a>. </small></p> </div> <?php } ?> <?php if($enable_profile_link == "true" ){ ?> <script type="text/javascript"> FB_RequireFeatures(["XFBML"],function() { FB.Facebook.init('<?php echo $api_key; ?>',
?> </ul> </div> <?php } // end if for show pages, show list if ($show_post_list == "true") { ?> <div class="box_head clearfix"> <h3 class="wpbook_box_header"> <?php _e('Recent Posts'); ?> </h3> <ul><?php wp_recent_posts($recent_post_list_amount); ?> </ul> </div> <?php } if ($give_credit == "true") { ?> <div class="box_head clearfix" style="padding: 5px 0 0 0;"> <p><small>This Facebook Application powered by <a href="http://www.wordpress.org/extend/plugins/wpbook/">the WPBook plugin</a> for <a href="http://www.wordpress.org/">WordPress</a>.</small></p> </div><?php } ?> <div id="fb-root"></div> <script>