Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 6420eced3c2eccce63d3604223c288030e929716 @marshallmick007 committed Aug 31, 2011
Showing with 120 additions and 0 deletions.
  1. 0 404.php
  2. 0 category.php
  3. 0 comments.php
  4. +7 −0 footer.php
  5. +13 −0 functions.php
  6. +23 −0 header.php
  7. +9 −0 index.php
  8. +9 −0 page.php
  9. 0 search.php
  10. +6 −0 sidebar.php
  11. +17 −0 style.css
  12. 0 tag.php
  13. +36 −0 theloop.php
No changes.
No changes.
No changes.
@@ -0,0 +1,7 @@
+
+</div> <!-- content -->
+</div> <!-- wrapper -->
+
+<?php wp_footer(); ?>
+</body>
+</html>
@@ -0,0 +1,13 @@
+<?php
+// Widgetize the theme
+if ( function_exists('register_sidebar') ){
+ register_sidebars(2);
+}
+
+// Register the Main Menu
+add_action( 'init', 'register_menus' );
+
+function register_menus() {
+ register_nav_menu( 'main-menu', __( 'Main Menu' ) );
+}
+?>
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html <?php language_attributes(); ?>>
+<head>
+<meta charset="<?php bloginfo( 'charset' ); ?>" />
+<title><?php wp_title(); ?> <?php bloginfo( 'name' ); ?></title>
+<link rel="profile" href="http://gmpg.org/xfn/11" />
+<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
+<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
+<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
+<?php wp_head(); ?>
+</head>
+
+<body>
+
+<div id="wrapper">
+ <div id="content">
+ <div id="logo"><?php bloginfo( 'name' ); ?></div>
+ <div id="topnav">
+ <?php if ( has_nav_menu( 'main-menu' ) ) { ?>
+ navmenu
+ <?php wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?>
+ <?php } ?>
+ </div>
@@ -0,0 +1,9 @@
+<?php get_header(); ?>
+
+<!-- Begin WP Loop -->
+<?php include(TEMPLATEPATH . '/theloop.php'); ?>
+<!-- End WP Loop -->
+
+<?php get_sidebar(); ?>
+
+<?php get_footer(); ?>
@@ -0,0 +1,9 @@
+<?php get_header(); ?>
+
+<!-- Begin WP Loop -->
+<?php include(TEMPLATEPATH . '/theloop.php'); ?>
+<!-- End WP Loop -->
+
+<?php get_sidebar(); ?>
+
+<?php get_footer(); ?>
No changes.
@@ -0,0 +1,6 @@
+<ul id="sidebar">
+ <?php if ( !dynamic_sidebar(1) ) : ?>
+ <li>{static sidebar item 1}</li>
+ <li>{static sidebar item 2}</li>
+ <?php endif; ?>
+</ul>
@@ -0,0 +1,17 @@
+/*
+Theme Name: Basic
+Theme URI: http://basictheme.org/
+Description: A default template for a WP theme
+Author: marshall
+Author URI: http://mickelson.org/
+Version: 1.0
+Tags: basic
+
+License:
+License URI:
+
+*/
+
+body {
+
+}
No changes.
@@ -0,0 +1,36 @@
+<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
+
+ <!-- The following tests if the current post is in category 3. -->
+ <!-- If it is, the div box is given the CSS class "post-cat-three". -->
+ <!-- Otherwise, the div box will be given the CSS class "post". -->
+ <?php if ( in_category('3') ) { ?>
+ <div class="post-cat-three">
+ <?php } else { ?>
+ <div class="post">
+ <?php } ?>
+
+ <!-- Display the Title as a link to the Post's permalink. -->
+ <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+
+ <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->
+ <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
+
+ <!-- Display the Post's Content in a div box. -->
+ <div class="entry">
+ <?php the_content(); ?>
+ </div>
+
+ <!-- Display a comma separated list of the Post's Categories. -->
+ <p class="postmetadata">Posted in <?php the_category(', '); ?></p>
+ <p><?php edit_post_link('Edit','','<strong>|</strong>'); ?> </p>
+ </div> <!-- closes the first div box -->
+
+ <!-- Stop The Loop (but note the "else:" - see next line). -->
+ <?php endwhile; else: ?>
+
+ <!-- The very first "if" tested to see if there were any Posts to -->
+ <!-- display. This "else" part tells what do if there weren't any. -->
+ <p>Sorry, no posts matched your criteria.</p>
+
+ <!-- REALLY stop The Loop. -->
+ <?php endif; ?>

0 comments on commit 6420ece

Please sign in to comment.