Skip to content
Snippets Groups Projects
Commit fea9d15a authored by root's avatar root Committed by lechuck
Browse files

Add theme simplex

parent 7a03b60b
No related branches found
No related tags found
No related merge requests found
Showing
with 1367 additions and 0 deletions
<?php get_header(); ?>
<div id="main">
<div id="content" class="narrowcolumn">
<h2 class="center">Error 404 - Not Found</h2>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_header(); ?>
<div id="main">
<div id="content" class="narrowcolumn">
<?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"><?php single_cat_title(); ?></h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Archives</h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<small>Posted in <?php the_category(', ') ?> on <?php the_time('F jS, Y') ?> by <?php the_author() ?> &ndash; <?php comments_popup_link('Be the first to comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit', ' | ', ''); ?> </small>
<div class="entry">
<?php the_content('<span class="more">read more &raquo;</span>') ?>
</div>
<?php if(is_single()) {?><p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?></p><?php } ?>
</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>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<div id="main">
<div id="content" class="widecolumn">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<h2>Archives by Month:</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2>Archives by Subject:</h2>
<ul>
<?php wp_list_categories(); ?>
</ul>
</div>
</div>
<?php get_footer(); ?>
<?php
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
while ( have_posts()) : the_post();
?>
<!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>
<title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
body { margin: 3px; }
</style>
</head>
<body id="commentspopup">
<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
<h2 id="comments">Comments</h2>
<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
<?php if ('open' == $post->ping_status) { ?>
<p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
<?php } ?>
<?php
// this line is WordPress' motor, do not delete it.
$commenter = wp_get_current_commenter();
extract($commenter);
$comments = get_approved_comments($id);
$post = get_post($id);
if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
echo(get_the_password_form());
} else { ?>
<?php if ($comments) { ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) { ?>
<li id="comment-<?php comment_ID() ?>">
<?php comment_text() ?>
<p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
</li>
<?php } // end for each comment ?>
</ol>
<?php } else { // this is displayed if there are no comments so far ?>
<p>No comments yet.</p>
<?php } ?>
<?php if ('open' == $post->comment_status) { ?>
<h2>Leave a comment</h2>
<p>Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></p>
<?php else : ?>
<p>
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
<label for="author">Name</label>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" />
</p>
<p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<label for="email">E-mail</label>
</p>
<p>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
<label for="url"><abbr title="Universal Resource Locator">URL</abbr></label>
</p>
<?php endif; ?>
<p>
<label for="comment">Your Comment</label>
<br />
<textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
</p>
<p>
<input name="submit" type="submit" tabindex="5" value="Say It!" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php } else { // comments are closed ?>
<p>Sorry, the comment form is closed at this time.</p>
<?php }
} // end password check
?>
<div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>
<?php // if you delete this the sky will fall on your head
endwhile;
?>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php //} ?>
<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
<script type="text/javascript">
<!--
document.onkeypress = function esc(e) {
if(typeof(e) == "undefined") { e=event; }
if (e.keyCode == 27) { self.close(); }
}
// -->
</script>
</body>
</html>
<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<div id="maintabdiv">
<ul id="tabnav">
<li><a href="#comments" class="tabs current">Comments (<?php comments_number('0','1','%');?>)</a></li>
<li><a href="#trackbacks" class="tabs">Trackbacks</a></li>
</ul>
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<div id="comments" class="commentlist">
<ol class="commentlist">
<?php wp_list_comments('type=comment'); ?>
</ol>
</div>
<?php endif; ?>
<div id="trackbacks">
<ol class="commentlist">
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
<?php wp_list_comments('type=pings'); ?>
<?php else : ?>
<li>There are no trackbacks for this post yet.</li>
<?php endif; ?>
</ol>
</div>
</div>
<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 ('open' == $post->comment_status) : ?>
<!-- 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 ('open' == $post->comment_status) : ?>
<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') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(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">
<?php if ( $user_ID ) : ?>
<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 $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<!--<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="100%" rows="10" tabindex="4"></textarea></p>
<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); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>
\ No newline at end of file
/* Autum Color Theme */
body {
background: #fff;
color: #333;
}
#header {
background: #433518;
}
#footer {
background: #EBECDD;
}
#headerimg .description {
color:#BCA87E;
}
h2.pagetitle {
color: #BCA87E;
}
#sidebar ul li h2 {
color: #BCA87E;
border-bottom: 3px solid #EBECDF;
}
h1, h1 a, h1 a:hover, h1 a:visited {
color: #333;
}
#header h1, #header h1 a, #header h1 a:hover, #header h1 a:visited {
color: #F4E1B9;
}
h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
color: #333;
}
.commentlist li {
background:#fdfdfd;
}
.commentlist li .avatar {
border: 1px solid #eee;
background: #fff;
}
.commentlist li.alt {
background:#fefefe;
}
small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, strike {
color: #aaa;
}
code {
border: 1px solid #eee;
background:#F4F4EC;
}
a {
color: #7C8546;
border-bottom: 1px solid #ccc;
}
a:hover {
color: #333;
background: #F4F4EC;
border-bottom: 1px solid #C9CBA4;
}
#sidebar #wp-calendar a {
background: #eee;
}
#sidebar #wp-calendar a:hover {
background: #E8C8C8;
}
#sidebar #wp-calendar th {
border-bottom:1px solid #eee;
}
.post hr {
border-top: 1px dotted #ccc;
}
.narrowcolumn .postmetadata2 {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.entry img {
border: 1px solid #eee;
}
.entry {
border-top: 1px solid #eee;
}
#sidebar a {
border-bottom:1px solid #eee;
}
#sidebar a:hover {
border-bottom: 1px solid #C9CBA4;
background-color: #F4F4EC;
}
#sidebar .cat-item a:hover, #sidebar .archives a:hover,
#sidebar #archives ul li a:hover {
background-color: #F4F4EC;
}
#sidebar .linkcat a:hover,
#sidebar .blogroll a:hover {
background-color: #F4F4EC;
}
#sidebar div.flickr_badge_image a {
background: #fff;
border: 1px solid #eee;
}
#sidebar div.flickr_badge_image a:hover {
border: 1px solid #ddd;
background: #fdfdfd;
}
#header #searchform #s {
background: #5F4B23;
color: #F4E1B9;
border: 1px solid #78602C;
}
#header #searchsubmit {
background: #554420;
border: 1px solid #665226;
color: #F4E1B9;
}
#content #searchform #s {
background: #ddd;
color: #333;
border: 1px solid #bbb;
}
#content #searchsubmit {
background: #666;
border: 1px solid #777;
color: #ccc;
}
#commentform input, #commentform textarea, fieldset {
border: 1px solid #ccc;
}
#commentform #submit {
background: #554420;
border: 1px solid #777;
color:#F4E1B9;
}
legend {
background: #ccc;
}
.commentlist li {
border: 1px solid #eee;
}
#sidebar #wp-calendar td.pad:hover { /* Doesn't work in IE */
background-color: #fff; }
/* End Calendar */
acronym, abbr {
border-bottom: 1px dashed #ccc;
}
blockquote {
border-left: 4px solid #BCA87E;
background:#FBF4E6;
color:#666;
}
.wp-caption {
border: 1px solid #ddd;
background-color: #f3f3f3;
}
.entry a.more-link, .navigation a {
background:#DCDDC5;
border-bottom: 1px solid #C9CBA4;
}
.entry a.more-link:hover, .navigation a:hover {
background: #C9CBA4;
border-bottom: 1px solid #7C8546;
color:#333333;
}
#sidebar li#rssfeeds a:hover, #sidebar .textwidget a:hover, #sidebar #tag_cloud a:hover, #sidebar p a:hover{
background: #e8c8c8;
}
/* menu colors */
div.menu {background: #C9CBA4;border-top: 1px solid #C9CBA4;}
.menu ul li.current-menu-item a, .menu ul li.current_page_item, .menu ul li.current_page_item a:hover {color: #333;background: #fff;}
.menu ul a, .menu ul li,.menu ul li li,.menu ul li li li, .menu ul li.current-menu-item li a {color: #7C8546; background:#DCDDC5;}
.menu ul li:hover, .menu ul li.sfHover,.menu ul a:focus, .menu ul a:hover, .menu ul a:active, .menu ul li.current-menu-item li a:hover { color: #DCDDC5; background: #97987B;}
\ No newline at end of file
/* Autum Color Theme */
body {
background: #fafafa;
color: #333;
}
#header {
background: #282923;
}
#footer {
background: #eee;
}
#headerimg .description {
color:#aaa;
}
h2.pagetitle {
color: #666;
}
#sidebar ul li h2 {
color: #999;
border-bottom: 3px solid #eee;
}
h1, h1 a, h1 a:hover, h1 a:visited {
color: #333;
}
#header h1, #header h1 a, #header h1 a:hover, #header h1 a:visited {
color: #ddd;
}
h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
color: #333;
}
.commentlist li {
background:#fdfdfd;
}
.commentlist li .avatar {
border: 1px solid #eee;
background: #fff;
}
.commentlist li.alt {
background:#fefefe;
}
small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, strike {
color: #aaa;
}
code {
border: 1px solid #eee;
background: #fff;
}
a {
color: #B85B5A;
border-bottom: 1px solid #E8C8C8;
}
a:hover {
color: #333;
background: #E8C8C8;
border-bottom: 1px solid #c47373;
}
#sidebar #wp-calendar a {
background: #eee;
}
#sidebar #wp-calendar a:hover {
background: #E8C8C8;
}
#sidebar #wp-calendar th {
border-bottom:1px solid #eee;
}
.post hr {
border-top: 1px dotted #ccc;
}
.narrowcolumn .postmetadata2 {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.entry img {
border: 1px solid #eee;
}
.entry {
border-top: 1px solid #eee;
}
#sidebar a {
border-bottom:1px solid #eee;
}
#sidebar a:hover {
border-bottom: 1px solid #c47373;
background-color: #E8C8C8;
}
#sidebar .cat-item a:hover, #sidebar .archives a:hover,
#sidebar #archives ul li a:hover,
#sidebar .linkcat a:hover,
#sidebar .blogroll a:hover {
background-color: #E8C8C8;
}
#sidebar div.flickr_badge_image a {
background: #fff;
border: 1px solid #eee;
}
#sidebar div.flickr_badge_image a:hover {
border: 1px solid #ddd;
background: #fdfdfd;
}
#header #searchform #s {
background: #000;
color: #ccc;
border: 1px solid #555;
}
#header #searchsubmit {
background: #666;
border: 1px solid #777;
color: #ccc;
}
#content #searchform #s {
background: #ddd;
color: #333;
border: 1px solid #bbb;
}
#content #searchsubmit {
background: #666;
border: 1px solid #777;
color: #ccc;
}
#commentform input, #commentform textarea, fieldset {
border: 1px solid #ccc;
}
#commentform #submit {
background: #666;
border: 1px solid #777;
color:#ccc;
}
legend {
background: #ccc;
}
.commentlist li {
border: 1px solid #eee;
}
#sidebar #wp-calendar td.pad:hover { /* Doesn't work in IE */
background-color: #fff; }
acronym, abbr {
border-bottom: 1px dashed #ccc;
}
blockquote {
border-left: 4px solid #ddd;
background:#eee;
color: #666;
}
.wp-caption {
border: 1px solid #ddd;
background-color: #f3f3f3;
}
.entry a.more-link, .navigation a {
background:#ddd;
border-bottom: 1px solid #ccc;
color: #666;
}
.entry a.more-link:hover, .navigation a:hover {
background: #E8C8C8;
border-bottom: 1px solid #c47373;
color:#333;
}
#sidebar li#rssfeeds a:hover, #sidebar .textwidget a:hover, #sidebar #tag_cloud a:hover, #sidebar p a:hover{
background: #e8c8c8;
}
/* menu colors */
div.menu {background: #ccc;}
.menu ul li.current-menu-item a, .menu ul li.current_page_item, .menu ul li.current_page_item a:hover {color: #333;background: #fafafa;}
.menu ul a, .menu ul li,.menu ul li li,.menu ul li li li, .menu ul li.current-menu-item li a {color: #666;background:#ddd;}
.menu ul li:hover, .menu ul li.sfHover,.menu ul a:focus, .menu ul a:hover, .menu ul a:active, .menu ul li.current-menu-item li a:hover { background: #eee;}
\ No newline at end of file
/* Autum Color Theme */
body {
background: #fff;
color: #333;
}
#header {
background: #464646;
}
#headerimg .description {
color: #bbb;
}
#footer {
background: #eee;
border-top: 1px solid #ddd;
}
h2.pagetitle {
color: #555;
}
#sidebar ul li h2 {
color: #333;
border-bottom: 3px solid #dedede;
}
h1, h1 a {
color: #333;
}
#header h1, #header h1 a, #header h1 a:hover, #header h1 a:visited {
color: #fff;
}
h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
color: #333;
}
.commentlist li {
background:#fdfdfd;
}
.commentlist li .avatar {
border: 1px solid #eee;
background: #fff;
}
.commentlist li.alt {
background:#fefefe;
}
small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, strike {
color: #aaa;
}
code {
border: 1px solid #eee;
background:#F5FAFE;
}
a {
color: #21759B;
border-bottom: 1px solid #ccc;
}
a:hover, .entry a.more-link:hover, .navigation a:hover {
color: #D54E21;
background: #F5D1C5;
border-bottom: 1px solid #D54E21;
}
.entry a.more-link, .navigation a {
background:#F5FAFE;
border-bottom: 1px solid #ddd;
}
#sidebar #wp-calendar a {
background: #eee;
}
#sidebar #wp-calendar a:hover {
background: #E8C8C8;
}
#sidebar #wp-calendar th {
border-bottom:1px solid #eee;
}
.post hr {
border-top: 1px dotted #ccc;
}
.narrowcolumn .postmetadata2 {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.entry img {
border: 1px solid #eee;
}
.entry {
border-top: 1px solid #eee;
}
#sidebar a {
border-bottom:1px solid #eee;
}
#sidebar a:hover {
border-bottom: 1px solid #D54E21;
background-color: #F5D1C5;
}
#sidebar .cat-item a:hover, #sidebar .archives a:hover,
#sidebar #archives ul li a:hover,
#sidebar .linkcat a:hover,
#sidebar .blogroll a:hover {
background-color: #F5D1C5;
}
#sidebar div.flickr_badge_image a {
background: #fff;
border: 1px solid #eee;
}
#sidebar div.flickr_badge_image a:hover {
border: 1px solid #ddd;
background: #fdfdfd;
}
.commentlist li {
border: 1px solid #eee;
}
#sidebar #wp-calendar td.pad:hover { /* Doesn't work in IE */
background-color: #fff; }
/* End Calendar */
acronym, abbr {
border-bottom: 1px dashed #ccc;
}
blockquote {
border-left: 4px solid #E2F0FC;
background:#F5FAFE;
color:#666;
}
.wp-caption {
border: 1px solid #ddd;
background-color: #f3f3f3;
}
#sidebar li#rssfeeds a:hover, #sidebar .textwidget a:hover, #sidebar #tag_cloud a:hover, #sidebar p a:hover{
background: #e8c8c8;
}
/* Form Elements */
#header #searchform #s {
background: #5A5A5A;
color: #aaa;
border: 1px solid #666;
}
#header #searchsubmit, #commentform #submit {
background: #666;
border: 1px solid #888;
color: #bbb;
}
#content #searchform #s {
background: #ddd;
color: #333;
border: 1px solid #bbb;
}
#content #searchsubmit {
background: #666;
border: 1px solid #777;
color: #ccc;
}
#commentform input, #commentform textarea, fieldset {
border: 1px solid #ccc;
}
legend {
background: #ccc;
}
/* menu colors */
div.menu {background: #E4F2FD;border-top: 1px solid #E4F2FD;}
.menu ul li.current-menu-item a, .menu ul li.current_page_item, .menu ul li.current_page_item a:hover {color: #333;background: #fff;}
.menu ul a, .menu ul li,.menu ul li li,.menu ul li li li, .menu ul li.current-menu-item li a {color: #21759B; background:#F1F9FE;}
.menu ul li:hover, .menu ul li.sfHover,.menu ul a:focus, .menu ul a:hover, .menu ul a:active, .menu ul li.current-menu-item li a:hover { color: #D54E21; background: #F5D1C5;}
<hr />
<div id="footer">
<div id="footerarea">
<span id="footerleft">
&copy; <?php echo date('Y'); ?>. <?php bloginfo('name'); ?>. All rights reserved.
</span>
<span id="footerright">
<!-- Please help promote WordPress and simpleX. Do not remove -->
Powered by <a href="http://wordpress.org/">WordPress</a> &amp; <a href="http://wpshoppe.com">SimpleX</a> theme. </span></div>
</div>
</div>
<!-- Simple design by Chandra Maharzan - http://wpshoppe.com/ -->
<?php wp_footer(); ?>
</body>
</html>
\ No newline at end of file
<?php
if ( function_exists('register_sidebar') )
register_sidebar();
// Add WP 3.0 Menu Theme Support
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'nav-menus' );
add_action( 'init', 'register_gpp_menus' );
function register_gpp_menus() {
register_nav_menus(
array(
'main-menu' => __( 'Main Menu' )
)
);
}
}
// Make Menu Support compatible with earlier WP versions
function theme_nav() {
if ( function_exists( 'wp_nav_menu' ) )
wp_nav_menu( 'sort_column=menu_order&container_class=menu&menu_class=&menu_location=main-menu&fallback_cb=gpptheme_nav_fallback' );
else
theme_nav_fallback();
}
// Create our GPP Fallback Menu
function theme_nav_fallback() {
wp_page_menu( 'show_home=1&menu_class=menu' );
}
//Auto Load JS
function theme_load_js() {
if (is_admin()) return;
wp_enqueue_script('jquery');
wp_enqueue_script('superfish', get_bloginfo('template_directory').'/includes/js/superfish.js', array( 'jquery' ) );
}
add_action('init', 'theme_load_js');
function load_dom_ready_js() {
$doc_ready_script="";
$doc_ready_script .= '
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("div.menu ul").superfish();
});
</script>';
echo $doc_ready_script;
}
add_action('wp_head', 'load_dom_ready_js');
// Custom Theme Options
$themename = "simpleX";
$shortname = "sx";
$options = array (
array( "name" => "Choose a Style",
"id" => $shortname."_choose_a_style",
"std" => "Simple Default",
"type" => "select",
"options" => array("Simple Default", "Simple Autumn", "Simple WordPress")
),
);
function mytheme_add_admin() {
global $themename, $shortname, $options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ( 'save' == $_REQUEST['action'] ) {
foreach ($options as $value) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($options as $value) {
if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }
header("Location: themes.php?page=functions.php&saved=true");
die;
} else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: themes.php?page=functions.php&reset=true");
die;
}
}
add_theme_page($themename." Options", "simpleX Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
function mytheme_admin() {
global $themename, $shortname, $options;
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' options saved.</strong></p></div>';
if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' options reset.</strong></p></div>';
?>
<div class="wrap">
<h2><?php echo $themename; ?> Customization</h2>
<form method="post">
<br/>
<table class="optiontable">
<?php foreach ($options as $value) {
if ($value['type'] == "text") { ?>
<tr valign="top">
<th scope="row"><?php echo $value['name']; ?>:</th>
<td>
<input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != "") { echo get_option( $value['id'] ); } else { echo $value['std']; } ?>" />
</td>
</tr>
<?php } elseif ($value['type'] == "select") { ?>
<tr valign="top">
<th scope="row"><?php echo $value['name']; ?>:</th>
<td>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $option) { ?>
<option<?php if ( get_option( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
<?php } ?>
</select>
</td>
</tr>
<?php
}
}
?>
</table>
<p class="submit">
<input name="save" type="submit" value="Save changes" />
<input type="hidden" name="action" value="save" />
</p>
</form>
<form method="post">
<p class="submit">
<input name="reset" type="submit" value="Reset" />
<input type="hidden" name="action" value="reset" />
</p>
</form>
<?php
}
function mytheme_wp_head() {
global $options;
foreach ($options as $value) {
if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); }
if($sx_choose_a_style == "Simple Default") {
$theme = "css/default.css";
}
else if($sx_choose_a_style == "Simple Autumn") {
$theme = "css/autumn.css";
}
else if($sx_choose_a_style == "Simple WordPress") {
$theme = "css/wordpress.css";
}
?>
<link href="<?php bloginfo('template_directory'); ?>/<?php echo $theme; ?>" rel="stylesheet" type="text/css" />
<?php }
}
add_action('wp_head', 'mytheme_wp_head');
add_action('admin_menu', 'mytheme_add_admin'); ?>
\ No newline at end of file
<!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(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?> - <?php bloginfo('description'); ?> </title>
<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'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php wp_head(); ?>
</head>
<body>
<div id="page">
<div id="header">
<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<span class="description"><?php bloginfo('description'); ?></span>
<div id="searchdiv"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div>
</div>
</div>
<?php theme_nav(); ?>
<hr />
\ No newline at end of file
#searchdiv {
#margin-left: 398px; /* IE 7 hack */
_margin-left: 365px; /* IE 6 hack */
}
#pagemenu ul#page-list {
display: inline-block;
}
#pagemenu #page-list li {
margin-left: 5px;
}
\ No newline at end of file
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
<div class="entry">
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
<div class="navigation">
<div class="alignleft"><?php previous_image_link() ?></div>
<div class="alignright"><?php next_image_link() ?></div>
</div>
<br class="clear" />
<p class="postmetadata alt">
<small>
This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
and is filed under <?php the_category(', ') ?>.
<?php the_taxonomies(); ?>
You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } edit_post_link('Edit this entry.','',''); ?>
</small>
</p>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no attachments matched your criteria.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>
wp-content/themes/simplex/images/arrows-ffffff.png

