Skip to content

Commit

Permalink
_s: Adding starter styles along with a few markup changes to accomoda…
Browse files Browse the repository at this point in the history
…te them
  • Loading branch information
ianstewart committed Jan 13, 2012
1 parent 803ddfe commit a81dc6a
Show file tree
Hide file tree
Showing 7 changed files with 461 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
2 changes: 1 addition & 1 deletion content-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->

<footer class="entry-meta">
Expand Down
2 changes: 1 addition & 1 deletion content.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_s' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>

Expand Down
2 changes: 1 addition & 1 deletion image.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</div><!-- .entry-attachment -->

<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>

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

Expand Down
6 changes: 5 additions & 1 deletion inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
function _s_content_nav( $nav_id ) {
global $wp_query;

$nav_class = 'site-navigation paging-navigation';
if ( is_single() )
$nav_class = 'site-navigation post-navigation';

?>
<nav id="<?php echo $nav_id; ?>">
<nav id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>">
<h1 class="assistive-text"><?php _e( 'Post navigation', '_s' ); ?></h1>

<?php if ( is_single() ) : // navigation links for single posts ?>
Expand Down
13 changes: 13 additions & 0 deletions searchform.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* The template for displaying search forms in _s
*
* @package _s
* @since _s 1.0
*/
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="assistive-text"><?php _e( 'Search', '_s' ); ?></label>
<input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', '_s' ); ?>" />
<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', '_s' ); ?>" />
</form>
Loading

0 comments on commit a81dc6a

Please sign in to comment.