This commit is contained in:
Mike Francis 2012-11-13 23:53:02 +00:00
parent ec269f6128
commit 17ff78b20e
9 changed files with 62 additions and 134 deletions

View File

@ -1,9 +1,11 @@
# barebones # barebones
An (almost) blank WordPress theme for HTML5 and beyond. Great as a starting point for any project with powerful features to encourage rapid development. A lightweight, skinny WordPress theme for HTML5 and beyond. Great as a starting point for any project with powerful features to encourage rapid development for most projects
## Features ## Features
* Base reset and normalisation styles * Base reset and normalisation styles
* Index and page Loop templates * Index and page Loop templates
* Customised functions file containing useful starting points * Customised functions file containing useful starting points
* Tidy and organised folder structure
* Comes pre-bundled with latest CDN version of jQuery and fallback

File diff suppressed because one or more lines are too long

2
_/js/libs/jquery.min.js vendored Executable file

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
<p>&copy; <?php bloginfo( 'name' ); ?> <?php echo date( 'Y' ); ?></p> <p>&copy; <?php bloginfo( 'name' ); ?> <?php echo date( 'Y' ); ?></p>
</div> </div>
</footer> </footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="//code.jquery.com/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php bloginfo( 'template_url' ); ?>/js/libs/jquery-1.7.1.min.js"><\/script>')</script> <script>window.jQuery || document.write('<script src="<?php bloginfo( 'template_url' ); ?>/_/js/libs/jquery.min.js"><\/script>')</script>
<script src="<?php bloginfo( 'template_url' ); ?>/js/script.js"></script> <script src="<?php bloginfo( 'template_url' ); ?>/js/script.js"></script>
<?php wp_footer(); ?> <?php wp_footer(); ?>
</body> </body>
</html> </html>

View File

@ -1,24 +1,23 @@
<!DOCTYPE html> <!DOCTYPE html>
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>
<head> <head>
<meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" /> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<title><?php wp_title( ' &ndash; ', true, 'right' ); bloginfo( 'name' ); ?></title> <title><?php wp_title( ' &ndash; ', true, 'right' ); bloginfo( 'name' ); ?></title>
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php wp_head(); ?>
<?php wp_head(); ?> <!--[if lt IE 9]>
<!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
<![endif]--> </head>
</head> <body <?php body_class(); ?>>
<body <?php body_class(); ?>> <header class="header">
<header class="header"> <div class="container">
<div class="container"> <h1><a href="<?php echo site_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h1><a href="<?php echo site_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1> <nav>
<nav> <ul class="nav">
<ul class="nav"> <?php wp_list_pages( 'title_li=' ); ?>
<?php wp_list_pages( 'title_li=' ); ?> </ul>
</ul> </nav>
</nav> </div>
</div> </header>
</header>

View File

@ -1,42 +1,36 @@
<?php get_header(); ?> <?php get_header(); ?>
<<<<<<< HEAD
<div class="content container"> <div class="content container">
<div class="main"> <div class="main">
<?php while ( have_posts() ) : the_post(); ?> <?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>> <article <?php post_class(); ?>>
<header> <header>
<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="date"><time pubdate datetime="<?php echo $post->post_date; ?>"><?php the_time( get_option( 'date_format' ) ); ?></time></p> <p class="date"><time pubdate datetime="<?php echo $post->post_date; ?>"><?php the_time( get_option( 'date_format' ) ); ?></time></p>
<p class="comments"><?php comments_popup_link( 'No comments yet', '1 comment', '% comments' ); ?></p> <p class="comments"><?php comments_popup_link( 'No comments yet', '1 comment', '% comments' ); ?></p>
</header> </header>
<?php the_content( __( 'Read More' ) ); ?> <?php the_content( __( 'Read More' ) ); ?>
</article> </article>
<?php endwhile; ?> <?php endwhile; ?>
<div class="pagination"> <div class="pagination">
<div class="alignleft"><?php previous_posts_link( 'Previous Entries' ) ?></div> <div class="alignleft"><?php previous_posts_link( 'Previous Entries' ) ?></div>
<div class="alignright"><?php next_posts_link( 'Next Entries','' ) ?></div> <div class="alignright"><?php next_posts_link( 'Next Entries','' ) ?></div>
</div> </div>
</div> </div>
<aside class="sidebar"> <aside class="sidebar">
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
</aside> </aside>
</div> </div>
=======
<?php while ( have_posts() ) : the_post(); ?>
<?php endwhile; ?>
>>>>>>> e5b0a5f1e5b29ff6247673f4f848f03a9d4209f2
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -1,30 +0,0 @@
<?php get_header(); ?>
<div class="content container">
<div class="main">
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<?php the_content(); ?>
</article>
<?php endwhile; ?>
<div class="pagination">
<div class="alignleft"><?php previous_posts_link( 'Previous Entries' ) ?></div>
<div class="alignright"><?php next_posts_link( 'Next Entries','' ) ?></div>
</div>
</div>
<aside class="sidebar">
<?php get_sidebar(); ?>
</aside>
</div>
<?php get_footer(); ?>

View File

@ -1,35 +0,0 @@
<?php get_header(); ?>
<div class="content container">
<div class="main">
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<header>
<h1 class="title"><?php the_title(); ?></h1>
<p class="date"><time pubdate datetime="<?php echo $post->post_date; ?>"><?php the_time( get_option( 'date_format' ) ); ?></time></p>
</header>
<?php the_content( __( 'Read More' ) ); ?>
</article>
<?php endwhile; ?>
<div class="pagination">
<div class="alignleft"><?php previous_posts_link( 'Previous Entries' ) ?></div>
<div class="alignright"><?php next_posts_link( 'Next Entries','' ) ?></div>
</div>
</div>
<aside class="sidebar">
<?php get_sidebar(); ?>
</aside>
</div>
<?php get_footer(); ?>