Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wycks committed Oct 17, 2011
0 parents commit 09a16a4
Show file tree
Hide file tree
Showing 25 changed files with 1,518 additions and 0 deletions.
45 changes: 45 additions & 0 deletions 404.php
@@ -0,0 +1,45 @@
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/

get_header(); ?>


<div id="primary">
<div id="content">

<article id="post-0" class="post error404 not-found" role="article">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'WP-Skeleton' ); ?></h1>
</header>

<div class="entry-content">
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'WP-Skeleton' ); ?></p>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<div class="widget">
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'themename' ); ?></h2>
<ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 'TRUE', 'title_li' => '', 'number' => '10' ) ); ?>
</ul>
</div>

<?php
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'WP-Skeleton' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>



</div><!-- .entry-content -->
</article><!-- #post-0 -->

</div><!-- #content -->
</div><!-- #primary -->

<?php get_footer(); ?>
44 changes: 44 additions & 0 deletions README
@@ -0,0 +1,44 @@
WP-Skeleton - WordPress Theme
---------------

This is a very minimal Bare Bones Responsive WordPress theme based on getskeleton.com


###Features:

- Very Easy to customise, it's basically a blank theme.
- Responsive Media Query Layout
- Very small footprint: Entire theme is only 55kb
- Very small load query, only 15-20 WordPress queries made to the DB by default.
- Bundled with full 960 based CSS Responsive Grid
- Icon support for mobile and web
- IE HTML5shim support



- **Default 4 layouts**:
- Base 960 Grid 960px
- Tablet (Portrait) 768px
- Mobile (Portrait) 320px
- Mobile (Landscape) 480px

###What's is included:

*WordPress Menu support ( Drag & Drop)*
- The menu floats right on the large sizes, then floats left on mobile.

*Widget Support*
- By default it has a widgitized sidebar and footer.

*Comment, Full Width Page, Author, 404* --> Templates

Some basic template tags for Site Title, Tagline, Post Meta.

An additional Folder Called "Snippets" you can comment in/out that is pre-filled with ton of default WordPress features.

This is called in the functions.php and is commented out by default.( in add-stuff.php and remove-stuff.php) )

###What it does not have:

*Search , Archives, Category, Single, Image, Tag* --> templates.
Everything is handled by the main loop
26 changes: 26 additions & 0 deletions author.php
@@ -0,0 +1,26 @@
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/

get_header(); ?>

<section id="primary" role="region">
<div id="content">

<?php the_post(); ?>

<header class="page-header">
<h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'WP-Skeleton' ), "<a class='author' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h1>
</header>

<?php rewind_posts(); ?>

<?php get_template_part( 'loop', 'author' ); ?>

</div><!-- #content -->
</section><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
67 changes: 67 additions & 0 deletions comments.php
@@ -0,0 +1,67 @@
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
?>

<div id="comments">
<?php if ( post_password_required() ) : ?>
<div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'WP-Skeleton' ); ?></div>
</div><!-- .comments -->
<?php return;
endif;
?>

<?php // You can start editing here -- including this comment! ?>

<?php if ( have_comments() ) : ?>
<h2 id="comments-title">
<?php
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number()),
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
?>
</h2>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above">
<h1 class="section-heading"><?php _e( 'Comment navigation'); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments') ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;') ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>

<ol class="commentlist">
<?php wp_list_comments(); ?>
</ol>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below">
<h1 class="section-heading"><?php _e( 'Comment navigation'); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>

<?php else : // this is displayed if there are no comments so far ?>

<?php if ( comments_open() ) : // If comments are open, but there are no comments ?>

<?php else : // or, if we don't have comments:

/* If there are no comments and comments are closed,
* let's leave a little note, shall we?
* But only on posts! We don't want the note on pages.
*/
if ( ! comments_open() && ! is_page() ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.'); ?></p>
<?php endif; // end ! comments_open() && ! is_page() ?>


<?php endif; ?>

<?php endif; ?>

<?php comment_form(array('comment_notes_after' => '')); ?>

23 changes: 23 additions & 0 deletions footer.php
@@ -0,0 +1,23 @@
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
?>
<div class="clear"></div>
<div class="footer">
<hr />
<div class="sixteen columns">

<?php if ( is_active_sidebar( 'footer-sidebar' ) ) : ?> <?php dynamic_sidebar( 'footer-sidebar' ); ?>
<?php else : ?><p>You need to drag a widget into your sidebar in the WordPress Admin</p>
<?php endif; ?>

</div>
</div>

</div>
<?php wp_footer(); ?>

</body>
</html>
34 changes: 34 additions & 0 deletions full-width-page.php
@@ -0,0 +1,34 @@
<?php
/**
* Template Name: Full-width, no sidebar
* Description: A full-width template with no sidebar
*
* @package WordPress
* @subpackage WP-Skeleton
*/

get_header(); ?>

<div id="primary" class="full-width">
<div id="content">

<?php the_post(); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article">
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->

<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'WP-Skeleton' ) . '&after=</div>' ); ?>
<?php edit_post_link( __( 'Edit', 'themename' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->

<?php comments_template( '', true ); ?>

</div><!-- #content -->
</div><!-- #primary -->

<?php get_footer(); ?>
49 changes: 49 additions & 0 deletions functions.php
@@ -0,0 +1,49 @@
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/

// drag and drop menu support
register_nav_menu( 'primary', 'Primary Menu' );


//widget support for a right sidebar
register_sidebar(array(
'name' => 'Right SideBar',
'id' => 'right-sidebar',
'description' => 'Widgets in this area will be shown on the right-hand side.',
'before_title' => '<h3>',
'after_title' => '</h3>'
));

//widget support for the footer
register_sidebar(array(
'name' => 'Footer SideBar',
'id' => 'footer-sidebar',
'description' => 'Widgets in this area will be shown in the footer.',
'before_title' => '<h3>',
'after_title' => '</h3>'
));

//This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );


//Apply do_shortcode() to widgets so that shortcodes will be executed in widgets
add_filter('widget_text', 'do_shortcode');


/**
* MANAGE REMOVING OR ADDING STUFF (aka Function Snippets)
* comment in or out what you want
*/

// remove stuff, uncomment to enable
//require_once( get_template_directory() . '/snippets/remove-stuff.php' );

// add stuff
//require_once( get_template_directory() . '/snippets/add-stuff.php' );


?>
49 changes: 49 additions & 0 deletions header.php
@@ -0,0 +1,49 @@
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
?>

<head>

<meta charset="<?php bloginfo( 'charset' ); ?>" />

<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->

<title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title>

<meta name="description" content="<?php bloginfo('description'); ?>" />

<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<!-- CSS
================================================== -->
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/stylesheets/base.css">
<link rel="stylesheet" href= "<?php echo get_template_directory_uri(); ?>/style.css">
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/stylesheets/layout.css">

<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/images/favicon.ico">
<link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/images/apple-touch-icon-114x114.png">

<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>><!-- the Body -->

<div class="container">

<?php get_template_part( 'menu', 'index' ); // get the blog header( menu + logo/site title) ?>
Binary file added images/apple-touch-icon-114x114.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/apple-touch-icon-72x72.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/favicon.ico
Binary file not shown.
16 changes: 16 additions & 0 deletions index.php
@@ -0,0 +1,16 @@
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>

<?php get_header(); //the Header ?>

<?php get_template_part( 'loop', 'index' ); //the Loop ?>

<?php get_template_part( 'sidebar', 'index' ); //the Sidebar ?>

<?php get_footer(); //the Footer ?>

0 comments on commit 09a16a4

Please sign in to comment.