254 B

wp-content/themes/simplex/images/cat.gif

194 B

wp-content/themes/simplex/images/downloadsimplex.gif

6.53 KiB

wp-content/themes/simplex/images/fav.gif

197 B

wp-content/themes/simplex/images/meta.gif

196 B

wp-content/themes/simplex/images/rss.gif

621 B

/*** ESSENTIAL STYLES ***/
.menu ul, .menu ul * {
margin: 0;
padding: 0;
list-style: none;
}
.menu ul {
line-height: 1.0;
}
.menu ul ul {
position: absolute;
top: -999em;
width: 14em; /* left offset of submenus need to match (see below) */
}
.menu ul ul li {
width: 100%;
}
.menu ul li:hover {
visibility: inherit; /* fixes IE7 'sticky bug' */
}
.menu ul li {
float: left;
position: relative;
}
.menu ul a {
display: block;
position: relative;
}
.menu ul li:hover ul,
.menu ul li.sfHover ul {
left: 0;
top: 3em; /* match top ul list item height */
z-index: 99;
}
.menu ul li:hover li ul,
.menu ul li.sfHover li ul {
top: -999em;
}
.menu ul li li:hover ul,
.menu ul li li.sfHover ul {
left: 14em; /* match ul width */
top: 0;
}
.menu ul li li:hover li ul,
.menu ul li li.sfHover li ul {
top: -999em;
}
.menu ul li li li:hover ul,
.menu ul li li li.sfHover ul {
left: 14em; /* match ul width */
top: 0;
}
/*** DEMO SKIN ***/
.menu ul {
float: left;
margin-bottom: 1em;
}
.menu ul a {
padding: .75em 1em;
text-decoration:none;
}
.menu ul li:hover, .menu ul li.sfHover,
.menu ul a:focus, .menu ul a:hover, .menu ul a:active {
outline: 0;
}
/*** arrows **/
.menu ul a.sf-with-ul {
padding-right: 2.25em;
min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */
}
.sf-sub-indicator {
position: absolute;
display: block;
right: .75em;
top: 1.05em; /* IE6 only */
width: 10px;
height: 10px;
text-indent: -999em;
overflow: hidden;
background: url('../../images/arrows-ffffff.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
}
a > .sf-sub-indicator { /* give all except IE6 the correct values */
top: .8em;
background-position: 0 -100px; /* use translucent arrow for modern browsers*/
}
/* apply hovers to modern browsers */
a:focus > .sf-sub-indicator,
a:hover > .sf-sub-indicator,
a:active > .sf-sub-indicator,
li:hover > a > .sf-sub-indicator,
li.sfHover > a > .sf-sub-indicator {
background-position: -10px -100px; /* arrow hovers for modern browsers*/
}
/* point right for anchors in subs */
.menu ul ul .sf-sub-indicator { background-position: -10px 0; }
.menu ul ul a > .sf-sub-indicator { background-position: 0 0; }
/* apply hovers to modern browsers */
.menu ul ul a:focus > .sf-sub-indicator,
.menu ul ul a:hover > .sf-sub-indicator,
.menu ul ul a:active > .sf-sub-indicator,
.menu ul ul li:hover > a > .sf-sub-indicator,
.menu ul ul li.sfHover > a > .sf-sub-indicator {
background-position: -10px 0; /* arrow hovers for modern browsers*/
}
/*** shadows for all but IE6 ***/
.sf-shadow ul {
background: url('../images/shadow.png') no-repeat bottom right;
padding: 0 8px 9px 0;
-moz-border-radius-bottomleft: 17px;
-moz-border-radius-topright: 17px;
-webkit-border-top-right-radius: 17px;
-webkit-border-bottom-left-radius: 17px;
}
.sf-shadow ul.sf-shadow-off {
background: transparent;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment