Treść skryptu z pliku single.php(plik odpowiedzialny za pojedyncze posty)
- Kod: Zaznacz wszystko
[spoiler] <?php get_header(); ?>
<!-- #blocks-wrapper-->
<div id="blocks-wrapper" class="clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- /blocks Left -or -right -->
<div id="blocks-left" <?php post_class('eleven columns');?>>
<!-- .post-content-->
<div class="post-content">
<?php
if($data['posts_bread'] == 'On' ) {
if (function_exists('themepacific_breadcrumb')) themepacific_breadcrumb();
}
?>
<!--/.post-outer -->
<div class="post-outer clearfix">
<!--.post-title-->
<div class="post-title"><h1 class="entry-title"><?php the_title(); ?></h1></div>
<!--/.post-title-->
<!--/#post-meta -->
<div class="post-meta-blog">
<span class="meta_author"><?php _e('Posted by', 'themepacific'); ?> <?php the_author_posts_link(); ?></span>
<span class="meta_date"><?php _e('On', 'themepacific'); ?> <?php the_time('F d, Y'); ?></span>
<span class="meta_comments"><?php _e('', 'themepacific'); ?> <a href="<?php comments_link(); ?>"><?php comments_number('0 Comment', '1 Comment', '% Comments'); ?></a></span>
<?php edit_post_link( __( 'Edit', 'themepacific' ), '<span class="edit-link">', '</span>' ); ?>
</div>
<!--/#post-meta -->
<!-- .post_content -->
<div class = 'post_content entry-content'>
<?php the_content(); ?>
<div class="clear"></div>
</div>
<!-- /.post_content -->
<?php wp_link_pages(); ?>
<div class='clear'></div>
<p class="post-tags">
<strong>TOPICS </strong><?php the_tags('',''); ?>
</p>
</div>
<!--/.post-outer -->
</div>
<!-- post-content-->
<?php if($data['posts_navigation'] == 'On'){ ?>
<!-- .single-navigation-->
<div class="single-navigation clearfix">
<div class="previous"><?php previous_post_link('%link', '<i class="icon-double-angle-left"></i><span> Previous:</span>%title'); ?></div>
<div class="next"><?php next_post_link('%link', '<i class="icon-double-angle-right"></i><span>Next: </span> %title ' ); ?></div>
</div>
<!-- /single-navigation-->
<?php } ?>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div>
<!-- /blocks Left-->
<?php get_sidebar(); ?>
<?php get_footer(); ?> [/spoiler]