SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php /* Template Name: Events */ ?> | |
| 2 | <?php | |
| 3 | /** | |
| 4 | * The template for displaying all pages. | |
| 5 | * | |
| 6 | * This is the template that displays all pages by default. | |
| 7 | * Please note that this is the wordpress construct of pages | |
| 8 | * and that other 'pages' on your wordpress site will use a | |
| 9 | * different template. | |
| 10 | * | |
| 11 | * @package WordPress | |
| 12 | * @subpackage Back_My_Book | |
| 13 | * @since Back My Book 1.0 | |
| 14 | */ | |
| 15 | ||
| 16 | get_header(); ?> | |
| 17 | ||
| 18 | <div id="yui-main"> | |
| 19 | <div class="yui-b"> | |
| 20 | <div class="yui-ge"> | |
| 21 | <div id="content" class="yui-u first hfeed"> | |
| 22 | - | <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> |
| 22 | + | |
| 23 | - | |
| 23 | + | <!-- put the your code here --> |
| 24 | - | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 24 | + | |
| 25 | - | <?php if ( is_front_page() ) { ?>
|
| 25 | + | |
| 26 | - | <h2 class="entry-title"><?php the_title(); ?></h2> |
| 26 | + | |
| 27 | - | <?php } else { ?>
|
| 27 | + | |
| 28 | - | <h1 class="entry-title"><?php the_title(); ?></h1> |
| 28 | + | |
| 29 | - | <?php } ?> |
| 29 | + | |
| 30 | - | |
| 30 | + | |
| 31 | - | <div class="entry-content"> |
| 31 | + | |
| 32 | - | <?php the_content(); ?> |
| 32 | + | |
| 33 | - | <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'backmybook' ), 'after' => '</div>' ) ); ?> |
| 33 | + | |
| 34 | - | <?php edit_post_link( __( 'Edit', 'backmybook' ), '<span class="edit-link">', '</span>' ); ?> |
| 34 | + | |
| 35 | - | </div><!-- .entry-content --> |
| 35 | + |