The Simplest WordPress Theme
header.php
<html>
<head profile="http://gmpg.org/xfn/11">
<title><?php bloginfo('name'); ?></title>
<style type="text/css" media="screen">@import url( <?php bloginfo('stylesheet_url'); ?> );</style>
<?php wp_head(); ?>
</head>
<body>
<div id="bigframe">
<h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
——————–
index.php
<?php get_header();?> <!-- Top side of the theme. header.php -->
<div id="centerframe">
<?php if (have_posts()) : while (have_posts()) : the_post(); // If there are posts print posts. ?>
<div>
<h3><a href="<?php the_permalink() // The link of post ?>" rel="bookmark"><?php the_title(); // post title ?></a></h3>
<?php the_content(); //the content ?>
Category: <?php the_category() ?> Tag: <?php the_tags(); ?> Author: <?php the_author() ?>
Time: <?php the_time() ?> <?php edit_post_link(__('Edit This')); //Edit ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div><!-- post end -->
<div id="comments"><?php comments_template(); // wp-comments.php ?></div>
<?php endwhile; endif; ?>
<?php posts_nav_link(); // next page, previous page links?>
</div><!-- End of centerframe -->
<?php get_sidebar(); //Side menu of the theme. sidebar.php ?>
<?php get_footer(); // Footer of the theme. footer.php?>
—————–
sidebar.php
<div id="sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : //if there is no widget ?>
<?php get_search_form(); ?>
<li><?php wp_list_pages(); ?></li>
<li>
<ul>
<li><?php wp_loginout(); ?></li>
<li><a href="<?php bloginfo('rss2_url'); ?>">RSS</a></li>
<li><a href="http://wordpress.org/">WP</a></li>
<li><a href="http://m-eken.com/">The Simplest Theme</a></li>
</ul>
</li>
<?php endif; ?>
</div>
——————–
footer.php
<p id="footer"><a href="http://m-eken.com">m-eken.com</a></p>
</div><!-- End of bigframe -->
<?php wp_footer(); ?>
</body>
</html>
———————
functions.php
<?php if ( function_exists('register_sidebar') )
register_sidebar(); ?>
———————
comments.php
<?php if ( post_password_required() ) : ?>
<p>Pass require.</p>
<?php return; endif; ?>
<h2>Comments</h2>
<?php if ( have_comments() ) : ?>
<ol><?php foreach ($comments as $comment) : ?>
<li><?php comment_text() ?>
<p><cite><?php comment_type(_x('Comment', 'noun'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> # <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
</li>
<?php endforeach; ?>
</ol>
<?php else : // If there are no comments yet ?><p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<h2><?php _e('Leave a comment'); ?></h2>
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() ) );?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( is_user_logged_in() ) : ?>
<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"><?php _e('Log out »'); ?></a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" />
<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" />
<label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
<label for="url"><small><?php _e('Website'); ?></small></label></p>
<?php endif; ?>
<p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>
———————————
style.css
/*
Theme Name: Simplest Theme
Theme URI: http://m-eken.com/
Description: The Simplest WordPress Theme
Version: 1.0
Author: M-Eken
Tags: Simple
http://www.m-eken.com
*/
#bigframe{ width:810px;background:gray;margin-left:auto;margin-right:auto}
#header, #header a{ color:yellow; width:800px;float:left }
#centerframe { background:blue; width:600px;float:left}
.post,#comments { background: green;width:590px; }
#sidebar { background:red;width:180px;float:right }
#footer {background:black; width:800px;float:left}
Download The Simplest WordPress Theme



