Permalink
Browse files

forgot to add everything else ^_^

  • Loading branch information...
1 parent 341e67e commit a599e3285689f32715c4308dff5dab9b14e0ccec Adam Hunter committed Jun 13, 2009
View
3 README
@@ -0,0 +1,3 @@
+WordPress theme based off of Apple.com
+
+Uses custom renderer for displaying the theme as well as some Ruby on Rails view helpers converted to PHP.
View
@@ -0,0 +1 @@
+<?php edit_post_link('Edit', '', ' | '); ?>
View
@@ -0,0 +1,9 @@
+<div id="footer">
+ <h2><?php link_to(get_bloginfo('name'), get_bloginfo('wpurl')) ?></h2>
+ <?php content_tag('h4', get_bloginfo('description'))?>
+
+ &lsaquo; <a href="http://wordpress.org/">WordPress</a> &rsaquo;
+ <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
+
+ <?php wp_footer(); ?>
+</div>
View
@@ -0,0 +1,14 @@
+<head profile="http://gmpg.org/xfn/11">
+<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
+
+<title><?php $this->yield('title') ?></title>
+
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
+<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> &raquo; Articles Feed" href="<?php bloginfo('wpurl') ?>?feed=rss2" />
+<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> &raquo; All Comments Feed" href="<?php bloginfo('wpurl') ?>?feed=comments-rss2" />
+<?php wp_enqueue_script('theme', THEME_SCRIPT, array('jquery')); ?>
+<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
+
+<?php wp_head(); ?>
+</head>
View
@@ -0,0 +1,2 @@
+<div id="header">
+</div>
View
@@ -0,0 +1,2 @@
+<span class="tagged">Categories: <?php the_category(' ') ?></span>
+<span class="tagged">Tags: <?php the_tags('', ' ', ''); ?></span>
View
@@ -0,0 +1,11 @@
+<div id="nav" class="clearfix">
+<ul>
+ <li class="page_item <?php if(is_front_page()){echo ' current_page_item';}?>">
+ <?php link_to('<span>Home</span>', get_bloginfo('wpurl'), array('class' => 'home')) ?>
+ </li>
+ <?php wp_list_pages(array('depth' => 1, 'title_li' => '')) ?>
+ <li class="search">
+ <?php render_partial('search') ?>
+ </li>
+</ul>
+</div>
View
@@ -0,0 +1,3 @@
+<form>
+ <input type="search" value="" name="q" />
+</form>
View
@@ -0,0 +1,5 @@
+<div id="sidebar" class="clearfix">
+ <ul>
+ <?php dynamic_sidebar(); ?>
+ </ul>
+</div>
View
@@ -0,0 +1,77 @@
+<?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()) { ?>
+ <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
+ <?php
+ content_for('title', single_cat_title('', false).' - Categories'.' - '.get_bloginfo('name'));
+ content_for('breadcrumbs', array(link_to('Categories', '#', array(), false), link_to(single_cat_title('', false), '#', array(), false)));
+ ?>
+ <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
+ <h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
+ <?php
+ content_for('title', single_tag_title('', false).' - Tags'.' - '.get_bloginfo('name'));
+ content_for('breadcrumbs', array(link_to('Tags', '#', array(), false),link_to(single_tag_title('', false), '#', array(), false)));
+ ?>
+ <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
+ <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
+ <?php
+ content_for('breadcrumbs', array(link_to(get_the_time('F jS, Y'), '#', array(), false)));
+ ?>
+ <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
+ <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
+ <?php
+ content_for('breadcrumbs', array(link_to(get_the_time('F, Y'), '#', array(), false)));
+ ?>
+ <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
+ <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
+ <?php
+ content_for('breadcrumbs', array(link_to(get_the_time('Y'), '#', array(), false)));
+ ?>
+ <?php /* If this is an author archive */ } elseif (is_author()) { ?>
+ <h2 class="pagetitle">Author Archive</h2>
+ <?php
+ content_for('breadcrumbs', array(link_to('Author Archive', '#', array(), false)));
+ ?>
+ <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
+ <h2 class="pagetitle">Blog Archives</h2>
+ <?php
+ content_for('breadcrumbs', array(link_to('Blog Archives', '#', array(), false)));
+ ?>
+ <?php } ?>
+
+
+ <div class="navigation">
+ <span class="left"><?php next_posts_link('Older Entries') ?></span>
+ <span class="right"><?php previous_posts_link('Newer Entries') ?></span>
+ </div>
+
+ <?php while (have_posts()) : the_post(); ?>
+ <div <?php post_class() ?>>
+ <?php post_datestamp($post->post_date, true) ?>
+ <h3 id="post-<?php the_ID(); ?>" class="archivetitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
+ <small>by <?php the_author() ?></small>
+ <div class="entry">
+ <?php the_content('Continue') ?>
+ </div>
+ <p class="meta"><?php render_partial('meta'); ?></a>
+ </div>
+
+ <?php endwhile; ?>
+
+<?php else :
+
+ if ( is_category() ) { // If this is a category archive
+ printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
+ } else if ( is_date() ) { // If this is a date archive
+ echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
+ } else if ( is_author() ) { // If this is a category archive
+ $userdata = get_userdatabylogin(get_query_var('author_name'));
+ printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
+ } else {
+ echo("<h2 class='center'>No posts found.</h2>");
+ }
+ get_search_form();
+
+endif;
+?>
View
@@ -0,0 +1,88 @@
+<?php
+if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) :
+ die('Please do not load this page directly. Thanks!');
+endif;
+if ( post_password_required() ) :
+ ?><p class="nocomments">This post is password protected. Enter the password to view comments.</p><?php
+ return;
+endif;
+?>
+
+<h3 id="comments"><?php comments_number('No responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
+
+<?php if ( have_comments() ) : ?>
+ <div class="navigation">
+ <div class="alignleft"><?php previous_comments_link() ?></div>
+ <div class="alignright"><?php next_comments_link() ?></div>
+ </div>
+
+ <ol class="commentlist">
+ <?php wp_list_comments(array('avatar_size' => 48)); ?>
+ </ol>
+
+ <div class="navigation">
+ <div class="alignleft"><?php previous_comments_link() ?></div>
+ <div class="alignright"><?php next_comments_link() ?></div>
+ </div>
+ <?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 : // comments are closed ?>
+ <!-- If comments are closed. -->
+ <p class="nocomments">Comments are closed.</p>
+
+ <?php endif; ?>
+<?php endif; ?>
+
+
+<?php if ( comments_open() ) : ?>
+
+<div id="respond">
+
+<h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
+
+<div class="cancel-comment-reply">
+ <small><?php cancel_comment_reply_link(); ?></small>
+</div>
+
+<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
+<p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
+<?php else : ?>
+
+<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
+
+ <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
+
+ <p><textarea name="comment" id="comment" cols="30" rows="10" tabindex="1"></textarea></p>
+<div class="clearfix" id="commenter">
+<?php if ( is_user_logged_in() ) : ?>
+
+<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
+
+<?php else : ?>
+
+
+<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
+<label for="author"><small><?php if ($req) echo "<span>*</span>"; ?></small></label></p>
+
+<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="3" <?php if ($req) echo "aria-required='true'"; ?> />
+<label for="email"><small><?php if ($req) echo "<span>*</span>"; ?></small></label></p>
+
+<p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="4" />
+<label for="url"></label></p>
+<?php endif; ?>
+</div><!-- .clearfix -->
+
+<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
+<?php comment_id_fields(); ?>
+</p>
+<?php do_action('comment_form', $post->ID); ?>
+</div>
+</form>
+
+<?php endif; // If registration required and not logged in ?>
+
+
+<?php endif; // if you delete this the sky will fall on your head ?>
View
@@ -0,0 +1,56 @@
+<?php
+
+define('THEME_PATH', dirname(__FILE__));
+define('THEME_URL', get_bloginfo('template_url'));
+define('THEME_SCRIPT', THEME_URL . '/script.js');
+
+require THEME_PATH . '/renderer.php';
+require THEME_PATH . '/time_since.php';
+
+
+register_sidebar(array(
+ 'before_widget' => '<li id="%1$s" class="widget %2$s">',
+ 'after_widget' => '</li>',
+ 'before_title' => '<h3 class="widget-title">',
+ 'after_title' => '<span></span></h3>',
+));
+
+function is_login()
+{
+ return 'wp-login.php' == basename($_SERVER['SCRIPT_FILENAME']);
+}
+
+function is_any_feed()
+{
+ return !empty($_GET['feed']);
+}
+
+function breadcrumbs($crumbs=array())
+{
+ echo '<div id="breadcrumbs" class="clearfix"><ul>';
+ echo '<li><a href="' . get_bloginfo('wpurl') . '" class="home"><span>Home</span></a></li>';
+ if (!empty($crumbs)) :
+ foreach ($crumbs as $link) :
+ echo "<li>$link</li>";
+ endforeach;
+ endif;
+ echo '</ul></div>';
+}
+
+function post_datestamp($datetime, $small=false)
+{
+ $class = $small ? 'small' : 'large';
+ $format = '<ul id="date" class="'.$class.'">'
+ . '<li id="month">%B</li>'
+ . '<li id="day">%d</li>'
+ . '<li id="year">%Y</li>'
+ . '</ul>';
+ echo strftime($format, strtotime($datetime));
+}
+
+add_filter('get_comment_date', create_function('$date', 'return strftime("%m/%e/%g", strtotime($date))."<br/>";'));
+
+if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') && !is_any_feed()) :
+ global $r;
+ $r = new Renderer();
+endif;
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
@@ -0,0 +1,36 @@
+<?php content_for('title', get_bloginfo('name') . ' - Welcome!') ?>
+
+<?php if (have_posts()) : ?>
+
+ <?php while (have_posts()) : the_post(); ?>
+
+ <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
+ <?php post_datestamp($post->post_date, true) ?>
+ <h3 class="archivetitle">
+ <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
+ </h3>
+ <small>by <?php the_author() ?></small>
+
+ <div class="entry">
+ <?php the_content('Continue'); ?>
+ </div>
+
+ <p class="meta"><?php render_partial('meta'); ?></a>
+
+ </div>
+
+ <?php endwhile; ?>
+
+ <div class="navigation">
+ <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
+ <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
+ </div>
+
+<?php else : ?>
+
+ <h2 class="center">Not Found</h2>
+ <p class="center">Sorry, but you are looking for something that isn't here.</p>
+
+<?php endif; ?>
+
+<?php /* Silence is overrated */ ?>
View
@@ -0,0 +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" <?php language_attributes(); ?>>
+<?php render_partial('head') ?>
+
+<body <?php body_class(); ?>>
+
+<?php render_partial('navigation') ?>
+
+<div id="container">
+
+<?php render_partial('header') ?>
+
+<div id="content-container">
+ <?php breadcrumbs($this->yield('breadcrumbs', false)) ?>
+ <div id="content">
+ <?php $this->yield() ?>
+ </div><!-- #content -->
+</div>
+
+<?php render_partial('sidebar') ?>
+
+<?php render_partial('footer') ?>
+
+</div><!-- #container -->
+
+</body>
+</html>
View
@@ -0,0 +1,19 @@
+<?php
+ content_for('title', get_bloginfo('name') . the_title(' - ', null, false));
+ content_for('breadcrumbs', array(link_to(the_title(null, null, false), get_permalink($post->ID), array(), false)));
+?>
+
+
+<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+<div class="post" id="post-<?php the_ID(); ?>">
+<h1><?php the_title(); ?></h1>
+ <div class="entry">
+ <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
+ <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
+
+ <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
+
+ </div>
+</div>
+<?php endwhile; endif; ?>
+<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
Oops, something went wrong.

0 comments on commit a599e32

Please sign in to comment.