diff --git a/wp-content/themes/web2zen/404.php b/wp-content/themes/web2zen/404.php new file mode 100644 index 0000000000000000000000000000000000000000..f085113b5dc1c9010c541ee47ae76c2b231d9455 --- /dev/null +++ b/wp-content/themes/web2zen/404.php @@ -0,0 +1,27 @@ +<?php ob_start(); ?> +<?php header("HTTP/1.1 404 Not Found"); ?> +<?php header("Status: 404 Not Found"); ?> +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<div <?php post_class('page'); ?>> +<h2 class="post-title"><?php _e('Page Not Found','web2zen');?></h2> + +<p><?php _e('Uh oh! I cannot seem to find the file you asked for','web2zen');?>.</p> + +<p><?php _e('Perhaps you','web2zen');?>:</p> + +<ul> +<li><?php _e('tried to access a post or archive which has been removed','web2zen');?></li> +<li><?php _e('followed a bad link','web2zen');?></li> +<li><?php _e('mis-typed something','web2zen');?></li> +</ul> + +<p><?php _e('Try using the main navigation menu to find what you are looking for','web2zen');?>.</p> + +<p><?php _e('Or you may just wish to return to the','web2zen');?> <a href="<?php bloginfo('url'); ?>/"><?php _e('Home page','web2zen');?></a>.</p> + +</div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/admin-custom-header.css b/wp-content/themes/web2zen/admin-custom-header.css new file mode 100644 index 0000000000000000000000000000000000000000..2c3561ba281567bf256f007b0b7d8578ae4a6d80 --- /dev/null +++ b/wp-content/themes/web2zen/admin-custom-header.css @@ -0,0 +1,45 @@ +/*Web2Zen +Author: Mel Pedley (Black Widow Web Design) +http://www.blackwidows.co.uk + +*/ + +.wrap form { + width:90%; + margin:10px auto; + text-align:center; +} + +#headimg { + height:150px; + padding:0; + margin:0; + background-color:#4c4c4c; + background-image:url(images/banner.jpg); + background-repeat:no-repeat; + background-position:right top; +} +#headimg h1 { + margin:0; + padding:0 15px; + font-size:2.5em; + letter-spacing:.02em; + line-height:1.2em; + font-weight:normal; + color:#fff; +} +#headimg #desc { + display:block; + margin:7px 0 0; + padding:0 15px; + font-size:1.6em; + font-weight:normal; + font-style:normal; + color:#fff; +} +#headimg a { + text-decoration:none; +} +#headimg a:hover { + text-decoration:underline; +} diff --git a/wp-content/themes/web2zen/archive.php b/wp-content/themes/web2zen/archive.php new file mode 100644 index 0000000000000000000000000000000000000000..6c3d641f69f10782236096091c3150187b6bd2c2 --- /dev/null +++ b/wp-content/themes/web2zen/archive.php @@ -0,0 +1,45 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1 && function_exists('theme_get_archive_date')) echo theme_breadcrumb(theme_get_archive_date());?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> +<div <?php if(is_sticky()) post_class('sticky');else post_class();?>id="post-<?php the_ID();?>"> +<h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Post', 'web2zen');?> <?php the_ID(); ?> -<?php _e(' permanent link', 'web2zen');?>"><?php the_title(); ?></a></h2> + +<ul class="meta"> +<li><?php the_time('F j, Y'); ?> <?php if($theme_options['post_time'] != 1) :?><?php the_time(); ?><?php endif;?></li> +<li><?php edit_post_link(__('Edit','web2zen') , '', ''); ?></li> +</ul> + +<div class="postcontent"> +<?php the_content(__('Continue reading ','web2zen') . the_title('', '', false)); ?> +</div> + +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> + +<ul class="meta postfoot"> +<?php if('open' == $post->comment_status) : ?><li class="comment_link"><?php comments_popup_link(__('Comment on ','web2zen') .$post->post_title, __('1 Comment on ','web2zen') .$post->post_title, __('% Comments on ','web2zen') .$post->post_title,'postcomment',__('Comments are off for ','web2zen') .$post->post_title); ?></li><?php endif;?> +<?php if($theme_options['author_link'] != 1) :?><li><?php _e('Author','web2zen');?>: <?php the_author_posts_link(); ?></li><?php endif;?> +<li><?php _e('Filed under','web2zen');?>: <ul><li><?php the_category(',</li> <li>') ?></li></ul></li> +<?php if(get_the_tag_list()) :?> +<li><?php _e('Tags','web2zen');?>: <?php the_tags('<ul><li>',',</li> <li>','</li></ul>');?></li> +<?php endif;?> +</ul> + +</div> + +<?php endwhile; ?> + +<ul class="prevnext"> +<li class="next"><?php next_posts_link(__('Older Posts','web2zen') ); ?></li> +<li class="prev"><?php previous_posts_link(__('Newer Posts','web2zen') );?></li> +</ul> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/archives.php b/wp-content/themes/web2zen/archives.php new file mode 100644 index 0000000000000000000000000000000000000000..a4a576f5fd9ac72ae715bd38f94162057184e0bc --- /dev/null +++ b/wp-content/themes/web2zen/archives.php @@ -0,0 +1,24 @@ +<?php +/* +Template Name: Archives +*/ +?> +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1) echo theme_breadcrumb($post->ID);?> + +<div <?php post_class(); ?>> +<h2 class="post-title"><?php _e('Archives by Month','web2zen');?></h2> +<ul class="archives"> +<?php wp_get_archives('type=monthly'); ?> +</ul> + +<h2 class="post-title"><?php _e('Archives by Subject','web2zen');?></h2> +<ul class="archives"> +<?php wp_list_categories('title_li='); ?> +</ul> +</div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/attachment.php b/wp-content/themes/web2zen/attachment.php new file mode 100644 index 0000000000000000000000000000000000000000..22696ab483ec3c0338559037273e64afee9876ab --- /dev/null +++ b/wp-content/themes/web2zen/attachment.php @@ -0,0 +1,26 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div <?php post_class();?> id="post-<?php the_ID();?>"> +<h2 class="post-title"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link','web2zen');?>: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> + +<p><?php echo theme_attachment_download_link(__('This file requires ','web2zen'), $post->post_mime_type, __('or','web2zen') );?></p> + +<div class="attachment"> +<?php echo theme_attachment_link($post->ID); ?> +</div> + +<div class="attachment_description"> +<?php the_content();?> +</div> + +<p><?php _e('Posted under','web2zen');?> <a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a></p> + +<?php endwhile; ?><?php endif; ?> +<!-- end post --> +</div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/author.php b/wp-content/themes/web2zen/author.php new file mode 100644 index 0000000000000000000000000000000000000000..6116ddc6362d7905e2c2fc7f3f7b35e5c8677a4d --- /dev/null +++ b/wp-content/themes/web2zen/author.php @@ -0,0 +1,74 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if(isset($_GET['author_name'])) $curauth = get_userdatabylogin($author_name); +else $curauth = get_userdata(intval($author));?> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1) echo theme_breadcrumb($curauth->display_name);?> + +<div <?php post_class(); ?>> + +<h2 class="post-title"><?php echo $curauth->display_name; ?>’<?php if( substr($curauth->display_name, -1,1) != 's') echo 's';?> <?php _e('Profile','web2zen');?></h2> + +<div class="postcontent"> +<?php if( $curauth->user_description !='' && $curauth->user_url !='') :?> +<dl class="author-details"> + +<?php if( $curauth->user_description !='' ) :?> +<dt class="bio"><?php _e('Bio','web2zen');?>:</dt> +<dd class="bio"><?php echo $curauth->user_description; ?></dd> +<?php endif;?> + +<?php if( $curauth->user_url !='' ) :?> +<dt class="website"><?php _e('Website','web2zen');?>:</dt> +<dd class="website"><a href="<?php echo $curauth->user_url;?>"><?php echo $curauth->user_url;?></a></dd> +<?php endif;?> + +<?php if(function_exists('get_the_author_meta')) :?> +<?php if( get_the_author_meta('jabber', $curauth->ID) != '') :?> +<dt class="jabber"><?php _e('Jabber / Google Talk','web2zen');?>:</dt> +<dd class="jabber"><?php the_author_meta('jabber', $curauth->ID);?></dd> +<?php endif;?> + +<?php if( get_the_author_meta('aim', $curauth->ID) != '') :?> +<dt class="aim"><abbr title="<?php _e('AOL Instant Messenger','web2zen');?>"><?php _e('AIM','web2zen');?></abbr>:</dt> +<dd class="aim"><?php the_author_meta('aim', $curauth->ID);?></dd> +<?php endif;?> + +<?php if( get_the_author_meta('yim', $curauth->ID) != '') :?> +<dt class="yim"><?php _e('Yahoo','web2zen');?> <abbr title="<?php _e('Instant Messenger','web2zen');?>"><?php _e('IM','web2zen');?></abbr>:</dt> +<dd class="yim"><?php the_author_meta('yim', $curauth->ID);?></dd> +<?php endif;?> + +<?php endif;?> +</dl> +<?php endif;?> +</div> +</div> + +<h3 class="post-title"><?php _e('Posts by','web2zen');?> <?php echo $curauth->display_name; ?></h3> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<h4 id="post-<?php the_ID();?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Post <?php the_ID(); ?> - <?php _e('permanent link', 'web2zen');?>"><?php the_title(); ?></a></h4> + +<ul class="meta postfoot"> +<li><?php _e('Date','web2zen');?>: <?php the_time("F j, Y"); ?></li> +<li><?php _e('Filed under','web2zen');?>: <ul><li><?php the_category(',</li> <li>') ?></li></ul></li> +<?php if(get_the_tag_list()) :?> +<li><?php _e('Tags','web2zen');?>: <?php the_tags('<ul><li>',',</li> <li>','</li></ul>');?></li> +<?php endif;?> +</ul> + +<?php endwhile; ?> + +<ul class="prevnext"> +<li class="next"><?php next_posts_link(__('Older Posts','web2zen') ); ?></li> +<li class="prev"><?php previous_posts_link(__('Newer Posts','web2zen') );?></li> +</ul> + + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/authors.php b/wp-content/themes/web2zen/authors.php new file mode 100644 index 0000000000000000000000000000000000000000..bcae6859c04560619fc5f3494ae17bd51dfd2a3d --- /dev/null +++ b/wp-content/themes/web2zen/authors.php @@ -0,0 +1,40 @@ +<?php +/* +Template Name: List Authors +*/ +?> +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1) echo theme_breadcrumb($post->ID);?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div <?php post_class(); ?>> + +<h2 class="post-title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link', 'web2zen');?>: <?php the_title(); ?>"><?php the_title(); ?></a></h2> +<ul class="meta"> +<li><?php edit_post_link(__('Edit','web2zen') ,'<span class="edit">','</span>'); ?></li> +</ul> + +<div class="postcontent"> +<?php the_content(); ?> + +<ul class="authors"> +<?php wp_list_authors('exclude_admin=0&optioncount=1'); ?> +</ul> +</div> + +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> + +</div> + +<?php endwhile; ?> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/category.php b/wp-content/themes/web2zen/category.php new file mode 100644 index 0000000000000000000000000000000000000000..887bd3b485aa138e601f520aa651220ecdb6225a --- /dev/null +++ b/wp-content/themes/web2zen/category.php @@ -0,0 +1,44 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1) echo theme_breadcrumb(get_category_parents($cat, TRUE, '|'));?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div <?php if(is_sticky()) post_class('sticky');else post_class();?>id="post-<?php the_ID();?>"> +<h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link', 'web2zen');?>: <?php the_title(); ?>"><?php the_title(); ?></a></h2> + +<ul class="meta"> +<li><?php the_time('F j, Y'); ?> <?php if($theme_options['post_time'] != 1) :?><?php the_time(); ?><?php endif;?></li> +<li><?php edit_post_link(__('Edit','web2zen') , '', ''); ?></li> +</ul> + +<div class="postcontent"> +<?php the_content(the_title('', '', false).' - '.__('continue reading','web2zen') .'…'); ?> +</div> + +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> + +<ul class="meta postfoot"> +<?php if('open' == $post->comment_status) : ?><li class="comment_link"><?php comments_popup_link(__('Comment on ','web2zen') .$post->post_title, __('1 Comment on ','web2zen') .$post->post_title, __('% Comments on ','web2zen') .$post->post_title,'postcomment',__('Comments are off for ','web2zen') .$post->post_title); ?></li><?php endif;?> +<?php if($theme_options['author_link'] != 1) :?><li><?php _e('Author','web2zen');?>: <?php the_author_posts_link(); ?></li><?php endif;?> +<?php if(get_the_tag_list()) :?> +<li><?php _e('Tags','web2zen');?>: <?php the_tags('<ul><li>',',</li> <li>','</li></ul>');?></li> +<?php endif;?> +</ul> +</div> + +<?php endwhile; ?> + +<ul class="prevnext"> +<li class="next"><?php next_posts_link(__('Older Posts','web2zen') ); ?></li> +<li class="prev"><?php previous_posts_link(__('Newer Posts','web2zen') );?></li> +</ul> + +<?php endif; ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/web2zen/color.css b/wp-content/themes/web2zen/color.css new file mode 100644 index 0000000000000000000000000000000000000000..6a4aaeec9f5e6c19f3a9ee2abe61644a4e8ad065 --- /dev/null +++ b/wp-content/themes/web2zen/color.css @@ -0,0 +1,321 @@ +/*Web2Zen +Author: Mel Pedley (Black Widow Web Design) +http://www.blackwidows.co.uk + +*/ +body { + background:#D8DCE5; + color:#404040; +} +h1,h2,h3,h4,h5,h6 { +} +blockquote { + background:url(images/quotes.png) no-repeat top left; + color:#507086; +} +acronym, abbr { + border-bottom:1px dashed #ddd; +} +pre { + background:#F3F3FB; + color:#606060; + border:1px solid #D5CDD5; +} +fieldset { + background:#DEE2E9; +} +fieldset fieldset { + background:#F3F3FB; +} +legend { + background:#B1B4BE; + color:#000; +} +input, textarea { + background:#F0F3F5; + color:#404040; + border:1px solid #ddd; +} +input:focus,input.focus,textarea:focus,textarea.focus { + background:#fff; + color:#606060; + border-color:#407096; +} +input.submit,input.button,input[type=submit] { + background:#505050; + color:#fff; +} +ins { + text-decoration:none; +} +table,th,td { + border:1px solid #C6CCD4; +} +th { + background:#DEE2E9; +} +tr { + background:#fff; + color:#606060; +} +tr.alt { + background:#F3F3FB; +} +a { + color:#407096; +} +a:visited { + color:#666; +} +a:hover { + color:#407096; +} +a:active,a:focus { + background-color:#507086; + color:#fff; +} +a img { + border:1px solid #fff; +} +a:hover img,a:active img,a:focus img { + border-color:#407096; +} + +/* LAYOUT */ +#wrapper { + background:#fff; + color:#606060; + border-left:1px solid #ddd; + border-right:1px solid #ddd; + border-bottom:1px solid #ddd; +} +.jumplinks a:active,.jumplinks a:focus { + background:#fff; + color:#507086; + border:3px double #507086; +} + +/* HEADER */ +#header { + background:#4c4c4c url(images/header.jpg) no-repeat top right; +} +#blogtitle,#blogtitle h1,#blogtitle h1 a { + color:#fff; +} +#blogtitle h1 a:focus,#blogtitle h1 a:active { + background-color:#507086; + color:#eee; +} + +/* TABS */ +.tabs { + background:url(images/tab-bar.jpg) repeat-x left center; + border-bottom:1px solid #ddd; +} +.tabs a { + color:#606060; +} +.tabs .current_page_item a,.tabs .current-cat a { + background:#507086; + color:#fff; +} +.tabs ul ul .current_page_item a,.tabs ul ul .current-cat a { + background:#CFD3DF; + color:#505050; +} +.tabs ul ul a,.tabs li:hover a, +.tabs ul ul .current_page_item ul a,.tabs ul ul .current-cat ul a { + background:#4c4c4c; + color:#fff; +} +.tabs a:hover,.tabs a:active,.tabs a:focus, +.tabs .current_page_item ul a:hover,.tabs .current-cat ul a:hover, +.tabs ul ul .current_page_item a:hover,.tabs ul ul .current-cat a:hover { + background:#4c4c4c; + color:#fff; +} + +/* CONTENT */ +#content { + background:#fff; + color:#606060; +} +.post,.featured,.comment-links { + border:1px solid #4c4c4c; +} +.search-results { + border:none; +} +.postfoot { + border-top:3px double #aaa; +} +.author .postfoot,.search-results .postfoot { + background:#fff; + border-top:none; + border-bottom:3px double #aaa; +} +.post-title,.total-comments { + background-color:#4c4c4c; +} +.post-title,.post-title a,.total-comments { + color:#fff; +} +.featured .post-title a { + background-image:url(images/continue.gif); + background-repeat:no-repeat; + background-position:right center; +} +.featured .post-title a:active,.featured .post-title a:focus { + background-color:#507086; +} +.featured,.postfoot,.comment-links,.author .post { + background:#F3F3FB; +} +.subpages { + border:1px solid #D8DCE5; + background:#ECEFF3; +} +.subpages h3 { + background:#D8DCE5; + color:#4c4c4c; + border-bottom:1px solid #BBBEC9; +} +#content ul li { + list-style-image:url(images/bullet.jpg); +} +#content ul li ul li { + list-style-image:url(images/bullet2.jpg); +} +#content ul li ul li ul li { + list-style-image:none; +} +#content .prevnext li,#content .meta li { + list-style-image:none; + list-style:none; +} +#content .authors li { + list-style-image:url(images/authors.gif); +} + +.wp-caption,.gallery-item { + background:#F3F3FB; + -moz-border-radius: 3px; + -khtml-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + border:1px solid #DEE2E9; +} + +/* no bullets */ +#content #commentlist li,#content .comment-links li, +#content .breadcrumb li,#content .subpages li, +#content .page-numbers li { + list-style-image:none; + list-style:none; +} + +/* pagination */ +.prevnext .next a { + background-image:url(images/left.gif); + background-repeat:no-repeat; + background-position:center left; +} +.prevnext .next a:active,.prevnext .next a:focus { + background-image:url(images/left-active.gif); +} +.prevnext .prev a { + background-image:url(images/right.gif); + background-repeat:no-repeat; + background-position:center right; +} +.prevnext .prev a:active,.prevnext .prev a:focus { + background-image:url(images/right-active.gif); +} +.navigation { + color:#737373; +} +.page-numbers a { + background:#F3F3FB; + border:1px solid #ddd; +} +.page-numbers a:hover,.page-numbers a:active,.page-numbers a:focus { + background-color:#507086; + color:#fff; + border-color:#507086; +} + +/* SIDEBAR */ +.sidebar a { + color:#606060; +} +.sidebar a:hover { + color:#407096; +} +.sidebar a:active,.sidebar a:focus { + background-color:#507086; + color:#fff +} +.sidebar a img { + border-color:#FED7ED; +} +.sidebar a:hover img,.sidebar a:active img,.sidebar a:focus img { + border-color:#FD96FF; +} + +/* FOOTER */ +#footer .rss a { + background:url(images/rss.png) no-repeat top left; +} +#footer .rss a:hover,#footer .rss a:active,#footer .rss a:focus { + background-position:bottom left; +} + + +/* COMMENTS */ +#commentlist li .meta li { + border:none; +} +.comment-body p { + background:#F3F3FB; +} +.comment-author,.commentmetadata { + background-color:#4c4c4c; +} +.comment-author { + background-image:url(images/comment-top.jpg); + background-repeat:no-repeat; + background-position:left top; +} +.comment-author-admin > .comment-body > .comment-author { + background-image:url(images/comment-top-admin.jpg); +} +.bypostauthor > .comment-body > .comment-author { + background-image:url(images/comment-top-author.jpg); +} +.commentmetadata { + background-image:url(images/comment-bottom.jpg); + background-repeat:no-repeat; + background-position:left bottom; +} +.comment-author,.comment-author a, +.commentmetadata,.commentmetadata a { + color:#fff; +} + + +/* thickbox */ +.attachment #TB_window { + background:#fff; + color:#606060; +} +.attachment #TB_window img#TB_Image { + border:1px solid #fff; +} +.attachment #TB_window a:hover img#TB_Image { + border-color:#407096; +} + +/* OTHER */ +.error,.req small { + color:#9A3C45; +} diff --git a/wp-content/themes/web2zen/comments.php b/wp-content/themes/web2zen/comments.php new file mode 100644 index 0000000000000000000000000000000000000000..3025900af71cb2e8052fd33b884db8f53ee98f53 --- /dev/null +++ b/wp-content/themes/web2zen/comments.php @@ -0,0 +1,68 @@ +<?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() ) { + echo '<p class="nocomments">'._e('This post is password protected. Enter the password to view comments.','web2zen') .'</p>'; + return; +} +?> + +<?php if(have_comments()) : ?> +<h2 id="comments" class="total-comments"><?php comments_number(__('No comments','web2zen') , '1'.__(' Comment','web2zen') , '%'.__(' Comments','web2zen') ); ?> on <?php the_title(); ?></h2> +<?php endif;?> + +<?php if ( 'open' == $post->comment_status && have_comments()) : ?> +<ul class="comment-links"> +<li><a href="#respond"><?php _e('Add your comment','web2zen');?></a></li> +<?php if ( have_comments() ) : ?><li><a href="<?php echo get_post_comments_feed_link();?>"><?php _e('Comments feed for this post', 'web2zen'); ?></a></li><?php endif;?> +<?php if(pings_open()) : ?><li><a href="<?php trackback_url();?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>','web2zen');?></a></li><?php endif;?> +</ul> +<?php endif;?> + +<?php if(have_comments()) : ?> + +<?php paginate_comments_links('type=list'); ?> + +<ol id="commentlist"> +<?php wp_list_comments(); ?> +</ol> + +<?php paginate_comments_links('type=list'); ?> + +<?php endif;?> + +<?php if('open' == $post->comment_status) : ?> +<div id="respond"> +<h3><?php comment_form_title(__( 'Leave a comment','web2zen') , __('Reply to %s','web2zen') ); ?></h3> +<div class="cancel-comment-reply"><?php cancel_comment_reply_link(); ?></div> + +<?php if(pings_open()) : ?><p class="trackback"><a href="<?php trackback_url();?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>','web2zen');?></a></p><?php endif;?> + +<p class="comment_log_status"> +<?php if (get_option('comment_registration') && !is_user_logged_in() ) : ?><?php _e('You must be','web2zen');?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','web2zen');?></a> <?php _e('to post a comment');?>. +<?php elseif(is_user_logged_in() ) : ?><?php _e('You are currently logged in as','web2zen');?> <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()); ?>"><?php _e('Log out','web2zen');?></a><?php endif;?> +</p> + +<form action="<?php bloginfo('url'); ?>/wp-comments-post.php" method="post" id="commentform"> +<fieldset> + +<?php if(!is_user_logged_in()) : ?> +<p><label for="author" <?php if($req) echo 'class="req"';?>><?php _e('Name','web2zen');?> <?php if($req) echo '<small>('.__('required','web2zen') .')</small>';?></label> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="20" /></p> +<p><label for="email"<?php if($req) echo 'class="req"';?>><?php _e('Email','web2zen');?> <?php if($req) echo '<small>('.__('required but will not be published','web2zen') .')</small>'; ?></label> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" /></p> +<p><label for="url"><?php _e('Website','web2zen');?></label> <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" /></p> +<?php endif; ?> + +<p><label for="comment" class="textarea"><span class="req"><?php _e('Comments','web2zen');?> <small>(<?php _e('required','web2zen');?>)</small></span></label> +<textarea name="comment" id="comment" cols="100%" rows="10"></textarea></p> + +<p class="submit_wrap"><input name="submit" type="submit" class="submit" value="<?php _e('Submit Comment','web2zen');?>" /> +<?php do_action('comment_form', $post->ID); ?> +<?php comment_id_fields(); ?></p> +</fieldset> +</form> +</div> + +<?php elseif(have_comments()) : ?> +<p class="comments-closed"><strong><?php _e('Sorry, the comment form is now closed.','web2zen');?></strong></p> +<?php endif;?> diff --git a/wp-content/themes/web2zen/common.css b/wp-content/themes/web2zen/common.css new file mode 100644 index 0000000000000000000000000000000000000000..e8a76d4690ec99e9075a31a040b094a1bde3e2b0 --- /dev/null +++ b/wp-content/themes/web2zen/common.css @@ -0,0 +1,591 @@ +/* +Author: Mel Pedley (Black Widow Web Design) +http://www.blackwidows.co.uk +*/ +body { + margin:0; + padding:0; + font-family:Tahoma,Arial,Helvetica,sans-serif; + font-size:100%; + direction:ltr; +} +h1 { + font-size:2.5em; + letter-spacing:0.2em; +} +h2 { + font-size:1.6em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.15em; +} +h5,h6 { + font-size:1em; +} +h2,h3,h4,h5,h6 { + letter-spacing:.01em; +} +h1,h2,h3 { + font-weight:normal; +} +a { + padding:0 1px; + text-decoration:underline; +} +a:hover,a:active,a:focus { + text-decoration:none; +} +img { + border:none; +} +dt { + font-weight:bold; + margin-top:10px; +} +li { + margin-bottom:10px; +} +ol li { + list-style-type:decimal; +} +ol li ol li { + list-style-type: lower-alpha; +} +ol li ol li ol li { + list-style-type:lower-roman; +} +ul li { + list-style-type:disc; +} +ul li ul li { + list-style-type:circle; +} +ul li ul li ul li { + list-style-type: square; +} +acronym, abbr { + cursor:help; + letter-spacing:.01em; + text-decoration:none; +} +a acronym,a abbr { + text-decoration:none; + border-bottom:none; +} +blockquote { + margin:0; + padding:0 0 0 20px; + font-family:georgia,palatino,'times new roman',serif; +} +blockquote p { + padding:10px 15px 0; +} +blockquote cite { + display:block; + padding-bottom:15px; + font-size:.86em; + font-style:normal; +} +q:before, q:after { + content:""; +} +code,pre { + font-family:courier, monospace; +} +pre { + overflow:auto; + white-space:pre; + line-height:1.2em; + font-size:1.1em; +} +code { + font-size:1.1em; + padding:5px; +} +pre code { + margin:10px 15px; + padding:10px; + display:block; + font-size:1em; +} +address { + font-style:normal; +} +form { + margin:10px 0; + padding:0; +} +fieldset { + margin:5px; + padding:10px; + border:none; +} +fieldset fieldset { + margin-top:15px; +} +legend { + margin:0 0 0 -10px; + padding:2px 5px; +} +input,textarea,select { + font-family:Tahoma, Verdana,Arial, Helvetica, sans-serif; + font-size:1em; +} +textarea { + width:95%; +} +table { + border-collapse:collapse; +} +th,td { + padding:3px; +} + +ul.jumplinks,.jumplinks { + position:absolute; + top:-9000px; + left:-9000px; + z-index:99; +} + +/* max widths */ +#wrapper { + max-width:1000px; +} + +/* LAYOUT */ +#wrapper { + margin:0 auto; + padding:0; +} + +/* SIDEBAR */ +.sidebar,.sidebar ul,.sidebar ul li { + margin:0; + padding:0; +} +.sidebar #stickied,.sidebar #site_nav,.sidebar #searchform label { + position:absolute; + top:-1500px; + left:-1500px; +} +.sidebar #searchform { + margin:0; + padding:0; +} +.sidebar #searchform .submit { + margin-top:3px; +} +.sidebar ul li { + list-style-type:none; +} +.sidebar ul ul li { + margin-bottom:8px; + font-weight:normal; +} +.sidebar ul ul ul { + margin-left:10px; +} +.sidebar .current_page_item,.sidebar .current_page_parent,.sidebar .current_page_ancestor, +.sidebar .current-cat { + font-weight:bold; +} +.sidebar a { + padding:2px 5px 3px; + text-decoration:none; +} +.sidebar .recentcomments a { + text-decoration:underline; +} +.sidebar a:hover,.sidebar a:active,.sidebar a:focus { + text-decoration:underline; +} +.sidebar .recentcomments a:hover,.sidebar .recentcomments a:active,.sidebar .recentcomments a:focus { + text-decoration:none; +} + +/* CONTENT */ +#content { + min-height:400px; + line-height:1.5em; + margin:0; + padding:0; +} +#content h1 { + font-size:1.8em; +} +#content .top { + clear:both; + font-size:.9em; + text-align:right; + text-transform:lowercase; +} +#content .hentry { + display:block; + margin:0; + padding:0; +} +.post-title { + margin:0; + padding:0; +} +.post-title a { + text-decoration:none; +} +.post-title a:hover,.post-title a:active,.post-title a:focus { + text-decoration:underline; +} +#content .meta li,#content .prevnext li,#content .gallery li { + list-style-image:none; + list-style:none; +} +.meta { + margin:5px 0 0; + padding:0; +} +.meta ul,.meta li { + margin:0; + padding:0; +} +.meta ul { + display:inline; +} +.meta li li { + display:inline; + padding-right:.3em; +} + +/* pagination */ +.prevnext { + margin:20px 0; + padding:0; + text-align:center; +} +.prevnext li { + margin:0; + padding:0 10px; + display:inline; +} +.prevnext .next a { + padding:0 10px 0 20px; +} +.prevnext .prev a { + padding:0 20px 0 10px; +} +.prevnext .prev_img,.prevnext .next_img { + margin-bottom:15px; +} +.prevnext .prev_img { + float:left; +} +.prevnext .next_img { + float:right; +} +.pagelist { + clear:both; + margin:0 0 10px; + padding:0; +} +.pagelist ul,.pagelist li { + margin:0; + padding:0; + display:inline; +} +.pagelist a { + padding:0 2px; +} +.page-numbers { + width:80%; + margin:20px auto; + padding:0; + text-align:center; +} +.page-numbers li { + display:inline; +} +.page-numbers a { + padding:0 5px; +} +.page-numbers a { + text-decoration:none; +} +.page-numbers a:hover,.page-numbers a:active,.page-numbers a:focus { + text-decoration:underline; +} + +/* gallery */ +.gallery { + margin:auto; + padding:0; +} +.gallery-item { + float:left; + margin:10px 0 0; + padding:0; + text-align:center; +} +.gallery-icon { + margin:0; + font-weight:normal; +} +#content .gallery img { + float:none; + margin:0; + padding:0; +} +.gallery-caption { + margin:0; + padding:0; + text-align:center; + font-size:.9em; +} +.gallery br {clear:left !important;} + +/* captions */ +.wp-caption { + margin:0 10px 10px; + padding-top:4px; + text-align:center; +} +.wp-caption img { + margin:0 auto; + padding:0; +} +.wp-caption-text { + margin:0; + padding:0; + font-size:.85em; +} +.wp-caption-dd { + margin:0; + padding:0 4px 5px; +} + + +/* images */ +.alignleft,.wp-post-image { + float:left; +} +.alignright { + float:right; +} +img.alignleft,.wp-post-image { + margin:0 20px 20px 0; +} +img.alignright { + margin:0 0 20px 20px; +} +img.aligncenter,.aligncenter,.attachment .thickbox img { + float:none; + display:block; + margin:0 auto; +} +img.alignnone,.alignnone { + float:none; + margin:0; +} +.attachment img.attachment-thumbnail { + float:left; + display:inline; + margin-right:5px; +} + +/* FOOTER */ +#footer { + clear:both; + margin:0; + padding:0; +} + +/* comments */ +.total-comments { + margin-bottom:0; +} +#commentlist .commentdata,#commentlist,#commentlist ul { + margin:0; + padding:0; +} +#commentlist li { + margin:0 0 10px; + padding:0 0 5px; + list-style:none; +} +#commentlist .children li { + margin:10px; +} +#commentlist .comment-author { + float:left; + margin-right:20px; +} +#commentlist img { + float:left; + margin:1px 10px 5px 1px; + padding:0; +} +#commentlist .commentmetadata { + text-align:right; + margin-right:5px; +} +#commentlist .comment-author cite { + display:inline; + margin:0; + padding:0; + text-align:left; + font-style:normal; +} +#commentlist .comment_text { + clear:left; + margin:0; + padding:0 10px; +} +#commentlist .comment p,#commentlist .trackback p,#commentlist .pingback p { + padding:0 10px; +} +#commentlist .reply { + margin:-10px 5px 0 0; + padding:0; + text-align:right; +} +#commentlist #respond { + margin:0 10px; +} +#commentform fieldset { + padding:0 10px; +} +#commentform p { + margin:.5em 0 1em; +} +#commentform .textarea abbr { + border:none; +} +#commentform label,#commentform .textarea span,#commentform .textarea code { + display:block; +} +#commentform label small { + font-weight:normal; +} +.submit_wrap { + width:95%; +} +.comments-closed { + padding:0 20px; +} + +/* tag cloud */ +.wp-tag-cloud { + margin:10px 0; + padding:0; +} +h2.tag-cloud { + position:absolute; + left:-1600px; + top:-1600px; +} +.wp-tag-cloud li { + display:inline; + list-style:none; + margin:0; + padding:0; +} +.wp-tag-cloud li a { + letter-spacing:.01em; + text-decoration:none; + white-space:nowrap; +} +.wp-tag-cloud li a:hover { + text-decoration:underline; +} + +/* calendar */ +#wp-calendar { + margin:0 auto; + padding:0; + letter-spacing:normal; + text-align:center; + font-size:.8em; + border-collapse:collapse; +} +#wp-calendar caption { + margin:0 0 3px; + padding:0; + font-size:.8em; +} +#wp-calendar th { + font-size:.9em; + text-transform:capitalize; +} +#wp-calendar th,#wp-calendar td { + margin:0; + padding:2px; +} +#wp-calendar #next a { + text-align:right; +} +#wp-calendar #prev a { + text-align:left; +} +#wp-calendar a { + display:block; + text-decoration:none; +} +#wp-calendar tbody, #wp-calendar tfoot { + font-size:.8em; +} +#wp-calendar #today a { + font-weight:bold; +} +#wp-calendar a { + text-decoration:underline; +} +#wp-calendar a:hover,#wp-calendar a:active,#wp-calendar a:focus { + text-decoration:none; +} + +/* search results */ +.search_results,.search_result ul,.search_result { + margin:0; + padding:0; +} +.search_result .meta ul,.search_result .meta ul li { + display:inline; +} + +/* GENERAL */ +.float-right { + float:right; +} +.float-left { + float:left; +} +.clear-left { + clear:left; +} +.clear-right { + clear:right; +} +.clear { + clear:both; +} +.italics { + font-style:italic; +} +.bold { + font-weight:bold; +} +.center { + text-align:center; +} +.left { + text-align:left; +} +.right { + text-align:right; +} +.offscreen { + position:absolute; + top:-5000px; + left:-5000px; +} \ No newline at end of file diff --git a/wp-content/themes/web2zen/footer.php b/wp-content/themes/web2zen/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..294570a8278ec83792ca5e1ffdb247e4988f0549 --- /dev/null +++ b/wp-content/themes/web2zen/footer.php @@ -0,0 +1,27 @@ +<div class="clear"></div> +<!-- end content --> +</div> + +<?php global $theme_options; +if($theme_options['sidebar'] != 1) get_sidebar('right'); ?> + +<div id="footer"> +<p class="rss"><a href="<?php bloginfo('rss2_url'); ?>" title="RSS <?php _e('Feed','web2zen');?>"><span>RSS</span></a></p> + +<ul> +<li><a href="#top" title="<?php _e('Jump to the top of this page','web2zen');?>"><?php _e('Top','web2zen');?></a></li> +<li><?php wp_loginout(); ?></li> +<?php wp_register(); ?> +</ul> + +<?php $theme_data = get_theme_data(get_stylesheet_directory() . '/style.css');?> +<p><?php _e('Powered by the', 'web2zen');?> <a href="<?php echo $theme_data['URI'];?>"><?php echo get_current_theme();?> <?php _e('Theme','web2zen');?></a></p> +<?php wp_footer(); ?> +</div> + +<!-- end wrapper --> +</div> + +</body> +</html> + diff --git a/wp-content/themes/web2zen/functions.php b/wp-content/themes/web2zen/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..e903ab50a7d90043a3e8d2e8526d3cc2e8f3eb7a --- /dev/null +++ b/wp-content/themes/web2zen/functions.php @@ -0,0 +1,62 @@ +<?php +load_theme_textdomain ('purplepastels', get_template_directory() . '/langs'); +$GLOBALS['content_width'] = 800; + +remove_action ('wp_head', 'wp_generator'); + +// Constants +define('THEMELIB', get_template_directory() . '/library'); +define('THEMELIB_URI', get_template_directory_uri() . '/library'); +define('SSLIB', get_stylesheet_directory() . '/library'); +define('SSLIB_URI', get_stylesheet_directory_uri() . '/library'); + +$theme_options = get_option('web2zen_options'); + +// Load common functions +require_once(THEMELIB . '/common.php'); + +// Load thickbox +require_once(THEMELIB . '/thickbox.php'); + +// Load accordian menu +require_once(THEMELIB . '/accordian.php'); + +// Load breadcrumb +require_once(THEMELIB . '/breadcrumb.php'); + +// Load custom header +require_once(THEMELIB . '/custom-header.php'); + +// Load custom header +require_once(THEMELIB . '/theme-options.php'); + +// Set up custom post image sizes +if ( function_exists( 'add_image_size' ) ) { + add_image_size( 'featured', 100, 100 ); +} + +// Add content class +function content_class() { + global $theme_options; + if($theme_options['sidebar'] != 1) $class='narrow'; + else $class = 'wide'; + return $class; +} + +// Register sidebar widgets +if (function_exists('register_sidebar')) { + register_sidebar(array( + 'name'=> 'Top Tabs', + 'id' => 'top_tabs', + 'before_widget' => '<div id="%1$s" class="widget %2$s">', + 'after_widget' => '</div>', + )); + register_sidebar(array( + 'name'=> 'Right Sidebar', + 'id' => 'right_sidebar', + 'before_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + )); +} + +?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/header.php b/wp-content/themes/web2zen/header.php new file mode 100644 index 0000000000000000000000000000000000000000..fcf3a3e1a59e8d7201334cf62aa28d12f717da4c --- /dev/null +++ b/wp-content/themes/web2zen/header.php @@ -0,0 +1,69 @@ +<!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"> +<head profile="http://gmpg.org/xfn/1"> +<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" /> + +<meta name="description" content="<?php echo theme_meta_description(); ?>" /> +<meta name="keywords" content="<?php echo theme_meta_keywords();?>" /> + +<meta name="designer" content="esmi" /> +<meta name="designer_email" content="esmi@quirm.net" /> + +<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" /> +<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/print.css" media="print" /> + +<!--[if IE]> +<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/ie.css" media="screen" type="text/css" /> +<![endif]--> +<!--[if lte IE 7]> +<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/ie7.css" media="screen" type="text/css" /> +<script src="<?php bloginfo('template_directory'); ?>/library/focus.js" type="text/javascript"></script> +<![endif]--> + +<?php +$theme_options = get_option('web2zen_theme_options'); +if($theme_options['sidebar'] == 1) :?> +<style type = "text/css"> +#content {width:100%;} +</style> +<?php endif;?> + +<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'); ?>" /> + +<?php wp_get_archives('type=monthly&format=link'); ?> + +<title><?php if(is_search()) { + if(esc_html(trim($s)) != ' ') {_e(' Search Results for '', 'web2zen'); esc_html_e(trim($s));_e('' on ', 'web2zen');bloginfo('name');} + else {bloginfo('name');_e(' - No search query entered!', 'web2zen');} +} +elseif (is_category() || is_author()) {wp_title(':',true,'right');bloginfo('name');} +elseif(is_tag()) {_e('Entries tagged with ','web2zen');wp_title('',true);if(wp_title('',false)) {echo ' : ';} bloginfo('name');} +elseif(is_archive() && function_exists('theme_get_archive_date')) {echo theme_get_archive_date().' : ';bloginfo('name');} +elseif(is_404()) {bloginfo('name');_e(' - Page not found!','web2zen');} +elseif (have_posts()) {wp_title(':',true,'right');bloginfo('name');} +else {bloginfo('name');}?> +</title> + +<?php if(is_singular()) wp_enqueue_script( 'comment-reply' );?> +<?php wp_head(); ?> +</head> + +<body id="top" <?php if (function_exists('body_class')) body_class(); ?>> + +<div id="wrapper"> + +<ul class="jumplinks"> +<li><a href="#content"><?php _e('Jump to Main Content','web2zen');?></a></li> +<li><a href="#right_sidebar"><?php _e('Jump to Side Navigation','web2zen');?></a></li> +<li><a href="#footer"><?php _e('Jump to Footer','web2zen');?></a></li> +</ul> + +<div id="header"> +<div id="blogtitle"><h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><span><?php bloginfo('name'); ?></span> +<small><?php bloginfo('description'); ?></small></a></h1></div> +</div> + +<?php get_sidebar('horizontal'); ?> diff --git a/wp-content/themes/web2zen/ie.css b/wp-content/themes/web2zen/ie.css new file mode 100644 index 0000000000000000000000000000000000000000..8543fc5499bd0618a4989127acf8d44cecc34fa2 --- /dev/null +++ b/wp-content/themes/web2zen/ie.css @@ -0,0 +1,16 @@ +/*Web2Zen +Author: Mel Pedley (Black Widow Web Design). +http://www.blackwidows.co.uk + +*/ +/* fixes HasLayout issue in IE */ +#content,#left_sidebar,#right_sidebar,#footer { + height:50%; +} +legend { + position:relative; + top:-10px; +} +input.checkbox { + border:none; +} \ No newline at end of file diff --git a/wp-content/themes/web2zen/ie7.css b/wp-content/themes/web2zen/ie7.css new file mode 100644 index 0000000000000000000000000000000000000000..779b6abab57cb81f1f8490d650a1e05559dac73a --- /dev/null +++ b/wp-content/themes/web2zen/ie7.css @@ -0,0 +1,15 @@ +/*Web2Zen +Author: Mel Pedley (Black Widow Web Design) +http://www.blackwidows.co.uk + +*/ +legend { + left:-7px; +} +.jumplinks a:active,.jumplinks a:focus { + top:9010px; + left:9000px; +} +#blogtitle h1 small { + text-indent:1em; +} diff --git a/wp-content/themes/web2zen/image.php b/wp-content/themes/web2zen/image.php new file mode 100644 index 0000000000000000000000000000000000000000..de87ef9926a2e96418a99b0553123050f3590566 --- /dev/null +++ b/wp-content/themes/web2zen/image.php @@ -0,0 +1,31 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + + +<div <?php post_class(); ?>> + +<h2><?php the_title(); ?></h2> +<?php edit_post_link(__('Edit','web2zen') ,'<p class="edit">','</p>'); ?> + +<div class="attachment"> + +<a class="thickbox" title="<?php echo get_the_content(); ?> <?php _e('(press ESC to close)','web2zen');?>" href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a> + +<?php the_content(); ?> + +<p><?php _e('Posted under','web2zen');?> <a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a></p> + +<ul class="prevnext"> +<li class="next_img"><?php next_image_link();?></li> +<li class="prev_img"><?php previous_image_link(); ?></li> +</ul> +</div> + +<?php endwhile; endif; ?> +<!-- end post --> +</div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/images/authors.gif b/wp-content/themes/web2zen/images/authors.gif new file mode 100644 index 0000000000000000000000000000000000000000..834d816b8f8151cc3239fc2d875491938e8675b2 Binary files /dev/null and b/wp-content/themes/web2zen/images/authors.gif differ diff --git a/wp-content/themes/web2zen/images/bullet.jpg b/wp-content/themes/web2zen/images/bullet.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4c6b92ae84d35b14d44e5f619297e86e047e154b Binary files /dev/null and b/wp-content/themes/web2zen/images/bullet.jpg differ diff --git a/wp-content/themes/web2zen/images/bullet2.jpg b/wp-content/themes/web2zen/images/bullet2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5d69f1c29164eeef8d8b94f0c0c2b42ab4c56aeb Binary files /dev/null and b/wp-content/themes/web2zen/images/bullet2.jpg differ diff --git a/wp-content/themes/web2zen/images/comment-bottom.jpg b/wp-content/themes/web2zen/images/comment-bottom.jpg new file mode 100644 index 0000000000000000000000000000000000000000..601476c89f45622cae42012f5c4f26dec1f846ef Binary files /dev/null and b/wp-content/themes/web2zen/images/comment-bottom.jpg differ diff --git a/wp-content/themes/web2zen/images/comment-top-admin.jpg b/wp-content/themes/web2zen/images/comment-top-admin.jpg new file mode 100644 index 0000000000000000000000000000000000000000..93f913c90d1678409a36a00c94a13a118e1e3270 Binary files /dev/null and b/wp-content/themes/web2zen/images/comment-top-admin.jpg differ diff --git a/wp-content/themes/web2zen/images/comment-top-author.jpg b/wp-content/themes/web2zen/images/comment-top-author.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e1726df6ba11af8f5bbd6d53c28355078d64d49c Binary files /dev/null and b/wp-content/themes/web2zen/images/comment-top-author.jpg differ diff --git a/wp-content/themes/web2zen/images/comment-top.jpg b/wp-content/themes/web2zen/images/comment-top.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1fd14980e0640cbc595b8ebe1a3b905f43f1b01e Binary files /dev/null and b/wp-content/themes/web2zen/images/comment-top.jpg differ diff --git a/wp-content/themes/web2zen/images/continue.gif b/wp-content/themes/web2zen/images/continue.gif new file mode 100644 index 0000000000000000000000000000000000000000..1c7284f39cc094746b10e23fdf1cfbcfa40b57e5 Binary files /dev/null and b/wp-content/themes/web2zen/images/continue.gif differ diff --git a/wp-content/themes/web2zen/images/default.jpg b/wp-content/themes/web2zen/images/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0f2f6ba52327d45c9cb5297172344b7e5a443a9 Binary files /dev/null and b/wp-content/themes/web2zen/images/default.jpg differ diff --git a/wp-content/themes/web2zen/images/header.jpg b/wp-content/themes/web2zen/images/header.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0f9358c1270fe6a50c3c9b3ba585c76a626cd49b Binary files /dev/null and b/wp-content/themes/web2zen/images/header.jpg differ diff --git a/wp-content/themes/web2zen/images/left-active.gif b/wp-content/themes/web2zen/images/left-active.gif new file mode 100644 index 0000000000000000000000000000000000000000..503858bc9d5033d5b22201c1a95153b47042004b Binary files /dev/null and b/wp-content/themes/web2zen/images/left-active.gif differ diff --git a/wp-content/themes/web2zen/images/left.gif b/wp-content/themes/web2zen/images/left.gif new file mode 100644 index 0000000000000000000000000000000000000000..c515f2b7c6ccb68810ed0f0b2c289399173e2800 Binary files /dev/null and b/wp-content/themes/web2zen/images/left.gif differ diff --git a/wp-content/themes/web2zen/images/more.gif b/wp-content/themes/web2zen/images/more.gif new file mode 100644 index 0000000000000000000000000000000000000000..ed4d754c49e5e78ab664f710c84089cb06e23153 Binary files /dev/null and b/wp-content/themes/web2zen/images/more.gif differ diff --git a/wp-content/themes/web2zen/images/quotes.png b/wp-content/themes/web2zen/images/quotes.png new file mode 100644 index 0000000000000000000000000000000000000000..cd5727d19122fd36236a8d260a0da57e882f45ee Binary files /dev/null and b/wp-content/themes/web2zen/images/quotes.png differ diff --git a/wp-content/themes/web2zen/images/right-active.gif b/wp-content/themes/web2zen/images/right-active.gif new file mode 100644 index 0000000000000000000000000000000000000000..3c69f91c445c95e994c5c2af0dc4a7b3624d600c Binary files /dev/null and b/wp-content/themes/web2zen/images/right-active.gif differ diff --git a/wp-content/themes/web2zen/images/right.gif b/wp-content/themes/web2zen/images/right.gif new file mode 100644 index 0000000000000000000000000000000000000000..18f6ca0f357325c2dfabb1c59e6ce7e042bc2ce3 Binary files /dev/null and b/wp-content/themes/web2zen/images/right.gif differ diff --git a/wp-content/themes/web2zen/images/rss.png b/wp-content/themes/web2zen/images/rss.png new file mode 100644 index 0000000000000000000000000000000000000000..977388712de851871dedb4d71231e37a101e49c9 Binary files /dev/null and b/wp-content/themes/web2zen/images/rss.png differ diff --git a/wp-content/themes/web2zen/images/sticky.png b/wp-content/themes/web2zen/images/sticky.png new file mode 100644 index 0000000000000000000000000000000000000000..9a88b18acaae5ef85c60b7569f078ec546864597 Binary files /dev/null and b/wp-content/themes/web2zen/images/sticky.png differ diff --git a/wp-content/themes/web2zen/images/tab-bar.jpg b/wp-content/themes/web2zen/images/tab-bar.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8c72d05787dfda9e616b5909623e7f57efbff552 Binary files /dev/null and b/wp-content/themes/web2zen/images/tab-bar.jpg differ diff --git a/wp-content/themes/web2zen/index.php b/wp-content/themes/web2zen/index.php new file mode 100644 index 0000000000000000000000000000000000000000..8ca21bac81af4450549833232d89ea35e851e391 --- /dev/null +++ b/wp-content/themes/web2zen/index.php @@ -0,0 +1,80 @@ +<?php get_header(); ?> + +<?php +add_filter('excerpt_length', 'index_excerpt_length'); +function index_excerpt_length($length) { + return 35; +} +$c = 0; +?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php $categories = get_categories( ); +echo '<pre>'; +print_r($categories); +echo '</pre>'; +?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<?php if( is_sticky() && !is_paged() ) { + $featured='featured'; + $c++; + if( $c % 2 != 0 ) $featured .=' fleft'; +} +else $featured = '';?> + +<div <?php post_class($featured);?> id="post-<?php the_ID();?>"> + +<h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> - <?php _e('continue reading', 'web2zen');?>"><?php the_title(); ?></a></h2> + +<?php if( !is_sticky() && !is_paged() ) :?> +<ul class="meta"> +<li><?php the_time("F j, Y"); ?> <?php if($theme_options['post_time'] != 1) :?><?php the_time(); ?><?php endif;?></li> +<li><?php edit_post_link(__('Edit','web2zen') , '', ''); ?></li> +</ul> +<?php endif;?> + +<div class="postcontent"> +<?php if( !is_sticky() || is_paged() ) the_content(__('Continue reading ','web2zen') . the_title('', '', false).''); +else { + if( has_post_thumbnail() ) : the_post_thumbnail('featured'); + else :?><img height="100" width="100" alt="" class="attachment-featured wp-post-image" src="<?php bloginfo('template_directory');?>/images/default.jpg" /><?php endif; + the_excerpt(); +} +?> +</div> + +<?php if( !is_sticky() || is_paged() ) :?> +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> + +<ul class="meta postfoot"> +<?php if('open' == $post->comment_status) : ?><li class="comment_link"><?php comments_popup_link(__('Comment on ','web2zen') .$post->post_title, __('1 Comment on ','web2zen') .$post->post_title, __('% Comments on ','web2zen') .$post->post_title,'postcomment',__('Comments are off for ','web2zen') .$post->post_title); ?></li><?php endif;?> +<?php if($theme_options['author_link'] != 1) :?><li><?php _e('Author','web2zen');?>: <?php the_author_posts_link(); ?></li><?php endif;?> +<li><?php _e('Filed under','web2zen');?>: <ul><li><?php the_category(',</li> <li>') ?></li></ul></li> +<?php if(get_the_tag_list()) :?> +<li><?php _e('Tags','web2zen');?>: <?php the_tags('<ul><li>',',</li> <li>','</li></ul>');?></li> +<?php endif;?> +</ul> + +<?php else:?> +<?php endif;?> + +</div> + +<?php endwhile; ?> + +<ul class="prevnext"> +<li class="next"><?php next_posts_link(__('Older Posts','web2zen') ); ?></li> +<li class="prev"><?php previous_posts_link(__('Newer Posts','web2zen') );?></li> +</ul> + +<?php endif; ?> + +<?php remove_filter('excerpt_length', 'index_excerpt_length');?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/web2zen/langs/web2zen.po b/wp-content/themes/web2zen/langs/web2zen.po new file mode 100644 index 0000000000000000000000000000000000000000..eab49db67f8c1310df7eef9ff75aeb9bc29e4a2f --- /dev/null +++ b/wp-content/themes/web2zen/langs/web2zen.po @@ -0,0 +1,540 @@ +msgid "" +msgstr "" +"Project-Id-Version: Web2Zen\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-05-28 21:55-0000\n" +"PO-Revision-Date: 2010-05-28 21:55-0000\n" +"Last-Translator: Mel P. <esmi@quirm.net>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n" +"X-Poedit-Basepath: C:\\data\\data3\\server\\wordpress\\wp-content\\themes\\\n" +"X-Poedit-SearchPath-0: web2zen\n" + +#: web2zen/404.php:9 +msgid "Page Not Found" +msgstr "" + +#: web2zen/404.php:11 +msgid "Uh oh! I cannot seem to find the file you asked for" +msgstr "" + +#: web2zen/404.php:13 +msgid "Perhaps you" +msgstr "" + +#: web2zen/404.php:16 +msgid "tried to access a post or archive which has been removed" +msgstr "" + +#: web2zen/404.php:17 +msgid "followed a bad link" +msgstr "" + +#: web2zen/404.php:18 +msgid "mis-typed something" +msgstr "" + +#: web2zen/404.php:21 +msgid "Try using the main navigation menu to find what you are looking for" +msgstr "" + +#: web2zen/404.php:23 +msgid "Or you may just wish to return to the" +msgstr "" + +#: web2zen/404.php:23 +msgid "Home page" +msgstr "" + +#: web2zen/archive.php:9 +msgid "Post" +msgstr "" + +#: web2zen/archive.php:9 +msgid " permanent link" +msgstr "" + +#: web2zen/archive.php:13 +#: web2zen/authors.php:18 +#: web2zen/category.php:14 +#: web2zen/image.php:11 +#: web2zen/index.php:29 +#: web2zen/page-without-comments.php:20 +#: web2zen/page.php:13 +msgid "Edit" +msgstr "" + +#: web2zen/archive.php:17 +#: web2zen/index.php:34 +msgid "Continue reading " +msgstr "" + +#: web2zen/archive.php:21 +#: web2zen/archive.php:22 +#: web2zen/authors.php:30 +#: web2zen/authors.php:31 +#: web2zen/category.php:22 +#: web2zen/category.php:23 +#: web2zen/index.php:45 +#: web2zen/index.php:46 +#: web2zen/page-without-comments.php:28 +#: web2zen/page-without-comments.php:29 +#: web2zen/page.php:23 +#: web2zen/page.php:24 +msgid "Pages" +msgstr "" + +#: web2zen/archive.php:26 +#: web2zen/category.php:27 +#: web2zen/index.php:50 +msgid "Comment on " +msgstr "" + +#: web2zen/archive.php:26 +#: web2zen/category.php:27 +#: web2zen/index.php:50 +msgid "1 Comment on " +msgstr "" + +#: web2zen/archive.php:26 +#: web2zen/category.php:27 +#: web2zen/index.php:50 +msgid "% Comments on " +msgstr "" + +#: web2zen/archive.php:26 +#: web2zen/category.php:27 +#: web2zen/index.php:50 +msgid "Comments are off for " +msgstr "" + +#: web2zen/archive.php:27 +#: web2zen/category.php:28 +#: web2zen/index.php:51 +msgid "Author" +msgstr "" + +#: web2zen/archive.php:28 +#: web2zen/author.php:58 +#: web2zen/index.php:52 +msgid "Filed under" +msgstr "" + +#: web2zen/archive.php:30 +#: web2zen/author.php:60 +#: web2zen/category.php:30 +#: web2zen/index.php:54 +#: web2zen/search.php:29 +msgid "Tags" +msgstr "" + +#: web2zen/archive.php:39 +#: web2zen/author.php:67 +#: web2zen/category.php:38 +#: web2zen/index.php:66 +#: web2zen/search.php:37 +msgid "Older Posts" +msgstr "" + +#: web2zen/archive.php:40 +#: web2zen/author.php:68 +#: web2zen/category.php:39 +#: web2zen/index.php:67 +#: web2zen/search.php:38 +msgid "Newer Posts" +msgstr "" + +#: web2zen/archives.php:13 +msgid "Archives by Month" +msgstr "" + +#: web2zen/archives.php:18 +msgid "Archives by Subject" +msgstr "" + +#: web2zen/attachment.php:8 +#: web2zen/authors.php:16 +#: web2zen/category.php:10 +#: web2zen/page-without-comments.php:18 +#: web2zen/page.php:11 +#: web2zen/search.php:23 +msgid "Permanent Link" +msgstr "" + +#: web2zen/attachment.php:10 +msgid "This file requires " +msgstr "" + +#: web2zen/attachment.php:10 +msgid "or" +msgstr "" + +#: web2zen/attachment.php:20 +#: web2zen/image.php:19 +msgid "Posted under" +msgstr "" + +#: web2zen/author.php:12 +msgid "Profile" +msgstr "" + +#: web2zen/author.php:19 +msgid "Bio" +msgstr "" + +#: web2zen/author.php:24 +#: web2zen/comments.php:54 +msgid "Website" +msgstr "" + +#: web2zen/author.php:30 +msgid "Jabber / Google Talk" +msgstr "" + +#: web2zen/author.php:35 +msgid "AOL Instant Messenger" +msgstr "" + +#: web2zen/author.php:35 +msgid "AIM" +msgstr "" + +#: web2zen/author.php:40 +msgid "Yahoo" +msgstr "" + +#: web2zen/author.php:40 +msgid "Instant Messenger" +msgstr "" + +#: web2zen/author.php:40 +msgid "IM" +msgstr "" + +#: web2zen/author.php:50 +msgid "Posts by" +msgstr "" + +#: web2zen/author.php:54 +msgid "permanent link" +msgstr "" + +#: web2zen/author.php:57 +#: web2zen/search.php:26 +msgid "Date" +msgstr "" + +#: web2zen/category.php:18 +#: web2zen/index.php:24 +msgid "continue reading" +msgstr "" + +#: web2zen/comments.php:6 +msgid "This post is password protected. Enter the password to view comments." +msgstr "" + +#: web2zen/comments.php:12 +msgid "No comments" +msgstr "" + +#: web2zen/comments.php:12 +msgid " Comment" +msgstr "" + +#: web2zen/comments.php:12 +msgid " Comments" +msgstr "" + +#: web2zen/comments.php:17 +msgid "Add your comment" +msgstr "" + +#: web2zen/comments.php:18 +msgid "Comments feed for this post" +msgstr "" + +#: web2zen/comments.php:19 +#: web2zen/comments.php:22 +msgid "TrackBack <abbr title=\"Uniform Resource Identifier\">URI</abbr>" +msgstr "" + +#: web2zen/comments.php:40 +msgid "Leave a comment" +msgstr "" + +#: web2zen/comments.php:40 +#, php-format +msgid "Reply to %s" +msgstr "" + +#: web2zen/comments.php:44 +msgid "You must be" +msgstr "" + +#: web2zen/comments.php:44 +msgid "logged in" +msgstr "" + +#: web2zen/comments.php:44 +msgid "to post a comment" +msgstr "" + +#: web2zen/comments.php:45 +msgid "You are currently logged in as" +msgstr "" + +#: web2zen/comments.php:45 +msgid "Log out" +msgstr "" + +#: web2zen/comments.php:52 +msgid "Name" +msgstr "" + +#: web2zen/comments.php:52 +#: web2zen/comments.php:57 +msgid "required" +msgstr "" + +#: web2zen/comments.php:53 +msgid "Email" +msgstr "" + +#: web2zen/comments.php:53 +msgid "required but will not be published" +msgstr "" + +#: web2zen/comments.php:57 +msgid "Comments" +msgstr "" + +#: web2zen/comments.php:60 +msgid "Submit Comment" +msgstr "" + +#: web2zen/comments.php:68 +msgid "Sorry, the comment form is now closed." +msgstr "" + +#: web2zen/footer.php:9 +msgid "Feed" +msgstr "" + +#: web2zen/footer.php:12 +msgid "Jump to the top of this page" +msgstr "" + +#: web2zen/footer.php:12 +msgid "Top" +msgstr "" + +#: web2zen/footer.php:18 +msgid "Powered by the" +msgstr "" + +#: web2zen/footer.php:18 +msgid "Theme" +msgstr "" + +#: web2zen/header.php:39 +msgid " Search Results for '" +msgstr "" + +#: web2zen/header.php:39 +msgid "' on " +msgstr "" + +#: web2zen/header.php:40 +msgid " - No search query entered!" +msgstr "" + +#: web2zen/header.php:43 +msgid "Entries tagged with " +msgstr "" + +#: web2zen/header.php:45 +msgid " - Page not found!" +msgstr "" + +#: web2zen/header.php:59 +msgid "Jump to Main Content" +msgstr "" + +#: web2zen/header.php:60 +msgid "Jump to Side Navigation" +msgstr "" + +#: web2zen/header.php:61 +msgid "Jump to Footer" +msgstr "" + +#: web2zen/image.php:15 +msgid "(press ESC to close)" +msgstr "" + +#: web2zen/search.php:6 +msgid "Search Results" +msgstr "" + +#: web2zen/search.php:10 +msgid " page" +msgstr "" + +#: web2zen/search.php:11 +msgid " pages" +msgstr "" + +#: web2zen/search.php:16 +msgid "You searched for" +msgstr "" + +#: web2zen/search.php:19 +msgid "Displaying page" +msgstr "" + +#: web2zen/search.php:19 +msgid "of" +msgstr "" + +#: web2zen/search.php:19 +msgid "of results" +msgstr "" + +#: web2zen/search.php:28 +msgid "Categories" +msgstr "" + +#: web2zen/search.php:42 +msgid "Sorry - I couldn't find anything on" +msgstr "" + +#: web2zen/search.php:45 +msgid "You forgot to enter a search term" +msgstr "" + +#: web2zen/searchform.php:3 +msgid "Keyword(s)" +msgstr "" + +#: web2zen/searchform.php:4 +msgid "Search" +msgstr "" + +#: web2zen/sidebar-right.php:18 +msgid "Archives" +msgstr "" + +#: web2zen/tag.php:5 +msgid "You are currently browsing all posts tagged with" +msgstr "" + +#: web2zen/library/breadcrumb.php:5 +msgid "You are viewing" +msgstr "" + +#: web2zen/library/breadcrumb.php:13 +msgid "Authors" +msgstr "" + +#: web2zen/library/breadcrumb.php:16 +msgid "All posts tagged " +msgstr "" + +#: web2zen/library/breadcrumb.php:17 +msgid "Not Found " +msgstr "" + +#: web2zen/library/breadcrumb.php:18 +#: web2zen/library/common.php:36 +msgid "Archives for " +msgstr "" + +#: web2zen/library/common.php:32 +msgid " on " +msgstr "" + +#: web2zen/library/common.php:75 +msgid "archives " +msgstr "" + +#: web2zen/library/common.php:160 +msgid "Pages:" +msgstr "" + +#: web2zen/library/common.php:160 +msgid "Next page" +msgstr "" + +#: web2zen/library/common.php:161 +msgid "Previous page" +msgstr "" + +#: web2zen/library/common.php:238 +msgid "Pages in this section" +msgstr "" + +#: web2zen/library/theme-options.php:41 +msgid "Your theme options have been deleted." +msgstr "" + +#: web2zen/library/theme-options.php:47 +msgid "Your theme has been updated." +msgstr "" + +#: web2zen/library/theme-options.php:55 +#: web2zen/library/theme-options.php:65 +msgid "Theme Options" +msgstr "" + +#: web2zen/library/theme-options.php:93 +msgid "Breadcrumb trail" +msgstr "" + +#: web2zen/library/theme-options.php:96 +msgid "Enabled" +msgstr "" + +#: web2zen/library/theme-options.php:99 +msgid "Disabled" +msgstr "" + +#: web2zen/library/theme-options.php:103 +msgid "Display vertical menu" +msgstr "" + +#: web2zen/library/theme-options.php:106 +#: web2zen/library/theme-options.php:116 +#: web2zen/library/theme-options.php:126 +#: web2zen/library/theme-options.php:135 +msgid "Yes" +msgstr "" + +#: web2zen/library/theme-options.php:109 +#: web2zen/library/theme-options.php:119 +#: web2zen/library/theme-options.php:129 +msgid "No" +msgstr "" + +#: web2zen/library/theme-options.php:113 +msgid "Display author link" +msgstr "" + +#: web2zen/library/theme-options.php:123 +msgid "Display post timestamp" +msgstr "" + +#: web2zen/library/theme-options.php:133 +msgid "Reset Theme Options" +msgstr "" + +#: web2zen/library/theme-options.php:135 +msgid "Ticking this box will remove all saved theme options from your database" +msgstr "" + +#: web2zen/library/theme-options.php:142 +msgid "Update Theme" +msgstr "" + diff --git a/wp-content/themes/web2zen/layout.css b/wp-content/themes/web2zen/layout.css new file mode 100644 index 0000000000000000000000000000000000000000..e6c48d6be796683fcdec28f97000b6fd6b5e0524 --- /dev/null +++ b/wp-content/themes/web2zen/layout.css @@ -0,0 +1,341 @@ +/*Web2Zen +Author: Mel Pedley (Black Widow Web Design) +http://www.blackwidows.co.uk + +*/ +blockquote { + margin-left:0; + padding-left:45px; +} +.jumplinks a:active,.jumplinks a:focus { + position:absolute; + top:9000px; + left:9020px; + z-index:99; + width:15em; + margin:0; + padding:3px; + text-align:center; + font-weight:bold; +} +#wrapper { + width:96%; + max-width:1300px; + margin-bottom:5px; +} + +/* HEADER */ +#header { + padding:0; + margin:0; + height:150px; +} +#blogtitle h1 { + margin:0; + padding:0 15px; + font-size:2em; + letter-spacing:.02em; + line-height:1.2em; +} +#blogtitle h1 small { + display:block; + margin:0; + padding:0; + font-size:.65em; + font-weight:normal; + font-style:normal; +} +#blogtitle a { + text-decoration:none; +} +#blogtitle a:hover { + text-decoration:underline; +} + +/* TABS */ +.tabs { + min-height:33px; + margin:0; + padding:0; + font-weight:bold; + font-size:.85em; +} +.tabs h2 { + display:none; +} +.tabs ul { + margin:0; + padding:0; +} +.tabs li { + margin:0; + padding:0; + float:left; + list-style:none; + font-variant:small-caps; + line-height:1em; +} +.tabs ul ul { + position:absolute; + top:184px; + z-index:500; + width:100px; + display:none; +} +.tabs li:hover ul { + display:block; +} +.tabs ul ul li { + float:none; +} +.tabs ul ul ul { + position:absolute; + top:33px; +} +.tabs a { + display:block; + padding:10px 5px; + margin:0; + text-decoration:none; +} +.tabs li li a { + width:100px; +} +.tabs a:hover,.tabs a:active,.tabs a:focus { + text-decoration:underline; +} +.tabs a:active,.tabs a:focus { + text-decoration:underline; +} + +/* CONTENT */ +#content { + clear:left; + float:left; + margin-top:20px; + padding:0 4%; + font-size:.83em; +} +.narrow { + width:70%; +} +.wide { + width:92%; +} +.breadcrumb { + margin:0 0 20px 0; + padding:0; + font-size:.9em; +} +.breadcrumb ul,.breadcrumb li { + display:inline; + margin:0; + padding:0; +} +#content .hentry { + margin-bottom:20px; + clear:left; +} +.postcontent { + padding:0 10px; +} +.post-title { + padding:5px 5px 7px; + clear:left; +} +#content .featured { + width:48%; + height:200px; + clear:none; + float:left; + overflow:hidden; +} +#content .fleft { + margin-right:3%; +} +#content .featured .postcontent { + min-height:12.5em; + padding:0 5px; +} +.featured .post-title { + clear:none; +} +.featured .post-title a { + display:block; + padding:0; +} +.featured p { + margin:5px 0; + padding:0; +} +.featured .wp-post-image { + float:left; + margin:5px 10px 0 0; +} +.meta { + padding-left:10px; + font-size:.85em; + line-height:1.3em; +} +.more-link { + display:block; +} +.pagelist { + margin-left:10px; +} +.postfoot { + clear:left; + padding-top:5px; + padding-bottom:5px; + line-height:1.2em; +} +.subpages { + float:right; + width:25%; + margin:0 0 30px 2%; + padding:0; +} +.subpages h3 { + margin:0; + padding:5px; + font-size:1.1em; + font-weight:bold; +} +.subpages ul { + margin:0; + padding:0 5px 5px; +} +.subpages ul ul,.subpages li { + padding:0; + margin:0; +} + +.gallery-item { + margin:0 10px 10px; + padding:5px 5px 0; +} + +/* SIDEBAR */ +.sidebar { + float:right; + width:20%; + margin-top:20px; + padding:0 2px 20px; + font-size:.8em; +} +.sidebar h2 { + margin:20px 0 0 5px; + padding:0; + font-size:1.1em; + font-weight:bold; +} +.sidebar #s { + width:9em; +} +.sidebar ul ul li { + margin-bottom:2px; +} + +/* COMMENTS */ +.total-comments,#respond{ + clear:both; +} +.total-comments { + font-size:1.3em; + margin-bottom:0; + padding:5px 5px 7px; +} +.comment-links { + clear:left; + margin-top:0; + padding:5px; +} +.comment-links li { + margin-bottom:0; +} +#commentlist .comment-author,#commentlist .commentmetadata { + width:195px; + clear:left; + float:left; + margin:0; +} +#commentlist .comment-author { + padding:17px 5px 0; +} +#commentlist .commentmetadata { + padding:0 5px 30px; + font-size:.8em; +} +#commentlist img { + margin:0 5px 0 0; +} +#commentlist .commentmetadata { + text-align:left; +} +#commentlist .bypostauthor > .comment-body > .comment-author cite { + padding-right:20px; +} +#commentlist .comment-author .says { + display:none; +} +#commentlist .commentmetadata a.comment-edit-link { + display:block; + margin:0; +} +#commentlist .comment p { + margin:0 0 0 210px; + padding:5px 10px 5px; + clear:none; +} +#commentlist .reply { + clear:left; + margin:0 0 0 210px; +} +#commentlist .children li { + margin-left:20px; +} + +.wp-tag-cloud { + padding:10px; +} + +.author h4 { + margin:0 0 0 10px; + padding-top:5px; +} +.author .meta { + margin-top:0; + padding-bottom:10px; + margin-bottom:5px; +} + +/* FOOTER */ +#footer { + padding-bottom:5px; + text-align:center; + font-size:.8em; +} +#footer .top { + float:left; +} +#footer .rss a { + float:right; + width:32px; + height:32px; +} +#footer .rss span { + position:absolute; + top:-9000px; + left:-9000px; +} +#footer ul { + clear:both; + margin:0; + padding:0; +} +#footer li { + display:inline; + margin:0; + padding:0 5px; +} + diff --git a/wp-content/themes/web2zen/library/accordian-menu.js b/wp-content/themes/web2zen/library/accordian-menu.js new file mode 100644 index 0000000000000000000000000000000000000000..eaea772def76d76e67af8d01fa45f406f649ed1d --- /dev/null +++ b/wp-content/themes/web2zen/library/accordian-menu.js @@ -0,0 +1,14 @@ +jQuery(document).ready(function($) { + // $() will work as an alias for jQuery() inside of this function + function initMenu() { + $('.accordian .children').hide(); + $('.accordian .page_item ul').hide(); + + $('.accordian .current-cat .children').show(); + $('.accordian .current-cat-parent .children').show(); + $('.accordian .current-cat-ancestor .children').show(); + $('.accordian .current_page_item ul').show(); + $('.accordian .current_page_ancestor ul').show(); + } + $(document).ready(function() {initMenu();}); +}); \ No newline at end of file diff --git a/wp-content/themes/web2zen/library/accordian.php b/wp-content/themes/web2zen/library/accordian.php new file mode 100644 index 0000000000000000000000000000000000000000..d88dcd6fc4150ddb3c2bedf879b753e7fbb12df3 --- /dev/null +++ b/wp-content/themes/web2zen/library/accordian.php @@ -0,0 +1,12 @@ +<?php + +function init_accordian() { + wp_enqueue_script('accordian', + get_bloginfo('template_directory') . '/library/accordian-menu.js', + array('jquery'), + '3.0.2' + ); +} +if( !is_admin() ) add_action('init', 'init_accordian'); + +?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/library/admin-custom-header.css b/wp-content/themes/web2zen/library/admin-custom-header.css new file mode 100644 index 0000000000000000000000000000000000000000..dbc383bbbc3d9947b8668c0611c7b07bf59639a9 --- /dev/null +++ b/wp-content/themes/web2zen/library/admin-custom-header.css @@ -0,0 +1,46 @@ +/* Purple Pastels +Author: Mel Pedley (Black Widow Web Design) +http://www.blackwidows.co.uk +*/ + +.wrap form { + width:90%; + margin:10px auto; + text-align:center; +} + +#headimg { + height:139px; + padding:0; + margin:0; + background-color:#CFCEF8; + background-repeat:no-repeat; + background-position: right top; +} +#headimg h1,#headimg #desc { + font-family:georgia,times,'times new roman',serif; + letter-spacing:.02em; +} +#headimg h1 { + margin:0; + padding:5px 0 0 15px; + font-size:2em; + font-weight:normal; + line-height:1.2em; + font-style:italic; + color:#64468B; +} +#headimg a { + text-decoration:none; +} +#headimg a:hover,#headimg a:active,#headimg a:focus { + text-decoration:underline; +} +#headimg #desc { + margin:0 0 20px; + padding:8px; + font-size:1.4em; + text-indent:1.2em; + color:#585359 !important; +} + diff --git a/wp-content/themes/web2zen/library/breadcrumb.php b/wp-content/themes/web2zen/library/breadcrumb.php new file mode 100644 index 0000000000000000000000000000000000000000..e459641bc3a815e445b9bb37b26b15dcd5e4f976 --- /dev/null +++ b/wp-content/themes/web2zen/library/breadcrumb.php @@ -0,0 +1,68 @@ +<?php +// Web2Zenbreadcrumb trail + +function theme_breadcrumb($value) { + $output = '<div class="breadcrumb">' . __('You are viewing', 'web2zen') . ': <ul>'."\n"; + if( is_page() ) $output .= theme_page_crumb($value); + elseif( is_attachment() ) $output .= theme_attachment_crumb($value); + elseif( is_single() ) $output .= theme_single_crumb($value); + elseif( is_category() ) $output .= theme_cat_crumb($value); + else { + $output .= '<li><a href="' . get_bloginfo('url') .'/">' . get_bloginfo('name') . '</a></li>'."\n"; + if( is_author() ) { + $output .= '<li> » <a href="' . get_bloginfo('url') . '/authors/">'.__('Authors','web2zen') .'</a></li>'; + $output .= '<li> » ' . $value . '</li>'; + } + elseif( is_tag() ) $output .= '<li> » ' . __('All posts tagged ','web2zen') . ' <span class="tag-title">' . single_tag_title('', false) . '</span></li>'; + elseif( is_404() ) $output .= '<li> » ' . __('Not Found ','web2zen'). '</li>'; + else $output .= '<li> » '.__('Archives for ','web2zen') .$value.'</li>'; + } + $output .= "\n</ul></div>\n"; + return $output; +} +function theme_cat_crumb($c) { + $clist = '<li><a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') . '</a></li>'."\n"; + $catlist = explode('|',$c); + $empty = array_pop($catlist); + if(!is_single()) { + $this_cat = array_pop($catlist); + array_push($catlist,strip_tags($this_cat)); + } + foreach($catlist as $item) { + $clist .= '<li> » '.$item."</li>\n"; + } + return $clist; +} +function theme_single_crumb($id) { // single post breadcrumb + $category = get_the_category($id); + $this_cat_id = get_category_parents($category[0]->cat_ID, TRUE, '|'); + $slist = theme_cat_crumb($this_cat_id); + $slist .= '<li> » '.the_title('','',false).'</li>'; + return $slist; +} +function theme_page_crumb($id) { // page breadcrumb + $plist = '<li><a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') . '</a></li>'."\n"; + $breadcrumb = array(); + $this_page = get_post($id); + $parent_id = $this_page->post_parent; + while ($parent_id) { + $ancestor = get_page($parent_id); + $breadcrumb[] = '<li> » <a href="'.get_permalink($ancestor->ID).'" title="">'.get_the_title($ancestor->ID).'</a>'; + $parent_id = $ancestor->post_parent; + } + $breadcrumb = array_reverse($breadcrumb); + foreach ($breadcrumb as $crumb) $plist .= $crumb."</li>\n"; + $plist .= '<li> » '.$this_page->post_title.'</li>'; + return $plist; +} +function theme_attachment_crumb($id) { // attachment breadcrumb + $category = get_the_category($id); + $this_cat_id = get_category_parents($category[0]->cat_ID, TRUE, '|'); + $ilist = theme_cat_crumb($this_cat_id); + $parent = get_post_ancestors($id); + $ilist .= '<li> » <a href="' . get_permalink($parent[0]) . '" rev="attachment">' . get_the_title($parent[0]) . '</a></li>'; + $ilist .= '<li> » '.the_title('','',false).'</li>'; + return $ilist; +} + +?> diff --git a/wp-content/themes/web2zen/library/common.php b/wp-content/themes/web2zen/library/common.php new file mode 100644 index 0000000000000000000000000000000000000000..5e2bb49fa71466b71b38e3502dd410d8c339424c --- /dev/null +++ b/wp-content/themes/web2zen/library/common.php @@ -0,0 +1,318 @@ +<?php + +// add post_thumbnail support +if ( function_exists( 'add_theme_support' ) ) { + add_theme_support( 'post-thumbnails' ); +} +define('THUMB_WIDTH', get_option('thumbnail_size_w')); +define('THUMB_HEIGHT', get_option('thumbnail_size_h')); + +// Set post thumb dimensions to the values entered in Settings/Media +if ( function_exists( 'set_post_thumbnail_size' ) ) { + set_post_thumbnail_size( THUMB_WIDTH, THUMB_HEIGHT ); // box (proportional) resize mode +} + +// Set up a proper …for post extracts +function proper_hellip($more) { + return '…'; +} +add_filter('excerpt_more', 'proper_hellip'); + +// Create meta description +function theme_meta_description() { + $my_output = ''; + global $post; + switch(true) { + case (is_category()): + $my_output .= get_bloginfo('name'); + if(trim(strip_tags(category_description())) !='') echo ': '.trim(strip_tags(category_description())); + break; + + case (is_tag()): + $my_output .= _e('Entries tagged with ','nh') . single_tag_title('',false)._e(' on ','nh') .get_bloginfo('name'); + break; + + case (is_archive()): + $my_output .= _e('Archives for ','nh') ; + if(is_year()) $my_output .= get_the_time('Y').' '; + if(is_month()) $my_output .= get_the_time('F Y').' '; + if(is_day()) $my_output .= get_the_time('l F Y').' '; + $my_output .= 'on '.get_bloginfo('name'); + break; + + case (is_single() || is_page()): + if(get_post_meta($post->ID, 'description', true) !='') $my_output .= get_post_meta($post->ID, 'description', true); + else { + while(have_posts()):the_post(); + $my_excerpt .= str_replace(array("\r\n", "\r", "\n"), '', get_the_excerpt()); + $my_output .= apply_filters('the_excerpt', $my_excerpt); + $my_output = strip_tags($my_output); + endwhile; + } + break; + + default: + $my_output .= esc_html( get_bloginfo('name').': '.get_bloginfo('description') ); + + } + return $my_output; +} + +// Create meta-keywords +function theme_meta_keywords() { + $my_output = ''; + global $post; + switch(true) { + case (is_category()): + $my_output .= strtolower(single_cat_title()); + break; + + case (is_tag()): + $my_output .= strtolower(single_tag_title()); + break; + + case (is_archive()): + $my_output .= __('archives ', 'nh') ; + if(is_year()) $my_output .= get_the_time('Y'); + if(is_month()) $my_output .= strtolower(get_the_time('F Y')); + if(is_day()) $my_output .= strtolower(get_the_time('l F Y')); + break; + + case (is_page()): + $my_output .= strtolower(trim(wp_title('',false,''))); + if(get_post_meta($post->ID, 'keywords', true) !='') $my_output .= ' '.get_post_meta($post->ID, 'keywords', true); + break; + + case (is_single()): + $my_output .= strtolower(trim(wp_title('',false,''))); + if(get_post_meta($post->ID, 'keywords', true) !='') $my_output .= ' '.get_post_meta($post->ID, 'keywords', true); + foreach((get_the_category()) as $category) { + $my_output .= ' ' . $category->cat_name; + } + + break; + + default: + $my_output .= esc_html( strtolower( get_bloginfo('name').' '.get_bloginfo('description') ) ); + } + return $my_output; +} + +// Create decent attachment links +function theme_attachment_link($id) { + // grab file extension + $bits = explode('.',get_attached_file($id)); + $ext = '.'.$bits[count($bits)-1].' format'; + // get the icon link + $icon_link = wp_get_attachment_link($id,'thumbnail',false,true); + // get the text link + $text_link = wp_get_attachment_link($id,'',false,false); + // get the filesize in kilobytes + if(@filesize(get_attached_file($id))) { + $filesize = ceil(filesize(get_attached_file($id))/1024).'K'; + return $icon_link. ' '.$text_link.' <small>('.$ext.' '.$filesize.')</small>'; + } + else return $icon_link. ' '.$text_link.' <small>('.$ext.')</small>'; +} + +// Create decent attachment download links +function theme_attachment_download_link($msg, $my_mime_type, $or) { + // create download link based on attachment mime type + $download=''; + $viewer_links = 'http://office.microsoft.com/en-gb/downloads/ha010449811033.aspx'; + switch (true) { + case (stristr($my_mime_type,'pdf')): + $download = '<a href="http://www.adobe.com/uk/products/reader/">Adobe Acrobat Reader</a>'; + break; + + case (stristr($my_mime_type,'msword')): + $download = 'Microsoft<sup>®</sup> Word ' . $or . ' <a href="' . $viewer_links . '">Word Viewer</a>'; + break; + + case (stristr($my_mime_type,'excel')): + $download = 'Microsoft<sup>®</sup> Excel ' . $or . ' <a href="' . $viewer_links . '">Excel Viewer 2003</a>'; + break; + + case (stristr($my_mime_type,'powerpoint')): + $download = 'Microsoft<sup>®</sup> Powerpoint ' . $or . ' <a href="' . $viewer_links . '">Powerpoint Reader</a>'; + break; + + case (stristr($my_mime_type,'quicktime')): + $download = '<a href="http://www.apple.com/quicktime/download/">Quicktime</a>'; + break; + } + if($download !='') return $msg . $download; +} + +/* +theme_link_pages() function taken from ePage Links plugin by Rich Pedley (http://quirm.net/) +Alternative for wp_link_pages to be able to specifiy wrappers for each link. Simply use <code>theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<ul>', 'after' => '</ul>', 'next_or_number' => 'number'));</code> in place of wp_link_pages in your themes. +eg. theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<ul>', 'after' => '</ul>', 'next_or_number' => 'number')); +*/ +function theme_link_pages($args = '') { + global $post; + + if (is_array($args) ) + $r = &$args; + else + parse_str($args, $r); + + $defaults = array('before' => '<p>' . __('Pages:','nh'), 'after' => '</p>', 'next_or_number' => 'number', 'nextpagelink' => __('Next page','nh'), + 'previouspagelink' => __('Previous page','nh'), 'pagelink' => '%', 'more_file' => '', 'echo' => 1, 'blink'=>'','alink'=>''); + $r = array_merge($defaults, $r); + extract($r, EXTR_SKIP); + + global $id, $page, $numpages, $multipage, $more, $pagenow; + if ($more_file != '' ) + $file = $more_file; + else + $file = $pagenow; + + $output = ''; + if ($multipage ) { + if ('number' == $next_or_number ) { + $output .= $before; + for ($i = 1; $i < ($numpages+1); $i = $i + 1 ) { + $j = str_replace('%',"$i",$pagelink); + $output .= ' '; + if (($i != $page) || ((!$more) && ($page==1)) ) { + if (1 == $i ) { + $output .= $blink.'<a href="' . get_permalink() . '">'.$j.'</a>'.$alink; + } else { + if ('' == get_option('permalink_structure') || 'draft' == $post->post_status ) + $output .= $blink.'<a href="' . get_permalink() . '&page=' . $i . '">'.$j.'</a>'.$alink; + else + $output .= $blink.'<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">'.$j.'</a>'.$alink; + } + }else{ + $output .= $blink.'<span>'.$j.'</span>'.$alink; + } + } + $output .= $after; + } else { + if ($more ) { + $output .= $before; + $i = $page - 1; + if ($i && $more ) { + if (1 == $i ) { + $output .= $blink.'<a href="' . get_permalink() . '">' . $previouspagelink . '</a>'.$alink; + } else { + if ('' == get_option('permalink_structure') || 'draft' == $post->post_status ) + $output .= $blink.'<a href="' . get_permalink() . '&page=' . $i . '">' . $previouspagelink . '</a>'.$alink; + else + $output .= $blink.'<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $previouspagelink . '</a>'.$alink; + } + } + $i = $page + 1; + if ($i <= $numpages && $more ) { + if (1 == $i ) { + $output .= $blink.'<a href="' . get_permalink() . '">' . $nextpagelink . '</a>'.$alink; + } else { + if ('' == get_option('permalink_structure') || 'draft' == $post->post_status ) + $output .= $blink.'<a href="' . get_permalink() . '&page=' . $i . '">' . $nextpagelink . '</a>'.$alink; + else + $output .= $blink.'<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $nextpagelink . '</a>'.$alink; + } + } + $output .= $after; + } + } + } + + if ($echo ) + echo $output; + + return $output; +} + +// remove gallery css +add_filter('gallery_style', create_function('$a', 'return " +<div class=\'gallery\'>";')); + +// Return page tree +function theme_page_tree($this_page) { + if( !$this_page->post_parent ) $pagelist = wp_list_pages('title_li=&child_of='.$this_page->ID.'&echo=0'); + elseif( $this_page->ancestors ) { + // get the top ID of this page. Page ids DESC so top level ID is the last one + $ancestor = end($this_page->ancestors); + $pagelist = wp_list_pages('title_li=&include='.$ancestor.'&echo=0'); + $pagelist = str_replace('</li>', '', $pagelist); + $pagelist .= '<ul>' . wp_list_pages('title_li=&child_of='.$ancestor.'&echo=0') .'</ul></li>'; + } + return $pagelist; +} + +// Get archive date +function theme_get_archive_date() { + if (is_day()) $this_archive = get_the_time('j F Y'); + elseif (is_month()) $this_archive = get_the_time('F Y'); + else $this_archive = get_the_time('Y'); + return $this_archive; +} + +// Strip slashes +// only use after magic quote check +// if (get_magic_quotes_gpc()) {} +function theme_stripslashes_array($array) { + if (get_magic_quotes_gpc()) { + foreach($array as $key=>$value) { + $array[$key] = stripslashes($value); + } + } + return $array; +} + +// Sanitise an input array +function theme_sanitise_array($array) { + return is_array($array) ? array_map('theme_sanitise_array', $array) : esc_html($array,ENT_QUOTES); +} + +// get category & it's children as an array of ids +function theme_get_cat_tree($parent) { + $term_objs = get_term_children( $parent, 'category' ); + $term_objs[] =$parent; + return $term_objs; +} + +/* Echoes the wp_list_categories output with extra class applied to the topmost parent category. +* Relies on theme_top_cats() +* @param string $curr_cat: Current Category ID +* @param string $catlist: Ouput from wp_list_categories +* @param string Optional $extra_class: Additonal class to be added to the li element. Defaults to 'current-cat-ancestor'. +* +**/ +function theme_enhanced_cat_list($curr_cat_id,$catlist, $extra_class='current-cat-ancestor') { + $top_cats = theme_top_cats(); + foreach( $top_cats as $top_cat) { + if( cat_is_ancestor_of($top_cat, $curr_cat_id) ) { + $cat_ancestor_class = 'cat-item-'. $top_cat; + $amended_class = $cat_ancestor_class . ' ' . $extra_class; + break; + } + } + if( stristr( $catlist, $cat_ancestor_class) ) $new_catlist = str_replace($cat_ancestor_class, $amended_class, $catlist ); + else $new_catlist = $catlist; + echo $new_catlist; +} + +// Get ids for all top level (parent) categories +function theme_top_cats() { + $toplevel = array(); + $allcats = get_terms('category', 'orderby=name&hide_empty=0'); + foreach( $allcats as $cat ) { + if( $cat->parent == 0) $toplevel[] = $cat->term_id; + } + return $toplevel; +} + +// Display a - b of x posts +function theme_postlist_info($my_tot_pages, $paged, $found_posts) { + if( $paged == '') $my_curr_page = 1; + else $my_curr_page = $paged; + $my_finish = $my_curr_page * get_option('posts_per_page'); + if( $found_posts < $my_finish ) $my_finish = $found_posts; + $my_start = 1 + $my_finish - get_option('posts_per_page'); + return array($my_start, $my_finish); +} + +?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/library/custom-header.php b/wp-content/themes/web2zen/library/custom-header.php new file mode 100644 index 0000000000000000000000000000000000000000..ad2b0a3a79274d87292a5fa94a68c35bfaf1176c --- /dev/null +++ b/wp-content/themes/web2zen/library/custom-header.php @@ -0,0 +1,32 @@ +<?php + +/* Header customisation */ +define('HEADER_IMAGE_WIDTH', 1000); +define('HEADER_IMAGE_HEIGHT', 159); + +define('DEFAULT_TEXTCOLOR', 'fff'); +define('HEADER_TEXTCOLOR', DEFAULT_TEXTCOLOR); + +define('DEFAULT_IMAGE', get_bloginfo('stylesheet_directory') . '/images/header.jpg'); +define('HEADER_IMAGE', DEFAULT_IMAGE); + +function theme_admin_header_style() { + ?> +<style type="text/css"> +@import url(<?php bloginfo('stylesheet_directory'); ?>/library/admin-custom-header.css); +</style> + <?php +} + +function theme_header_style() { +if( get_header_image() != DEFAULT_IMAGE || get_header_textcolor() != DEFAULT_TEXTCOLOR ) : +echo '<style type="text/css" media="screen">'."\n"; +if( get_header_image() != DEFAULT_IMAGE ) echo '#header {background-image:url(' . get_header_image() . ');}'; +if( get_header_textcolor() != DEFAULT_TEXTCOLOR ) echo '#blogtitle,#blogtitle h1,#blogtitle h1 a,#blogtitle h1 small {color:#' . get_header_textcolor(). ';} +'; +echo "\n</style>\n\n"; +endif; +} +if( function_exists('add_custom_image_header') ) add_custom_image_header('theme_header_style', 'theme_admin_header_style'); + +?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/library/custom-options.css b/wp-content/themes/web2zen/library/custom-options.css new file mode 100644 index 0000000000000000000000000000000000000000..a538d25b95990e64282082e0d8f51fdeb4865b10 --- /dev/null +++ b/wp-content/themes/web2zen/library/custom-options.css @@ -0,0 +1,17 @@ +#theme-options legend { + font-weight:bold; +} +#theme-options fieldset { + margin-top:20px; +} +#theme-options input.pt,#theme-options input.excerpt { + width:3em; +} +#theme-options label.pt{ + display:block; + width:9.5em; + clear:left; + float:left; + padding:2px 0; + text-align:right; +} \ No newline at end of file diff --git a/wp-content/themes/web2zen/library/dark-thickbox.css b/wp-content/themes/web2zen/library/dark-thickbox.css new file mode 100644 index 0000000000000000000000000000000000000000..4e7fb13773ce5405995d51270687757ab5eef66d --- /dev/null +++ b/wp-content/themes/web2zen/library/dark-thickbox.css @@ -0,0 +1,16 @@ +/* Thickbox */ +#TB_window { + background:#111 !important; + border-color:#000 !important; + color:#ddd !important; +} +a#TB_closeWindowButton img { + border:1px solid #000; +} +a#TB_closeWindowButton:hover img,a#TB_closeWindowButton:active img, +a#TB_closeWindowButton:hover img:focus { + border-color:#fff; +} +#TB_window img#TB_Image { + border-color:#000 #222 !important; +} diff --git a/wp-content/themes/web2zen/library/focus.js b/wp-content/themes/web2zen/library/focus.js new file mode 100644 index 0000000000000000000000000000000000000000..e562b9c6f915efbdf5297c6606370019379e5a29 --- /dev/null +++ b/wp-content/themes/web2zen/library/focus.js @@ -0,0 +1,53 @@ +function addEvent(obj, evType, fn){ + if (obj.addEventListener){ + obj.addEventListener(evType, fn, true); + return true; + } else if (obj.attachEvent){ + var r = obj.attachEvent("on"+evType, fn); + return r; + } else { + return false; + } +} + +addEvent(window, 'load', initFocus); + +function initFocus() { + // Form field hover/focus script for Secure and Accessible PHP Contact Form v.2.0WP by Mike Cherim + // What elements do you want to assign which events to? + var objEvt = { + input : ["hover", "focus"], + select : ["hover", "focus"], + textarea: ["hover", "focus"] + }; + + // spare use variables + var temp, tempLen = 0; + + // hover/focus functions + function hoverFunc (){this.className += ' hover';} + function unHoverFunc(){this.className = this.className.replace(' hover', '');} + function focusFunc (){this.className += ' focus'; + // start URL replacement + if(navigator.appName.indexOf('Explorer')!=-1){ + if(this.value==this.defaultValue&&this.name=='url') this.value='http://'; + } + // end URL replacement + } + function unFocusFunc(){this.className = this.className.replace(' focus', '');} + + for(var i in objEvt){ + temp = document.getElementsByTagName(i), tempLen = temp.length; + for(var j=0; j<tempLen; j++){ + for(var k=0; k<objEvt[i].length; k++){ + if(objEvt[i][k] == 'hover'){ + temp[j].onmouseover = hoverFunc; + temp[j].onmouseout = unHoverFunc; + } else if(objEvt[i][k] == 'focus'){ + temp[j].onfocus = focusFunc; + temp[j].onblur = unFocusFunc; + } + } + } + } +} \ No newline at end of file diff --git a/wp-content/themes/web2zen/library/theme-options.php b/wp-content/themes/web2zen/library/theme-options.php new file mode 100644 index 0000000000000000000000000000000000000000..cc3e64753a75a15f2bcd1ecc83839fdac7325593 --- /dev/null +++ b/wp-content/themes/web2zen/library/theme-options.php @@ -0,0 +1,148 @@ +<?php + +// Custom Theme Options +$radios = array('breadcrumb', 'sidebar', 'author_link', 'post_time'); +$txts = array(); +$ints = array(); + +$theme_options = array(); +if( get_option('theme_options') ) { + $theme_options = get_option('theme_options'); +} +else { + foreach( $radios as $key ) { + $theme_options[$key] = 0; + } + foreach( $txts as $key ) { + $theme_options[$key] = ''; + } + foreach( $ints as $key ) { + $theme_options[$key] = 0; + } +} + +// Custom theme options CSS +function add_custom_css() { + $css_file = THEMELIB . '/custom-options.css'; + $css_url = THEMELIB_URI . '/custom-options.css'; + if ( file_exists($css_file) ) { + wp_register_style('custom-options', $css_url, '', '', 'screen'); + } +} +add_action('admin_init', 'add_custom_css'); + +function enqueue_css() { + wp_enqueue_style('custom-options'); +} + +// Delete theme options +function delete_theme_options($theme_options) { + delete_option($theme_options); + echo '<div id="message" class="updated fade"><p>'.__('Your theme options have been deleted.','web2zen').'</p></div>'."\n"; +} + +// Update theme options +function update_theme_options($theme_options) { + update_option('theme_options', $theme_options); + echo '<div id="message" class="updated fade"><p>'.__('Your theme has been updated.','web2zen').'</p></div>'."\n"; +} + +add_action('admin_menu', 'theme_admin'); +if (!function_exists('theme_admin')) { + // used by the admin panel hook + function theme_admin() { + if (function_exists('add_menu_page')) { + $page = add_theme_page(__('Theme Options','web2zen'), __('Theme Options','web2zen'),7, basename('theme_options.php'),'theme_admin_style'); + add_action('admin_print_styles-'.$page, 'enqueue_css'); + } + } +} + +function theme_admin_style() { + ?> + <div class="wrap"> + <?php + echo '<h2>'.__('Theme Options','web2zen').'</h2>'."\n"; + global $wpdb,$radios,$txts,$ints,$theme_options; + + if( isset( $_POST['theme_options_submit'] ) && check_admin_referer($action ='update_options', $query_arg = 'theme_options_form') ) { + if( $_POST['theme_options_delete'] == 1 ) { + delete_theme_options('theme_options'); + $theme_options = array(); + } + else { + foreach( $radios as $key ) { + $theme_options[$key] = $_POST[$key]; + } + foreach( $txts as $key ) { + $theme_options[$key] = $_POST[$key]; + } + foreach( $ints as $key ) { + $theme_options[$key] = absint( intval($_POST[$key]) ); + } + $theme_options = theme_stripslashes_array($theme_options); + $theme_options = theme_sanitise_array($theme_options); + update_theme_options($theme_options); + } + } + ?> + <form method="post" action="" id="theme-options"><div> + <?php wp_nonce_field( $action = 'update_options', $name = 'theme_options_form', $referer = true , $echo = true) ;?> + + <fieldset> + <legend><?php _e('Breadcrumb trail','web2zen'); ?></legend> + <input type="radio" id="theme_breadcrumb_yes" name="breadcrumb" value="0" + <?php if(!$theme_options['breadcrumb'] || $theme_options['breadcrumb'] != 1) echo ' checked="checked"';?> + /> <label for="theme_breadcrumb_yes"><?php _e('Enabled','web2zen'); ?></label> + <input type="radio" id="theme_breadcrumb_no" name="breadcrumb" value="1" + <?php if ($theme_options['breadcrumb'] == 1) echo ' checked="checked"';?> + /> <label for="theme_breadcrumb_no"><?php _e('Disabled','web2zen'); ?></label> + </fieldset> + + <fieldset> + <legend><?php _e('Display vertical menu','web2zen');?></legend> + <input type="radio" id="theme_sidebar_yes" name="sidebar" value="0" + <?php if ($theme_options['sidebar'] == 0) echo ' checked="checked"';?> + /> <label for="theme_sidebar_yes"><?php _e('Yes','theme_theme'); ?></label> + <input type="radio" id="theme_sidebar_no" name="sidebar" value="1" + <?php if ($theme_options['sidebar'] == 1) echo ' checked="checked"';?> + /> <label for="theme_sidebar_no"><?php _e('No','theme_theme'); ?></label> + </fieldset> + + <fieldset> + <legend><?php _e('Display author link','web2zen');?></legend> + <input type="radio" id="theme_author_link_yes" name="author_link" value="0" + <?php if ($theme_options['author_link'] == 0) echo ' checked="checked"';?> + /> <label for="theme_author_link_yes"><?php _e('Yes','theme_theme'); ?></label> + <input type="radio" id="theme_author_link_no" name="author_link" value="1" + <?php if ($theme_options['author_link'] == 1) echo ' checked="checked"';?> + /> <label for="theme_author_link_no"><?php _e('No','theme_theme'); ?></label> + </fieldset> + + <fieldset> + <legend><?php _e('Display post timestamp','web2zen');?></legend> + <input type="radio" id="theme_post_time_yes" name="post_time" value="0" + <?php if ($theme_options['post_time'] == 0) echo ' checked="checked"';?> + /> <label for="theme_post_time_yes"><?php _e('Yes','theme_theme'); ?></label> + <input type="radio" id="theme_post_time_no" name="post_time" value="1" + <?php if ($theme_options['post_time'] == 1) echo ' checked="checked"';?> + /> <label for="theme_post_time_no"><?php _e('No','theme_theme'); ?></label> + </fieldset> + + <fieldset> + <legend><?php _e('Reset Theme Options', 'web2zen');?></legend> + <input type="checkbox" id="theme_options_delete" name="theme_options_delete" value="1" /> + <label for="theme_options_delete"><?php _e('Yes','web2zen');?> <strong>(<?php _e('Ticking this box will remove all saved theme options from your database','web2zen');?>)</strong></label> + </fieldset> + + <div> + <input type="hidden" name="action" value="update" /> + </div> + + <p class="submit"><input type="submit" name="theme_options_submit" class="button-primary" value="<?php _e('Update Theme','web2zen') ?>" /></p> + </div></form> +</div> + <?php +} + +?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/library/thickbox.php b/wp-content/themes/web2zen/library/thickbox.php new file mode 100644 index 0000000000000000000000000000000000000000..c1417fa10b7b6b3229bb1ce41706e80431b709d8 --- /dev/null +++ b/wp-content/themes/web2zen/library/thickbox.php @@ -0,0 +1,27 @@ +<?php + +// Add thickbox to public-facing image attachment pages only +function thickbox_init() { + if (is_attachment() && substr(get_post_mime_type(), 0,5) == 'image') { + add_thickbox(); + } +} +add_action('template_redirect', 'thickbox_init'); + +// Correct image path issue in thickbox +function load_tb_fix() { + echo "\n" . '<script type="text/javascript">tb_pathToImage = "' . get_option('siteurl') . '/wp-includes/js/thickbox/loadingAnimation.gif";tb_closeImage = "' . get_option('siteurl') . '/wp-includes/js/thickbox/tb-close.png";</script>'. "\n"; +} +add_action('wp_footer', 'load_tb_fix'); + +function add_dark_style() { + $css_file = SSLIB . '/dark-thickbox.css'; + $css_url = SSLIB_URI . '/dark-thickbox.css'; + if ( file_exists($css_file) ) { + wp_register_style('dark-thickbox', $css_url, '', '', 'screen'); + wp_enqueue_style('dark-thickbox'); + } +} +add_action('wp_print_styles', 'add_dark_style'); + +?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/page-without-comments.php b/wp-content/themes/web2zen/page-without-comments.php new file mode 100644 index 0000000000000000000000000000000000000000..f362e456ca11df23f36a4da248142a3c9df47bb7 --- /dev/null +++ b/wp-content/themes/web2zen/page-without-comments.php @@ -0,0 +1,44 @@ +<?php +/* +Template Name: Page without comments +*/ +?> +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1) echo theme_breadcrumb($post->ID);?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div <?php post_class(); ?>> + +<h2 class="post-title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link', 'web2zen');?>: <?php the_title(); ?>"><?php the_title(); ?></a></h2> +<ul class="meta"> +<li><?php edit_post_link(__('Edit','web2zen') ,'<span class="edit">','</span>'); ?></li> +</ul> + +<?php if (function_exists('theme_page_tree') && theme_page_tree($post)) :?> +<div class="subpages"> +<h3><?php _e('Pages in this section', 'web2zen');?></h3> +<ul> +<?php echo theme_page_tree($post);?> +</ul></div> +<?php endif;?> + +<div class="postcontent"> +<?php the_content(); ?> +</div> + +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> + +</div> + +<?php endwhile; ?> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/page.php b/wp-content/themes/web2zen/page.php new file mode 100644 index 0000000000000000000000000000000000000000..eb1d1c21dff29dc959a9adff9cb5168c0ed42f36 --- /dev/null +++ b/wp-content/themes/web2zen/page.php @@ -0,0 +1,40 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1 && !is_front_page()) echo theme_breadcrumb($post->ID);?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div <?php post_class(); ?>> + +<h2 class="post-title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link', 'web2zen');?>: <?php the_title(); ?>"><?php the_title(); ?></a></h2> +<ul class="meta"> +<li><?php edit_post_link(__('Edit','web2zen') ,'<span class="edit">','</span>'); ?></li> +</ul> + +<?php if (function_exists('theme_page_tree') && theme_page_tree($post)) :?> +<div class="subpages"> +<h3><?php _e('Pages in this section', 'web2zen');?></h3> +<ul> +<?php echo theme_page_tree($post);?> +</ul></div> +<?php endif;?> + +<div class="postcontent"> +<?php the_content(); ?> +</div> + +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> +</div> + +<?php comments_template();?> + +<?php endwhile; ?> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/print.css b/wp-content/themes/web2zen/print.css new file mode 100644 index 0000000000000000000000000000000000000000..17015ae7297ee9743a4c030bf99285a81d2892c5 --- /dev/null +++ b/wp-content/themes/web2zen/print.css @@ -0,0 +1,88 @@ +/*Web2Zen +Author: Mel Pedley (Black Widow Web Design) +http://www.blackwidows.co.uk + +*/ +@import url(common.css); +@import url(layout.css); + +/*NOT PRINTED */ +.jumplinks,#top_tabs,.sidebar,.prevnext,.comment_link,.top,#footer .bar,.comment_links,#respond, +#commentform,#commentlist .reply-edit,.comment_log_status,.comments-closed { + display:none; +} + +body { + background:#fff; + color:#000; +} +h1, h2, h3, h4, h5, h6, +blockquote, table, pre, img { + page-break-after:avoid; + page-break-inside:avoid; +} +img,a img { + border:none; +} +a { + color:#000; +} +a,abbr,acronym { + text-decoration:none; +} +dt { + font-weight:bold; + margin-top:10pt; +} +blockquote { + font-style:italic; +} +ul, ol, dl { + page-break-before:avoid; +} +#header,#wrapper,#content,#footer { + float:none; + border:none; +} +#header { + background:#4c4c4c url(images/header.jpg) no-repeat top right; +} +#blogtitle,#blogtitle h1,#blogtitle h1 a { + color:#fff; +} +#blogtitle h1 a:focus,#blogtitle h1 a:active { + background-color:#507086; + color:#eee; +} +#wrapper,#content { + width:100%; + margin:0; + padding:0; +} +#content { + margin-top:20pt; +} +#footer { + text-align:center; +} +.post,.featured,.comment-links { + border:1px solid #4c4c4c; +} +.postfoot { + border-top:3px double #aaa; +} +.author .postfoot,.search-results .postfoot { + border-top:none; + border-bottom:3px double #aaa; +} +.post-title,.total-comments { + background-color:#4c4c4c; +} +.featured .post-title a { + background-image:url(images/continue.gif); + background-repeat:no-repeat; + background-position:right center; +} +.post-title,.post-title a,.total-comments { + color:#fff; +} diff --git a/wp-content/themes/web2zen/readme.txt b/wp-content/themes/web2zen/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..20e63619a70437f7cb487d8fe5fee17c37b9f929 --- /dev/null +++ b/wp-content/themes/web2zen/readme.txt @@ -0,0 +1,82 @@ +Web2Zen Wordpress Theme + +INSTALLATION +Simply upload the Web2Zen theme folder to your wp-content themes directory . +Navigate to Admin/Appearance/Themes. +Select the Web2Zen theme. +Select "Activate". + + +CUSTOMISED META-KEYWORDS +The theme will attempt to automatically generate meta-keyords and meta-descriptions for all posts, pages and archives across your blog using a combination of WordPress titles, tags and descriptions. If you wish to create your own meta-keywords and meta-descriptions, on a post-by-post basis, use the Custom fields area of the Post/Page editing interface to set up 'description' and 'keywords' custom meta-fields. + + +CHANGING THE HEADER TEXT COLOR +Within the Admin area, navigate to Appearance / Custom Header Image. +Use the "Select A Text Color" to choose a new color for your header's text. +To activate your new color, select "Save Changes". +To reset the color back to the default, select "Use Original Color", then select "Save Changes". +All header text color changes will take place immediately. Remember to press CTRL and F5 simultaneously when viewing the updated site. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache. + + +CHANGING THE HEADER IMAGE +Within the Admin area, navigate to Appearance / Custom Header Image. +Use the Browse button to locate your new header image on your computer. +Once you have selected your new image, click "Upload". +If your new image is larger than the dimensions indicated, you will then be given the opportunity to crop the image to the correct dimensions. Use your cursor to move the highlighted area to the section of the image that you would like to use and click once. +The final image will be saved to your wp-content/uploads folder and will be immediately incorporated into your site's header. +If you wish to try another image, simply repeat this process. +If you wish to revert to the original image, navigate back to Appearance / Custom Header Image and select "Restore Original Header". Again, all changes will take place immediately. +All header image changes will take place immediately. Remember to press CTRL and F5 simultaneously when viewing the updated site. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache. + + +ADDITIONAL THEME OPTIONS +Within the Admin area, navigate to Appearance / Theme Options and choose from the following options: + +- Breadcrumb trail + The breadcrumb trail displays a list of links (e.g. You are viewing: Home � Uncategorized � Simple gallery test) at the top of each page or post + +- Display vertical menu + Turn the right-hand navigation menu on or off. + +- Display author link + Displays the author's name on posts, as a link to their own Author page, at the foot of each post (e.g. Author: Joe). + +- Display post timestamps + Display the post publication time (e.g. 11:32 am) as well as the date. + +- Reset Theme Options + This will set all theme options back to their default settings and remove your saved options from the database. + +All theme option changes will take place immediately. Remember to press CTRL and F5 simultaneously when viewing the updated site. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache. + + +FEATURED POSTS +WordPress 2.7 introduced an option to make posts "sticky". +Sticky Posts are those where the "Stick this post to the front page" or "Make this post sticky" check box has been checked. In the Web2Zen theme, "sticky" posts are displayed as Featured Posts in a 2 x 2 layout on your blog's front page. +If a custom Excerpt has been created for a "sticky" post, this text will be used on your blog's front page. +If no custom Excerpt exists, an automatic excerpt will be created based upon the first 55 words of the post's content. + + +FEATURED POST IMAGES +The post thumbnail for each sticky post is automatically displayed. +If no post thumbnail has been set for a given "sticky" post, a default image iwill be used. You can set a post thumbnail for each post in the Edit Post page. + + +CUSTOM EXCERPT +To add an excerpt to a post, simply write one in the Excerpt field, under the post edit box. It can be as short or as long as you wish. In most cases, given the excerpt�s purpose, a couple of sentences is fine. + + +SETTING STICKY POSTS +To flag a post as "sticky", navigate to via Admin/Posts and select the relevant post. +Within the Publish tab, select "Edit" next to "Visibility". +Check the box labeled "Stick this post to the front page". +Select "OK" followed by "Update Post". + + +WORDPRESS VIDEO TUTORIALS +http://wordpress.tv/ + + +SUPPORT +Available via http://www.forum.quirm.net/ \ No newline at end of file diff --git a/wp-content/themes/web2zen/screenshot.png b/wp-content/themes/web2zen/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..9f911237e30a4a5373de69a50050bd6746d496cb Binary files /dev/null and b/wp-content/themes/web2zen/screenshot.png differ diff --git a/wp-content/themes/web2zen/search.php b/wp-content/themes/web2zen/search.php new file mode 100644 index 0000000000000000000000000000000000000000..13e0daa4bb01b89fa708a08059ecc116476406ec --- /dev/null +++ b/wp-content/themes/web2zen/search.php @@ -0,0 +1,49 @@ +<?php get_header();?> + +<div id="content" class="<?php echo content_class();?>"> + +<div <?php post_class('search-results');?>> +<h2 class="post-title"><?php _e('Search Results','web2zen');?></h2> + +<?php +$my_tot_pages = $wp_query->max_num_pages; +if($my_tot_pages ==1) $my_tot_pages.= __(' page', 'web2zen'); +else $my_tot_pages .= __(' pages', 'web2zen'); +$my_curr_page = $paged; +if($my_curr_page =='') $my_curr_page = 1; +$my_searchterm = trim(esc_html($s)); +if($my_searchterm !='') : ?> +<p><?php _e('You searched for', 'web2zen');?> <em><?php echo $my_searchterm;?></em>.</p> + +<?php if (have_posts()) : ?> +<p><?php _e('Displaying page', 'web2zen');?> <?php echo $my_curr_page;?> <?php _e('of', 'web2zen');?> <?php echo $my_tot_pages;?> <?php _e('of results', 'web2zen');?>:</p> + +<?php while (have_posts()) : the_post(); ?> + +<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link', 'web2zen');?>: <?php the_title(); ?>"><?php the_title(); ?></a></h3> + +<ul class="meta postfoot"> +<li><?php _e('Date', 'web2zen');?>: <?php the_time('j F Y');?></li> +<?php if($post->post_type == 'post') :?> +<li><?php _e('Categories', 'web2zen');?>: <ul><li><?php the_category(',</li> <li>') ?></li></ul></li> +<?php if(get_the_tag_list()) :?><li><?php _e('Tags', 'web2zen');?>: <?php the_tags('<ul><li>',',</li> <li>','</li></ul>');?></li><?php endif;?> +<?php endif;?> +</ul> + +<?php endwhile; ?> +</div> + +<ul class="prevnext"> +<li class="next"><?php next_posts_link(__('Older Posts','web2zen') ); ?></li> +<li class="prev"><?php previous_posts_link(__('Newer Posts','web2zen') );?></li> +</ul> + +<?php else : ?> +<p class="sorry"><?php _e("Sorry - I couldn't find anything on",'web2zen');?> '<em><?php echo $my_searchterm; ?></em>'.</p> +</div> +<?php endif;else : ?> +<p><strong class="error"><?php _e('You forgot to enter a search term','web2zen');?>!</strong></p> +</div> +<?php endif; ?> + +<?php get_footer();?> \ No newline at end of file diff --git a/wp-content/themes/web2zen/searchform.php b/wp-content/themes/web2zen/searchform.php new file mode 100644 index 0000000000000000000000000000000000000000..06e35836649a20e76a937e828c190346273db3fa --- /dev/null +++ b/wp-content/themes/web2zen/searchform.php @@ -0,0 +1,6 @@ +<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"> +<div> +<label for="s"><?php _e('Keyword(s)', 'web2zen');?></label> <input class="text" type="text" value=" " name="s" id="s" /> +<input type="submit" class="submit button" name="submit" value="<?php _e('Search', 'web2zen');?>" /> +</div> +</form> \ No newline at end of file diff --git a/wp-content/themes/web2zen/sidebar-right.php b/wp-content/themes/web2zen/sidebar-right.php new file mode 100644 index 0000000000000000000000000000000000000000..9eea58f75305089013cfa413a29bd77d0fa871c0 --- /dev/null +++ b/wp-content/themes/web2zen/sidebar-right.php @@ -0,0 +1,25 @@ +<div class="sidebar accordian" id="right_sidebar"> + +<ul> +<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar')) : ?> +<li><?php get_search_form();?></li> + +<li><h2><?php _e('Categories','web2zen');?></h2> +<ul> +<?php if( function_exists('theme_enhanced_cat_list')) { + $curr_cat_id = get_query_var('cat'); + $catlist = wp_list_categories('title_li=&echo=0'); + theme_enhanced_cat_list($curr_cat_id, $catlist); +} +else wp_list_categories('title_li=');?> +</ul> +</li> + +<li><h2><?php _e('Archives','web2zen');?></h2><ul> +<?php wp_get_archives('type=monthly'); ?> +</ul></li> + +<?php endif; ?> +</ul> + +</div> diff --git a/wp-content/themes/web2zen/sidebar.php b/wp-content/themes/web2zen/sidebar.php new file mode 100644 index 0000000000000000000000000000000000000000..ef1df85d55f0862ac65aa4eb9ba9e6a440d37681 --- /dev/null +++ b/wp-content/themes/web2zen/sidebar.php @@ -0,0 +1,8 @@ +<div id="top_tabs" class="tabs"> + +<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Top Tabs') ) : ?> + +<?php wp_page_menu('show_home=1&menu_class=default-menu');?> + +<?php endif; ?> +</div> diff --git a/wp-content/themes/web2zen/single.php b/wp-content/themes/web2zen/single.php new file mode 100644 index 0000000000000000000000000000000000000000..9697ed1b73958aa39d0f560d9f6fea871ee59132 --- /dev/null +++ b/wp-content/themes/web2zen/single.php @@ -0,0 +1,52 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<?php if (function_exists('theme_breadcrumb') && $theme_options['breadcrumb'] != 1) echo theme_breadcrumb($post->ID);?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div <?php if(is_sticky()) post_class('single sticky');else post_class('single');?>id="post-<?php the_ID();?>"> + +<h2 class="post-title"><?php the_title(); ?></h2> + +<ul class="meta"> +<li><?php the_time('F j, Y'); ?> <?php if($theme_options['post_time'] != 1) :?><?php the_time(); ?><?php endif;?></li> +<li><?php edit_post_link(__('Edit','web2zen') , '', ''); ?></li> +</ul> + +<div class="postcontent"> +<?php the_content(); ?> +</div> + +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> + +<ul class="meta postfoot"> +<?php if($theme_options['author_link'] != 1) :?><li><?php _e('Author','web2zen');?>: <?php the_author_posts_link(); ?></li><?php endif;?> +<li><?php _e('Filed under','web2zen');?>: <ul><li><?php the_category(',</li> <li>') ?></li></ul></li> +<?php if(get_the_tag_list()) :?> +<li><?php _e('Tags','web2zen');?>: <?php the_tags('<ul><li>',',</li> <li>','</li></ul>');?></li> +<?php endif;?> +</ul> + +<!-- +<?php trackback_rdf(); ?> +--> + +</div> + +<ul class="prevnext"> +<li class="next"><?php next_post_link( '%link', '%title', false, ''); ?></li> +<li class="prev"><?php previous_post_link( '%link', '%title' ,false, '');?></li> +</ul> + +<?php comments_template();?> + +<?php endwhile; ?> + +<?php endif; ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/web2zen/style.css b/wp-content/themes/web2zen/style.css new file mode 100644 index 0000000000000000000000000000000000000000..7cd4cf7a5a616dfbe9871b76983956deb632543d --- /dev/null +++ b/wp-content/themes/web2zen/style.css @@ -0,0 +1,17 @@ +/* +Theme Name:Web2Zen +Version: 2..1 +Theme URI: http://quirm.net/web2zen/ +Description: Horizontal & vertical navigation. Multi-level breadcrumb trail. 1-click deactivation of breadcrumb trail, post author links, post timestamp & vertical sidebar. Collapsible vertical sub-menus. Custom header. Customised threaded comments. Translation-ready. +Author: Mel Pedley +Author URI: http://www.blackwidows.co.uk +Tags: two-columns, right-sidebar, horizontal-navigation, vertical-navigation, custom-header, light, theme-options + +Distributed under the terms of the GNU General Public License + +*/ + +@import url(common.css); +@import url(layout.css); +@import url(color.css); + diff --git a/wp-content/themes/web2zen/tag.php b/wp-content/themes/web2zen/tag.php new file mode 100644 index 0000000000000000000000000000000000000000..fcca3e6f588a34f562f941d30745a942a9470f0a --- /dev/null +++ b/wp-content/themes/web2zen/tag.php @@ -0,0 +1,44 @@ +<?php get_header(); ?> + +<div id="content" class="<?php echo content_class();?>"> + +<div class="breadcrumb"><?php _e('You are currently browsing all posts tagged with','web2zen');?> '<?php echo single_tag_title(); ?>'.</div> + +<?php wp_tag_cloud('format=list&unit=em&largest=2&smallest=1&number=0'); ?> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + +<div <?php post_class();?> id="post-<?php the_ID();?>"> +<h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link', 'web2zen');?>: <?php the_title(); ?>"><?php the_title(); ?></a></h2> + +<ul class="meta"> +<li><?php the_time('F j, Y'); ?> <?php the_time(); ?></li> +<li><?php edit_post_link(__('Edit','web2zen') , '', ''); ?></li> +</ul> + +<div class="postcontent"> +<?php the_content(the_title('', '', false).' - '.__('continue reading','web2zen') .'…'); ?> +</div> + +<?php +if(function_exists('theme_link_pages')) theme_link_pages(array('blink'=>'<li>','alink'=>'</li>','before' => '<div class="pagelist">'.__('Pages','web2zen').':<ul>', 'after' => '</ul></div>', 'next_or_number' => 'number')); +else wp_link_pages('before=<div class="pagelist">'.__('Pages','web2zen') .':&after=</div>&link_before=&link_after=&pagelink=%'); +?> + +<ul class="meta postfoot"> +<?php if('open' == $post->comment_status) : ?><li class="comment_link"><?php comments_popup_link(__('Comment on ','web2zen') .$post->post_title, __('1 Comment on ','web2zen') .$post->post_title, __('% Comments on ','web2zen') .$post->post_title,'postcomment',__('Comments are off for ','web2zen') .$post->post_title); ?></li><?php endif;?> +<li><?php _e('Author','web2zen');?>: <?php the_author_posts_link(); ?></li> +<li><?php _e('Filed under','web2zen');?>: <ul><li><?php the_category(',</li> <li>') ?></li></ul></li> +</ul> +</div> + +<?php endwhile; ?> + +<ul class="prevnext"> +<li class="next"><?php next_posts_link(__('Older Posts','web2zen') ); ?></li> +<li class="prev"><?php previous_posts_link(__('Newer Posts','web2zen') );?></li> +</ul> + +<?php endif; ?> + +<?php get_footer(); ?>