Skip to content
Snippets Groups Projects
Commit 2d99535a authored by root's avatar root Committed by lechuck
Browse files

Add theme wp-andreas01

parent ec8bb0be
No related branches found
No related tags found
No related merge requests found
Showing
with 226 additions and 0 deletions
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<div class="post">
<h2>Error 404 - Page not found!</h2>
<p>The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.</p>
</div>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; ?>
<?php if (is_category()) { ?><h2>Archive for '<?php echo single_cat_title(); ?>'</h2>
<?php } elseif (is_day()) { ?><h2>Archive for <?php the_time('F jS, Y'); ?></h2>
<?php } elseif (is_month()) { ?><h2>Archive for <?php the_time('F, Y'); ?></h2>
<?php } elseif (is_year()) { ?><h2>Archive for the year <?php the_time('Y'); ?></h2>
<?php } elseif (is_tag()) { ?><h2>Tag: <?php single_tag_title(''); ?></h2>
<?php } elseif (is_search()) { ?><h2>Search results</h2>
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?><h2>Archives</h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="contenttext">
<?php the_excerpt('<p>Read more &raquo;</p>'); ?>
</div>
<p class="postinfo"><strong>Posted:</strong> <?php the_time('F jS, Y') ?> under <?php the_category(', ') ?>.<br />
<?php the_tags('Tags: ', ', ', '<br />'); ?>
<a href="<?php comments_link(); ?>"><strong>Comments:</strong> <?php comments_number('none','1','%'); ?></a>
<?php edit_post_link('[e]',' | ',''); ?></p>
<?php endwhile; ?>
<div class="navigation">
<p><span class="prevlink"><?php next_posts_link('&laquo; Previous entries') ?></span>
<span class="nextlink"><?php previous_posts_link('Next entries &raquo;') ?></span></p>
</div>
<?php else : ?>
<h2>Page not found!</h2>
<p>The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>This page is password-protected. Enter your password to continue!</p>
<?php return; endif; ?>
<?php if ( $comments ) : ?>
<h2 class="archiveheader" id="comments">Comments</h2>
<?php foreach ($comments as $comment) : ?>
<div class="comment">
<div class="gravatarside"><?php if (function_exists('get_avatar')) { echo get_avatar($comment,$size='48'); } ?></div>
<p class="commenticon">
<strong><?php comment_type('Comment','Trackback','Pingback'); ?></strong> from <strong><?php if ('' != get_comment_author_url()) { ?><a href="<?php comment_author_url(); ?>"><?php comment_author() ?></a><?php } else { comment_author(); } ?></strong>
<?php edit_comment_link('[e]',' | '); ?><br />
<strong>Time</strong> <?php comment_date() ?> at <?php comment_time(); ?></p>
<?php comment_text() ?>
<?php if ($comment->comment_approved == '0') : ?>
<p><strong>Thank you for your comment! It has been added to the moderation queue and will be published here if approved by the webmaster.</strong></p>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($post->comment_status == "open") : ?>
<div id="respond">
<h2>Write a comment</h2>
<?php if (get_option('comment_registration') && !$user_ID) : ?>
<p>You need to <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">login</a> to post comments!</p>
</div>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ($user_ID) : ?>
<p class="loggedin">You are logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out">Log out</a>.</p>
<?php else : ?>
<p><label for="author">Name:</label><br />
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" /></p>
<p><label for="email">E-mail:</label><br />
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" /></p>
<p><label for="url">URL:</label><br />
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" /></p>
<?php endif; ?>
<p><label for="comment">Message:</label><br />
<textarea name="comment" id="comment" cols="45" rows="4" tabindex="4"></textarea></p>
<p><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="submit" name="submit" value="Submit!" class="button" tabindex="5" /></p>
<p><?php do_action('comment_form', $post->ID); ?></p>
</form>
</div>
<?php endif; ?>
<?php endif; ?>
\ No newline at end of file
<div id="footer">
<p><span class="credits">&copy; <?php echo date('Y'); ?> <a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a> - <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> - <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a> - <?php wp_loginout(); ?></span><br />Powered by <a href="http://wordpress.org/">WordPress</a> - <a href="http://andreasviklund.com/wordpress-themes/">Theme design</a> by <a href="http://andreasviklund.com/" title="Original theme design by Andreas Viklund">Andreas Viklund</a></p>
</div>
<?php do_action('wp_footer'); ?>
</div>
</body>
</html>
\ No newline at end of file
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Main Sidebar',
'before_widget' => '', // Removes <li>
'after_widget' => '', // Removes </li>
'before_title' => '<h2>',
'after_title' => '</h2>',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Right Sidebar',
'before_widget' => '', // Removes <li>
'after_widget' => '', // Removes </li>
'before_title' => '<h2>',
'after_title' => '</h2>',
));
// WP-Andreas01 Page Navigation
function widget_andreas01_pagenav() {
?>
<h2 class="hide">Site menu:</h2>
<ul class="page">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Pages'), 'widget_andreas01_pagenav');
// WP-Andreas01 Search
function widget_andreas01_search() {
?>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Search'), 'widget_andreas01_search');
// WP-Andreas01 Links
function widget_andreas01_links() {
?>
<h2>Links:</h2>
<ul class="menulist">
<?php get_links_list(); ?>
</ul>
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Links'), 'widget_andreas01_links');
// List Subpages - Code from a plugin by Rob Miller (http://robm.me.uk/). Thanks Rob!
function list_subpages_andreas01($return = 0) {
global $wpdb, $post;
$current_page = $post->ID;
while($current_page) {
$page_query = $wpdb->get_row("SELECT ID, post_title, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
$current_page = $page_query->post_parent; }
$parent_id = $page_query->ID;
$parent_title = $page_query->post_title;
if($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' and post_type = 'page' AND post_status = 'publish' ")) {
echo'<div id="subpages"><h2>Subpages for '; echo $parent_title; echo':</h2> <ul class="submenu">';
$html = wp_list_pages("child_of=$parent_id&depth=$depth&echo=".(!$return)."&title_li=0&sort_column=menu_order");
echo'</ul></div>'; }
if($return) {
return $html;
} else {
echo $html; } }
?>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<meta name="description" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" />
<meta name="keywords" content="" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<title><?php bloginfo('name'); wp_title(); ?></title>
<?php wp_head(); ?>
</head>
<body>
<div id="wrap">
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<p><strong><?php bloginfo('description'); ?></strong></p>
</div>
<img id="frontphoto" src="<?php bloginfo('template_directory'); ?>/img/front.jpg" width="760" height="175" alt="" />
<div id="leftside">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
<h2 class="hide">Main menu:</h2>
<ul class="page">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
<?php endif; ?>
</div>
\ No newline at end of file
wp-content/themes/wp-andreas01/img/bg.gif

362 B

wp-content/themes/wp-andreas01/img/front-a.jpg

28.5 KiB

wp-content/themes/wp-andreas01/img/front-c.jpg

22.6 KiB

wp-content/themes/wp-andreas01/img/front-d.jpg

13.2 KiB

wp-content/themes/wp-andreas01/img/front-e.jpg

43.1 KiB

wp-content/themes/wp-andreas01/img/front-f.jpg

56.3 KiB

wp-content/themes/wp-andreas01/img/front-g.jpg

55.5 KiB

wp-content/themes/wp-andreas01/img/front-h.jpg

27.5 KiB

wp-content/themes/wp-andreas01/img/front-i.jpg

96.3 KiB

wp-content/themes/wp-andreas01/img/front-j.jpg

45.8 KiB

wp-content/themes/wp-andreas01/img/front-k.jpg

50.5 KiB

wp-content/themes/wp-andreas01/img/front-l.jpg

106 KiB

wp-content/themes/wp-andreas01/img/front-original.jpg

16.3 KiB

wp-content/themes/wp-andreas01/img/front.jpg

64.8 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment