Clean up
This commit is contained in:
parent
ec269f6128
commit
17ff78b20e
|
@ -1,9 +1,11 @@
|
|||
# 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
|
||||
|
||||
* Base reset and normalisation styles
|
||||
* 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
File diff suppressed because one or more lines are too long
20
footer.php
20
footer.php
|
@ -1,11 +1,11 @@
|
|||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© <?php bloginfo( 'name' ); ?> <?php echo date( 'Y' ); ?></p>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/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 src="<?php bloginfo( 'template_url' ); ?>/js/script.js"></script>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© <?php bloginfo( 'name' ); ?> <?php echo date( 'Y' ); ?></p>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="//code.jquery.com/jquery.min.js"></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>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
43
header.php
43
header.php
|
@ -1,24 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
|
||||
<title><?php wp_title( ' – ', true, 'right' ); bloginfo( 'name' ); ?></title>
|
||||
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
|
||||
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
||||
<?php wp_head(); ?>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<h1><a href="<?php echo site_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<nav>
|
||||
<ul class="nav">
|
||||
<?php wp_list_pages( 'title_li=' ); ?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
|
||||
<title><?php wp_title( ' – ', true, 'right' ); bloginfo( 'name' ); ?></title>
|
||||
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
|
||||
<?php wp_head(); ?>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<h1><a href="<?php echo site_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<nav>
|
||||
<ul class="nav">
|
||||
<?php wp_list_pages( 'title_li=' ); ?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
56
index.php
56
index.php
|
@ -1,42 +1,36 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<<<<<<< HEAD
|
||||
<div class="content container">
|
||||
|
||||
<div class="main">
|
||||
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article <?php post_class(); ?>>
|
||||
|
||||
<header>
|
||||
<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="comments"><?php comments_popup_link( 'No comments yet', '1 comment', '% comments' ); ?></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>
|
||||
|
||||
<article <?php post_class(); ?>>
|
||||
|
||||
<header>
|
||||
<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="comments"><?php comments_popup_link( 'No comments yet', '1 comment', '% comments' ); ?></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 while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
>>>>>>> e5b0a5f1e5b29ff6247673f4f848f03a9d4209f2
|
||||
|
||||
<?php get_footer(); ?>
|
30
page.php
30
page.php
|
@ -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(); ?>
|
35
single.php
35
single.php
|
@ -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(); ?>
|
Loading…
Reference in New Issue