Permalink
Browse files

Adding in JS folder

  • Loading branch information...
0 parents commit 015ad3ffc522f750de6476ea47089c58d2f3fa21 @richardshepherd committed Feb 4, 2011
Showing with 1,582 additions and 0 deletions.
  1. +489 −0 article.txt
  2. +326 −0 article2.txt
  3. +53 −0 footer.php
  4. +69 −0 functions.php
  5. +84 −0 header.php
  6. +32 −0 index.php
  7. +30 −0 js/modernizr-1.6.min.js
  8. +281 −0 license.txt
  9. +175 −0 loop.php
  10. BIN screenshot.png
  11. +43 −0 style.css

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,53 @@
+<?php
+/**
+ * The template for displaying the footer.
+ *
+ * Contains the closing of the id=main div and all content
+ * after. Calls sidebar-footer.php for bottom widgets.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Ten
+ * @since Twenty Ten 1.0
+ */
+?>
+ </div><!-- #main -->
+
+ <footer role="contentinfo">
+ <div id="colophon">
+
+<?php
+ /* A sidebar in the footer? Yep. You can can customize
+ * your footer with four columns of widgets.
+ */
+ get_sidebar( 'footer' );
+?>
+
+ <div id="site-info">
+ <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
+ <?php bloginfo( 'name' ); ?>
+ </a>
+ </div><!-- #site-info -->
+
+ <div id="site-generator">
+ <?php do_action( 'twentyten_credits' ); ?>
+ <a href="<?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?>"
+ title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator">
+ <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?>
+ </a>
+ </div><!-- #site-generator -->
+
+ </div><!-- #colophon -->
+ </footer><!-- #footer -->
+
+</div><!-- #wrapper -->
+
+<?php
+ /* Always have wp_footer() just before the closing </body>
+ * tag of your theme, or you will break many plugins, which
+ * generally use this hook to reference JavaScript files.
+ */
+
+ wp_footer();
+?>
+</body>
+</html>
@@ -0,0 +1,69 @@
+<?php
+
+add_shortcode('wp_caption', 'twentyten_img_caption_shortcode');
+add_shortcode('caption', 'twentyten_img_caption_shortcode');
+
+/**
+ * The TwentyTen Caption shortcode.
+ * added by Richard Shepherd to include HTML5 goodness
+ *
+ * Allows a plugin to replace the content that would otherwise be returned. The
+ * filter is 'img_caption_shortcode' and passes an empty string, the attr
+ * parameter and the content parameter values.
+ *
+ * The supported attributes for the shortcode are 'id', 'align', 'width', and
+ * 'caption'.
+ *
+ * @since 3.0.4
+ *
+ * @param array $attr Attributes attributed to the shortcode.
+ * @param string $content Optional. Shortcode content.
+ * @return string
+ */
+function twentyten_img_caption_shortcode($attr, $content = null) {
+
+ // Allow plugins/themes to override the default caption template.
+ $output = apply_filters('img_caption_shortcode', '', $attr, $content);
+ if ( $output != '' )
+ return $output;
+
+ extract(shortcode_atts(array(
+ 'id' => '',
+ 'align' => 'alignnone',
+ 'width' => '',
+ 'caption' => ''
+ ), $attr));
+
+ if ( 1 > (int) $width || empty($caption) )
+ return $content;
+
+ if ( $id ) $id = 'id="' . esc_attr($id) . '" ';
+
+ return '<figure ' . $id . 'class="' . esc_attr($align) . '" style="width: ' . (10 + (int) $width) . 'px">'
+ . do_shortcode( $content ) . '<figcaption>' . $caption . '</figcaption></figure>';
+
+}
+
+/**
+ * Prints HTML with meta information for the current post—date/time and author.
+ *
+ * @since Twenty Ten 1.0
+ */
+function twentyten_posted_on() {
+ printf( __( '<span>Posted on</span> %2$s <span>by</span> %3$s', 'twentyten' ),
+ 'meta-prep meta-prep-author',
+ sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s" pubdate>%4$s</time></a>',
+ get_permalink(),
+ esc_attr( get_the_time('H:i') ),
+ get_the_date('c'),
+ get_the_date()
+ ),
+ sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
+ get_author_posts_url( get_the_author_meta( 'ID' ) ),
+ sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
+ get_the_author()
+ )
+ );
+}
+
+
@@ -0,0 +1,84 @@
+<?php
+/**
+ * The Header for our theme.
+ *
+ * Displays all of the <head> section and everything up till <div id="main">
+ *
+ * @package WordPress
+ * @subpackage Twenty_Ten
+ * @since Twenty Ten 1.0
+ */
+?><!DOCTYPE html>
+<html <?php language_attributes(); ?> class="no-js">
+<head>
+<meta charset="<?php bloginfo( 'charset' ); ?>" />
+<title><?php
+ /*
+ * Print the <title> tag based on what is being viewed.
+ * We filter the output of wp_title() a bit -- see
+ * twentyten_filter_wp_title() in functions.php.
+ */
+ wp_title( '|', true, 'right' );
+
+ ?></title>
+<link rel="profile" href="http://gmpg.org/xfn/11" />
+<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
+<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
+<!--[if lt IE9]>
+<script src="<?php bloginfo('stylesheet_directory'); ?>/js/modernizr-1.6.min.js"></script>
+<![endif]-->
+<?php
+ /* We add some JavaScript to pages with the comment form
+ * to support sites with threaded comments (when in use).
+ */
+ if ( is_singular() && get_option( 'thread_comments' ) )
+ wp_enqueue_script( 'comment-reply' );
+
+ /* Always have wp_head() just before the closing </head>
+ * tag of your theme, or you will break many plugins, which
+ * generally use this hook to add elements to <head> such
+ * as styles, scripts, and meta tags.
+ */
+ wp_head();
+?>
+</head>
+
+<body <?php body_class(); ?>>
+
+<noscript><strong>Sorry, but you need to turn JavaScript on to use this site. <a href="http://turnjavascripton.com" target="_blank">Find out how...</a></strong></noscript>
+
+<div id="wrapper" class="hfeed">
+ <header>
+ <section id="masthead">
+ <div id="branding" role="banner">
+ <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
+ <<?php echo $heading_tag; ?> id="site-title">
+ <span>
+ <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
+ </span>
+ </<?php echo $heading_tag; ?>>
+ <div id="site-description"><?php bloginfo( 'description' ); ?></div>
+
+ <?php
+ // Check if this is a post or page, if it has a thumbnail, and if it's a big one
+ if ( is_singular() &&
+ has_post_thumbnail( $post->ID ) &&
+ ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
+ $image[1] >= HEADER_IMAGE_WIDTH ) :
+ // Houston, we have a new header image!
+ echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
+ else : ?>
+ <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
+ <?php endif; ?>
+ </div><!-- #branding -->
+
+ <nav role="navigation">
+ <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
+ <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
+ <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
+ <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
+ </nav><!-- #access -->
+ </section><!-- #masthead -->
+ </header><!-- #header -->
+
+ <div id="main">
@@ -0,0 +1,32 @@
+<?php
+/**
+ * The main template file.
+ *
+ * This is the most generic template file in a WordPress theme
+ * and one of the two required files for a theme (the other being style.css).
+ * It is used to display a page when nothing more specific matches a query.
+ * E.g., it puts together the home page when no home.php file exists.
+ * Learn more: http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package WordPress
+ * @subpackage Twenty_Ten_HTML5
+ * @since Twenty Ten 1.0
+ */
+
+get_header(); ?>
+
+ <div id="container">
+ <div id="content" role="main">
+
+ <?php
+ /* Run the loop to output the posts.
+ * If you want to overload this in a child theme then include a file
+ * called loop-index.php and that will be used instead.
+ */
+ get_template_part( 'loop', 'index' );
+ ?>
+ </div><!-- #content -->
+ </div><!-- #container -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 015ad3f

Please sign in to comment.