diff --git a/wp-content/themes/wp-andreas01/404.php b/wp-content/themes/wp-andreas01/404.php new file mode 100644 index 0000000000000000000000000000000000000000..b778ba961ed80a9a0cade453b3e5ce4e56b68f9f --- /dev/null +++ b/wp-content/themes/wp-andreas01/404.php @@ -0,0 +1,11 @@ +<?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 diff --git a/wp-content/themes/wp-andreas01/archive.php b/wp-content/themes/wp-andreas01/archive.php new file mode 100644 index 0000000000000000000000000000000000000000..fd2d5b409d050d10a572dee6876c70a8913f6f02 --- /dev/null +++ b/wp-content/themes/wp-andreas01/archive.php @@ -0,0 +1,40 @@ +<?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 »</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('« Previous entries') ?></span> +<span class="nextlink"><?php previous_posts_link('Next entries »') ?></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 diff --git a/wp-content/themes/wp-andreas01/comments.php b/wp-content/themes/wp-andreas01/comments.php new file mode 100644 index 0000000000000000000000000000000000000000..1fecd7c7ed7978e88ccb5cf9e82693a9eccab864 --- /dev/null +++ b/wp-content/themes/wp-andreas01/comments.php @@ -0,0 +1,56 @@ +<?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 diff --git a/wp-content/themes/wp-andreas01/footer.php b/wp-content/themes/wp-andreas01/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..ec6f1bc0320c20cfeb9af5d5f290b6ffd4e63a04 --- /dev/null +++ b/wp-content/themes/wp-andreas01/footer.php @@ -0,0 +1,7 @@ +<div id="footer"> +<p><span class="credits">© <?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 diff --git a/wp-content/themes/wp-andreas01/functions.php b/wp-content/themes/wp-andreas01/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..8e2b4988ccb6f5228f2b11c13b91c0d7a01334fa --- /dev/null +++ b/wp-content/themes/wp-andreas01/functions.php @@ -0,0 +1,73 @@ +<?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 diff --git a/wp-content/themes/wp-andreas01/header.php b/wp-content/themes/wp-andreas01/header.php new file mode 100644 index 0000000000000000000000000000000000000000..35fcb30577082a0913975f61d0dcb662a9a58ed0 --- /dev/null +++ b/wp-content/themes/wp-andreas01/header.php @@ -0,0 +1,39 @@ +<!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 diff --git a/wp-content/themes/wp-andreas01/img/bg.gif b/wp-content/themes/wp-andreas01/img/bg.gif new file mode 100644 index 0000000000000000000000000000000000000000..6594225085ef89d4a81bbb78fa6dca26dfe5eadd Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/bg.gif differ diff --git a/wp-content/themes/wp-andreas01/img/front-a.jpg b/wp-content/themes/wp-andreas01/img/front-a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..114c40f9368ab9f841cac9920822ddc5faed1645 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-a.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-c.jpg b/wp-content/themes/wp-andreas01/img/front-c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bc4e38ba4bafe83c21180d096d8f7e770a03058e Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-c.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-d.jpg b/wp-content/themes/wp-andreas01/img/front-d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b8789d5d47a57e2fc24d7232a7caf094f2e32211 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-d.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-e.jpg b/wp-content/themes/wp-andreas01/img/front-e.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6a164d44c0f295163f3c4de62f1d65d05ffcd98a Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-e.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-f.jpg b/wp-content/themes/wp-andreas01/img/front-f.jpg new file mode 100644 index 0000000000000000000000000000000000000000..491e7247cb5fc41d0607b43f7b5b6777c39ae77a Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-f.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-g.jpg b/wp-content/themes/wp-andreas01/img/front-g.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b9cdff4db48372583187ec0632a032b25eeca7a8 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-g.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-h.jpg b/wp-content/themes/wp-andreas01/img/front-h.jpg new file mode 100644 index 0000000000000000000000000000000000000000..627733d301ae5a82ee11344892156190f9fa4365 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-h.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-i.jpg b/wp-content/themes/wp-andreas01/img/front-i.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a7885aa5753548ae2936f1821d08836da3cd91ae Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-i.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-j.jpg b/wp-content/themes/wp-andreas01/img/front-j.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c3f2c31f2ae3b57a3a5c457cb50ca276b1c55742 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-j.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-k.jpg b/wp-content/themes/wp-andreas01/img/front-k.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cf05f8c1a3e3f38773293b806231736cbbbbea6d Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-k.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-l.jpg b/wp-content/themes/wp-andreas01/img/front-l.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1dffabf31a9d0cbdf1483d73a17c29a34871a5c9 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-l.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front-original.jpg b/wp-content/themes/wp-andreas01/img/front-original.jpg new file mode 100644 index 0000000000000000000000000000000000000000..97eea358f97437bbbaff7284ed5f13e574968b04 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front-original.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/front.jpg b/wp-content/themes/wp-andreas01/img/front.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8a3a6cfae4308ad246b142f08fda2140e452d9fa Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/front.jpg differ diff --git a/wp-content/themes/wp-andreas01/img/image-pack-readme.txt b/wp-content/themes/wp-andreas01/img/image-pack-readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..85469f92dd3c18321f8a7b1edc59eaefc0313fef --- /dev/null +++ b/wp-content/themes/wp-andreas01/img/image-pack-readme.txt @@ -0,0 +1,27 @@ +================================================================ + The front-x.jpg images in this folder come from a andreas01 header image pack made + by Andreas Viklund. These images can be used freely with the WP-Andreas01 theme, + so you get a number of images to choose from. Below is the readme.txt from the pack: +================================================================ + +Title: andreas01 header image pack #01 +Author: Andreas Viklund +URL: http://andreasviklund.com/templates/andreas01/ +Release date: May 20th, 2008 + +Description: These images were designed for use with the andreas01 website template. +The included images are free to use as website header images for both non-commercial +and commercial purposes, and they can be modified and edited as needed. For more +information, see the official andreas01 template page on the URL above. + +Instructions: To replace the default andreas01 header image, rename the existing +front.jpg in the image directory into front-old.jpg. Then copy your selected header image +from this image pack into the template image folder. Change the filename of the new +image into front.jpg - and the new header is in place! If you want to restore the old +header, delete the new front.jpg and then rename front-old.jpg into front.jpg. + +================================================================ + If you like the header art but want a completely unique header, feel free to contact the + theme designer for information about rates and availability for professional design and + template/theme customization services: http://andreasviklund.com/contact/ + ================================================================ \ No newline at end of file diff --git a/wp-content/themes/wp-andreas01/img/image-pack-sample.jpg b/wp-content/themes/wp-andreas01/img/image-pack-sample.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bdbdf8806ddfb1a96b5c4cf04f32123ae59a77f7 Binary files /dev/null and b/wp-content/themes/wp-andreas01/img/image-pack-sample.jpg differ diff --git a/wp-content/themes/wp-andreas01/index.php b/wp-content/themes/wp-andreas01/index.php new file mode 100644 index 0000000000000000000000000000000000000000..90b36ea66767dbcf40f9030bef0362f542373151 --- /dev/null +++ b/wp-content/themes/wp-andreas01/index.php @@ -0,0 +1,33 @@ +<?php get_header(); ?> +<?php get_sidebar(); ?> + +<div id="content"> +<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?> + +<div class="post"> +<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> +<div class="contenttext"> +<?php the_content('Read more »'); ?> +</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> +</div> + +<?php endwhile; ?> + +<div class="navigation"> +<p><span class="prevlink"><?php next_posts_link('« Previous entries') ?></span> +<span class="nextlink"><?php previous_posts_link('Next entries »') ?></span></p> +</div> + +<?php else : ?> +<h2>Not found!</h2> +<p>Could not find the requested page. Use the navigation menu to find your target, or use the search box below:</p> +<?php include (TEMPLATEPATH . "/searchform.php"); ?> +<?php endif; ?> + +</div> +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/wp-andreas01/page.php b/wp-content/themes/wp-andreas01/page.php new file mode 100644 index 0000000000000000000000000000000000000000..3961105527fb7196c3547f5b6a2b6f5317c07c33 --- /dev/null +++ b/wp-content/themes/wp-andreas01/page.php @@ -0,0 +1,18 @@ +<?php get_header(); ?> + +<div id="contentwide"> +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<?php list_subpages_andreas01(); ?> <?php // This generates the subpage menu. If you don't want to use it, delete this line. ?> + +<div class="post"> +<h2><?php the_title(); ?></h2> +<?php the_content('<p class="serif">Read more »</p>'); ?> +<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> +<?php edit_post_link('Edit this page','<p>','</p>'); ?> +<?php comments_template(); ?> +<?php endwhile; endif; ?> +</div> +</div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/wp-andreas01/screenshot.png b/wp-content/themes/wp-andreas01/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..5a7e05ef6a0fdec1a3cd4d965225dafe2d58d4a1 Binary files /dev/null and b/wp-content/themes/wp-andreas01/screenshot.png differ diff --git a/wp-content/themes/wp-andreas01/search.php b/wp-content/themes/wp-andreas01/search.php new file mode 100644 index 0000000000000000000000000000000000000000..44dde32ab551a44dbfa50983d33929949b452a7c --- /dev/null +++ b/wp-content/themes/wp-andreas01/search.php @@ -0,0 +1,33 @@ +<?php get_header(); ?> +<?php get_sidebar(); ?> + +<div id="content"> +<?php if (have_posts()) : ?> +<h2>Search results</h2> +<?php while (have_posts()) : the_post(); ?> + +<div class="post"> +<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> +<div class="contenttext"> +<?php the_excerpt() ?> +</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> +</div> + +<?php endwhile; ?> + +<div class="navigation"> +<p><span class="prevlink"><?php next_posts_link('« Previous entries') ?></span> +<span class="nextlink"><?php previous_posts_link('Next entries »') ?></span></p> +</div> + +<?php else : ?> +<h2>Search results</h2> +<p>No matches. Please try again, or use the navigation menus to find what you search for.</p> +<?php endif; ?> + +</div> +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/wp-andreas01/searchform.php b/wp-content/themes/wp-andreas01/searchform.php new file mode 100644 index 0000000000000000000000000000000000000000..f7dc446549815b1d5c948dbf88ca662b288607e9 --- /dev/null +++ b/wp-content/themes/wp-andreas01/searchform.php @@ -0,0 +1,8 @@ +<h2>Site search</h2> +<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>"> +<div> +<label for="s">Search for:</label> +<input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="14" /> +<input type="hidden" id="searchsubmit" value="Search" /> +</div> +</form> \ No newline at end of file diff --git a/wp-content/themes/wp-andreas01/sidebar.php b/wp-content/themes/wp-andreas01/sidebar.php new file mode 100644 index 0000000000000000000000000000000000000000..60ade68a388d40378f88f3bb6808a49f59fe6de6 --- /dev/null +++ b/wp-content/themes/wp-andreas01/sidebar.php @@ -0,0 +1,16 @@ +<div id="extras"> +<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Right Sidebar') ) : else : ?> +<?php include (TEMPLATEPATH . '/searchform.php'); ?> +<h2>Categories</h2> +<ul> +<?php wp_list_cats('sort_column=name&list=1&optioncount=0&hierarchical=1&children=1&hide_empty=1&feed=RSS'); ?> +</ul> +<?php get_calendar(1); ?> +<h2>Tags</h2> +<ul> +<li><?php wp_tag_cloud('unit=em&smallest=0.8&largest=1.8&number=40'); ?></li> +</ul> +<?php wp_list_bookmarks('title_li=&category_before=&category_after=&show_images=0&show_description=0'); ?> +<?php wp_meta(); ?> +<?php endif; ?> +</div> \ No newline at end of file diff --git a/wp-content/themes/wp-andreas01/single.php b/wp-content/themes/wp-andreas01/single.php new file mode 100644 index 0000000000000000000000000000000000000000..91f2fd85477bbaec1e0fe22898f01b41c25d54d5 --- /dev/null +++ b/wp-content/themes/wp-andreas01/single.php @@ -0,0 +1,31 @@ +<?php get_header(); ?> +<?php get_sidebar(); ?> + +<div id="content"> +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div class="post"> +<h2><?php the_title(); ?></h2> + +<div class="contenttext"> +<?php the_content('<p>Read more »</p>'); ?> +</div> + +<?php link_pages('<p><strong>Pages:<strong> ', '</p>', 'number'); ?> +<p class="postinfo"><strong>Posted:</strong> <?php the_time('F jS, Y') ?> under <?php the_category(', ') ?>.<br /> +<?php the_tags('Tags: ', ', ',''); ?><?php edit_post_link('[e]',' | ',''); ?></p> + +<div class="navigation"> +<p><span class="prevlink"><?php previous_post_link('« %link','Previous post',''); ?></span> +<span class="nextlink"><?php next_post_link('%link »','Next post',''); ?></span></p> +</div> + +<?php comments_template(); ?> + +<?php endwhile; else: ?> +<p>No matching entries found.</p> +<?php endif; ?> +</div> +</div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/wp-andreas01/style.css b/wp-content/themes/wp-andreas01/style.css new file mode 100644 index 0000000000000000000000000000000000000000..affe81d5be3f0d7762f1cdbeeaf7ba63a8e68d90 --- /dev/null +++ b/wp-content/themes/wp-andreas01/style.css @@ -0,0 +1,127 @@ +/* +Theme Name: WP-Andreas01 +Theme URI: http://andreasviklund.com/wordpress-themes/ +Description: Updated for WordPress v2.6, now supporting tags, gravatars and other useful features. Originally based on the classic <a href="http://andreasviklund.com/templates/andreas01/">andreas01 CSS template</a>. Valid XHTML 1.0 Strict and CSS. Public domain. +Version: 2.0 +Author: Andreas Viklund +Author URI: http://andreasviklund.com/ +Tags: 2 columns, 3 columns, white, widgets, fixed width, 800px, andreas +*/ + +/* Body */ +* {margin:0; padding:0;} +body {background:#f4f4f4 url(img/bg.gif) top center repeat-y; color:#303030; font:76% Verdana,Tahoma,Arial,sans-serif;} +#wrap {background-color:#fff; color:#333; margin:0 auto; width:760px;} + +/* Links */ +a {background-color:inherit; color:#286ea0; font-weight:bold; text-decoration:none;} +a:hover {background-color:inherit; color:#286ea0; font-weight:bold; text-decoration:underline;} +a img {border:0;} + +/* Header */ +#header {margin:10px 0 0;} +#header h1 {background-color:inherit; color:#555; float:left; font-size:2em; letter-spacing:-1px; margin:0 0 10px; width:350px;} +#header h1 a {background-color:inherit; color:#555; text-decoration:none;} +#header p {background-color:inherit; color:#777; float:right; font-size:1.1em; font-weight:bold; line-height:1.3em; margin:6px 0 0; text-align:center; width:400px;} +#frontphoto {margin:0 0 10px;} + +/* Sidebars */ +#leftside {clear:left; float:left; line-height:1.5em; margin:0 0 5px; padding:0; width:140px;} +#extras {float:right; line-height:1.4em; margin:0 0 5px; padding:0; width:140px;} +#leftside p, #leftside ul, #leftside div.textwidget, #extras p, #extras ul, #extras div.textwidget {font-size:0.9em; margin:0 0 18px;} +#leftside li, #extras li {line-height:1.2em; list-style:none; margin:0 0 6px;} +#leftside ul ul, #extras ul ul {margin:6px 0 0 10px;} +#leftside ul ul li, #extras ul ul li {margin:0 0 4px;} +#leftside ul ul li a, #extras ul ul li a {font-weight:normal;} +#leftside ul.linklist, #extras ul.linklist {font-size:1em;} +#leftside ul.linklist ul, #extras ul.linklist ul {margin:0 0 20px;} +#leftside ul.linklist ul li a, #extras ul.linklist ul li a {font-weight:bold;} +#leftside h2, #leftside ul.linklist li h2, #leftside h3, #extras h2, #extras ul.linklist li h2, #extras h3, table#wp-calendar caption {background-color:inherit; color:#505050; font-size:1.3em; font-weight:normal; text-align:left; margin:0 0 6px;} +#leftside label, #extras label {display:none;} + +/* Main menu */ +ul.page {list-style:none; margin:0 0 20px; width:140px;} +ul.page li {display:inline; line-height:1.4em; width:140px;} +ul.page li a {background-color:#f4f4f4; border-left:4px solid #cccccc; color:#505050; float:left; font-weight:bold; margin-bottom:5px; padding:5px 1px 5px 5px; text-decoration:none; width:130px;} +ul.page li a:hover, ul.page li.current_page_item a {background-color:#eaeaea; border-left:4px solid #286ea0; color:#505050;} +ul.page ul {font-size:0.9em; margin:0 0 0 15px; padding:0 0 5px; width:125px;} +ul.page ul a {padding:3px 1px 3px 5px; width:115px;} +ul.page ul ul {width:113px;} +ul.page ul ul a {width:100px;} + +/* Content */ +#content {line-height:1.6em; margin:0 155px 5px; padding:0;} +#contentwide {line-height:1.6em; margin:0 0 5px 150px; padding:0;} +#content h2,#contentwide h2 {font-size:1.6em; margin:0 0 10px;} +#content h3,#contentwide h3 {font-size:1.4em; margin:0 0 8px;} +#content img,#contentwide img {border:1px solid #d0d0d0; float:left; margin:3px 10px 3px 0;} +#content ul,#contentwide ul,#content ol,#contentwide ol {margin:0 0 16px 20px;} +#content li,#contentwide li {padding:0 0 0 5px;} +#content ul ul,#contentwide ul ul,#content ol ol,#contentwide ol ol {margin:0 0 0 16px;} + +/* Footer */ +#footer {border-top:2px solid #e0e0e0; font-size:0.9em; clear:both; color:#777; font-weight:normal; line-height:1.7em; margin:0 auto; padding:10px 0; text-align:center; width:760px;} +#footer p {margin:0; padding:0;} +#footer a {color:#777; font-weight:normal; text-decoration:none;} +#footer a:hover {color:#555; text-decoration:underline;} +#footer strong a {font-weight:bold;} +#footer span.credits {font-size:1.1em;} + +/* Subpage menu */ +#subpages {border-bottom:1px solid #e0e0e0; border-left:1px solid #e0e0e0; float:right; font-weight:bold; line-height:1.3em; margin:-5px 0 8px 15px; padding:0 0 10px 10px; width:190px;} +#subpages h2 {font-size:1.2em; font-weight:bold; letter-spacing:-1px; line-height:1.3em; margin:0 0 12px;} +#subpages ul.submenu {line-height:1.4em; list-style:none; margin:0;} +#subpages ul.submenu li {display:inline; line-height:1.4em; width:180px; padding:0;} +#subpages ul.submenu li a {background-color:#f4f4f4; border-left:4px solid #cccccc; color:#505050; float:left; font-weight:bold; margin-bottom:5px; padding:3px 1px 3px 5px; text-decoration:none; width:180px;} +#subpages ul.submenu li ul {margin:0 0 5px 10px; width:170px;} +#subpages ul.submenu li ul li a {width:170px;} +#subpages ul.submenu li ul ul {margin:0 0 5px 10px; width:160px;} +#subpages ul.submenu li ul ul li a {width:160px;} +#subpages ul.submenu li ul ul ul {margin:0 0 5px 10px; width:150px;} +#subpages ul.submenu li ul ul ul li a {width:150px;} +#subpages ul.submenu li a:hover,#subpages ul.submenu li.current_page_item a {background-color:#eaeaea; border-left:4px solid #286ea0; color:#555;} +#subpages ul.submenu li.current_page_item ul li a {background-color:#f4f4f4; border-left:4px solid #cccccc; color:#555;} + +/* Tags */ +p,ul,ol {margin:0 0 18px;} +blockquote {border-left:4px solid #e0e0e0; margin:20px; padding:8px 8px 8px 15px;} +blockquote p {background-color:inherit; color:#505050; font-size:0.9em; line-height:1.3em;} +label {background-color:inherit; color:#606060; font-size:0.9em; font-weight:bold;} +table#wp-calendar {margin:0 0 20px; width:140px;} +code {font-size:1.2em; display:block; padding:5px 5px 5px 8px; background-color:#f4f4f4; margin:5px 0 15px 0;border-left:4px solid #cccccc;} + +/* Forms */ +#s,#submit {background-color:#ffffff; border:1px solid #cccccc; color:#505050; font-size:0.9em; margin:0 0 16px; padding:4px; width:130px;} +#author,#email,#url,#comment {border:1px solid #cccccc; font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:1em; margin:0; padding:4px;} +#commentsection {margin:25px 0 0;} +#commentsection p {margin:0 0 6px;} + +/* Float fix */ +.contenttext {overflow:hidden;} +* html .contenttext {height:1px; overflow:visible;} +* html .contenttext p {overflow:hidden; width:99%;} + +/* WP image align classes */ +img.centered {display:block; margin-left:auto; margin-right:auto;} +img.alignright {padding:4px; margin:0 0 2px 7px; display:inline;} +img.alignleft {padding:4px; margin:0 7px 2px 0; display:inline;} +.alignright {float:right;} +.alignleft {float:left;} + +/* Various classes */ +.left {border:1px solid #cccccc; float:left; margin:10px 15px 10px 0;} +.right {border:1px solid #cccccc; float:right; margin:10px 0 5px 10px;} +.center {border:1px solid #aaaaaa; margin:5px auto 12px; text-align:center;} +.textright {text-align:right;} +.small {font-size:0.8em;} +.bold {font-weight:bold;} +.hide {display:none;} +.post {margin:0 0 25px;} +.postinfo {background-color:#f4f4f4; border-left:4px solid #cccccc; color:#606060; font-size:0.9em; font-weight:bold; line-height:1.5em; margin:1px 0 30px; padding:8px 5px 8px 8px;} +.comment {background-color:#f4f4f4; border-left:4px solid #cccccc; color:#606060; margin:0 0 10px; padding:8px 5px 0 8px;} +.comment p {font-size:0.9em; line-height:1.3em; margin:0 0 6px; padding-bottom:5px;} +.gravatarside {float:right; width:48px; height:48px; margin:0 5px 5px 5px;} +.navigation {display:block; margin:10px 0 20px 0; padding:0; text-align:center;} +.navigation p {margin:0; padding:0;} +.prevlink {margin-right:20px;} +.nextlink {margin-left:20px;} \ No newline at end of file