Commit 45233ec7 authored by lucha's avatar lucha Committed by lechuck
Browse files

updated SimpleX theme (version 2.0.1.1)

parent 4f65bb46
<?php get_header(); ?> <?php
<div id="main"> /**
<div id="content" class="narrowcolumn"> * The template for displaying 404 pages (Not Found).
*
<h2 class="center">Error 404 - Not Found</h2> * @package WordPress
* @subpackage simpleX
</div> * @since simpleX 2.0
*/
<?php get_sidebar(); ?>
</div> get_header(); ?>
<div id="primary">
<div id="content" role="main">
<article id="post-0" class="post error404 not-found">
<header class="entry-header">
<h2 class="entry-title"><?php _e( 'Well this is somewhat embarrassing, isn&rsquo;t it?', 'simplex' ); ?></h2>
</header>
<div class="entry-content">
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'simplex' ); ?></p>
<?php get_search_form(); ?>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<div class="widget">
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'simplex' ); ?></h2>
<ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
</ul>
</div>
<?php
/* translators: %1$s: smilie */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'simplex' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?> <?php get_footer(); ?>
\ No newline at end of file
<?php get_header(); ?> <?php
<div id="main"> /**
<div id="content" class="narrowcolumn"> * The template for displaying Archive pages.
*
<?php if (have_posts()) : ?> * Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> *
<?php /* If this is a category archive */ if (is_category()) { ?> * Learn more: http://codex.wordpress.org/Template_Hierarchy
<h2 class="pagetitle"><?php single_cat_title(); ?></h2> *
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> * @package WordPress
<h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2> * @subpackage simpleX
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> * @since simpleX 2.0
<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> get_header(); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> <section id="primary">
<?php /* If this is an author archive */ } elseif (is_author()) { ?> <div id="content" role="main">
<h2 class="pagetitle">Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <?php if ( have_posts() ) : ?>
<h2 class="pagetitle">Archives</h2>
<?php } ?> <header class="page-header">
<h2 class="page-title">
<?php while (have_posts()) : the_post(); ?> <?php
<div class="post"> if ( is_day() ) :
<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> printf( __( 'Daily Archives: %s', 'simplex' ), '<span>' . get_the_date() . '</span>' );
<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> elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'simplex' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
<div class="entry"> elseif ( is_year() ) :
<?php the_content('<span class="more">read more &raquo;</span>') ?> printf( __( 'Yearly Archives: %s', 'simplex' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
</div> else :
_e( 'Archives', 'simplex' );
<?php if(is_single()) {?><p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?></p><?php } ?> endif;
?>
</div> </h2>
</header>
<?php endwhile; ?>
<?php rewind_posts(); ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div> <?php simplex_content_nav( 'nav-above' ); ?>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div> <?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php else : ?>
<?php
<h2 class="center">Not Found</h2> /* Include the Post-Format-specific template for the content.
<?php include (TEMPLATEPATH . '/searchform.php'); ?> * If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
<?php endif; ?> */
get_template_part( 'content', get_post_format() );
</div> ?>
<?php get_sidebar(); ?> <?php endwhile; ?>
</div>
<?php get_footer(); ?> <?php simplex_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h2 class="entry-title"><?php _e( 'Nothing Found', 'simplex' ); ?></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'simplex' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?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
/**
* The template for displaying Author Archive pages.
*
* @package WordPress
* @subpackage simpleX
* @since simpleX 2.0
*/
get_header(); ?>
<section id="primary">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
?>
<header class="page-header">
<h2 class="page-title author"><?php printf( __( 'Author Archives: %s', 'simplex' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h2>
</header>
<?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
?>
<?php simplex_content_nav( 'nav-above' ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php simplex_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h2 class="entry-title"><?php _e( 'Nothing Found', 'simplex' ); ?></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'simplex' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/**
* The template for displaying Category Archive pages.
*
* @package WordPress
* @subpackage simpleX
* @since simpleX 2.0
*/
get_header(); ?>
<section id="primary">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h2 class="page-title"><?php
printf( __( 'Category Archives: %s', 'simplex' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?></h2>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
?>
</header>
<?php simplex_content_nav( 'nav-above' ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php simplex_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h2 class="entry-title"><?php _e( 'Nothing Found', 'simplex' ); ?></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'simplex' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?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 <?php
/**
// Do not delete these lines * The template for displaying Comments.
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) *
die ('Please do not load this page directly. Thanks!'); * The area of the page that contains both current comments
* and the comment form. The actual display of comments is
if ( post_password_required() ) { ?> * handled by a callback to simplex_comment() which is
<p class="nocomments">This post is password protected. Enter the password to view comments.</p> * located in the functions.php file.
<?php *
return; * @package WordPress
} * @subpackage simpleX
?> * @since simpleX 2.0
*/
<!-- You can start editing here. --> ?>
<?php do_action( 'simplex_before_comments' ); ?>
<?php if ( have_comments() ) : ?> <div id="comments">
<div id="maintabdiv"> <?php if ( post_password_required() ) : ?>
<ul id="tabnav"> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'simplex' ); ?></p>
<li><a href="#comments" class="tabs current">Comments (<?php comments_number('0','1','%');?>)</a></li> </div><!-- #comments -->
<li><a href="#trackbacks" class="tabs">Trackbacks</a></li> <?php
</ul> /* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
<?php if ( ! empty($comments_by_type['comment']) ) : ?> * to fully load the template.
*/
return;
<div id="comments" class="commentlist"> endif;
<ol class="commentlist"> ?>
<?php wp_list_comments('type=comment'); ?>
</ol> <?php // You can start editing here -- including this comment! ?>
</div>
<?php endif; ?> <?php if ( have_comments() ) : ?>
<h2 id="comments-title">
<?php
printf( _n( 'One comment', '%1$s comments', get_comments_number(), 'simplex' ),
number_format_i18n( get_comments_number() ) );
<div id="trackbacks"> ?>
<ol class="commentlist"> </h2>
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
<?php wp_list_comments('type=pings'); ?> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<?php else : ?> <nav id="comment-nav-above">
<li>There are no trackbacks for this post yet.</li> <h2 class="assistive-text"><?php _e( 'Comment navigation', 'simplex' ); ?></h2>
<?php endif; ?> <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'simplex' ) ); ?></div>
</ol> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'simplex' ) ); ?></div>
</div> </nav>
</div> <?php endif; // check for comment navigation ?>
<div class="navigation"> <ol class="commentlist">
<div class="alignleft"><?php previous_comments_link() ?></div> <?php
<div class="alignright"><?php next_comments_link() ?></div> /* Loop through and list the comments. Tell wp_list_comments()
</div> * to use simplex_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define simplex_comment() and that will be used instead.
* See simplex_comment() in simpleX/functions.php for more.
<?php else : // this is displayed if there are no comments so far ?> */
wp_list_comments( array( 'callback' => 'simplex_comment', 'type' => 'comment' ) );
<?php if ('open' == $post->comment_status) : ?> ?>
<!-- If comments are open, but there are no comments. --> </ol>
<?php else : // comments are closed ?> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<!-- If comments are closed. --> <nav id="comment-nav-below">
<p class="nocomments">Comments are closed.</p> <h2 class="assistive-text"><?php _e( 'Comment navigation', 'simplex' ); ?></h2>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'simplex' ) ); ?></div>
<?php endif; ?> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'simplex' ) ); ?></div>
<?php endif; ?> </nav>
<?php endif; // check for comment navigation ?>
<?php if ('open' == $post->comment_status) : ?>
<?php
<div id="respond"> /* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we don't want the note on pages or post types that do not support comments.
<h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3> */
elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
<div class="cancel-comment-reply"> ?>
<small><?php cancel_comment_reply_link(); ?></small> <p class="nocomments"><?php _e( 'Comments are closed.', 'simplex' ); ?></p>
</div> <?php endif; ?>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?> <?php comment_form(); ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>