Cleanups
No files matched your search
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying 404 pages (Not Found).
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<div id="post-0" class="post error404 not-found">
|
||||
<h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1>
|
||||
<div class="entry-content">
|
||||
<p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'twentyten' ); ?></p>
|
||||
<?php get_search_form(); ?>
|
||||
</div><!-- .entry-content -->
|
||||
</div><!-- #post-0 -->
|
||||
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
<script type="text/javascript">
|
||||
// focus on search field after it has loaded
|
||||
document.getElementById('s') && document.getElementById('s').focus();
|
||||
</script>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,61 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Archive pages.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php
|
||||
/* Queue the first post, that way we know
|
||||
* what date 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().
|
||||
*/
|
||||
if ( have_posts() )
|
||||
the_post();
|
||||
?>
|
||||
|
||||
<h1 class="page-title">
|
||||
<?php if ( is_day() ) : ?>
|
||||
<?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
|
||||
<?php elseif ( is_month() ) : ?>
|
||||
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
|
||||
<?php elseif ( is_year() ) : ?>
|
||||
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
|
||||
<?php else : ?>
|
||||
<?php _e( 'Blog Archives', 'twentyten' ); ?>
|
||||
<?php endif; ?>
|
||||
</h1>
|
||||
|
||||
<?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();
|
||||
|
||||
/* Run the loop for the archives page to output the posts.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-archive.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'archive' );
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,26 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying attachments.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container" class="single-attachment">
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php
|
||||
/* Run the loop to output the attachment.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-attachment.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'attachment' );
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,60 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Author Archive pages.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php
|
||||
/* Queue the first post, that way we know who
|
||||
* the author is when we try to get their name,
|
||||
* URL, description, avatar, etc.
|
||||
*
|
||||
* We reset this later so we can run the loop
|
||||
* properly with a call to rewind_posts().
|
||||
*/
|
||||
if ( have_posts() )
|
||||
the_post();
|
||||
?>
|
||||
|
||||
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<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>" ); ?></h1>
|
||||
|
||||
<?php
|
||||
// If a user has filled out their description, show a bio on their entries.
|
||||
if ( get_the_author_meta( 'description' ) ) : ?>
|
||||
<div id="entry-author-info">
|
||||
<div id="author-avatar">
|
||||
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
|
||||
</div><!-- #author-avatar -->
|
||||
<div id="author-description">
|
||||
<h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
|
||||
<?php the_author_meta( 'description' ); ?>
|
||||
</div><!-- #author-description -->
|
||||
</div><!-- #entry-author-info -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?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();
|
||||
|
||||
/* Run the loop for the author archive page to output the authors posts
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-author.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'author' );
|
||||
?>
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Category Archive pages.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<h1 class="page-title"><?php
|
||||
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||
?></h1>
|
||||
<?php
|
||||
$category_description = category_description();
|
||||
if ( ! empty( $category_description ) )
|
||||
echo '<div class="archive-meta">' . $category_description . '</div>';
|
||||
|
||||
/* Run the loop for the category page to output the posts.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-category.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'category' );
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,79 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Comments.
|
||||
*
|
||||
* The area of the page that contains both current comments
|
||||
* and the comment form. The actual display of comments is
|
||||
* handled by a callback to twentyten_comment which is
|
||||
* located in the functions.php file.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="comments">
|
||||
<?php if ( post_password_required() ) : ?>
|
||||
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
|
||||
</div><!-- #comments -->
|
||||
<?php
|
||||
/* Stop the rest of comments.php from being processed,
|
||||
* but don't kill the script entirely -- we still have
|
||||
* to fully load the template.
|
||||
*/
|
||||
return;
|
||||
endif;
|
||||
?>
|
||||
|
||||
<?php
|
||||
// You can start editing here -- including this comment!
|
||||
?>
|
||||
|
||||
<?php if ( have_comments() ) : ?>
|
||||
<h3 id="comments-title"><?php
|
||||
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
|
||||
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
|
||||
?></h3>
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<div class="navigation">
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
|
||||
</div> <!-- .navigation -->
|
||||
<?php endif; // check for comment navigation ?>
|
||||
|
||||
<ol class="commentlist">
|
||||
<?php
|
||||
/* Loop through and list the comments. Tell wp_list_comments()
|
||||
* to use twentyten_comment() to format the comments.
|
||||
* If you want to overload this in a child theme then you can
|
||||
* define twentyten_comment() and that will be used instead.
|
||||
* See twentyten_comment() in twentyten/functions.php for more.
|
||||
*/
|
||||
wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
|
||||
?>
|
||||
</ol>
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<div class="navigation">
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
|
||||
</div><!-- .navigation -->
|
||||
<?php endif; // check for comment navigation ?>
|
||||
|
||||
<?php else : // or, if we don't have comments:
|
||||
|
||||
/* If there are no comments and comments are closed,
|
||||
* let's leave a little note, shall we?
|
||||
*/
|
||||
if ( ! comments_open() ) :
|
||||
?>
|
||||
<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
|
||||
<?php endif; // end ! comments_open() ?>
|
||||
|
||||
<?php endif; // end have_comments() ?>
|
||||
|
||||
<?php comment_form(); ?>
|
||||
|
||||
</div><!-- #comments -->
|
||||
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
Theme Name: Twenty Ten
|
||||
*/
|
||||
/*
|
||||
Used to style the TinyMCE editor.
|
||||
*/
|
||||
html .mceContentBody{
|
||||
direction: rtl;
|
||||
unicode-bidi: embed;
|
||||
float: right;
|
||||
width: 640px;
|
||||
}
|
||||
* {
|
||||
font-family: Arial, Tahoma, sans-serif;
|
||||
}
|
||||
/* Text elements */
|
||||
ul, ol {
|
||||
margin: 0 -18px 18px 0;
|
||||
}
|
||||
dd {
|
||||
margin-right: 0;
|
||||
}
|
||||
blockquote {
|
||||
font-style: normal;
|
||||
}
|
||||
table {
|
||||
text-align: right;
|
||||
margin: 0 0 24px -1px;
|
||||
}
|
||||
@@ -1,297 +0,0 @@
|
||||
/*
|
||||
Theme Name: Twenty Ten
|
||||
Description: Used to style the TinyMCE editor.
|
||||
*/
|
||||
html .mceContentBody {
|
||||
max-width: 640px;
|
||||
}
|
||||
* {
|
||||
color: #444;
|
||||
font-family: Georgia, "Bitstream Charter", serif;
|
||||
line-height: 1.5;
|
||||
}
|
||||
p,
|
||||
dl,
|
||||
td,
|
||||
th,
|
||||
ul,
|
||||
ol,
|
||||
blockquote {
|
||||
font-size: 16px;
|
||||
}
|
||||
tr th,
|
||||
thead th,
|
||||
label,
|
||||
tr th,
|
||||
thead th {
|
||||
font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
|
||||
}
|
||||
pre {
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
}
|
||||
code, code var {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
}
|
||||
body, input, textarea {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
hr {
|
||||
background-color: #e7e7e7;
|
||||
border: 0;
|
||||
clear: both;
|
||||
height: 1px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
/* Text elements */
|
||||
p {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin: 0 0 18px 1.5em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: square;
|
||||
}
|
||||
ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
ol ol {
|
||||
list-style: upper-alpha;
|
||||
}
|
||||
ol ol ol {
|
||||
list-style: lower-roman;
|
||||
}
|
||||
ol ol ol ol {
|
||||
list-style: lower-alpha;
|
||||
}
|
||||
ul ul,
|
||||
ol ol,
|
||||
ul ol,
|
||||
ol ul {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
dl {
|
||||
margin: 0 0 24px 0;
|
||||
}
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
dd {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
strong {
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
cite,
|
||||
em,
|
||||
i {
|
||||
border: none;
|
||||
font-style: italic;
|
||||
}
|
||||
big {
|
||||
font-size: 131.25%;
|
||||
}
|
||||
ins {
|
||||
background: #ffc;
|
||||
border: none;
|
||||
color: #333;
|
||||
}
|
||||
del {
|
||||
text-decoration: line-through;
|
||||
color: #555;
|
||||
}
|
||||
blockquote {
|
||||
font-style: italic;
|
||||
padding: 0 3em;
|
||||
}
|
||||
blockquote cite,
|
||||
blockquote em,
|
||||
blockquote i {
|
||||
font-style: normal;
|
||||
}
|
||||
pre {
|
||||
background: #f7f7f7;
|
||||
color: #222;
|
||||
line-height: 18px;
|
||||
margin-bottom: 18px;
|
||||
padding: 1.5em;
|
||||
}
|
||||
abbr,
|
||||
acronym {
|
||||
border-bottom: 1px dotted #666;
|
||||
cursor: help;
|
||||
}
|
||||
ins {
|
||||
text-decoration: none;
|
||||
}
|
||||
sup,
|
||||
sub {
|
||||
font-size: 10px;
|
||||
height: 0;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
sup {
|
||||
bottom: 1ex;
|
||||
}
|
||||
sub {
|
||||
top: .5ex;
|
||||
}
|
||||
a:link {
|
||||
color: #06c;
|
||||
}
|
||||
a:visited {
|
||||
color: #743399;
|
||||
}
|
||||
a:active,
|
||||
a:hover {
|
||||
color: #ff4b33;
|
||||
}
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
dd,
|
||||
pre,
|
||||
hr {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
ul ul,
|
||||
ol ol,
|
||||
ul ol,
|
||||
ol ul {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
pre,
|
||||
kbd,
|
||||
tt,
|
||||
var {
|
||||
font-size: 15px;
|
||||
line-height: 21px;
|
||||
}
|
||||
code {
|
||||
font-size: 13px;
|
||||
}
|
||||
strong,
|
||||
b,
|
||||
dt,
|
||||
th {
|
||||
color: #000;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
line-height: 1.5em;
|
||||
margin: 0 0 20px 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2.4em;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
}
|
||||
h6 {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
table {
|
||||
border: 1px solid #e7e7e7 !important;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
margin: 0 -1px 24px 0;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
tr th,
|
||||
thead th {
|
||||
border: none !important;
|
||||
color: #888;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
line-height: 18px;
|
||||
padding: 9px 24px;
|
||||
}
|
||||
tr td {
|
||||
border: none !important;
|
||||
border-top: 1px solid #e7e7e7 !important;
|
||||
padding: 6px 24px;
|
||||
}
|
||||
img {
|
||||
margin: 0;
|
||||
}
|
||||
img.size-auto,
|
||||
img.size-large,
|
||||
img.size-full,
|
||||
img.size-medium {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.alignleft,
|
||||
img.alignleft {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin-right: 24px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.alignright,
|
||||
img.alignright {
|
||||
display: inline;
|
||||
float: right;
|
||||
margin-left: 24px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.aligncenter,
|
||||
img.aligncenter {
|
||||
clear: both;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
img.alignleft,
|
||||
img.alignright,
|
||||
img.aligncenter {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.wp-caption {
|
||||
background: #f1f1f1;
|
||||
border: none;
|
||||
-khtml-border-radius: 0;
|
||||
-moz-border-radius: 0;
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
color: #888;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
margin-bottom: 20px;
|
||||
max-width: 632px !important; /* prevent too-wide images from breaking layout */
|
||||
padding: 4px;
|
||||
text-align: center;
|
||||
}
|
||||
.wp-caption img {
|
||||
margin: 5px;
|
||||
}
|
||||
.wp-caption p.wp-caption-text {
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
.wp-smiley {
|
||||
margin: 0;
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
<?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 -->
|
||||
|
||||
<div id="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 -->
|
||||
</div><!-- #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>
|
||||
@@ -1,513 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* TwentyTen functions and definitions
|
||||
*
|
||||
* Sets up the theme and provides some helper functions. Some helper functions
|
||||
* are used in the theme as custom template tags. Others are attached to action and
|
||||
* filter hooks in WordPress to change core functionality.
|
||||
*
|
||||
* The first function, twentyten_setup(), sets up the theme by registering support
|
||||
* for various features in WordPress, such as post thumbnails, navigation menus, and the like.
|
||||
*
|
||||
* When using a child theme (see http://codex.wordpress.org/Theme_Development and
|
||||
* http://codex.wordpress.org/Child_Themes), you can override certain functions
|
||||
* (those wrapped in a function_exists() call) by defining them first in your child theme's
|
||||
* functions.php file. The child theme's functions.php file is included before the parent
|
||||
* theme's file, so the child theme functions would be used.
|
||||
*
|
||||
* Functions that are not pluggable (not wrapped in function_exists()) are instead attached
|
||||
* to a filter or action hook. The hook can be removed by using remove_action() or
|
||||
* remove_filter() and you can attach your own function to the hook.
|
||||
*
|
||||
* We can remove the parent theme's hook only after it is attached, which means we need to
|
||||
* wait until setting up the child theme:
|
||||
*
|
||||
* <code>
|
||||
* add_action( 'after_setup_theme', 'my_child_theme_setup' );
|
||||
* function my_child_theme_setup() {
|
||||
* // We are providing our own filter for excerpt_length (or using the unfiltered value)
|
||||
* remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
|
||||
* ...
|
||||
* }
|
||||
* </code>
|
||||
*
|
||||
* For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Set the content width based on the theme's design and stylesheet.
|
||||
*
|
||||
* Used to set the width of images and content. Should be equal to the width the theme
|
||||
* is designed for, generally via the style.css stylesheet.
|
||||
*/
|
||||
if ( ! isset( $content_width ) )
|
||||
$content_width = 640;
|
||||
|
||||
/** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */
|
||||
add_action( 'after_setup_theme', 'twentyten_setup' );
|
||||
|
||||
if ( ! function_exists( 'twentyten_setup' ) ):
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* Note that this function is hooked into the after_setup_theme hook, which runs
|
||||
* before the init hook. The init hook is too late for some features, such as indicating
|
||||
* support post thumbnails.
|
||||
*
|
||||
* To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's
|
||||
* functions.php file.
|
||||
*
|
||||
* @uses add_theme_support() To add support for post thumbnails, custom headers and backgrounds, and automatic feed links.
|
||||
* @uses register_nav_menus() To add support for navigation menus.
|
||||
* @uses add_editor_style() To style the visual editor.
|
||||
* @uses load_theme_textdomain() For translation/localization support.
|
||||
* @uses register_default_headers() To register the default custom header images provided with the theme.
|
||||
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
function twentyten_setup() {
|
||||
|
||||
// This theme styles the visual editor with editor-style.css to match the theme style.
|
||||
add_editor_style();
|
||||
|
||||
// Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories.
|
||||
add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
|
||||
|
||||
// This theme uses post thumbnails
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
|
||||
// Add default posts and comments RSS feed links to head
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
// Make theme available for translation
|
||||
// Translations can be filed in the /languages/ directory
|
||||
load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' );
|
||||
|
||||
// This theme uses wp_nav_menu() in one location.
|
||||
register_nav_menus( array(
|
||||
'primary' => __( 'Primary Navigation', 'twentyten' ),
|
||||
) );
|
||||
|
||||
// This theme allows users to set a custom background.
|
||||
add_theme_support( 'custom-background', array(
|
||||
// Let WordPress know what our default background color is.
|
||||
'default-color' => 'f1f1f1',
|
||||
) );
|
||||
|
||||
// The custom header business starts here.
|
||||
|
||||
$custom_header_support = array(
|
||||
// The default image to use.
|
||||
// The %s is a placeholder for the theme template directory URI.
|
||||
'default-image' => '%s/images/headers/path.jpg',
|
||||
// The height and width of our custom header.
|
||||
'width' => apply_filters( 'twentyten_header_image_width', 940 ),
|
||||
'height' => apply_filters( 'twentyten_header_image_height', 198 ),
|
||||
// Support flexible heights.
|
||||
'flex-height' => true,
|
||||
// Don't support text inside the header image.
|
||||
'header-text' => false,
|
||||
// Callback for styling the header preview in the admin.
|
||||
'admin-head-callback' => 'twentyten_admin_header_style',
|
||||
);
|
||||
|
||||
add_theme_support( 'custom-header', $custom_header_support );
|
||||
|
||||
if ( ! function_exists( 'get_custom_header' ) ) {
|
||||
// This is all for compatibility with versions of WordPress prior to 3.4.
|
||||
define( 'HEADER_TEXTCOLOR', '' );
|
||||
define( 'NO_HEADER_TEXT', true );
|
||||
define( 'HEADER_IMAGE', $custom_header_support['default-image'] );
|
||||
define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] );
|
||||
define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] );
|
||||
add_custom_image_header( '', $custom_header_support['admin-head-callback'] );
|
||||
add_custom_background();
|
||||
}
|
||||
|
||||
// We'll be using post thumbnails for custom header images on posts and pages.
|
||||
// We want them to be 940 pixels wide by 198 pixels tall.
|
||||
// Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
|
||||
set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );
|
||||
|
||||
// ... and thus ends the custom header business.
|
||||
|
||||
// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
|
||||
register_default_headers( array(
|
||||
'berries' => array(
|
||||
'url' => '%s/images/headers/berries.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Berries', 'twentyten' )
|
||||
),
|
||||
'cherryblossom' => array(
|
||||
'url' => '%s/images/headers/cherryblossoms.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Cherry Blossoms', 'twentyten' )
|
||||
),
|
||||
'concave' => array(
|
||||
'url' => '%s/images/headers/concave.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Concave', 'twentyten' )
|
||||
),
|
||||
'fern' => array(
|
||||
'url' => '%s/images/headers/fern.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Fern', 'twentyten' )
|
||||
),
|
||||
'forestfloor' => array(
|
||||
'url' => '%s/images/headers/forestfloor.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Forest Floor', 'twentyten' )
|
||||
),
|
||||
'inkwell' => array(
|
||||
'url' => '%s/images/headers/inkwell.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Inkwell', 'twentyten' )
|
||||
),
|
||||
'path' => array(
|
||||
'url' => '%s/images/headers/path.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Path', 'twentyten' )
|
||||
),
|
||||
'sunset' => array(
|
||||
'url' => '%s/images/headers/sunset.jpg',
|
||||
'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
|
||||
/* translators: header image description */
|
||||
'description' => __( 'Sunset', 'twentyten' )
|
||||
)
|
||||
) );
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
|
||||
/**
|
||||
* Styles the header image displayed on the Appearance > Header admin panel.
|
||||
*
|
||||
* Referenced via add_custom_image_header() in twentyten_setup().
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
function twentyten_admin_header_style() {
|
||||
?>
|
||||
<style type="text/css">
|
||||
/* Shows the same border as on front end */
|
||||
#headimg {
|
||||
border-bottom: 1px solid #000;
|
||||
border-top: 4px solid #000;
|
||||
}
|
||||
/* If header-text was supported, you would style the text with these selectors:
|
||||
#headimg #name { }
|
||||
#headimg #desc { }
|
||||
*/
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
|
||||
*
|
||||
* To override this in a child theme, remove the filter and optionally add
|
||||
* your own function tied to the wp_page_menu_args filter hook.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
function twentyten_page_menu_args( $args ) {
|
||||
$args['show_home'] = true;
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );
|
||||
|
||||
/**
|
||||
* Sets the post excerpt length to 40 characters.
|
||||
*
|
||||
* To override this length in a child theme, remove the filter and add your own
|
||||
* function tied to the excerpt_length filter hook.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
* @return int
|
||||
*/
|
||||
function twentyten_excerpt_length( $length ) {
|
||||
return 40;
|
||||
}
|
||||
add_filter( 'excerpt_length', 'twentyten_excerpt_length' );
|
||||
|
||||
/**
|
||||
* Returns a "Continue Reading" link for excerpts
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
* @return string "Continue Reading" link
|
||||
*/
|
||||
function twentyten_continue_reading_link() {
|
||||
return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) . '</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().
|
||||
*
|
||||
* To override this in a child theme, remove the filter and add your own
|
||||
* function tied to the excerpt_more filter hook.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
* @return string An ellipsis
|
||||
*/
|
||||
function twentyten_auto_excerpt_more( $more ) {
|
||||
return ' …' . twentyten_continue_reading_link();
|
||||
}
|
||||
add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
|
||||
|
||||
/**
|
||||
* Adds a pretty "Continue Reading" link to custom post excerpts.
|
||||
*
|
||||
* To override this link in a child theme, remove the filter and add your own
|
||||
* function tied to the get_the_excerpt filter hook.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
* @return string Excerpt with a pretty "Continue Reading" link
|
||||
*/
|
||||
function twentyten_custom_excerpt_more( $output ) {
|
||||
if ( has_excerpt() && ! is_attachment() ) {
|
||||
$output .= twentyten_continue_reading_link();
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
add_filter( 'get_the_excerpt', 'twentyten_custom_excerpt_more' );
|
||||
|
||||
/**
|
||||
* Remove inline styles printed when the gallery shortcode is used.
|
||||
*
|
||||
* Galleries are styled by the theme in Twenty Ten's style.css. This is just
|
||||
* a simple filter call that tells WordPress to not use the default styles.
|
||||
*
|
||||
* @since Twenty Ten 1.2
|
||||
*/
|
||||
add_filter( 'use_default_gallery_style', '__return_false' );
|
||||
|
||||
/**
|
||||
* Deprecated way to remove inline styles printed when the gallery shortcode is used.
|
||||
*
|
||||
* This function is no longer needed or used. Use the use_default_gallery_style
|
||||
* filter instead, as seen above.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
* @deprecated Deprecated in Twenty Ten 1.2 for WordPress 3.1
|
||||
*
|
||||
* @return string The gallery style filter, with the styles themselves removed.
|
||||
*/
|
||||
function twentyten_remove_gallery_css( $css ) {
|
||||
return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
|
||||
}
|
||||
// Backwards compatibility with WordPress 3.0.
|
||||
if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) )
|
||||
add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
|
||||
|
||||
if ( ! function_exists( 'twentyten_comment' ) ) :
|
||||
/**
|
||||
* Template for comments and pingbacks.
|
||||
*
|
||||
* To override this walker in a child theme without modifying the comments template
|
||||
* simply create your own twentyten_comment(), and that function will be used instead.
|
||||
*
|
||||
* Used as a callback by wp_list_comments() for displaying the comments.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
function twentyten_comment( $comment, $args, $depth ) {
|
||||
$GLOBALS['comment'] = $comment;
|
||||
switch ( $comment->comment_type ) :
|
||||
case '' :
|
||||
?>
|
||||
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
|
||||
<div id="comment-<?php comment_ID(); ?>">
|
||||
<div class="comment-author vcard">
|
||||
<?php echo get_avatar( $comment, 40 ); ?>
|
||||
<?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
|
||||
</div><!-- .comment-author .vcard -->
|
||||
<?php if ( $comment->comment_approved == '0' ) : ?>
|
||||
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
|
||||
<?php
|
||||
/* translators: 1: date, 2: time */
|
||||
printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
|
||||
?>
|
||||
</div><!-- .comment-meta .commentmetadata -->
|
||||
|
||||
<div class="comment-body"><?php comment_text(); ?></div>
|
||||
|
||||
<div class="reply">
|
||||
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
|
||||
</div><!-- .reply -->
|
||||
</div><!-- #comment-## -->
|
||||
|
||||
<?php
|
||||
break;
|
||||
case 'pingback' :
|
||||
case 'trackback' :
|
||||
?>
|
||||
<li class="post pingback">
|
||||
<p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>
|
||||
<?php
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Register widgetized areas, including two sidebars and four widget-ready columns in the footer.
|
||||
*
|
||||
* To override twentyten_widgets_init() in a child theme, remove the action hook and add your own
|
||||
* function tied to the init hook.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
* @uses register_sidebar
|
||||
*/
|
||||
function twentyten_widgets_init() {
|
||||
// Area 1, located at the top of the sidebar.
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Primary Widget Area', 'twentyten' ),
|
||||
'id' => 'primary-widget-area',
|
||||
'description' => __( 'The primary widget area', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
) );
|
||||
|
||||
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Secondary Widget Area', 'twentyten' ),
|
||||
'id' => 'secondary-widget-area',
|
||||
'description' => __( 'The secondary widget area', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
) );
|
||||
|
||||
// Area 3, located in the footer. Empty by default.
|
||||
register_sidebar( array(
|
||||
'name' => __( 'First Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'first-footer-widget-area',
|
||||
'description' => __( 'The first footer widget area', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
) );
|
||||
|
||||
// Area 4, located in the footer. Empty by default.
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Second Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'second-footer-widget-area',
|
||||
'description' => __( 'The second footer widget area', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
) );
|
||||
|
||||
// Area 5, located in the footer. Empty by default.
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Third Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'third-footer-widget-area',
|
||||
'description' => __( 'The third footer widget area', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
) );
|
||||
|
||||
// Area 6, located in the footer. Empty by default.
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Fourth Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'fourth-footer-widget-area',
|
||||
'description' => __( 'The fourth footer widget area', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
) );
|
||||
}
|
||||
/** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */
|
||||
add_action( 'widgets_init', 'twentyten_widgets_init' );
|
||||
|
||||
/**
|
||||
* Removes the default styles that are packaged with the Recent Comments widget.
|
||||
*
|
||||
* To override this in a child theme, remove the filter and optionally add your own
|
||||
* function tied to the widgets_init action hook.
|
||||
*
|
||||
* This function uses a filter (show_recent_comments_widget_style) new in WordPress 3.1
|
||||
* to remove the default style. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles,
|
||||
* but they won't have any effect on the widget in default Twenty Ten styling.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
function twentyten_remove_recent_comments_style() {
|
||||
add_filter( 'show_recent_comments_widget_style', '__return_false' );
|
||||
}
|
||||
add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' );
|
||||
|
||||
if ( ! function_exists( 'twentyten_posted_on' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the current post-date/time and author.
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
function twentyten_posted_on() {
|
||||
printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
|
||||
'meta-prep meta-prep-author',
|
||||
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
|
||||
get_permalink(),
|
||||
esc_attr( get_the_time() ),
|
||||
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' ) ),
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
)
|
||||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentyten_posted_in' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the current post (category, tags and permalink).
|
||||
*
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
function twentyten_posted_in() {
|
||||
// Retrieves tag list of current post, separated by commas.
|
||||
$tag_list = get_the_tag_list( '', ', ' );
|
||||
if ( $tag_list ) {
|
||||
$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||
} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
|
||||
$posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||
} else {
|
||||
$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||
}
|
||||
// Prints the string, replacing the placeholders.
|
||||
printf(
|
||||
$posted_in,
|
||||
get_the_category_list( ', ' ),
|
||||
$tag_list,
|
||||
get_permalink(),
|
||||
the_title_attribute( 'echo=0' )
|
||||
);
|
||||
}
|
||||
endif;
|
||||
@@ -1,108 +0,0 @@
|
||||
<?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(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<title><?php
|
||||
/*
|
||||
* Print the <title> tag based on what is being viewed.
|
||||
*/
|
||||
global $page, $paged;
|
||||
|
||||
wp_title( '|', true, 'right' );
|
||||
|
||||
// Add the blog name.
|
||||
bloginfo( 'name' );
|
||||
|
||||
// Add the blog description for the home/front page.
|
||||
$site_description = get_bloginfo( 'description', 'display' );
|
||||
if ( $site_description && ( is_home() || is_front_page() ) )
|
||||
echo " | $site_description";
|
||||
|
||||
// Add a page number if necessary:
|
||||
if ( $paged >= 2 || $page >= 2 )
|
||||
echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
|
||||
|
||||
?></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' ); ?>" />
|
||||
<?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(); ?>>
|
||||
<div id="wrapper" class="hfeed">
|
||||
<div id="header">
|
||||
<div 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
|
||||
// Compatibility with versions of WordPress prior to 3.4.
|
||||
if ( function_exists( 'get_custom_header' ) ) {
|
||||
// We need to figure out what the minimum width should be for our featured image.
|
||||
// This result would be the suggested width if the theme were to implement flexible widths.
|
||||
$header_image_width = get_theme_support( 'custom-header', 'width' );
|
||||
} else {
|
||||
$header_image_width = HEADER_IMAGE_WIDTH;
|
||||
}
|
||||
|
||||
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
|
||||
if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
|
||||
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 );
|
||||
elseif ( get_header_image() ) :
|
||||
// Compatibility with versions of WordPress prior to 3.4.
|
||||
if ( function_exists( 'get_custom_header' ) ) {
|
||||
$header_image_width = get_custom_header()->width;
|
||||
$header_image_height = get_custom_header()->height;
|
||||
} else {
|
||||
$header_image_width = HEADER_IMAGE_WIDTH;
|
||||
$header_image_height = HEADER_IMAGE_HEIGHT;
|
||||
}
|
||||
?>
|
||||
<img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
</div><!-- #branding -->
|
||||
|
||||
<div id="access" 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' ) ); ?>
|
||||
</div><!-- #access -->
|
||||
</div><!-- #masthead -->
|
||||
</div><!-- #header -->
|
||||
|
||||
<div id="main">
|
||||
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 849 B |
@@ -1,32 +0,0 @@
|
||||
<?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
|
||||
* @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(); ?>
|
||||
@@ -1,422 +0,0 @@
|
||||
# Copyright (C) 2012 the WordPress team
|
||||
# This file is distributed under the GNU General Public License v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Twenty Ten 1.4\n"
|
||||
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyten\n"
|
||||
"POT-Creation-Date: 2012-06-10 15:18:09+00:00\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
#: 404.php:16 loop.php:33
|
||||
msgid "Not Found"
|
||||
msgstr ""
|
||||
|
||||
#: 404.php:18
|
||||
msgid ""
|
||||
"Apologies, but the page you requested could not be found. Perhaps searching "
|
||||
"will help."
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:33
|
||||
msgid "Daily Archives: <span>%s</span>"
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:35
|
||||
msgid "Monthly Archives: <span>%s</span>"
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:35
|
||||
msgctxt "monthly archives date format"
|
||||
msgid "F Y"
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:37
|
||||
msgid "Yearly Archives: <span>%s</span>"
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:37
|
||||
msgctxt "yearly archives date format"
|
||||
msgid "Y"
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:39
|
||||
msgid "Blog Archives"
|
||||
msgstr ""
|
||||
|
||||
#: author.php:27
|
||||
msgid "Author Archives: %s"
|
||||
msgstr ""
|
||||
|
||||
#: author.php:37 loop-single.php:43
|
||||
msgid "About %s"
|
||||
msgstr ""
|
||||
|
||||
#: category.php:16
|
||||
msgid "Category Archives: %s"
|
||||
msgstr ""
|
||||
|
||||
#: comments.php:18
|
||||
msgid ""
|
||||
"This post is password protected. Enter the password to view any comments."
|
||||
msgstr ""
|
||||
|
||||
#: comments.php:35
|
||||
msgid "One Response to %2$s"
|
||||
msgid_plural "%1$s Responses to %2$s"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: comments.php:41 comments.php:60
|
||||
msgid "<span class=\"meta-nav\">←</span> Older Comments"
|
||||
msgstr ""
|
||||
|
||||
#: comments.php:42 comments.php:61
|
||||
msgid "Newer Comments <span class=\"meta-nav\">→</span>"
|
||||
msgstr ""
|
||||
|
||||
#: comments.php:72
|
||||
msgid "Comments are closed."
|
||||
msgstr ""
|
||||
|
||||
#. #-#-#-#-# twentyten.pot (Twenty Ten 1.4) #-#-#-#-#
|
||||
#. Theme URI of the plugin/theme
|
||||
#: footer.php:33
|
||||
msgid "http://wordpress.org/"
|
||||
msgstr ""
|
||||
|
||||
#: footer.php:33
|
||||
msgid "Semantic Personal Publishing Platform"
|
||||
msgstr ""
|
||||
|
||||
#: footer.php:33
|
||||
msgid "Proudly powered by %s."
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:93
|
||||
msgid "Primary Navigation"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:145
|
||||
msgid "Berries"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:151
|
||||
msgid "Cherry Blossoms"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:157
|
||||
msgid "Concave"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:163
|
||||
msgid "Fern"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:169
|
||||
msgid "Forest Floor"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:175
|
||||
msgid "Inkwell"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:181
|
||||
msgid "Path"
|
||||
msgstr ""
|
||||
|
||||
#. translators: header image description
|
||||
#: functions.php:187
|
||||
msgid "Sunset"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:253 loop-attachment.php:104 loop.php:115 loop.php:143
|
||||
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:335
|
||||
msgid "%s <span class=\"says\">says:</span>"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:338
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: date, 2: time
|
||||
#: functions.php:345
|
||||
msgid "%1$s at %2$s"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:345 functions.php:362
|
||||
msgid "(Edit)"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:362
|
||||
msgid "Pingback:"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:381
|
||||
msgid "Primary Widget Area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:383
|
||||
msgid "The primary widget area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:392
|
||||
msgid "Secondary Widget Area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:394
|
||||
msgid "The secondary widget area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:403
|
||||
msgid "First Footer Widget Area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:405
|
||||
msgid "The first footer widget area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:414
|
||||
msgid "Second Footer Widget Area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:416
|
||||
msgid "The second footer widget area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:425
|
||||
msgid "Third Footer Widget Area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:427
|
||||
msgid "The third footer widget area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:436
|
||||
msgid "Fourth Footer Widget Area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:438
|
||||
msgid "The fourth footer widget area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:472
|
||||
msgid ""
|
||||
"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
|
||||
"span> %3$s"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:481 loop-attachment.php:36
|
||||
msgid "View all posts by %s"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:498
|
||||
msgid ""
|
||||
"This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" "
|
||||
"title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:500
|
||||
msgid ""
|
||||
"This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title="
|
||||
"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:502
|
||||
msgid ""
|
||||
"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
|
||||
"\">permalink</a>."
|
||||
msgstr ""
|
||||
|
||||
#: header.php:33
|
||||
msgid "Page %s"
|
||||
msgstr ""
|
||||
|
||||
#: header.php:101
|
||||
msgid "Skip to content"
|
||||
msgstr ""
|
||||
|
||||
#: loop-attachment.php:21
|
||||
msgid "Return to %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s - title of parent post
|
||||
#: loop-attachment.php:23
|
||||
msgid "<span class=\"meta-nav\">←</span> %s"
|
||||
msgstr ""
|
||||
|
||||
#: loop-attachment.php:32
|
||||
msgid "<span class=\"%1$s\">By</span> %2$s"
|
||||
msgstr ""
|
||||
|
||||
#: loop-attachment.php:43
|
||||
msgid "<span class=\"%1$s\">Published</span> %2$s"
|
||||
msgstr ""
|
||||
|
||||
#: loop-attachment.php:53
|
||||
msgid "Full size is %s pixels"
|
||||
msgstr ""
|
||||
|
||||
#: loop-attachment.php:56
|
||||
msgid "Link to full-size image"
|
||||
msgstr ""
|
||||
|
||||
#: loop-attachment.php:63 loop-attachment.php:111 loop-page.php:30
|
||||
#: loop-single.php:56 loop.php:100 loop.php:123 loop.php:165
|
||||
msgid "Edit"
|
||||
msgstr ""
|
||||
|
||||
#: loop-attachment.php:105 loop-page.php:29 loop-single.php:34 loop.php:144
|
||||
msgid "Pages:"
|
||||
msgstr ""
|
||||
|
||||
#: loop-single.php:21 loop-single.php:61
|
||||
msgctxt "Previous post link"
|
||||
msgid "←"
|
||||
msgstr ""
|
||||
|
||||
#: loop-single.php:22 loop-single.php:62
|
||||
msgctxt "Next post link"
|
||||
msgid "→"
|
||||
msgstr ""
|
||||
|
||||
#: loop-single.php:47
|
||||
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:25 loop.php:178
|
||||
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:26 loop.php:179
|
||||
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:35
|
||||
msgid ""
|
||||
"Apologies, but no results were found for the requested archive. Perhaps "
|
||||
"searching will help find a related post."
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:60 loop.php:95 loop.php:96
|
||||
msgctxt "gallery category slug"
|
||||
msgid "gallery"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:62 loop.php:83 loop.php:131
|
||||
msgid "Permalink to %s"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:82
|
||||
msgid "This gallery contains <a %1$s>%2$s photo</a>."
|
||||
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: loop.php:93
|
||||
msgid "View Galleries"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:93 loop.php:96
|
||||
msgid "More Galleries"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:96
|
||||
msgid "View posts in the Gallery category"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:99 loop.php:122 loop.php:164
|
||||
msgid "Leave a comment"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:99 loop.php:122 loop.php:164
|
||||
msgid "1 Comment"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:99 loop.php:122 loop.php:164
|
||||
msgid "% Comments"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:106
|
||||
msgctxt "asides category slug"
|
||||
msgid "asides"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:151
|
||||
msgid "<span class=\"%1$s\">Posted in</span> %2$s"
|
||||
msgstr ""
|
||||
|
||||
#: loop.php:160
|
||||
msgid "<span class=\"%1$s\">Tagged</span> %2$s"
|
||||
msgstr ""
|
||||
|
||||
#: search.php:16
|
||||
msgid "Search Results for: %s"
|
||||
msgstr ""
|
||||
|
||||
#: search.php:26
|
||||
msgid "Nothing Found"
|
||||
msgstr ""
|
||||
|
||||
#: search.php:28
|
||||
msgid ""
|
||||
"Sorry, but nothing matched your search criteria. Please try again with some "
|
||||
"different keywords."
|
||||
msgstr ""
|
||||
|
||||
#: sidebar.php:27
|
||||
msgid "Archives"
|
||||
msgstr ""
|
||||
|
||||
#: sidebar.php:34
|
||||
msgid "Meta"
|
||||
msgstr ""
|
||||
|
||||
#: tag.php:16
|
||||
msgid "Tag Archives: %s"
|
||||
msgstr ""
|
||||
|
||||
#. Theme Name of the plugin/theme
|
||||
msgid "Twenty Ten"
|
||||
msgstr ""
|
||||
|
||||
#. Description of the plugin/theme
|
||||
msgid ""
|
||||
"The 2010 theme for WordPress is stylish, customizable, simple, and readable "
|
||||
"-- make it yours with a custom menu, header image, and background. Twenty "
|
||||
"Ten supports six widgetized areas (two in the sidebar, four in the footer) "
|
||||
"and featured images (thumbnails for gallery posts and custom header images "
|
||||
"for posts and pages). It includes stylesheets for print and the admin Visual "
|
||||
"Editor, special styles for posts in the \"Asides\" and \"Gallery\" "
|
||||
"categories, and has an optional one-column page template that removes the "
|
||||
"sidebar."
|
||||
msgstr ""
|
||||
|
||||
#. Author of the plugin/theme
|
||||
msgid "the WordPress team"
|
||||
msgstr ""
|
||||
|
||||
#. Tags of the plugin/theme
|
||||
msgid ""
|
||||
"black, blue, white, two-columns, fixed-width, custom-header, custom-"
|
||||
"background, threaded-comments, sticky-post, translation-ready, microformats, "
|
||||
"rtl-language-support, editor-style, custom-menu"
|
||||
msgstr ""
|
||||
|
||||
#. Template Name of the plugin/theme
|
||||
msgid "One column, no sidebar"
|
||||
msgstr ""
|
||||
@@ -1,281 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The loop that displays an attachment.
|
||||
*
|
||||
* The loop displays the posts and the post content. See
|
||||
* http://codex.wordpress.org/The_Loop to understand it and
|
||||
* http://codex.wordpress.org/Template_Tags to understand
|
||||
* the tags used in it.
|
||||
*
|
||||
* This can be overridden in child themes with loop-attachment.php.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.2
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<?php if ( ! empty( $post->post_parent ) ) : ?>
|
||||
<p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery"><?php
|
||||
/* translators: %s - title of parent post */
|
||||
printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
|
||||
?></a></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<h2 class="entry-title"><?php the_title(); ?></h2>
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
printf( __( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
|
||||
'meta-prep meta-prep-author',
|
||||
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
||||
get_author_posts_url( get_the_author_meta( 'ID' ) ),
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
)
|
||||
);
|
||||
?>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php
|
||||
printf( __( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
|
||||
'meta-prep meta-prep-entry-date',
|
||||
sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>',
|
||||
esc_attr( get_the_time() ),
|
||||
get_the_date()
|
||||
)
|
||||
);
|
||||
if ( wp_attachment_is_image() ) {
|
||||
echo ' <span class="meta-sep">|</span> ';
|
||||
$metadata = wp_get_attachment_metadata();
|
||||
printf( __( 'Full size is %s pixels', 'twentyten' ),
|
||||
sprintf( '<a href="%1$s" title="%2$s">%3$s × %4$s</a>',
|
||||
wp_get_attachment_url(),
|
||||
esc_attr( __( 'Link to full-size image', 'twentyten' ) ),
|
||||
$metadata['width'],
|
||||
$metadata['height']
|
||||
)
|
||||
);
|
||||
}
|
||||
?>
|
||||
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<div class="entry-content">
|
||||
<div class="entry-attachment">
|
||||
<?php if ( wp_attachment_is_image() ) :
|
||||
$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
|
||||
foreach ( $attachments as $k => $attachment ) {
|
||||
if ( $attachment->ID == $post->ID )
|
||||
break;
|
||||
}
|
||||
$k++;
|
||||
// If there is more than 1 image attachment in a gallery
|
||||
if ( count( $attachments ) > 1 ) {
|
||||
if ( isset( $attachments[ $k ] ) )
|
||||
// get the URL of the next image attachment
|
||||
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
|
||||
else
|
||||
// or get the URL of the first image attachment
|
||||
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
|
||||
} else {
|
||||
// or, if there's only 1 image attachment, get the URL of the image
|
||||
$next_attachment_url = wp_get_attachment_url();
|
||||
}
|
||||
?>
|
||||
<p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
|
||||
$attachment_width = apply_filters( 'twentyten_attachment_size', 900 );
|
||||
$attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
|
||||
echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
|
||||
?></a></p>
|
||||
|
||||
<div id="nav-below" class="navigation">
|
||||
<div class="nav-previous"><?php previous_image_link( false ); ?></div>
|
||||
<div class="nav-next"><?php next_image_link( false ); ?></div>
|
||||
</div><!-- #nav-below -->
|
||||
<?php else : ?>
|
||||
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
|
||||
<?php endif; ?>
|
||||
</div><!-- .entry-attachment -->
|
||||
<div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
|
||||
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
|
||||
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<div class="entry-utility">
|
||||
<?php twentyten_posted_in(); ?>
|
||||
<?php edit_post_link( __( 'Edit', 'twentyten' ), ' <span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-utility -->
|
||||
</div><!-- #post-## -->
|
||||
|
||||
<?php comments_template(); ?>
|
||||
|
||||
<?php endwhile; // end of the loop. ?>
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The loop that displays a page.
|
||||
*
|
||||
* The loop displays the posts and the post content. See
|
||||
* http://codex.wordpress.org/The_Loop to understand it and
|
||||
* http://codex.wordpress.org/Template_Tags to understand
|
||||
* the tags used in it.
|
||||
*
|
||||
* This can be overridden in child themes with loop-page.php.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.2
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php if ( is_front_page() ) { ?>
|
||||
<h2 class="entry-title"><?php the_title(); ?></h2>
|
||||
<?php } else { ?>
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
<?php } ?>
|
||||
|
||||
<div class="entry-content">
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
|
||||
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
</div><!-- #post-## -->
|
||||
|
||||
<?php comments_template( '', true ); ?>
|
||||
|
||||
<?php endwhile; // end of the loop. ?>
|
||||
@@ -1,67 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The loop that displays a single post.
|
||||
*
|
||||
* The loop displays the posts and the post content. See
|
||||
* http://codex.wordpress.org/The_Loop to understand it and
|
||||
* http://codex.wordpress.org/Template_Tags to understand
|
||||
* the tags used in it.
|
||||
*
|
||||
* This can be overridden in child themes with loop-single.php.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.2
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<div id="nav-above" class="navigation">
|
||||
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
|
||||
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
|
||||
</div><!-- #nav-above -->
|
||||
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php twentyten_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
|
||||
<div id="entry-author-info">
|
||||
<div id="author-avatar">
|
||||
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
|
||||
</div><!-- #author-avatar -->
|
||||
<div id="author-description">
|
||||
<h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
|
||||
<?php the_author_meta( 'description' ); ?>
|
||||
<div id="author-link">
|
||||
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author">
|
||||
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?>
|
||||
</a>
|
||||
</div><!-- #author-link -->
|
||||
</div><!-- #author-description -->
|
||||
</div><!-- #entry-author-info -->
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="entry-utility">
|
||||
<?php twentyten_posted_in(); ?>
|
||||
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-utility -->
|
||||
</div><!-- #post-## -->
|
||||
|
||||
<div id="nav-below" class="navigation">
|
||||
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
|
||||
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
|
||||
</div><!-- #nav-below -->
|
||||
|
||||
<?php comments_template( '', true ); ?>
|
||||
|
||||
<?php endwhile; // end of the loop. ?>
|
||||
@@ -1,181 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The loop that displays posts.
|
||||
*
|
||||
* The loop displays the posts and the post content. See
|
||||
* http://codex.wordpress.org/The_Loop to understand it and
|
||||
* http://codex.wordpress.org/Template_Tags to understand
|
||||
* the tags used in it.
|
||||
*
|
||||
* This can be overridden in child themes with loop.php or
|
||||
* loop-template.php, where 'template' is the loop context
|
||||
* requested by a template. For example, loop-index.php would
|
||||
* be used if it exists and we ask for the loop with:
|
||||
* <code>get_template_part( 'loop', 'index' );</code>
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php /* Display navigation to next/previous pages when applicable */ ?>
|
||||
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||
<div id="nav-above" class="navigation">
|
||||
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
|
||||
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
|
||||
</div><!-- #nav-above -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php /* If there are no posts to display, such as an empty archive page */ ?>
|
||||
<?php if ( ! have_posts() ) : ?>
|
||||
<div id="post-0" class="post error404 not-found">
|
||||
<h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1>
|
||||
<div class="entry-content">
|
||||
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyten' ); ?></p>
|
||||
<?php get_search_form(); ?>
|
||||
</div><!-- .entry-content -->
|
||||
</div><!-- #post-0 -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
/* Start the Loop.
|
||||
*
|
||||
* In Twenty Ten we use the same loop in multiple contexts.
|
||||
* It is broken into three main parts: when we're displaying
|
||||
* posts that are in the gallery category, when we're displaying
|
||||
* posts in the asides category, and finally all other posts.
|
||||
*
|
||||
* Additionally, we sometimes check for whether we are on an
|
||||
* archive page, a search page, etc., allowing for small differences
|
||||
* in the loop on each template without actually duplicating
|
||||
* the rest of the loop that is shared.
|
||||
*
|
||||
* Without further ado, the loop:
|
||||
*/ ?>
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?>
|
||||
|
||||
<?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php twentyten_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php if ( post_password_required() ) : ?>
|
||||
<?php the_content(); ?>
|
||||
<?php else : ?>
|
||||
<?php
|
||||
$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
|
||||
if ( $images ) :
|
||||
$total_images = count( $images );
|
||||
$image = array_shift( $images );
|
||||
$image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );
|
||||
?>
|
||||
<div class="gallery-thumb">
|
||||
<a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
|
||||
</div><!-- .gallery-thumb -->
|
||||
<p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ),
|
||||
'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
|
||||
number_format_i18n( $total_images )
|
||||
); ?></em></p>
|
||||
<?php endif; ?>
|
||||
<?php the_excerpt(); ?>
|
||||
<?php endif; ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<div class="entry-utility">
|
||||
<?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?>
|
||||
<a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php elseif ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>
|
||||
<a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php endif; ?>
|
||||
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
|
||||
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-utility -->
|
||||
</div><!-- #post-## -->
|
||||
|
||||
<?php /* How to display posts of the Aside format. The asides category is the old way. */ ?>
|
||||
|
||||
<?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?>
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="entry-utility">
|
||||
<?php twentyten_posted_on(); ?>
|
||||
<span class="meta-sep">|</span>
|
||||
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
|
||||
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-utility -->
|
||||
</div><!-- #post-## -->
|
||||
|
||||
<?php /* How to display all other posts. */ ?>
|
||||
|
||||
<?php else : ?>
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php twentyten_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="entry-utility">
|
||||
<?php if ( count( get_the_category() ) ) : ?>
|
||||
<span class="cat-links">
|
||||
<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
|
||||
</span>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$tags_list = get_the_tag_list( '', ', ' );
|
||||
if ( $tags_list ):
|
||||
?>
|
||||
<span class="tag-links">
|
||||
<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
|
||||
</span>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php endif; ?>
|
||||
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
|
||||
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-utility -->
|
||||
</div><!-- #post-## -->
|
||||
|
||||
<?php comments_template( '', true ); ?>
|
||||
|
||||
<?php endif; // This was the if statement that broke the loop into three parts based on categories. ?>
|
||||
|
||||
<?php endwhile; // End the loop. Whew. ?>
|
||||
|
||||
<?php /* Display navigation to next/previous pages when applicable */ ?>
|
||||
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||
<div id="nav-below" class="navigation">
|
||||
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
|
||||
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
|
||||
</div><!-- #nav-below -->
|
||||
<?php endif; ?>
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Template Name: One column, no sidebar
|
||||
*
|
||||
* A custom page template without sidebar.
|
||||
*
|
||||
* The "Template Name:" bit above allows this to be selectable
|
||||
* from a dropdown menu on the edit page screen.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container" class="one-column">
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php
|
||||
/* Run the loop to output the page.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-page.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'page' );
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,32 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying all pages.
|
||||
*
|
||||
* This is the template that displays all pages by default.
|
||||
* Please note that this is the WordPress construct of pages
|
||||
* and that other 'pages' on your WordPress site will use a
|
||||
* different template.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php
|
||||
/* Run the loop to output the page.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-page.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'page' );
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,285 +0,0 @@
|
||||
/*
|
||||
Theme Name: Twenty Ten
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
RTL Basics
|
||||
*/
|
||||
|
||||
|
||||
body {
|
||||
direction:rtl;
|
||||
unicode-bidi:embed;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
LAYOUT: Two-Column (Right)
|
||||
DESCRIPTION: Two-column fixed layout with one sidebar right of content
|
||||
*/
|
||||
|
||||
#container {
|
||||
float: right;
|
||||
margin: 0 0 0 -240px;
|
||||
}
|
||||
#content {
|
||||
margin: 0 20px 36px 280px;
|
||||
}
|
||||
#primary,
|
||||
#secondary {
|
||||
float: left;
|
||||
}
|
||||
#secondary {
|
||||
clear: left;
|
||||
}
|
||||
|
||||
|
||||
/* =Fonts
|
||||
-------------------------------------------------------------- */
|
||||
body,
|
||||
input,
|
||||
textarea,
|
||||
.page-title span,
|
||||
.pingback a.url,
|
||||
h3#comments-title,
|
||||
h3#reply-title,
|
||||
#access .menu,
|
||||
#access div.menu ul,
|
||||
#cancel-comment-reply-link,
|
||||
.form-allowed-tags,
|
||||
#site-info,
|
||||
#site-title,
|
||||
#wp-calendar,
|
||||
.comment-meta,
|
||||
.comment-body tr th,
|
||||
.comment-body thead th,
|
||||
.entry-content label,
|
||||
.entry-content tr th,
|
||||
.entry-content thead th,
|
||||
.entry-meta,
|
||||
.entry-title,
|
||||
.entry-utility,
|
||||
#respond label,
|
||||
.navigation,
|
||||
.page-title,
|
||||
.pingback p,
|
||||
.reply,
|
||||
.widget-title,
|
||||
input[type=submit] {
|
||||
font-family: Arial, Tahoma, sans-serif;
|
||||
}
|
||||
|
||||
/* =Structure
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
/* The main theme structure */
|
||||
#footer-widget-area .widget-area {
|
||||
float: right;
|
||||
margin-left: 20px;
|
||||
margin-right: 0;
|
||||
}
|
||||
#footer-widget-area #fourth {
|
||||
margin-left: 0;
|
||||
}
|
||||
#site-info {
|
||||
float: right;
|
||||
}
|
||||
#site-generator {
|
||||
float: left;
|
||||
}
|
||||
|
||||
|
||||
/* =Global Elements
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
/* Text elements */
|
||||
ul, ol {
|
||||
margin: 0 1.5em 18px 0;
|
||||
}
|
||||
blockquote {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* Text meant only for screen readers */
|
||||
.screen-reader-text {
|
||||
left: auto;
|
||||
text-indent:-9000px;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
|
||||
/* =Header
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
#site-title {
|
||||
float: right;
|
||||
}
|
||||
#site-description {
|
||||
clear: left;
|
||||
float: left;
|
||||
font-style: normal;
|
||||
}
|
||||
#branding img {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* =Menu
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
#access {
|
||||
float:right;
|
||||
}
|
||||
|
||||
#access .menu-header,
|
||||
div.menu {
|
||||
margin-right: 12px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#access .menu-header li,
|
||||
div.menu li{
|
||||
float:right;
|
||||
}
|
||||
|
||||
#access ul ul {
|
||||
left:auto;
|
||||
right:0;
|
||||
float:right;
|
||||
}
|
||||
#access ul ul ul {
|
||||
left:auto;
|
||||
right:100%;
|
||||
}
|
||||
|
||||
/* =Content
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
#content table {
|
||||
text-align: right;
|
||||
margin: 0 0 24px -1px;
|
||||
}
|
||||
.page-title span {
|
||||
font-style:normal;
|
||||
}
|
||||
.entry-title,
|
||||
.entry-meta {
|
||||
clear: right;
|
||||
float: right;
|
||||
margin-left: 68px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.entry-content input.file,
|
||||
.entry-content input.button {
|
||||
margin-left: 24px;
|
||||
margin-right:0;
|
||||
}
|
||||
.entry-content blockquote.left {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 24px;
|
||||
text-align: left;
|
||||
}
|
||||
.entry-content blockquote.right {
|
||||
float: left;
|
||||
margin-right: 24px;
|
||||
margin-left: 0;
|
||||
text-align: right;
|
||||
}
|
||||
#entry-author-info #author-avatar {
|
||||
float: right;
|
||||
margin: 0 0 0 -104px;
|
||||
}
|
||||
#entry-author-info #author-description {
|
||||
float: right;
|
||||
margin: 0 104px 0 0;
|
||||
}
|
||||
|
||||
/* Gallery listing
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.category-gallery .gallery-thumb {
|
||||
float: right;
|
||||
margin-left:20px;
|
||||
margin-right:0;
|
||||
}
|
||||
|
||||
|
||||
/* Images
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
#content .gallery .gallery-caption {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#content .gallery .gallery-item {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* =Navigation
|
||||
-------------------------------------------------------------- */
|
||||
.nav-previous {
|
||||
float: right;
|
||||
}
|
||||
.nav-next {
|
||||
float: left;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
/* =Comments
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.commentlist li.comment {
|
||||
padding: 0 56px 0 0;
|
||||
}
|
||||
.commentlist .avatar {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
.comment-author .says, #comments .pingback .url {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* Comments form */
|
||||
.children #respond {
|
||||
margin: 0 0 0 48px;
|
||||
}
|
||||
|
||||
/* =Widget Areas
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.widget-area ul {
|
||||
margin-right: 0;
|
||||
}
|
||||
.widget-area ul ul {
|
||||
margin-right: 1.3em;
|
||||
margin-left: 0;
|
||||
}
|
||||
#wp-calendar caption {
|
||||
text-align: right;
|
||||
}
|
||||
#wp-calendar tfoot #next {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Main sidebars */
|
||||
#main .widget-area ul {
|
||||
margin-right: 0;
|
||||
padding: 0 0 0 20px;
|
||||
}
|
||||
#main .widget-area ul ul {
|
||||
margin-right: 1.3em;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* =Footer
|
||||
-------------------------------------------------------------- */
|
||||
#site-generator {
|
||||
font-style:normal;
|
||||
}
|
||||
#site-generator a {
|
||||
background-position: right center;
|
||||
padding-right: 20px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 34 KiB |
@@ -1,37 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Search Results pages.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||
<?php
|
||||
/* Run the loop for the search to output the results.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-search.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'search' );
|
||||
?>
|
||||
<?php else : ?>
|
||||
<div id="post-0" class="post no-results not-found">
|
||||
<h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2>
|
||||
<div class="entry-content">
|
||||
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p>
|
||||
<?php get_search_form(); ?>
|
||||
</div><!-- .entry-content -->
|
||||
</div><!-- #post-0 -->
|
||||
<?php endif; ?>
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,60 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The Footer widget areas.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php
|
||||
/* The footer widget area is triggered if any of the areas
|
||||
* have widgets. So let's check that first.
|
||||
*
|
||||
* If none of the sidebars have widgets, then let's bail early.
|
||||
*/
|
||||
if ( ! is_active_sidebar( 'first-footer-widget-area' )
|
||||
&& ! is_active_sidebar( 'second-footer-widget-area' )
|
||||
&& ! is_active_sidebar( 'third-footer-widget-area' )
|
||||
&& ! is_active_sidebar( 'fourth-footer-widget-area' )
|
||||
)
|
||||
return;
|
||||
// If we get this far, we have widgets. Let do this.
|
||||
?>
|
||||
|
||||
<div id="footer-widget-area" role="complementary">
|
||||
|
||||
<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
|
||||
<div id="first" class="widget-area">
|
||||
<ul class="xoxo">
|
||||
<?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
|
||||
</ul>
|
||||
</div><!-- #first .widget-area -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
|
||||
<div id="second" class="widget-area">
|
||||
<ul class="xoxo">
|
||||
<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
|
||||
</ul>
|
||||
</div><!-- #second .widget-area -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
|
||||
<div id="third" class="widget-area">
|
||||
<ul class="xoxo">
|
||||
<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
|
||||
</ul>
|
||||
</div><!-- #third .widget-area -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
|
||||
<div id="fourth" class="widget-area">
|
||||
<ul class="xoxo">
|
||||
<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
|
||||
</ul>
|
||||
</div><!-- #fourth .widget-area -->
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- #footer-widget-area -->
|
||||
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The Sidebar containing the primary and secondary widget areas.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="primary" class="widget-area" role="complementary">
|
||||
<ul class="xoxo">
|
||||
|
||||
<?php
|
||||
/* When we call the dynamic_sidebar() function, it'll spit out
|
||||
* the widgets for that widget area. If it instead returns false,
|
||||
* then the sidebar simply doesn't exist, so we'll hard-code in
|
||||
* some default sidebar stuff just in case.
|
||||
*/
|
||||
if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
|
||||
|
||||
<li id="search" class="widget-container widget_search">
|
||||
<?php get_search_form(); ?>
|
||||
</li>
|
||||
|
||||
<li id="archives" class="widget-container">
|
||||
<h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3>
|
||||
<ul>
|
||||
<?php wp_get_archives( 'type=monthly' ); ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li id="meta" class="widget-container">
|
||||
<h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3>
|
||||
<ul>
|
||||
<?php wp_register(); ?>
|
||||
<li><?php wp_loginout(); ?></li>
|
||||
<?php wp_meta(); ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<?php endif; // end primary widget area ?>
|
||||
</ul>
|
||||
</div><!-- #primary .widget-area -->
|
||||
|
||||
<?php
|
||||
// A second sidebar for widgets, just because.
|
||||
if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
|
||||
|
||||
<div id="secondary" class="widget-area" role="complementary">
|
||||
<ul class="xoxo">
|
||||
<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
|
||||
</ul>
|
||||
</div><!-- #secondary .widget-area -->
|
||||
|
||||
<?php endif; ?>
|
||||
@@ -1,27 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying all single posts.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php
|
||||
/* Run the loop to output the post.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-single.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'single' );
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Tag Archive pages.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="container">
|
||||
<div id="content" role="main">
|
||||
|
||||
<h1 class="page-title"><?php
|
||||
printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
/* Run the loop for the tag archive to output the posts
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called loop-tag.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'loop', 'tag' );
|
||||
?>
|
||||
</div><!-- #content -->
|
||||
</div><!-- #container -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||