Commit b3738fd5 authored by lucha's avatar lucha Committed by lechuck

Update Thematic theme 1.0.2.1

parent bed3222e
<?php
/**
* Error 404 Page Template
*
* Displays a "Not Found" message and a search form when a 404 Error is encountered.
*
* @package Thematic
* @subpackage Templates
*
* @link http://codex.wordpress.org/Creating_an_Error_404_Page Codex: Create a 404 Page
*/
@header("HTTP/1.1 404 Not found", true, 404);
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
<?php thematic_abovecontent(); ?>
<div id="content">
<?php thematic_abovepost(); ?>
<?php
// action hook for placing content above #content
thematic_abovecontent();
// filter for manipulating the element that wraps the content
echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" );
// action hook for placing content above #post
thematic_abovepost();
?>
<div id="post-0" class="post error404">
<?php
// action hook for the 404 content
thematic_404()
// action hook for placing the 404 content
thematic_404()
?>
</div><!-- .post -->
<?php thematic_belowpost(); ?>
<?php
// action hook for placing content below #post
thematic_belowpost();
?>
</div><!-- #content -->
<?php thematic_belowcontent(); ?>
<?php
// action hook for placing content below #content
thematic_belowcontent();
?>
</div><!-- #container -->
<?php
// action hook for placing content below #container
thematic_belowcontainer();
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
?>
\ No newline at end of file
<?php
/**
* Archive Template
*
* Displays an Archive index of post-type items. Other more specific archive templates
* may override the display of this template for example the category.php.
*
* @package Thematic
* @subpackage Templates
*
* @link http://codex.wordpress.org/Template_Hierarchy Codex: Template Hierarchy
*/
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
<?php thematic_abovecontent(); ?>
<div id="content">
<?php
the_post();
// displays the page title
thematic_page_title();
rewind_posts();
// create the navigation above the content
thematic_navigation_above();
// action hook creating the archive loop
thematic_archiveloop();
// create the navigation below the content
thematic_navigation_below();
?>
<?php
// action hook for placing content above #content
thematic_abovecontent();
// filter for manipulating the element that wraps the content
echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" );
// displays the page title
thematic_page_title();
// create the navigation above the content
thematic_navigation_above();
// action hook for placing content above the archive loop
thematic_above_archiveloop();
// action hook creating the archive loop
thematic_archiveloop();
// action hook for placing content below the archive loop
thematic_below_archiveloop();
// create the navigation below the content
thematic_navigation_below();
?>
</div><!-- #content -->
<?php thematic_belowcontent(); ?>
<?php
// action hook for placing content below #content
thematic_belowcontent();
?>
</div><!-- #container -->
<?php
// action hook for placing content below #container
thematic_belowcontainer();
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
?>
\ No newline at end of file
<?php
/*
Template Name: Archives Page
*/
?>
<?php
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
<?php thematic_abovecontent(); ?>
<div id="content">
<?php
the_post();
thematic_abovepost();
?>
<div id="post-<?php the_ID();
echo '" ';
if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
post_class();
echo '>';
} else {
echo 'class="';
thematic_post_class();
echo '">';
}
// creating the post header
thematic_postheader();
?>
<div class="entry-content">
<?php
the_content();
// action hook for the 404 content
thematic_archives();
edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>');
?>
</div><!-- .entry-content -->
</div><!-- #post -->
<?php
thematic_belowpost();
// calling the comments template
// calling the comments template
if (THEMATIC_COMPATIBLE_COMMENT_HANDLING) {
if ( get_post_custom_values('comments') ) {
// Add a key/value of "comments" to enable comments on pages!
thematic_comments_template();
}
} else {
thematic_comments_template();
}
?>
</div><!-- #content -->
<?php thematic_belowcontent(); ?>
</div><!-- #container -->
/**
* Template Name: Deprecated Archives Template
*
* This tamplate has bben deprecated for proper template namespacing
* This file is going away.
*
* If you wish to use Thematic's Archives page template, please set
* your Page Attributes: Template to use the template named "Archives"
* on the WP-Admin Edit Page screen.
*
* @package Thematic
* @subpackage Templates
*
* @link http://codex.wordpress.org/Template_Hierarchy Codex: Template Hierarchy
* @deprecated 1.0
*/
<?php
// Providing deprecated file notice to be seen when WP_DEBUG is true
_deprecated_file( sprintf( __( 'The template %s', 'thematic' ) . ':', basename(__FILE__) ), '1.0', 'template-page-archives.php' );
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
// calling the header.php
get_template_part( 'template-page' , 'archives' );
?>
\ No newline at end of file
<?php
/**
* Attachments Template
*
* Displays singular WordPress Media Library items.
*
* @package Thematic
* @subpackage Templates
*
* @link http://codex.wordpress.org/Using_Image_and_File_Attachments Codex:Using Attachments
*/
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
<?php thematic_abovecontent(); ?>
<div id="content">
<?php
the_post();
// displays the page title
<?php
// action hook for placing content above #content
thematic_abovecontent();
// filter for manipulating the element that wraps the content
echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" );
// start the loop
while ( have_posts() ) : the_post();
// displays the page title
thematic_page_title();
// action hook for placing content above #post
thematic_abovepost();
?>
<div id="post-<?php the_ID();
echo '" ';
if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
post_class();
echo '>';
?>
<?php
echo '<div id="post-' . get_the_ID() . '" ';
// Checking for defined constant to enable Thematic's post classes
if ( !( THEMATIC_COMPATIBLE_POST_CLASS ) ) {
post_class();
echo '>';
} else {
echo 'class="';
thematic_post_class();
echo '">';
echo 'class="';
thematic_post_class();
echo '">';
}
// creating the post header
thematic_postheader();
?>
// creating the post header
thematic_postheader();
?>
<div class="entry-content">
<div class="entry-attachment"><?php the_attachment_link($post->post_ID, true) ?></div>
<div class="entry-attachment"><?php the_attachment_link( $post->ID, true ) ?></div>
<?php
the_content(more_text());
wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>');
the_content( thematic_more_text() );
wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'thematic' ) . '&after=</div>' );
?>
</div><!-- .entry-content -->
<?php
// creating the post footer
thematic_postfooter();
// creating the post footer
thematic_postfooter();
?>
</div><!-- #post -->
<?php
thematic_belowpost();
comments_template();
// action hook for placing contentbelow #post
thematic_belowpost();
// action hook for calling the comments_template
thematic_comments_template();
// end loop
endwhile;
?>
</div><!-- #content -->
<?php thematic_belowcontent(); ?>
<?php
// action hook for placing content below #content
thematic_belowcontent();
?>
</div><!-- #container -->
<?php
// action hook for placing content below #container
thematic_belowcontainer();
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
?>
\ No newline at end of file
<?php
// calling the theme options
global $options, $blog_id;
foreach ($options as $value) {
if (get_option( $value['id'] ) === FALSE) {
$$value['id'] = $value['std'];
} else {
if (THEMATIC_MB)
{
$$value['id'] = get_blog_option($blog_id, $value['id'] );
}
else
{
$$value['id'] = get_option( $value['id'] );
}
}
}
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
/**
* Author Template
*
* Displays an archive index of posts by a singular Author.
* It can display a micrformatted vCard for Author if option is selcted in the default Theme Options.
*
* @package Thematic
* @subpackage Templates
*
* @link http://codex.wordpress.org/Author_Templates Codex:Author Templates
*/
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
<?php thematic_abovecontent(); ?>
<div id="content">
<?php
the_post();
// displays the page title
thematic_page_title();
// create the navigation above the content
thematic_navigation_above();
/* if display author bio is selected */
if($thm_authorinfo == 'true' & !is_paged()) { ?>
<?php
// action hook for placing content above #content
thematic_abovecontent();
echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" );
?>
<?php
// displays the page title
thematic_page_title();
// create the navigation above the content
thematic_navigation_above();
// display microformatted vCard if selected in Theme Options and display only on the first page of the archive's pagination
if ( thematic_get_theme_opt( 'author_info' ) == 1 & !is_paged() ) :
// setup the first post to acess the Author's metadata
the_post();
?>
<div id="author-info" class="vcard">
<h2 class="entry-title"><?php echo $authordata->first_name; ?> <?php echo $authordata->last_name; ?></h2>
<?php
// display the author's avatar
thematic_author_info_avatar();
<h2 class="entry-title"><?php the_author_meta( 'first_name' ); ?> <?php the_author_meta( 'last_name' ); ?></h2>
<?php
// display the author's avatar
thematic_author_info_avatar();
?>
<div class="author-bio note">
<?php
if ( !(''== $authordata->user_description) ) : echo apply_filters('archive_meta', $authordata->user_description); endif; ?>
</div>
<?php
// Display Author's discription if it exists