Commit 6dd93f3e authored by ale's avatar ale Committed by lucha

[auto] Theme: bliss 1.0.7

parent 43258b9c
<?php get_header(); ?>
<div class="post">
<h1 class="post-title"><?php _e('Not Found','bliss'); ?></h1>
<div class="entry">
<p><?php _e('Sorry, but you are looking for something that isn&#39;t here.','bliss'); ?></p>
</div>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/*
* 404
*
*
*/
get_header();
?>
<h1>Error 404 - Page Not Found</h1>
<div id="breadcrumbs">
<div class="content">
You are here: Lost.
</div>
</div>
<p>We're sorry, but the content you were searching for was unavailable. Please try again.</p>
<?php
// as of version 0.1.1, 404 notification emails are now optional.
$bliss_notification = of_get_option('bliss_404_notification', 'no');
if($bliss_notification == 'yes'){
/*
* If selected, notify the webmaster when this page is called.
* include the referring page and the user's IP address in the notification
* because this page will usually be triggered either by bad links or hackers.
* sometimes, occasionally, a genuine mistake.
* and genuine mistakes are an opportunity to create a more intuitive UI.
*/
if(isset($_SERVER['HTTP_REFERER'])){
$referrer = esc_url($_SERVER['HTTP_REFERER']);
}else{
$referrer = 'Not set.';
}
$requested = esc_url($_SERVER['REQUEST_URI']);
$ip = esc_attr($_SERVER['REMOTE_ADDR']);
// get the administrator's email address.
if(function_exists('is_multisite') && is_multisite()){
$to = get_site_option('admin_email');
}else{
$to = get_option('admin_email');
}
$subject = "Page Not Found on " . $_SERVER['SERVER_NAME'];
$message = "A visitor to your website received a 404 error. This visitor attempted to access nonexistent content on your website. They may have followed a bad link, or they may have been attempting something malicious. Either way, it could be something for you to look into.
Visitor IP address: $ip
Requested page: $requested
";
if(isset($referrer) && $referrer){
$message .= "They say they were referred by: $referrer";
}else{
$message .= "This visitor's browser did not supply referral data.";
}
wp_mail($to, $subject, $message);
}
get_sidebar(); ?>
<?php get_footer(); ?>
<?php get_header(); ?>
<div class="post archive-header">
<h1 class="post-title">
<?php
_e('Archive for ','bliss');
if(is_day()) : the_time(__('F jS, Y','bliss'));
elseif(is_month()) : the_time(__('F Y','bliss'));
elseif(is_year()) : the_time(__('Y','bliss'));
endif;
?>
</h1>
<div class="entry">
<p><?php _e('You are browsing the archives of','bliss'); wp_title(''); ?>.</p>
</div>
</div>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="post">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<p class="byline">
<span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span>
<span class="author"><?php the_author_posts_link() ?></span>
<?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?>
<?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?>
</p>
<div class="entry">
<?php
if($settings['archives'] == __('Excerpts','bliss')) the_excerpt();
else the_content(__('Read more &raquo;','bliss'));
?>
</div>
<div class="post-meta-data">
<span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span>
<span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span>
</div>
</div>
<?php endwhile; ?>
<div class="navigation-links section">
<?php posts_nav_link('',
'<span class="previous">&laquo; '.__('Previous Page','bliss').'</span>',
'<span class="next">'.__('Next Page','bliss').' &raquo;</span>'
); ?>
</div>
<?php else: ?>
<p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p>
<?php endif; ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php
//archive.php
//included automatically if there is no Category page (or if this is an archive lookup)
//delete to default to index.php instead
//display an archive page
/*
* From the documentation:
* " Display archive title (tag, category, date-based,
* or author archives).
* Display a list of posts in excerpt or full-length form.
*
* Include wp_link_pages() to support navigation links within posts. "
*/
?>
<?php
get_header();
?>
<article>
<h1>Archives</h1>
<div id="breadcrumbs">
<div class="content">
You are here:
<?php
// this one constructor does the whole thing.
$crumbs = new simple_breadcrumb();
?>
</div>
</div>
</article>
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
/* post_class is required by ThemeCheck */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class();?>>
<h2>
<?php
// our custom function outputs the title within a permalink, all properly escaped to prevent XSS attacks.
// see http://codex.wordpress.org/Theme_Development#Untrusted_Data
bliss_clean_title_link();
?>
</h2>
<?php
// recommended by ThemeCheck.
// via http://codex.wordpress.org/Function_Reference/add_theme_support
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
//the_content();//full post content
the_excerpt();
//doesn't require a read more link at the bottom,
//because I've built those into the_excerpt from functions.php
?>
</article>
<?php
endwhile;
else:
_e("Sorry, no articles matched your search.", 'bliss');
endif;
paginate(); //blog archive pagination!
get_sidebar();
get_footer();
?>
\ No newline at end of file
<?php get_header(); ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="post">
<h1 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h1>
<div class="entry">
<?php the_content(); ?>
</div>
</div>
<?php comments_template(); ?>
<div class="navigation-links section">
<span class="previous"><?php previous_post_link('&laquo; %link'); ?></span>
<span class="next"><?php next_post_link(' %link &raquo;'); ?></span>
</div>
<?php endwhile; ?>
<?php else: ?>
<p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p>
<?php endif; ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php
//attachment.php
//used for displaying multimedia content.
//display a customized layout and behavior specific to viewing a single attachment.
get_header();
if (have_posts()) :
while (have_posts()) :
the_post();
?>
<article>
<h1>
<?php the_title();//title of the post
?></h1>
<?php
the_content();//full post content -- doesn't output diddly squat on an image page.
// see the documentation at http://codex.wordpress.org/Function_Reference/wp_get_attachment_image
echo wp_get_attachment_image( $post->ID, 'full' );// this is how you display the image.
?>
</article>
<?php
endwhile;
endif;
get_sidebar();
get_footer();
?>
\ No newline at end of file
<?php get_header(); ?>
<div class="post author-header">
<h1 class="post-title"><?php wp_title(''); ?></h1>
<div class="entry">
<?php op_author_bio(); // Author header hook ?>
</div>
</div>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="post">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<p class="byline">
<span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span>
<span class="author"><?php the_author_posts_link(); ?></span>
<?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?>
<?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?>
</p>
<div class="entry">
<?php
if($settings['archives'] == __('Excerpts','bliss')) the_excerpt();
else the_content(__('Read more &raquo;','bliss'));
?>
</div>
<div class="post-meta-data">
<span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span>
<span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span>
</div>
</div>
<?php endwhile; ?>
<div class="navigation-links section">
<?php posts_nav_link('',
'<span class="previous">&laquo; '.__('Previous Page','bliss').'</span>',
'<span class="next">'.__('Next Page','bliss').' &raquo;</span>'
); ?>
</div>
<?php else: ?>
<p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p>
<?php endif; ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php
//author.php
//included automatically if there is no Category page (or if this is an archive lookup)
//delete to default to index.php instead
//display an author page
//see http://codex.wordpress.org/Author_Templates
//link to this page by calling the_author_posts_link()
/*
*
* to get more specific you could also make versions of this page,
* with php files named after the associated query term, eg:
*
* author-{id}.php
* or
* author-{nicename}.php
*
*/
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
get_header();
?>
<h1>Posts by
<?php
//the_title();//title of the post
$curauth->first_name .' ';
if($curauth->nickname && $curauth->nickname != ''){
echo '&quot;';
$curauth->nickname;
echo '&quot; ';//note the extra space...
}
$curauth->last_name;
//as usual, many more available...
?>
</h1>
<div id="breadcrumbs">
<div class="content">
You are here:
<?php
// this one constructor does the whole thing.
$crumbs = new simple_breadcrumb();
?>
</div>
</div>
<ul class="author-post-list">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
/* post_class is required by ThemeCheck */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class();?>>
<?php
//ThemeCheck complains that I'm not using get_option('date_format') instead of the_time() here:
?>
<li>
<?php
// our custom function outputs the title within a permalink, all properly escaped to prevent XSS attacks.
// see http://codex.wordpress.org/Theme_Development#Untrusted_Data
bliss_clean_title_link();
?>, posted
<?php
// ThemeCheck just really can't stand this line:
//the_time('d M Y');
// instead, it wants me to call:
get_option('d M Y');
?> in <?php the_category('&');?>
</li>
</article>
<?php
endwhile;
else: ?>
<p><?php _e('No posts by this author.', 'bliss'); ?></p>
<?php
endif;
?>
</ul>
<?php
get_sidebar();//author-specific sidebars?
get_footer();
?>
\ No newline at end of file
<?php
//blogroll.php
/*
Template Name: Blogroll
*/
// Optional custom blog home page template
// allows the user to preface the blogroll with customized introductory content (such as text, featured image, or slideshow).
// Does not override home.php
// Is not affected by site's Reading settings.
// To use this template, select a page from the content editor, and choose Blogroll as the page template.
get_header();
//this is "The Loop"
if (have_posts()) :
while (have_posts()) :
the_post(); //makes the current item available for use...
/* post_class is required by ThemeCheck */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class();?>>
<h1><?php the_title(); ?></h1>
<div id="breadcrumbs">
<div class="content">
You are here:
<?php
// this one constructor does the whole thing.
$crumbs = new simple_breadcrumb();
?>
</div>
</div>
<section class="content">
<?php
// recommended by ThemeCheck.
// via http://codex.wordpress.org/Function_Reference/add_theme_support
if ( has_post_thumbnail() ) {
echo '<div class="center featured-image-container">';
the_post_thumbnail();
echo '</div>';
}
the_content();
?>
</section>
</article>
<?php
// proper blogroll functionality requires a sub-loop.
// could eg. use query_var to get the current page & paginate
// then calll query_posts to retrieve the posts.
//query_posts();
// however, Ben Gillbanks says that's no longer a best practice.
//http://www.binarymoon.co.uk/2010/03/5-wordpress-queryposts-tips/
// instead, use a sub-loop with a new WP_Query object.
// don't forget the pagination...
// with help from http://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters
// if you want to use "blogroll" as a static front page, you have to change 'paged' to 'page' in get_query_var on this next line:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query = array (
'posts_per_page' => 5,
'paged' => $paged
);// add query params as needed.
$innerLoop = new WP_Query($query);
// I'm placing pagination at both the top and the bottom of the inner loop itself.
// an instance of the WP_Query object is required by this version of the pagination function.
paginate_blogroll($innerLoop); //blog archive pagination!
// The Loop...
if ($innerLoop->have_posts()) {
while ($innerLoop->have_posts()) {
$innerLoop->the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class();?>>
<hgroup class="post-meta">
<h2><?php
bliss_clean_title_link(); //includes post title wrapped in permalink with escaped title attribute
?></h2>
<p class="author-credit">Posted by <?php the_author(); ?> on <?php the_date(); ?></p>
</hgroup>
<section class="content">
<?php
// recommended by ThemeCheck.
// via http://codex.wordpress.org/Function_Reference/add_theme_support
if ( has_post_thumbnail() ) {
echo '<div class="center featured-image-container">';
printf('<a href="%s">', esc_attr(get_the_permalink()));
the_post_thumbnail();
echo '</a>
</div>';
}
the_excerpt();// complete with readmore link via functions.php
//the_content();
?>
<p class="tags">Tagged under <?php the_tags(); ?></p>
<p class="categories">Filed under <?php the_category(', ');?>
</section>
</article>
<?php
}//end while
}else{//end if
?>
<h1>Nothing to see here</h1>
<p>Check back later to see if we&#039;ve posted anything. </p>
<?php
}//end inner loop.
// an instance of the WP_Query object is required by this version of the pagination function.
paginate_blogroll($innerLoop); //blog archive pagination!
// after the inner loop:
// recommended by http://codex.wordpress.org/Class_Reference/WP_Query
wp_reset_postdata();
// end outer loop
endwhile;
endif;