Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9134099
commit fcf3cb9
Showing
34 changed files
with
930 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
get_header(); | ||
|
||
$wp_query->query(array('pagename' => '404')); | ||
?> | ||
|
||
<div id="content" class="narrowcolumn noleftcolumn"> | ||
<?php | ||
if (have_posts()) : the_post(); the_content(); | ||
else :?> | ||
<h2>Page Not Found</h2> | ||
<p>You are looking for something that could not be found. To find whatever it is you are looking for, you could:</p> | ||
<ol> | ||
<li>Search for a different keyword;</li> | ||
<li>Select a monthly archive;</li> | ||
<li>Browse through the categories used on the blog; or | ||
<ul class="archives"> | ||
<?php wp_list_categories('orderby=name&show_count=1&title_li='); ?> | ||
</ul> | ||
</li> | ||
<li>Browse through the last 20 posts published on this blog. | ||
<ul class="archives"> | ||
<?php $myposts = query_posts('numberposts=20&offset=0&order=DESC'); | ||
if ( have_posts() ) : while ( have_posts() ) : the_post() ; ?> | ||
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <small>- <?php the_date() ?></small></li> | ||
<?php endwhile; else: | ||
endif; ?> | ||
</ul> | ||
</li> | ||
</ol> | ||
<?php endif; ?> | ||
</div> | ||
|
||
<?php get_sidebar(); ?> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?php | ||
|
||
// Do not delete these lines | ||
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | ||
die ('Please do not load this page directly. Thanks!'); | ||
|
||
if ( post_password_required() ) { ?> | ||
<p class="nocomments">This post is password protected. Enter the password to view comments.</p> | ||
<?php | ||
return; | ||
} | ||
?> | ||
|
||
<!-- You can start editing here. --> | ||
|
||
<?php if ( have_comments() ) : ?> | ||
<h3 id="comments"><?php comments_number('Comments (0)', 'Comments (1)', 'Comments (%)' );?></h3> | ||
|
||
<div class="navigation"> | ||
<div class="alignleft"><?php previous_comments_link() ?></div> | ||
<div class="alignright"><?php next_comments_link() ?></div> | ||
</div> | ||
|
||
<ol class="commentlist"> | ||
<?php wp_list_comments('callback=minimous_comment'); ?> | ||
</ol> | ||
|
||
<div class="navigation"> | ||
<div class="alignleft"><?php previous_comments_link() ?></div> | ||
<div class="alignright"><?php next_comments_link() ?></div> | ||
</div> | ||
<?php else : // this is displayed if there are no comments so far ?> | ||
|
||
<?php if ( comments_open() ) : ?> | ||
<!-- If comments are open, but there are no comments. --> | ||
|
||
<?php else : // comments are closed ?> | ||
<!-- If comments are closed. --> | ||
<p class="nocomments">Comments are closed.</p> | ||
|
||
<?php endif; ?> | ||
<?php endif; ?> | ||
|
||
|
||
<?php if ( comments_open() ) : ?> | ||
|
||
<div id="respond"> | ||
|
||
<h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3> | ||
|
||
<div class="cancel-comment-reply"> | ||
<small><?php cancel_comment_reply_link(); ?></small> | ||
</div> | ||
|
||
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?> | ||
<p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p> | ||
<?php else : ?> | ||
|
||
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> | ||
|
||
<?php if ( is_user_logged_in() ) : ?> | ||
|
||
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out »</a></p> | ||
|
||
<?php else : ?> | ||
|
||
<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> | ||
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p> | ||
|
||
<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> | ||
<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p> | ||
|
||
<p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" /> | ||
<label for="url"><small>Website</small></label></p> | ||
|
||
<?php endif; ?> | ||
|
||
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>--> | ||
|
||
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> | ||
|
||
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> | ||
<?php comment_id_fields(); ?> | ||
</p> | ||
<?php do_action('comment_form', $post->ID); ?> | ||
|
||
</form> | ||
|
||
<?php endif; // If registration required and not logged in ?> | ||
</div> | ||
|
||
<?php endif; // if you delete this the sky will fall on your head ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div id="footer"> | ||
<ul class="menu"> | ||
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('footer') ) : ?> | ||
<?php else : ?> | ||
<li>Copyright © <?php bloginfo('name'); ?> <?php echo date('Y') == 2009 ? date('Y') : '2009 - '.date('Y')?> | ||
<?php endif; ?> | ||
<li>Powered by <a href="http://wordpress.org/">Wordpress</a>, | ||
<a href="http://www.webtatic.com/projects/minimous/">Minimous</a> theme.</li> | ||
<?php wp_footer(); ?> | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
|
||
automatic_feed_links(); | ||
|
||
include dirname(__FILE__) . '/widgets/profile.php'; | ||
|
||
widget_minimous_profile_register(); | ||
|
||
if ( function_exists('register_sidebar') ) { | ||
register_sidebar(array( | ||
'before_widget' => '<li id="%1$s" class="widget %2$s">', | ||
'after_widget' => '</li>', | ||
'before_title' => '<h2 class="widgettitle">', | ||
'after_title' => '</h2>', | ||
)); | ||
|
||
register_sidebar(array( | ||
'id' => 'header-menu', | ||
'name' => 'Header Navigation', | ||
'before_widget' => '<li id="%1$s" class="widget %2$s">', | ||
'after_widget' => '</li>', | ||
'before_title' => '<h2 class="widgettitle">', | ||
'after_title' => '</h2>', | ||
)); | ||
|
||
register_sidebar(array( | ||
'id' => 'footer', | ||
'name' => 'Footer', | ||
'before_widget' => '<li id="%1$s" class="widget %2$s">', | ||
'after_widget' => '</li>', | ||
'before_title' => '<h2 class="widgettitle">', | ||
'after_title' => '</h2>', | ||
)); | ||
} | ||
|
||
|
||
function minimous_comment($comment, $args, $depth) { | ||
$GLOBALS['comment'] = $comment; ?> | ||
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> | ||
<div id="comment-<?php comment_ID(); ?>"> | ||
<div class="date"><?php echo get_comment_date() ?></div> | ||
<div class="avatar"><?php echo get_avatar($comment,$size='35',$default='<path_to_url>' ); ?></div> | ||
<div class="comment-inner"> | ||
<div class="comment-author vcard"> | ||
<?php printf(__('<cite class="fn">%s</cite> <span class="says">said...</span>'), get_comment_author_link()) ?> | ||
<?php edit_comment_link(__('(Edit)'),' ','') ?> | ||
</div> | ||
<?php if ($comment->comment_approved == '0') : ?> | ||
<em><?php _e('Your comment is awaiting moderation.') ?></em> | ||
<br /> | ||
<?php endif; ?> | ||
|
||
<?php comment_text() ?> | ||
|
||
<div class="reply"> | ||
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> | ||
</div> | ||
</div> | ||
</div> | ||
<?php | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> | ||
|
||
<head profile="http://gmpg.org/xfn/11"> | ||
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> | ||
|
||
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> | ||
|
||
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> | ||
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> | ||
|
||
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> | ||
|
||
<?php wp_head(); ?> | ||
</head> | ||
<body <?php body_class(); ?>> | ||
<div id="page"> | ||
|
||
<div id="page-inner"> | ||
<div id="header" role="banner"> | ||
<div id="header_nav"> | ||
<ul class="menu"> | ||
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('header-menu') ) : ?> | ||
<?php else : ?> | ||
<?php | ||
echo '<li><ul>'; | ||
echo '<li class="page_item'; | ||
if(is_home()) echo ' current_page_item'; | ||
echo '"><a href="' . get_bloginfo('url') . '" title="' . get_bloginfo('name') . '"><span>' . __('Home','hybrid') . '</span></a></li>'; | ||
wp_list_pages('title_li=&show_home=Home&depth=1'); | ||
echo '</ul></li>'; ?> | ||
<li> | ||
<ul> | ||
<?php wp_register(); ?> | ||
</ul> | ||
</li> | ||
<?php endif; ?> | ||
</ul> | ||
</div> | ||
<div id="headerimg"> | ||
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> | ||
<div class="description"><?php bloginfo('description'); ?></div> | ||
</div> | ||
|
||
<?php if (is_single()) { ?> | ||
<div id="back_to_blog"> | ||
<a href="<?php echo get_option('home'); ?>/">« Back to blog</a> | ||
</div> | ||
<?php } ?> | ||
</div> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
get_header(); ?> | ||
|
||
<?php if (have_posts()) : ?> | ||
|
||
<div id="content" class="narrowcolumn" role="main"> | ||
|
||
<?php while (have_posts()) : the_post(); ?> | ||
|
||
<div <?php post_class() ?> id="post-<?php the_ID(); ?>"> | ||
<div class="date"> | ||
<?php the_date() ?> | ||
</div> | ||
<div class="post-inner"> | ||
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> | ||
<div class="entry"> | ||
<?php the_content('Read the rest of this entry »'); ?> | ||
<?php if (is_single() || is_page()) wp_link_pages(array('before' => '<p><b>Pages</b> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> | ||
<ul class="menu"> | ||
<li><ul> | ||
<?php if (!is_page() || comments_open()) { echo '<li>'; comments_popup_link('Comments [0]', 'Comments [1]', 'Comments [%]'); echo '</li>'; } ?> | ||
<?php the_tags('<li>Tags [', ', ', ']</li>'); ?> | ||
<?php if (!is_page()) { echo '<li>Categories ['; the_category(', '); echo ']</li>'; } ?> | ||
</ul></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<?php if (is_single() || (is_page() && comments_open())) comments_template(); ?> | ||
|
||
<?php endwhile; ?> | ||
|
||
<div class="pagenavigation"> | ||
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> | ||
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> | ||
</div> | ||
|
||
</div> | ||
|
||
<?php else : ?> | ||
|
||
<?php include dirname(__FILE__) . '/404.php'; exit; ?> | ||
|
||
<?php endif; ?> | ||
|
||
<?php get_sidebar(); ?> | ||
|
||
<?php get_footer(); ?> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.