Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
initial hack
Browse files Browse the repository at this point in the history
  • Loading branch information
jeckman committed May 19, 2012
1 parent d9f1683 commit 36ae7c1
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 91 deletions.
8 changes: 7 additions & 1 deletion README.md
@@ -1,4 +1,10 @@
nameless-boilerplate
====================

Nameless Boilerplate
Nameless Boilerplate

This project is to take the "nameless" theme and integrate it with HTML 5
boilerplate, to make a responsive theme.

Not much to see here yet.

17 changes: 5 additions & 12 deletions footer.php
@@ -1,15 +1,8 @@
<div id="footer" class="clearfix">
<div class="footer_text">

<a href="#">Top</a>
<div>&nbsp;</div>
<a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a> is powered by <a href="http://wordpress.org">WordPress</a> and a lightly modified version of the <a href="http://koch-werkstatt.de/2010/03/21/wordpress-theme-nameless/">Nameless Theme</a>. Copyright 2007-2012 John Eckman (<a href="https://plus.google.com/116364085212589603633?rel=author">Google+</a>), <a href="http://creativecommons.org/licenses/by/3.0/">Some Rights Reserved. (CC-BY-NA)</a>

</div>
</div>

<footer>
<a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a> is powered by <a href="http://wordpress.org">WordPress</a> and a lightly modified version of the <a href="http://koch-werkstatt.de/2010/03/21/wordpress-theme-nameless/">Nameless Theme</a>. Copyright 2007-2012 John Eckman (<a href="https://plus.google.com/116364085212589603633?rel=author">Google+</a>), <a href="http://creativecommons.org/licenses/by/3.0/">Some Rights Reserved. (CC-BY-NA)</a>
<?php wp_footer(); ?>
</div> <!--### end header_wrapper ###-->

</footer>
<script src="<?php bloginfo('template_directory');?>/js/plugins.js"></script>
<script src="<?php bloginfo('template_directory');?>/js/script.js"></script>
</body>
</html>
32 changes: 14 additions & 18 deletions header.php
@@ -1,32 +1,28 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php bloginfo('name'); ?> <?php bloginfo('description'); ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="verify-v1" content="3xkx1L7bPBaGd5nOvoD1doRB3mTaCKw0A9z/WZfhg/Y=" />
<meta name="msvalidate.01" content="980C6893BDDCBA0C3EF22C5A30F4DA58" />
<meta name="google-site-verification" content="9DUFYU5Hdvzo0WZZADBILdN-guUoaE7jKoIPTqRa4qg" />


<script src="<?php bloginfo('template_directory');?>/js/libs/modernizr-2.5.3.min.js"></script>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link href="<?php bloginfo('template_url'); ?>/switch.css" type="text/css" rel="stylesheet" />

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>

</head>

<body>
<a name="top"></a>
<div id="main_wrapper">

<div id="header" class="clearfix">

<!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
<header>
<div id="logo">
<a href="<?php echo get_settings('home'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/header.gif" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" height="150" /></a>
</div>

</div><!--### end header ###-->

</header>
36 changes: 11 additions & 25 deletions index.php
@@ -1,10 +1,10 @@
<?php get_header(); ?>
<div id="content" class="clearfix">
<div class="content_left">
<?php if (have_posts()) : ?>
<section id="main-content" role="main">
<?php if (have_posts()) : ?>

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<?php /* If this is a category archive */ if (is_category()) { ?>

<h4>Archive for Category &#8216;<?php echo single_cat_title(); ?>&#8216; </h4>

<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
Expand All @@ -27,44 +27,30 @@
<?php } ?>

<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">

<article>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

<div class="postdate">Published on <?php the_time('l, F j Y') ?></div>

<?php the_content(__('<br />Read more...<br />')); ?>

</div>
<div class="clear"></div>
</div>
<div class="postmeta"><?php the_tags() ?><br /><br />

<?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?> <?php edit_post_link('| (#)', '', ''); ?></div>
</article>
<?php endwhile; ?>
<?php else : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<article>
<h2>Nothing to see here</h2>

<div class="entry">

<p>You seemed to have found a mislinked file, page, or search query with zero results. If you feel that you've reached this page in error, double check the URL and or search string and try again.</p>
</div>
<div class="clear"></div>
</div>
</article>
<?php endif; ?>
<br />
<div id="postnavi_index">
<div class="left"><?php next_posts_link('&laquo; Previous') ?></div>
<div class="right"><?php previous_posts_link('Next &raquo;') ?></div>
</div>
<div class="clear"></div>
</div>
<div class="sidebar">
<?php include (TEMPLATEPATH . '/sidebar.php'); ?>
</div>
<div class="clear"></div>
</div><!-- ### ende content ### -->
</div>
</section><!-- ### end content ### -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
21 changes: 6 additions & 15 deletions page.php
@@ -1,25 +1,16 @@
<?php get_header(); ?>
<div id="content" class="clearfix">
<div class="content_left">
<section id="main-content" role="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">


<div class="entry">

<article class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_content('[...]'); ?>
</div>
<div class="clear"></div>
</div>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</div>
<div class="sidebar">
<?php include (TEMPLATEPATH . '/sidebar.php'); ?>
</div>
</div><!-- ### ende content ### -->

</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
6 changes: 5 additions & 1 deletion sidebar.php
@@ -1,3 +1,6 @@
<aside id="sidebar">
....site sidebar here....

<div class="sidebar_box">
<?php fb_get_search_form(); ?>
</div>
Expand Down Expand Up @@ -69,4 +72,5 @@
<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/></License>
</rdf:RDF>
-->
</div></div>
</div></div>
</aside>
30 changes: 11 additions & 19 deletions single.php
@@ -1,46 +1,38 @@
<?php get_header(); ?>
<div id="content" class="clearfix">
<div class="content_left">
<section id="main-content" role="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<article class="post" id="post-<?php the_ID(); ?>">
<header>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="postdate">Published on <?php the_time('l, F j Y') ?> <?php edit_post_link('#', '', ''); ?></div>
</header>
<?php the_content('[...]'); ?>

</div>
<div class="clear"></div>
<div class="postmeta_single"><?php the_tags() ?></div>

</div>
<div>&nbsp;</div>
<div id="navigation">
<ul class="postnavi">
<li>Previous: <?php previous_post_link('%link') ?></li>
<?php /* if next post exists */ next_post_link('<li>Next: %link</li>'); ?>
</ul>
</div>

<div class="clear">&nbsp;</div>

<?php endwhile; ?>


<?php else : ?>
<article>
<header>
<h2>Nothing to see here</h2>
</header>
<p>You seemed to have found a mislinked file, page, or search query with zero results. If you feel that you've reached this page in error, double check the URL and or search string and try again.</p>
<?php endif; ?>

<!--### Kommentare ###-->
<?php comments_template(); ?>

</div>
<div class="sidebar">
<?php include (TEMPLATEPATH . '/sidebar.php'); ?>
</div>

<div class="clear"></div>
</div><!--### ende content ###-->

</article>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

0 comments on commit 36ae7c1

Please sign in to comment.