~canonical-sysadmins/wordpress/wp-theme-ubuntustudio-wp

« back to all changes in this revision

Viewing changes to ubuntustudio-wp/content-excerpts.php

  • Committer: Pasi Lallinaho
  • Date: 2012-03-06 09:49:51 UTC
  • Revision ID: pasi@shimmerproject.org-20120306094951-vyosk8dtkd6jcvas
Initial commit for the new Ubuntu Studio website.
This repository contains content that can be copied directly to the wp-content/themes/ directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
                <?php if (have_posts()) : ?>
 
2
                        <?php while (have_posts()) : the_post(); $post_num++; ?>
 
3
 
 
4
                                <?php $post_class = "post-order" . $post_num; ?>
 
5
 
 
6
                                <div <?php post_class( $post_class ); ?> id="post-<?php the_ID(); ?>">
 
7
                                        <h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
 
8
                                        <?php /* post itself */ ?>
 
9
                                        <div class="post-post">
 
10
                                                <div class="post-entry entry"><?php the_excerpt( ); ?></div>
 
11
                                        </div>
 
12
                                        <?php /* post meta data */ ?>
 
13
                                        <?php if( !is_page( ) ) { ?>
 
14
                                                <div class="post-meta">
 
15
                                                        <?php /* translators: php strftime() format */ ?>
 
16
                                                        <span class="post-time"><?php print strftime( __( '%B %e, %Y', 'easy' ), get_the_time('U') ); ?></span>
 
17
                                                        <?php if( !is_single() && !is_page() ) { ?><span class="comments">
 
18
                                                                &mdash;
 
19
                                                                <?php comments_popup_link( __( 'No comments »', 'easy' ), __( '1 comment »', 'easy' ), sprintf( __( '%1$s comments »', 'easy' ), "%" ) ); ?>
 
20
                                                        </span><?php } ?>
 
21
                                                        <br />
 
22
                                                        <span class="post-cat"><?php the_category( ', ', 'multiple' ); ?></span>
 
23
                                                        <?php the_tags( '&mdash; <span class="post-tags">', ', ', '</span>' ); ?>
 
24
                                                </div>
 
25
                                        <?php } ?>
 
26
                                </div>
 
27
 
 
28
                                <?php if( !is_page() ) { comments_template(); } ?>
 
29
 
 
30
                        <?php endwhile; ?>
 
31
                <?php else : ?>
 
32
                        <div class="notfound">
 
33
                                <h3><?php _e( 'Page Not Found', 'easy' ); ?></h3>
 
34
                                <p><?php _e( 'I\'m sorry, but you\'re looking for something that is not here.', 'easy' ); ?></p>
 
35
                        </div>
 
36
                <?php endif; ?>