diff --git a/wp-content/themes/primepress/404.php b/wp-content/themes/primepress/404.php new file mode 100644 index 0000000000000000000000000000000000000000..e5e001f84f0ff60e9ba25f176c8e286988f6d965 --- /dev/null +++ b/wp-content/themes/primepress/404.php @@ -0,0 +1,22 @@ +<?php get_header(); ?> + <div id="primary"> + <div class="entry"> + <h1 class="page-title">Oops! Page Not Found (Error 404)</h1> + <div class="entry-content"> + <p>Oops... sorry! For one reason or another the <strong>page</strong> you are looking for could not be found and its probably not your fault. It might be:</p> + <ul> + <li>A mis-typed URL</li> + <li>An out-of-date or a faulty referral from another site</li> + <li>Or an old page that has been deleted or moved</li> + </ul> + <p>You could maybe visit the <a href="<?php bloginfo('url'); ?>">Home Page</a> to start fresh or try the search.</p> + <?php get_search_form(); ?> + </div> + </div> + </div><!--#primary--> + +<?php get_sidebar(); ?> + +</div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/archive.php b/wp-content/themes/primepress/archive.php new file mode 100644 index 0000000000000000000000000000000000000000..61373db7c1e797bb89b45cacbd4e96c6ba302be1 --- /dev/null +++ b/wp-content/themes/primepress/archive.php @@ -0,0 +1,53 @@ +<?php get_header(); ?> + + <div id="primary" class="looped"> + + <?php pp_breadcrubs(); ?> + + <?php if(have_posts()) : ?> + <div class="archive-info"> + <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> + <?php /* If this is a category archive */ if (is_category()) { ?> + <h1 class="page-title"><?php single_cat_title(); ?>:</h1> + <?php /* If this is a tag archive */ } elseif(function_exists('is_tag')&& is_tag()) { ?> + <h1 class="page-title"><?php single_tag_title(); ?>:</h1> + <?php /* If this is a daily archive */ } elseif (is_day()) { ?> + <h1 class="page-title"><?php the_time('F jS, Y'); ?>:</h1> + <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> + <h1 class="page-title"><?php the_time('F, Y'); ?>:</h1> + <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> + <h1 class="page-title"><?php the_time('Y'); ?>:</h1> + <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> + <h1 class="page-title">Blog Archives</h1> + <?php } ?> + </div> + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php comments_popup_link('No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_post_thumbnail('thumbnail'); ?> + <?php pp_the_content(); ?> + </div> + </div><!--.entry--> + + <?php endwhile; ?> + + <?php get_template_part('navigation'); ?> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/category.php b/wp-content/themes/primepress/category.php new file mode 100644 index 0000000000000000000000000000000000000000..3c1efd805ef8ce5c1c618fd440814dfa1fb23c4f --- /dev/null +++ b/wp-content/themes/primepress/category.php @@ -0,0 +1,42 @@ +<?php get_header(); ?> + + <div id="primary" class="looped"> + + <?php pp_breadcrubs(); ?> + + <div class="archive-info"> + <h1 class="page-title"><?php single_cat_title(); ?></h1> + <?php echo category_description(); ?> + </div> + + + <?php if (have_posts()) : while (have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php comments_popup_link('No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_post_thumbnail('thumbnail'); ?> + <?php pp_the_content(); ?> + </div> + </div><!--.entry--> + + <?php endwhile; ?> + + <?php get_template_part('navigation'); ?> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/changelog.txt b/wp-content/themes/primepress/changelog.txt new file mode 100644 index 0000000000000000000000000000000000000000..378cbfc7689ebd0d2b9f4db75a9068527543940e --- /dev/null +++ b/wp-content/themes/primepress/changelog.txt @@ -0,0 +1,58 @@ +PrimePress changelog +_____________________ + +1.4 +------------------- +-WordPress 3.0 is required +-new WordPress 3.0 custom menus support +-CSS drop down menus +-custom background support +-post thumbnails support +-excerpt control options +-seperate category and tag template files +-updated the comments template (now uses the new template tags) +-support for plugins (WP-PageNavi, Breadcrumb NavXT, Yoast Breadcrumbs) +-minor changes in the head section (clean-up) +-code overhaul - to stay in line with the revised WordPress.org standards & requirements + + +1.3.2 +------------------- +-fixed the arrow list item image that went missing with WordPress 2.8 +-fixed the email subscription link issue that came with the recent changes at feedburner. + +1.3.1 +------------------- +-WordPress 2.7 features +-comment threading and paging +-added post_class - also adds sticky post class +-altered searchform +-added a 620px wide content option to the layouts + + +1.3 +------------------- +-theme options page +-optional layouts +-multiple sidebars +-added an optional FeedBurner email subscription link +-got rid of the integrated search box from the sidebar +-a few code optimizations + +1.2.2 +------------------- +-static homepage functionality +-Added two Page templates + +1.2.1 +------------------- +-couple of quick bug fixes + +1.2 +------------------- +-changed Rotating header images script for easier customization +-big images don't break out of the content div anymore +-minor tweaks to calendar, list and comment styles +-changed ids of feed box & search box to avoid conflict with the search widget. +-more consistency across browsers +-changed two header images \ No newline at end of file diff --git a/wp-content/themes/primepress/comments.php b/wp-content/themes/primepress/comments.php new file mode 100644 index 0000000000000000000000000000000000000000..45aaa0876c63a0410cdaecd1f631f785b5998208 --- /dev/null +++ b/wp-content/themes/primepress/comments.php @@ -0,0 +1,38 @@ +<?php + 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="nopassword">This post is password protected. Enter the password to view comments.</p>'; + return; + } + if ( is_page() && !have_comments() && !comments_open() && !pings_open() ) + return; +?> + +<div id="comments"> + +<?php + if ( have_comments() ) : ?> + + <h3 class="comments-number"><?php comments_number('No Comments', 'One Comment', '% Comments' );?></h3> + + <ol class="commentlist"> + <?php wp_list_comments(array('style' => 'ol')); ?> + </ol> + +<?php if ( get_option('page_comments') && get_comment_pages_count() > 1 ) { ?> + <div class="navigation comment-nav clearfix"> + <?php paginate_comments_links( array('prev_text' => '← Older Comments', 'next_text' => 'Newer Comments →') ); ?> + </div> +<?php } ?> + <?php else : // this is displayed if there are no comments so far ?> + <?php if ( !comments_open() ) { + echo "<p class='nocomments'>Comments are closed.</p>"; + } + + endif; // have_comments() +?> + +<?php comment_form(); ?> + +</div><!--#comments--> \ No newline at end of file diff --git a/wp-content/themes/primepress/custom.css b/wp-content/themes/primepress/custom.css new file mode 100644 index 0000000000000000000000000000000000000000..e00cb0e61102d16bbf1dd4261b9c98b409d09a62 --- /dev/null +++ b/wp-content/themes/primepress/custom.css @@ -0,0 +1 @@ +/*-----attach body.custom to any style you add here-----*/ \ No newline at end of file diff --git a/wp-content/themes/primepress/footer.php b/wp-content/themes/primepress/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..3e2353a2386324b8c75f9e9897feedbf3385ab97 --- /dev/null +++ b/wp-content/themes/primepress/footer.php @@ -0,0 +1,11 @@ + <div id="footer"> + <p class="left">© <?php echo date('Y');?> <strong><?php bloginfo('name'); ?></strong> | Powered by <strong><a href="http://wordpress.org/">WordPress</a></strong></p> + <p class="right">A <strong><a href="http://www.techtrot.com/primepress/" title="PrimePress theme homepage">WordPress theme</a></strong> by <strong>Ravi Varma</strong></p> + </div><!--#footer--> + +</div><!--#container--> + +</div><!--#page--> +<?php wp_footer(); ?> +</body> +</html> \ No newline at end of file diff --git a/wp-content/themes/primepress/functions.php b/wp-content/themes/primepress/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..30849ea0a457cf58b30bb83f2d487b403ee01690 --- /dev/null +++ b/wp-content/themes/primepress/functions.php @@ -0,0 +1,66 @@ +<?php +require_once(TEMPLATEPATH . '/library/pp-options.php'); +require_once(TEMPLATEPATH . '/library/widgets.php'); + +add_action( 'init', 'primepress_register_menus' ); +function primepress_register_menus() { + register_nav_menus( + array( + 'primary-menu' => 'Primary Menu' + ) + ); +} +// add support for post thumbnails +add_theme_support('post-thumbnails'); +// add the feed links in the head +add_theme_support('automatic-feed-links'); +// enable the custom background option +add_custom_background(); + +//Set the content width. + if ( (!isset($content_width)) && (get_option('pp_layout_setup') == 'content-480px' ) ) { + $content_width = 480; + } elseif ( (!isset($content_width)) && (get_option('pp_layout_setup') == 'content-580px' ) ) { + $content_width = 580; + } elseif ( (!isset($content_width)) && (get_option('pp_layout_setup') == 'content-620px' ) ) { + $content_width = 620; + } else { + $content_width = 540; + } + +// link the post thumbnails to the post +add_filter( 'post_thumbnail_html', 'pp_post_image_html', 10, 3 ); +function pp_post_image_html( $html, $post_id, $post_image_id ) { + $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>'; + return $html; +} + +// exceprt options +function pp_the_content() { + if ( ( get_option('pp_home_excerpts') == 'true' && is_home() ) || ( get_option('pp_category_excerpts') == 'true' && is_category() ) || ( get_option('pp_tag_excerpts') == 'true' && is_tag() ) || ( get_option('pp_date_excerpts') == 'true' && is_date() ) ) { + the_excerpt(); + } else { + the_content(); + } +} + +function pp_excerpt_length( $length ) { + if (get_option('pp_excerpt_length')) { + return get_option('pp_excerpt_length'); + } +} +add_filter( 'excerpt_length', 'pp_excerpt_length' ); + +function pp_breadcrubs() { + if ( function_exists('bcn_display') ) { + echo '<div class="breadcrumb-nav">'; + bcn_display(); + echo '</div>'; + } elseif ( function_exists('yoast_breadcrumb') ) { + echo '<div class="breadcrumb-nav">'; + yoast_breadcrumb('<p>','</p>'); + echo '</div>'; + } + +} +?> \ No newline at end of file diff --git a/wp-content/themes/primepress/header-images.php b/wp-content/themes/primepress/header-images.php new file mode 100644 index 0000000000000000000000000000000000000000..f39374b51afc4f10d2edfdab7f03e4de0cb490d5 --- /dev/null +++ b/wp-content/themes/primepress/header-images.php @@ -0,0 +1,2 @@ +<img src="<?php bloginfo('template_url'); ?>/rotating.php?image=<?php echo mt_rand(0,100); ?>" +width="920" alt="<?php bloginfo('name'); ?> Rotating Header Image" title="<?php bloginfo('name'); ?> Random Header Image" /> \ No newline at end of file diff --git a/wp-content/themes/primepress/header.php b/wp-content/themes/primepress/header.php new file mode 100644 index 0000000000000000000000000000000000000000..fc08f701511f19e8964f4e39c9a6c6bc0f79105c --- /dev/null +++ b/wp-content/themes/primepress/header.php @@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> +<head profile="http://gmpg.org/xfn/11"> + + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> + <title><?php wp_title(' '); ?> <?php if(wp_title(' ', false)) { echo '–'; } ?> <?php bloginfo('name'); ?></title> + + <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> + <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/custom.css" type="text/css" media="screen" /> + <!--[if lte IE 6]> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/library/ie6.css" /><![endif]--> + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> + + <?php if ( is_singular() && get_option('thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?> + + <?php wp_head(); ?> +</head> +<body <?php body_class('custom'); ?>> +<?php +global $options; +foreach ($options as $value) { + if ( get_option($value['id']) === FALSE && isset($value['std']) ) { $$value['id'] = $value['std']; } + else { $$value['id'] = get_option($value['id']); } +} ?> +<div id="page" class="hfeed <?php echo $pp_layout_setup; ?>"> + + <div id="header"> + <div id="branding"> + <?php if (is_home()) { ?> + <h1 class="homelink"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1> + <?php } else { ?> + <div class="homelink"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></div> + <?php } ?> + <p class="description"><?php bloginfo('description'); ?></p> + </div> + + <div id="skip"><a title="Skip to content" href="#primary" accesskey="S">Skip to Content ↓</a></div> + + <?php wp_nav_menu( array('container_class' => 'header-menu', 'theme_location'=>'primary-menu') ); ?> + </div><!--#header--> +<div id="container"> + <div id="rotating"> + <?php get_template_part('header', 'images'); ?> + </div> \ No newline at end of file diff --git a/wp-content/themes/primepress/headers/PP-airplane.jpg b/wp-content/themes/primepress/headers/PP-airplane.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d3ded3427cf6918674b3f4436752dca1433c9662 Binary files /dev/null and b/wp-content/themes/primepress/headers/PP-airplane.jpg differ diff --git a/wp-content/themes/primepress/headers/PP-field of dreams.jpg b/wp-content/themes/primepress/headers/PP-field of dreams.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c79cbd5f2d55da9b948e7d3b5cec52f10f8cf700 Binary files /dev/null and b/wp-content/themes/primepress/headers/PP-field of dreams.jpg differ diff --git a/wp-content/themes/primepress/headers/PP-rise up.jpg b/wp-content/themes/primepress/headers/PP-rise up.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d4b74e32d035499c75d3bc2d2878ac407e6943ed Binary files /dev/null and b/wp-content/themes/primepress/headers/PP-rise up.jpg differ diff --git a/wp-content/themes/primepress/headers/PP-tropical blue.jpg b/wp-content/themes/primepress/headers/PP-tropical blue.jpg new file mode 100644 index 0000000000000000000000000000000000000000..898a5f1c8e24aded1cecd2c1ec23b8024f911643 Binary files /dev/null and b/wp-content/themes/primepress/headers/PP-tropical blue.jpg differ diff --git a/wp-content/themes/primepress/image.php b/wp-content/themes/primepress/image.php new file mode 100644 index 0000000000000000000000000000000000000000..b28c74b3dce5312e104a9e8f97de10364b384571 --- /dev/null +++ b/wp-content/themes/primepress/image.php @@ -0,0 +1,55 @@ +<?php get_header(); ?> + + <div id="primary"> + + <?php if(have_posts()) : ?> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h1 class="entry-title"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> → <?php the_title(); ?></h1> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'large' ); ?></a></p> + <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div> + <?php the_content('Continue reading...'); ?> + </div> + + <div class="gnavigation"> + <div class="gnavleft"><?php previous_image_link() ?></div> + <div class="gnavright"><?php next_image_link() ?></div> + <div class="clear"></div> + </div> + + </div><!--.entry--> + + <?php comments_template(); ?> + + <?php endwhile; ?> + + <?php get_template_part('navigation'); ?> + + <?php else : ?> + + <div class="entry"> + <h2 class="entry-title"><?php _e('Not Found'); ?></h2> + <div class="entry-content"> + <p>Sorry, what you are looking for isn't here.</p> + <?php get_search_form(); ?> + </div> + </div> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/images/pp-bullet.gif b/wp-content/themes/primepress/images/pp-bullet.gif new file mode 100644 index 0000000000000000000000000000000000000000..6945250ba898df34ec219cc4b6d5a91499d92036 Binary files /dev/null and b/wp-content/themes/primepress/images/pp-bullet.gif differ diff --git a/wp-content/themes/primepress/images/pp-current.gif b/wp-content/themes/primepress/images/pp-current.gif new file mode 100644 index 0000000000000000000000000000000000000000..58a425415f88a5bd790969a22c8925fc35f1c5d4 Binary files /dev/null and b/wp-content/themes/primepress/images/pp-current.gif differ diff --git a/wp-content/themes/primepress/images/pp-email.png b/wp-content/themes/primepress/images/pp-email.png new file mode 100644 index 0000000000000000000000000000000000000000..d170b2fc648691e77244b8bc579cdfa1cf09fe2a Binary files /dev/null and b/wp-content/themes/primepress/images/pp-email.png differ diff --git a/wp-content/themes/primepress/images/pp-nested-bullet.gif b/wp-content/themes/primepress/images/pp-nested-bullet.gif new file mode 100644 index 0000000000000000000000000000000000000000..666321bcd1b3be486d600474e200866fd7a62bfd Binary files /dev/null and b/wp-content/themes/primepress/images/pp-nested-bullet.gif differ diff --git a/wp-content/themes/primepress/images/pp-quote.gif b/wp-content/themes/primepress/images/pp-quote.gif new file mode 100644 index 0000000000000000000000000000000000000000..06d39b158c773f8d2e9b74f8705fef5f13a8ee84 Binary files /dev/null and b/wp-content/themes/primepress/images/pp-quote.gif differ diff --git a/wp-content/themes/primepress/images/pp-rss2.png b/wp-content/themes/primepress/images/pp-rss2.png new file mode 100644 index 0000000000000000000000000000000000000000..f7309b0aa6e3aa3b1733cbdba9017e24f0f0fb6b Binary files /dev/null and b/wp-content/themes/primepress/images/pp-rss2.png differ diff --git a/wp-content/themes/primepress/index.php b/wp-content/themes/primepress/index.php new file mode 100644 index 0000000000000000000000000000000000000000..87a0c3baa27236fc53bf0db397bc6b5227125a39 --- /dev/null +++ b/wp-content/themes/primepress/index.php @@ -0,0 +1,52 @@ +<?php get_header(); ?> + + <div id="primary" class="looped"> + + <?php if(have_posts()) : ?> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php comments_popup_link('No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_post_thumbnail('thumbnail'); ?> + <?php pp_the_content(); ?> + <?php wp_link_pages('before=<p><strong>' . __('Pages:') . '</strong>&after=</p>'); ?> + </div> + + <p class="entry-meta"><span class="entry-categories"><?php _e('Posted in: '); ?><?php the_category(', '); ?>.</span><br /> + <?php if(function_exists('the_tags')) { ?> + <span class="entry-tags"><?php the_tags('Tagged: ',' · ','<br />'); ?></span> + <?php } ?></p> + </div><!--.entry--> + + <?php endwhile; ?> + + <?php get_template_part('navigation'); ?> + + <?php else : ?> + + <div class="entry"> + <h2 class="entry-title"><?php _e('Not Found'); ?></h2> + <div class="entry-content"> + <p>Sorry, what you are looking for isn't here.</p> + <?php get_search_form(); ?> + </div> + </div> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/library/ie6.css b/wp-content/themes/primepress/library/ie6.css new file mode 100644 index 0000000000000000000000000000000000000000..6023e633431584ad06f7efd279fbf2b39193647b --- /dev/null +++ b/wp-content/themes/primepress/library/ie6.css @@ -0,0 +1,16 @@ +#container { + width /**/:962px; +} + +#primary { + overflow: hidden; +} + +.entry-content img { width: expression(this.width > 540 ? 540: true); } +.content-480px .entry-content img { width: expression(this.width > 480 ? 480: true); } +.content-580px .entry-content img { width: expression(this.width > 580 ? 580: true); } +.content-620px .entry-content img { width: expression(this.width > 620 ? 620: true); } + +.menu li a:hover {background:#555; text-decoration:none;} +#header li.current-menu-item a, +#header li.current_page_item a {background:#ccc; color:#444;} \ No newline at end of file diff --git a/wp-content/themes/primepress/library/layout.css b/wp-content/themes/primepress/library/layout.css new file mode 100644 index 0000000000000000000000000000000000000000..cc66659891470931af44839ca0c00ec90c8dd452 --- /dev/null +++ b/wp-content/themes/primepress/library/layout.css @@ -0,0 +1,35 @@ +/*540px wide*/ +#primary{width:540px;} +#secondary{width:362px;} + #sidebar-wide{width:360px;} + #sidebar-1{width:180px;} + #sidebar-2{width:180px;} + +/*480px wide*/ +.content-480px #primary{width:480px;} +.content-480px #secondary{width:422px;} + .content-480px #sidebar-wide{width:420px;} + .content-480px #sidebar-1{width:210px;} + .content-480px #sidebar-2{width:210px;} + +/*580px wide*/ +.content-580px #primary{width:580px;} +.content-580px #secondary{width:322px;} + .content-580px #sidebar-wide{width:320px;} + .content-580px #sidebar-1{width:160px;} + .content-580px #sidebar-2{width:160px;} + +/*620px wide*/ +.content-620px #primary{width:620px;} +.content-620px #secondary{width:282px;} + .content-620px #sidebar-wide{width:280px;} + .content-620px #sidebar-1{width:140px;} + .content-620px #sidebar-2{width:140px;} + +/*subscribe box*/ +#pp-subscribe li {width:100%;} +#pp-subscribe.pp-email-true li {width:50%;} +#pp-subscribe.pp-email-true li .email-narrow {display:none;} + +.content-540px #pp-subscribe.pp-email-true a {padding-left:45px;} +.content-580px #pp-subscribe li, .content-620px #pp-subscribe li{width:100%;} \ No newline at end of file diff --git a/wp-content/themes/primepress/library/pp-options.php b/wp-content/themes/primepress/library/pp-options.php new file mode 100644 index 0000000000000000000000000000000000000000..3fe0162d086b18ebad1bf643abf8fe8636bc39fe --- /dev/null +++ b/wp-content/themes/primepress/library/pp-options.php @@ -0,0 +1,189 @@ +<?php +$themename = "PrimePress"; +$shortname = "pp"; +$options = array ( + + array( "name" => "Layout Options", + "desc" => "Choose your preferred layout.", + "id" => $shortname."_admin_heading", + "type" => "info"), + + array( "name" => "Content Width", + "desc" => "Select the width of the content column. sidebar width is automatically adjusted.", + "id" => $shortname."_layout_setup", + "type" => "select", + "std" => "content-540px", + "options" => array("content-480px", "content-540px", "content-580px", "content-620px")), + + array( "name" => "Sidebar Options", + "desc" => "How many sidebars do you want ?", + "id" => $shortname."_sidebar_option", + "type" => "select", + "std" => "3 sidebars", + "options" => array("1 sidebar", "2 sidebars", "3 sidebars")), + + array( "name" => "FeedBurner", + "desc" => "Your custom FeedBurner settings.", + "id" => $shortname."_admin_heading", + "type" => "info"), + + array( "name" => "Feed Address", + "desc" => "enter your full feed address.", + "id" => $shortname."_feed_address", + "std" => "", + "type" => "text"), + + array( "name" => "feedburner.com Address", + "desc" => "enter your feedburner.com address to enable eMail subscription. The one that comes after http://feeds.feedburner.com/... (eg: ...urner.com/<span style='text-decoration: underline;'>primepress</span>)", + "id" => $shortname."_feed_id", + "std" => "", + "type" => "text"), + + array( "name" => "Excerpt Settings", + "desc" => "Choose to display content or excepts.", + "id" => $shortname."_admin_heading", + "type" => "info"), + + array( "name" => "Excerpt length", + "desc" => "type in the excerpt length (no. of words)", + "id" => $shortname."_excerpt_length", + "std" => "55", + "type" => "text"), + + array( "name" => 'Excerpt options', + "desc" => "display excerpts on the homepage.", + "id" => $shortname."_home_excerpts", + "std" => "false", + "type" => "checkbox"), + + array( "name" => '', + "desc" => "display excerpts on Category pages.", + "id" => $shortname."_category_excerpts", + "std" => "false", + "type" => "checkbox"), + + array( "name" => '', + "desc" => "display excerpts on Tag pages.", + "id" => $shortname."_tag_excerpts", + "std" => "false", + "type" => "checkbox"), + + array( "name" => '', + "desc" => "display excerpts on Archive pages.", + "id" => $shortname."_date_excerpts", + "std" => "false", + "type" => "checkbox") + +); + +function mytheme_add_admin() { + global $themename, $shortname, $options; + if ( isset($_GET['page']) && $_GET['page'] == basename(__FILE__) ) { + if ( isset($_REQUEST['action']) && 'save' == $_REQUEST['action'] ) { + foreach ($options as $value) { + update_option( $value['id'], $_REQUEST[$value['id']] ); } + foreach ($options as $value) { + if( isset($_REQUEST[$value['id']]) ) { update_option( $value['id'], $_REQUEST[$value['id']] ); } else { delete_option( $value['id'] ); } } + header("Location: themes.php?page=pp-options.php&saved=true"); + die; + } else if( isset($_REQUEST['action']) && 'reset' == $_REQUEST['action'] ) { + foreach ($options as $value) { + delete_option( $value['id'] ); } + header("Location: themes.php?page=pp-options.php&reset=true"); + die; + } + } + + add_theme_page($themename." Options", "PrimePress Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); + +} + +function mytheme_admin() { + global $themename, $shortname, $options; + if ( isset($_REQUEST['saved']) ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>'; + if ( isset($_REQUEST['reset']) ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>'; + +?> +<div class="wrap"> +<h2><?php echo $themename; ?> Settings</h2> + +<form method="post"> + +<table class="form-table"> + +<?php foreach ($options as $value) { + +if ($value['type'] == "text") { ?> + +<tr valign="middle"> + <th scope="row" ><?php echo $value['name']; ?>:</th> + <td> + <input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" size="50" value="<?php if ( get_option( $value['id'] ) != "") { echo get_option( $value['id'] ); } else { echo $value['std']; } ?>" /><br /> + <?php echo $value['desc']; ?> + </td> +</tr> + +<?php } elseif ($value['type'] == "info") { ?> + + <tr><th scope="row" colspan="2" style="font-size:15px; font-weight:bold;"><?php echo $value['name']; ?></th></tr> + <tr><th scope="row" colspan="2" style="font-size:13px; font-weight:normal;"><?php echo $value['desc']; ?></th></tr> + +<?php } elseif ($value['type'] == "select") { ?> + + <tr valign="middle"> + <th scope="row"><?php echo $value['name']; ?>:</th> + <td> + <select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"> + <?php foreach ($value['options'] as $option) { ?> + <option<?php if ( get_option( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ( get_option($value['id'] ) == NULL && $option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option> + <?php } ?> + </select><br /> + <?php echo $value['desc']; ?> + </td> + </tr> + +<?php } elseif ($value['type'] == "info") { ?> + + <tr><th scope="row" colspan="2" style="font-size:15px; font-weight:bold;"><?php echo $value['name']; ?></th></tr> + <tr><th scope="row" colspan="2" style="font-size:13px; font-weight:normal;"><?php echo $value['desc']; ?></th></tr> + +<?php } elseif ($value['type'] == "checkbox") { ?> + + <tr valign="top"> + <th scope="row"><?php echo $value['name']; ?></th> + <td> + <?php + if(get_option($value['id'])){ + $checked = "checked=\"checked\""; + }else{ + $checked = ""; + } + ?> + <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> /> + <label for="<?php echo $value['id']; ?>"><?php echo $value['desc']; ?></label> + </td> + </tr> + +<?php +} +} +?> + +</table> + +<p class="submit"> +<input class="button-primary" name="save" type="submit" value="Save changes" /> +<input type="hidden" name="action" value="save" /> +</p> +</form> +<form method="post"> +<p class="submit"> +<input class="button-primary" name="reset" type="submit" value="Reset" /> +<input type="hidden" name="action" value="reset" /> +</p> +</form> + +<?php +} + +add_action('admin_menu', 'mytheme_add_admin'); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/library/reset.css b/wp-content/themes/primepress/library/reset.css new file mode 100644 index 0000000000000000000000000000000000000000..1c85489d609ccc59b6d34717ec0f93c07fa3187d --- /dev/null +++ b/wp-content/themes/primepress/library/reset.css @@ -0,0 +1,53 @@ +/* http://meyerweb.com/eric/tools/css/reset/ */ +/* v1.0 | 20080212 */ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-size: 100%; + vertical-align: baseline; + background: transparent; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +/* remember to define focus styles! */ +:focus { + outline: 0; +} + +/* remember to highlight inserts somehow! */ +ins { + text-decoration: none; +} +del { + text-decoration: line-through; +} + +/* tables still need 'cellspacing="0"' in the markup */ +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/wp-content/themes/primepress/library/widgets.php b/wp-content/themes/primepress/library/widgets.php new file mode 100644 index 0000000000000000000000000000000000000000..b16fe272762ba193ae341274331b61da2ce770f2 --- /dev/null +++ b/wp-content/themes/primepress/library/widgets.php @@ -0,0 +1,34 @@ +<?php +function pp_widgets_init() { + register_sidebar(array( + 'name' => 'Sidebar Wide', + 'id' => 'sidebar-wide', + 'description' => 'The is the sidebar you see at the top when you use the 1 or 3 sidebar layout', + 'berfore_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h2 class="widgettitle">', + 'after_title' => '</h2>', + )); + + register_sidebar(array( + 'name' => 'Sidebar One', + 'id' => 'sidebar-one', + 'description' => 'The is the narrow sidebar on the left when you use the 2 or 3 sidebar layout', + 'berfore_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h2 class="widgettitle">', + 'after_title' => '</h2>', + )); + + register_sidebar(array( + 'name' => 'Sidebar Two', + 'id' => 'sidebar-two', + 'description' => 'The is the narrow sidebar on the right when you use the 2 or 3 sidebar layout', + 'berfore_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h2 class="widgettitle">', + 'after_title' => '</h2>', + )); +} +add_action('widgets_init', 'pp_widgets_init'); +?> \ No newline at end of file diff --git a/wp-content/themes/primepress/navigation.php b/wp-content/themes/primepress/navigation.php new file mode 100644 index 0000000000000000000000000000000000000000..e165d3c52fc981ba53e59ef0be5ffdecf7fcb58b --- /dev/null +++ b/wp-content/themes/primepress/navigation.php @@ -0,0 +1,21 @@ +<?php if (is_single()) : ?> + + <div class="navigation"> + <span class="navleft"><?php previous_post_link('← %link') ?></span> + <span class="navright"><?php next_post_link('%link →') ?></span> + </div> + +<?php else : ?> + + <div class="navigation"> + <?php + if (function_exists('wp_pagenavi')) { + wp_pagenavi(); + } else { + ?> + <span class="navleft"><?php next_posts_link('← Earlier Posts') ?></span> + <span class="navright"><?php previous_posts_link('Newer Posts →') ?></span> + <?php } ?> + </div> + +<?php endif; ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/page.php b/wp-content/themes/primepress/page.php new file mode 100644 index 0000000000000000000000000000000000000000..8363fc27ccd577fe45d785eb47e4c1205dc26d32 --- /dev/null +++ b/wp-content/themes/primepress/page.php @@ -0,0 +1,35 @@ +<?php get_header(); ?> + + <div id="primary"> + + <?php pp_breadcrubs(); ?> + + <?php if(have_posts()) : ?> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h1 class="entry-title"><?php the_title(); ?></h1> + + <div class="entry-byline"> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_content(); ?> + <?php wp_link_pages('before=<p><strong>' . __('Pages:') . '</strong>&after=</p>'); ?> + </div> + + </div><!--.entry--> + + <?php comments_template(); ?> + + <?php endwhile; ?> + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/rotating.php b/wp-content/themes/primepress/rotating.php new file mode 100644 index 0000000000000000000000000000000000000000..0c8da54bde604b533aeac4b5dd581134e332b60d --- /dev/null +++ b/wp-content/themes/primepress/rotating.php @@ -0,0 +1,31 @@ +<?php +/* +By Matt Mullenweg > http://photomatt.net +Inspired by Dan Benjamin > http://hiveware.com/imagerotator.php +Latest version always at: +http://photomatt.net/scripts/randomimage +*/// Make this the relative path to the images, like "../img" or "random/images/". +// If the images are in the same directory, leave it blank. +$folder = 'headers/'; + +// Space seperated list of extensions, you probably won't have to change this. +$exts = 'jpg jpeg png gif'; + +$files = array(); $i = -1; // Initialize some variables + +$handle = opendir($folder); +$exts = explode(' ', $exts); +while (false !== ($file = readdir($handle))) { +foreach($exts as $ext) { // for each extension check the extension +if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive +$files[] = $file; // it�s good +++$i; +} +} +} +closedir($handle); // We�re not using it anymore +mt_srand((double)microtime()*1000000); // seed for PHP < 4.2 +$rand = mt_rand(0, $i); // $i was incremented as we went along + +header('Location: '.$folder.$files[$rand]); // Voila! +?> \ No newline at end of file diff --git a/wp-content/themes/primepress/screenshot.png b/wp-content/themes/primepress/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..7c36224575a7032f9cc38614c0af846276347b9c Binary files /dev/null and b/wp-content/themes/primepress/screenshot.png differ diff --git a/wp-content/themes/primepress/search.php b/wp-content/themes/primepress/search.php new file mode 100644 index 0000000000000000000000000000000000000000..810641d3d7d6042d9b770c5a3d3863b9e83f40b7 --- /dev/null +++ b/wp-content/themes/primepress/search.php @@ -0,0 +1,48 @@ +<?php get_header(); ?> + + <div id="primary" class="looped"> + + <?php pp_breadcrubs(); ?> + + <?php if(have_posts()) : ?> + + <h1 class="page-title">Search Results for '<?php the_search_query(); ?>' ↓</h1> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php comments_popup_link('No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_excerpt(); ?> + </div> + </div><!--.entry--> + + <?php endwhile; ?> + + <?php get_template_part('navigation'); ?> + + <?php else : ?> + + <div class="entry"> + <h1 class="page-title">No posts found. Try a different search?</h1> + <div class="entry-content"> + <?php get_search_form(); ?> + </div> + </div> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/searchform.php b/wp-content/themes/primepress/searchform.php new file mode 100644 index 0000000000000000000000000000000000000000..78d7f902641d5eb219710f38f411eb63c30bef90 --- /dev/null +++ b/wp-content/themes/primepress/searchform.php @@ -0,0 +1,7 @@ +<h2 class="widgettitle search-title"><?php _e(Search) ?></h2> +<form method="get" id="pp-searchform" action="<?php bloginfo('home'); ?>"> +<div> + <input type="text" name="s" id="s-input" maxlength="150" accesskey="4" title="Search <?php bloginfo('name'); ?>" onblur="this.value=(this.value=='') ? 'Type in and hit enter to search' : this.value;" onfocus="this.value=(this.value=='Type in and hit enter to search') ? '' : this.value;" value="Type in and hit enter to search" /> + <input type="hidden" id="s-submit" value="Search" /> +</div> +</form> \ No newline at end of file diff --git a/wp-content/themes/primepress/sidebar-one.php b/wp-content/themes/primepress/sidebar-one.php new file mode 100644 index 0000000000000000000000000000000000000000..8bd362dd9dc0dd75fa45ff27386a84e96d00b038 --- /dev/null +++ b/wp-content/themes/primepress/sidebar-one.php @@ -0,0 +1,15 @@ +<div id="sidebar-1" class="sidebar"> + + <ul class="xoxo sidebar-items"> + <?php if ( !dynamic_sidebar('Sidebar One') ) : ?><!--sidebar-1 widgets start--> + + <!--Categories Widget--> + <?php the_widget('WP_Widget_Categories', 'count=0&hierarchical=1&dropdown=0' ,'before_widget=<li class="widget widget_categories">&after_widget=</li>'); ?> + + <!--Archives Widget--> + <?php the_widget('WP_Widget_Archives', 'count=0&dropdown=0','before_widget=<li class="widget widget_archive">&after_widget=</li>'); ?> + + <?php endif; ?><!--sidebar-1 widgets end--> + </ul> + +</div><!--#sidebar-1--> \ No newline at end of file diff --git a/wp-content/themes/primepress/sidebar-two.php b/wp-content/themes/primepress/sidebar-two.php new file mode 100644 index 0000000000000000000000000000000000000000..3ab799613fd88cf002d5f9c16a863b8045143ddc --- /dev/null +++ b/wp-content/themes/primepress/sidebar-two.php @@ -0,0 +1,18 @@ +<div id="sidebar-2" class="sidebar"> + + <ul class="xoxo sidebar-items"> + <?php if ( !dynamic_sidebar('Sidebar Two') ) : ?><!--sidebar-2 widgets start--> + + <!--Calendar Widget--> + <?php the_widget('WP_Widget_Calendar', 'title=Calendar','before_widget=<li class="widget widget_calendar">&after_widget=</li>'); ?> + + <!--Pages Widget--> + <?php the_widget('WP_Widget_Pages', '','before_widget=<li class="widget widget_pages">&after_widget=</li>'); ?> + + <!--Meta Widget--> + <?php the_widget('WP_Widget_Meta', '','before_widget=<li class="widget widget_meta">&after_widget=</li>'); ?> + + <?php endif; ?><!--sidebar-2 widgets end--> + </ul> + +</div><!--#sidebar-2--> \ No newline at end of file diff --git a/wp-content/themes/primepress/sidebar-wide.php b/wp-content/themes/primepress/sidebar-wide.php new file mode 100644 index 0000000000000000000000000000000000000000..81f23e231057cfdcc3433047ab9e26898f8c0150 --- /dev/null +++ b/wp-content/themes/primepress/sidebar-wide.php @@ -0,0 +1,17 @@ +<div id="sidebar-wide" class="sidebar"> + + <ul class="xoxo sidebar-items"> + <?php if ( !dynamic_sidebar('Sidebar Wide') ) : ?><!--#sidebar-wide widgets start--> + + <!--Recent Posts Widget--> + <li id="pp-recent-posts" class="widget widget_recent_entries"> + <h2 class="widgettitle"><?php _e('Recent Posts'); ?></h2> + <ul> + <?php wp_get_archives('type=postbypost&limit=10'); ?> + </ul> + </li> + + <?php endif; ?><!--#sidebar-wide widgets end--> + </ul> + +</div><!--#sidebar-wide--> \ No newline at end of file diff --git a/wp-content/themes/primepress/sidebar.php b/wp-content/themes/primepress/sidebar.php new file mode 100644 index 0000000000000000000000000000000000000000..f904b226c4f82defaba3d46be8699268e90e4502 --- /dev/null +++ b/wp-content/themes/primepress/sidebar.php @@ -0,0 +1,24 @@ +<?php +global $options; +foreach ($options as $value) { + if ( get_option($value['id']) === FALSE && isset($value['std']) ) { $$value['id'] = $value['std']; } + else { $$value['id'] = get_option($value['id']); } +} ?> +<div id="secondary"> + +<?php include(TEMPLATEPATH . '/subscribe.php'); ?> + +<div id="pp-sidebars" class="clearfix"> + +<?php if ($pp_sidebar_option != '2 sidebars') { + get_sidebar('wide'); +} ?> + +<?php if ($pp_sidebar_option != '1 sidebar') { + get_sidebar('one'); + get_sidebar('two'); +} ?> + +</div><!--#pp-sidebars--> + +</div><!--#secondary--> \ No newline at end of file diff --git a/wp-content/themes/primepress/single.php b/wp-content/themes/primepress/single.php new file mode 100644 index 0000000000000000000000000000000000000000..403226571c06eeebf3075d5ce4f8d8e2d42088c4 --- /dev/null +++ b/wp-content/themes/primepress/single.php @@ -0,0 +1,55 @@ +<?php get_header(); ?> + + <div id="primary"> + + <?php pp_breadcrubs(); ?> + + <?php if(have_posts()) : ?> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h1 class="entry-title"><?php the_title(); ?></h1> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_content('[Continue reading ⇒]'); ?> + <?php wp_link_pages('before=<p><strong>' . __('Pages:') . '</strong>&after=</p>'); ?> + </div> + + <p class="entry-meta"><span class="entry-categories"><?php _e('Posted in: '); ?><?php the_category(', '); ?>.</span><br /> + <?php if(function_exists('the_tags')) { ?> + <span class="entry-tags"><?php the_tags('Tagged: ',' · ','<br />'); ?></span> + <?php } ?></p> + + </div><!--.entry--> + + <?php get_template_part('navigation'); ?> + + <?php comments_template(); ?> + + <?php endwhile; ?> + + <?php else : ?> + + <div class="entry"> + <h2 class="entry-title"><?php _e('Not Found'); ?></h2> + <div class="entry-content"> + <p>Sorry, what you are looking for isn't here.</p> + <?php get_search_form(); ?> + </div> + </div> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/style.css b/wp-content/themes/primepress/style.css new file mode 100644 index 0000000000000000000000000000000000000000..5b1360e6610ee68771cd0f64c210b04e7c741173 --- /dev/null +++ b/wp-content/themes/primepress/style.css @@ -0,0 +1,293 @@ +/* +Theme Name: PrimePress +Theme URI: http://www.techtrot.com/primepress/ +Description: A 2/3-column search engine optimized theme with a clean and content-centric design. Features easily customizable rotating header images, a custom stylesheet for easy personalization and optional layouts. +Author: Ravi Varma +Author URI: http://www.techtrot.com/ +Version: 1.4.1 +Tags: white, blue, silver, light, three-columns, two-columns, fixed-width, custom-header, custom-background, custom-menu, theme-options, right-sidebar, threaded-comments, sticky-post, microformats +License: GNU General Public License v2.0 +License URI: http://www.gnu.org/licenses/gpl-2.0.html +*/ +/*For your sake, try not to make any changes in here. This will be updated every time a new version of WordPress comes out. Add all your customizations to the custom.css*/ +@import url('library/reset.css'); +@import url('library/layout.css'); + +body {font: 62.5%/1.3 'trebuchet ms', verdana, 'Lucida Grande', arial, sans-serif; text-align:center; color:#111;} + +/*-----layout-----*/ +#page {width:962px; margin:10px auto; text-align:left; background:#fff;} + #header{width:960px; float:left; position:relative;} + #container{width:920px; float:left; padding:0 20px;} + #rotating{width:920px; float:left; padding:20px 0;} + #primary{float:left; padding:0 18px 0 0; } + #secondary{float:left;} + .sidebar{float:left;} + .sidebar-items{padding:5px 5px 0 5px;} + #footer{width:920px; float:left; clear:both;} + +/*-----header-----*/ +.homelink{font-size:35px; line-height:1; font-weight:bold; letter-spacing:-0.5px; padding:30px 20px 10px 20px; font-variant:small-caps;} +.homelink a{color:#444;} +.homelink a:hover{color:#000; text-decoration:none;} +.description{color:#666; margin-top:-10px; padding:0 0 10px 21px; font-size:13px; line-height:1; font-style:italic;} +#skip a{padding:0.2em 0.3em; font-weight:bold; background:#e5e5e5; color:#444; display:block; text-decoration:none; position:absolute; top:0.5em; right:999em;} +#skip a:first-letter{text-decoration:underline;} +#skip a:hover{background:#ddd;} + + /*-----main menu*/ + #header .menu {float:right; margin-right:25px; padding:5px 10px 0 10px;} + #header .menu li {position:relative; float:left; margin:0 0 0 5px; font-weight:bold; font-size:11px; line-height:1.2;} + #header .menu li a {display:block; padding:5px 10px; background:#777; color:#fff;} + #header .menu li:hover > a {background:#555; text-decoration:none;} + #header .menu li.current-menu-ancestor > a, + #header .menu li.current-menu-parent > a, + #header .menu li.current-menu-item > a, + #header .menu li.current_page_item > a {background:#ccc; color:#444;} + /*-----sub menus*/ + #header ul ul {display:none; position:absolute;} + #header ul ul ul {left:100%; top:0;} + #header .sub-menu li, + #header .children li {width:200px; margin-left:0;} + #header li:hover > ul {display:block;} + + +/*-----Generic Styles-----*/ +b, strong{font-weight:bold;} +i, em, dfn{font-style:italic;} +dfn{font-weight:bold;} +abbr, acronym{border-bottom:1px solid #ddd;} +sup, sub{font-size:0.7692em; line-height:1;} +sup{vertical-align:super;} +sub{vertical-align:sub;} +del{text-decoration:line-through;} +small{font-size:0.8em;} +u, ins{text-decoration:underline;} +pre, code, tt{font:1em/1.5385 consolas, 'Courier New', Courier, Monospace;} +pre{margin:0 0 1.5385em; padding:0.7692em 10px; border:1px solid #ddd; overflow:auto;} +hr{background:#ccc; color:#ccc; clear:both; float:none; width:100%; height:0.1em; margin:0 0 1.5385em; border:none;} +blockquote{margin:0 0 1.5385em; padding:0 0 0 40px; color:#555; background:url('images/pp-quote.gif') no-repeat;} + +/*-----headings-----*/ +h1, h2, h3, h4, h5, h6{font-weight:normal; font-family:'trebuchet MS', verdana, arial, sans-serif;} +.entry-title, .page-title{font-size:2.2em; line-height:1; margin:0.9091em 0 0;} +.page-title{margin-bottom:0.9091em; padding-bottom:5px;} +.sidebar h2{font-size:1.5em;} +.entry-content h1, .entry-content h2{font-size:1.5385em; line-height:1; margin:1.5em 0 0.5em;} +.entry-content h3{font-size:1.3846em; line-height:1.1111; margin:1.66665em 0 0.55555em;} +.entry-content h4{font-size:1.2308em; font-weight:bold; line-height:1.25; margin:1.875em 0 0.625em;} +.entry-content h5, .entry-content h6{font-size:1em; font-weight:bold; margin:2.30775em 0 0.76925em;} + +/*-----content-----*/ +.entry-content {font-family: verdana, 'Lucida Grande', arial, sans-serif; font-size:1.3em; line-height:1.5385; margin:1.5385em 0 0;} +.entry-content p {margin:0 0 1.5385em;} +.entry-content address {margin:0 0 1.5385em; font-style:italic;} +.archive-info {margin-top:20px; padding:1px 10px; background:#f6f6f6;} +.archive-info .page-title {margin-bottom:10px;} +.archive-info p {font-size:1.3em; line-height:1.5385; margin:0 0 1.5385em;} +.sticky {margin-top:18px; padding:10px; background:#f6f6f6;} +.sticky .entry-title {margin-top:0;} + + /*-----post info*/ +.entry-byline {color:#777; font:italic 1.1em 'trebuchet ms', sans-serif;} +.entry-byline address {display:inline;} +.entry-meta {margin:2.4999em 0 0.8333em; font:italic 1.2em/1.6666 'trebuchet ms', sans-serif; color:#555;} + + /*-----lists*/ +.entry-content ul, .entry-content ol {margin:0 0 1.5385em 30px;} +.entry-content li {margin-bottom:0.4615em; line-height:1.5385;} +.entry-content li ul, .entry-content li ol {margin:0.4615em 0 1.077em 30px;} +.entry-content ul {list-style-type:square;} +.entry-content li ul {list-style-type:circle;} +.entry-content ol {list-style-type:decimal;} +.entry-content ol ol {list-style-type:upper-alpha;} +.entry-content dl {margin:0 0 1.5385em;} +.entry-content dl dt {font-weight:bold;} +.entry-content dd {margin:0 0 1.5385em;} + + /*-----images*/ +.entry-content img {max-width:100%; height:auto;} +img.alignleft, div.alignleft {margin:0 15px 3px 0; display:inline;} +img.alignright, div.alignright {margin:0 0 3px 15px; display:inline;} +.aligncenter, div.aligncenter {display:block; margin:0 auto 1.5385em;} +img.border {padding:4px; border:1px solid #ccc; background:#eee;} +.alignleft {float:left;} +.alignright {float:right;} +.center {text-align:center;} +.wp-caption {text-align:center; padding-top:4px;} +.wp-caption img {margin:0; padding:0; border:0 none;} +.wp-caption p.wp-caption-text, +.gallery-caption {color:#555; padding:4px; margin:0; font:italic 0.923em/1.6666 'trebuchet ms', verdana, sans-serif;} +.wp-post-image {float:left; margin:0 15px 3px 0;} +.archive .wp-post-image {margin-bottom:15px;} + + /*-----gallery*/ +.entry-content .attachment a, +.entry-content .gallery a, +.entry-content .attachment a:hover, +.entry-content .gallery a:hover {border:none;} +.attachment img, .attachment-thumbnail, .entry-content .gallery img {padding:2px; border:1px solid #ccc;} +.attachment img:hover, .attachment-thumbnail:hover, .entry-content .gallery img:hover {border:1px solid #888;} +.attachment {text-align:center;} + + /*-----tables*/ +.entry-content table {margin:0 0 1.5385em; border-collapse:collapse; border:1px solid #ccc; color:#444;} +.entry-content th {font-weight:bold; background:#ccc;} +.entry-content th, .entry-content td {padding:0.2em 10px;} +.entry-content td {border:1px solid #ccc;} +.entry-content tfoot {background:#ddd;} + +/*-----sidebars-----*/ +/*Subscribe box*/ +#pp-subscribe {margin-bottom:10px;} +#pp-subscribe ul {padding:5px;} +#pp-subscribe li {display:block; float:left;} +#pp-subscribe a {padding:5px 5px 5px 50px; font-weight:bold; font-size:14px; line-height:33px; display:block;} + /*-----RSS feed*/ + #pp-feed {background: url(images/pp-rss2.png) no-repeat 4px 4px;} + /*-----email subscription*/ + #pp-email {background: url(images/pp-email.png) no-repeat 4px 4px;} + + /*-----search*/ +#searchform #s, #s-input {border:1px solid #ccc; margin-bottom:5px; padding:2px; width:95%; color:#666;} +#submit, #s-submit {border:1px solid #555; background:#555; color:#ddd; cursor:pointer; font-weight:bold;} +#submit:hover, #s-submit:hover {color:#fff;} +#s-input, #submit, #s-submit {font-family: 'trebuchet ms', arial, sans-serif;} + +#searchform input {border:1px solid #bbb;} + + /*-----widgets*/ +.widget {font-size:1.2em; line-height:1.4166; margin:0 0 1.25em; padding:0.4166em 5px 0.4166em 5px;} +.widget li {margin:0.25em 0; } +.widget li li {padding:0 0 0 15px;} +.widgettitle {margin-bottom:3px; line-height:1.3; color:#555; font-weight:bold;} +.widget_recent_entries li, .widget_recent_comments li {background: url(images/pp-bullet.gif) 0 0.53em no-repeat; padding:0 0 0 15px;} +.postform {width:100%;} + + /*-----calendar*/ +#calendar_wrap {margin:0.4166em auto 0;} +#wp-calendar {width:94%; margin:0 auto;} +#wp-calendar caption {background:#aaa; font-size:1.0833em; font-weight:bold;} +#wp-calendar th {background:#ddd;} +#wp-calendar th, #wp-calendar td {text-align:center; padding:0.25em;} +#wp-calendar td {font-size:0.9166em; color:#777;} +#wp-calendar tfoot {background:#ddd;} +#wp-calendar a {font-weight:bold;} + +/*-----navigation-----*/ +.navigation {font-size:1.2em; text-align:center; padding:1.8181em 0; border-bottom:1px dashed #ddd;} +.navleft, .gnavleft {float:left; width:50%; text-align:left;} +.navright, .gnavright {float:right; width:50%; text-align:right;} +.gnavigation {padding:0 0 2em;} +.looped .navigation {border-bottom:none;} + /*-----Breadcrubs-----*/ + .breadcrumb-nav {font-size:1.2em; line-height:20px; color:#333;} + +/*-----footer-----*/ +#footer {margin:0 0 0.8333em; padding:1.6666em 0; font-size:1.2em; line-height:1.6666;} +#footer .left {width:50%; float:left; text-align:left;} +#footer .right {width:50%; float:right; text-align:right;} +.clear {margin:0; padding:0; clear:both;} + +/*-----comments-----*/ +.commentlist li {margin:0 0 1em; padding:0.5em 5px;} + /*-----comments navigation-----*/ +.comment-nav .page-numbers {margin:0 1px; padding:1px 6px; border:1px solid #ededed;} +.comment-nav .page-numbers.current {background:#f6f6f6;} +.comment-nav .prev {float:left; border:none;} +.comment-nav .next {float:right; border:none;} + /*-----comments headings*/ +.nocomments, +.nopassword {text-align:center; padding:1.25em 0; font-size:1.6em;} +.comments-number {margin:0 auto 1.5em; padding-top:1em; font-size:2em; line-height:1;} +#respond #reply-title {font-size:2em; line-height:1; margin:0 0 0.5em; padding-top:20px;} + /*-----comment formatting*/ +.avatar {float:left; position:relative; padding-right:7px;} +.comment-author {font-weight:bold; font-size:1.5em; line-height:1.1;} +.comment-author cite {font-style:normal;} +.comment-author .says {display:none;} +.comment-meta {font-size:1.1em; font-style:italic; color:#777;} +.comment-meta a {color:#777;} +.commentlist p {margin:1.4545em 5px 1.4545em 0; font-size:1.1em; line-height:1.5454; font-family: verdana, 'Lucida Grande', arial, sans-serif; color:#333;} +.commentlist pre {background:#fff; margin:0; border:none;} +.reply {font-size:12px; font-weight:bold;} +.commentlist .children li {margin-left:10px; margin-top:10px;} + /*-----colors*/ +.depth-1.parent {border:1px solid #ededed;} +.commentlist .children li {border-left:1px solid #ededed;} +.commentlist li {background-color:#f6f6f6;} +.commentlist li.alt {background-color:#fff;} +.commentlist li.bypostauthor {background-color:#e6e6e6;} + + /*-----comments form*/ +#commentform {margin:0 0 4em 0;} +#commentform p {margin:0 0 1em 0; font-size:12px;} +.must-log-in {font-size:12px; margin-bottom:1.6666em;} +#commentform textarea, +#commentform input[type=text] {border:1px solid #ccc; padding:3px; font-family: verdana, Courier, Monospace; color:#444;} +#commentform textarea:focus, #commentform input[type=text]:focus {color:#000; border-color:#888;} +#commentform input[type=text] {width:95%; font-size:12px;} +#commentform textarea {width:95%; font-size:12px;} +#commentform #submit {height:30px; padding:3px 6px;} + + + +/*-----clearfix-----*/ +#page:after, +.entry-content:after, +.navigation:after, +.clearfix:after { + content: "."; + display: block; + height: 0; + font-size: 0; + clear: both; + visibility: hidden; +} +#page, +.entry-content, +.navigation, +.clearfix {display:inline-block;} +/* Hides from IE5/Mac \*/ +* html .clearfix {height: 1px;} +#page, +.entry-content, +.navigation, +.clearfix {display:block;} +/* End hide from IE5/Mac */ + +/*-----Borders-----*/ +#rotating { + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; +} +#pp-subscribe { + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + border-left: 1px solid #ccc; +} +#pp-sidebars { + border-top: 1px solid #ccc; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; +} +#footer{ + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; +} +.looped .entry, +.single .entry { + border-bottom: 1px dashed #ddd; +} + +/*-----links-----*/ +a {text-decoration:none; color:#0070C5;} +a:hover {text-decoration:underline;} +.entry-content a {font-family:'trebuchet ms', verdana, sans-serif; text-decoration:underline;} +.entry-content a:hover {text-decoration:none;} +.entry-title a:hover, .entry-byline a:hover, .navigation a:hover {color:#000;} +.entry-byline a {color:#777;} +.entry-byline a.entry-date:hover {text-decoration:none;} +#primary.page-template .entry-content a {text-decoration:none; font-weight:normal;} +#primary.page-template .entry-content a:hover {text-decoration:underline;} +.gnavigation a:hover {border-bottom:none;} \ No newline at end of file diff --git a/wp-content/themes/primepress/subscribe.php b/wp-content/themes/primepress/subscribe.php new file mode 100644 index 0000000000000000000000000000000000000000..e35334e7d1e816c87d48ab5ab508b703c5a87b92 --- /dev/null +++ b/wp-content/themes/primepress/subscribe.php @@ -0,0 +1,13 @@ +<div id="pp-subscribe" class="clearfix<?php if ($pp_feed_id) echo ' pp-email-true'; ?>"> + <ul class="clearfix"> + <li id="pp-feed"> + <a href="<?php if ($pp_feed_address) {echo $pp_feed_address;} else {bloginfo('rss2_url');} ?>" title="Subscribe to this Feed via RSS">Subscribe <span class="email-narrow">to our Feed</span> via RSS</a> + </li> + + <?php if ($pp_feed_id) { ?> + <li id="pp-email"> + <a target="_blank" href="http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $pp_feed_id; ?>" title="Subscribe via Email" >Subscribe via eMail</a> + </li> + <?php } ?> + </ul> +</div> \ No newline at end of file diff --git a/wp-content/themes/primepress/tag.php b/wp-content/themes/primepress/tag.php new file mode 100644 index 0000000000000000000000000000000000000000..8c6ad832d37e879f520b648aecfada8fe31e2a5f --- /dev/null +++ b/wp-content/themes/primepress/tag.php @@ -0,0 +1,42 @@ +<?php get_header(); ?> + + <div id="primary" class="looped"> + + <?php pp_breadcrubs(); ?> + + <div class="archive-info"> + <h1 class="page-title"><?php single_tag_title(); ?></h1> + <?php echo tag_description(); ?> + </div> + + + <?php if (have_posts()) : while (have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php comments_popup_link('No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_post_thumbnail('thumbnail'); ?> + <?php pp_the_content(); ?> + </div> + </div><!--.entry--> + + <?php endwhile; ?> + + <?php get_template_part('navigation'); ?> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/template-archives.php b/wp-content/themes/primepress/template-archives.php new file mode 100644 index 0000000000000000000000000000000000000000..a7a129df560c211e5d86f8edd68b94968d70c9b9 --- /dev/null +++ b/wp-content/themes/primepress/template-archives.php @@ -0,0 +1,43 @@ +<?php +/** + * Template Name: Archives + * + * This template will display your Category, Tag and Monthly archives. + */ +?> + +<?php get_header(); ?> + + <div id="primary"> + + <?php pp_breadcrubs(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php bloginfo('name'); ?> Archives"><?php the_title(); ?></a></h1> + + <div class="entry-content"> + <p>The following is the list of archives organized by time and category.</p> + <h2><?php _e('Category Archives') ?></h2> + <ul class="archives-list"> + <?php wp_list_categories('title_li=&show_count=1'); ?> + </ul> + + <h2><?php _e('Tag Archives') ?></h2> + <p> + <?php wp_tag_cloud('number=0'); ?> + </p> + + <h2><?php _e('Monthly Archives') ?></h2> + <ul class="archives-list"> + <?php wp_get_archives('show_post_count=1'); ?> + </ul> + </div> + + </div><!--.entry--> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/template-blog.php b/wp-content/themes/primepress/template-blog.php new file mode 100644 index 0000000000000000000000000000000000000000..9ed0edad08737a1e633172f7041a40e79ea9f6b8 --- /dev/null +++ b/wp-content/themes/primepress/template-blog.php @@ -0,0 +1,66 @@ +<?php +/** + * Template Name: Blog + * + * When used, this template creates an alternate blog page by displaying your latest posts. + */ +?> + +<?php get_header(); ?> + + <div id="primary" class="looped"> + + <?php + $wp_query = new WP_Query(); + $wp_query->query( array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $paged ) ); + $more = 0; + ?> + + <?php if(have_posts()) : ?> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2> + + <div class="entry-byline"> + <a class="entry-date" rel="bookmark" title="<?php the_time('Y-m-d\TH:i:sO'); ?>" href="<?php the_permalink(); ?>"><abbr class="updated" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php the_time('M jS, Y'); ?></abbr></a> + <address class="author vcard"><?php _e('by '); ?><a class="url fn" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?></a>. </address> + <?php comments_popup_link('No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_post_thumbnail('thumbnail'); ?> + <?php pp_the_content(); ?> + <?php wp_link_pages('before=<p><strong>' . __('Pages:') . '</strong>&after=</p>'); ?> + </div> + + <p class="entry-meta"><span class="entry-categories"><?php _e('Posted in: '); ?><?php the_category(', '); ?>.</span><br /> + <?php if(function_exists('the_tags')) { ?> + <span class="entry-tags"><?php the_tags('Tagged: ',' · ','<br />'); ?></span> + <?php } ?></p> + </div><!--.entry--> + + <?php endwhile; ?> + + <?php get_template_part('navigation'); ?> + + <?php else : ?> + + <div class="entry"> + <h2 class="entry-title"><?php _e('Not Found'); ?></h2> + <div class="entry-content"> + <p>Sorry, what you are looking for isn't here.</p> + <?php get_search_form(); ?> + </div> + </div> + + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/template-home.php b/wp-content/themes/primepress/template-home.php new file mode 100644 index 0000000000000000000000000000000000000000..2a4b6185dc322ff96c59e8e2216d51cc64b0bd67 --- /dev/null +++ b/wp-content/themes/primepress/template-home.php @@ -0,0 +1,35 @@ +<?php +/** + * Template Name: HomePage + * + * This is a quick custom template that gets rid of the entry title and entry meta. + * Use this if you are following the tutorial + * @link http://www.techtrot.com/primepress/setting-up-the-wordpress-static-homepage/ + */ +?> + +<?php get_header(); ?> + + <div id="primary"> + + <?php if(have_posts()) : ?> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <div class="entry-content"> + <?php the_content(); ?> + <?php wp_link_pages('before=<p><strong>' . __('Pages:') . '</strong>&after=</p>'); ?> + </div> + + </div><!--.entry--> + + <?php endwhile; ?> + <?php endif; ?> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/template-links.php b/wp-content/themes/primepress/template-links.php new file mode 100644 index 0000000000000000000000000000000000000000..f246c1b3530dbce0a5af892470e92b701dbd2319 --- /dev/null +++ b/wp-content/themes/primepress/template-links.php @@ -0,0 +1,31 @@ +<?php +/** + * Template Name: Links + * + * This template will display a list of all your links or bookmarks. + */ +?> + +<?php get_header(); ?> + + <div id="primary"> + + <?php pp_breadcrubs(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php bloginfo('name'); ?> Links"><?php the_title(); ?></a></h1> + + <div class="entry-content"> + <ul> + <?php wp_list_bookmarks('title_li=&category_before=&category_after='); ?> + </ul> + </div> + + </div><!--.entry--> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/template-nosidebars.php b/wp-content/themes/primepress/template-nosidebars.php new file mode 100644 index 0000000000000000000000000000000000000000..fb2267a5444ff5959ad202be2e9f2dc4ca0f62bf --- /dev/null +++ b/wp-content/themes/primepress/template-nosidebars.php @@ -0,0 +1,41 @@ +<?php +/** + * Template Name: No Sidebars + * + * This template gets rid of the sidebars and displays your content full width. + */ +?> + +<?php get_header(); ?> + + <div id="primary" style="width:920px;"> + + <?php pp_breadcrubs(); ?> + + <?php if(have_posts()) : ?> + + <?php while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h1 class="entry-title"><?php the_title(); ?></h1> + + <div class="entry-byline"> + <?php edit_post_link('Edit', '[', ']'); ?> + </div> + + <div class="entry-content"> + <?php the_content(); ?> + <?php wp_link_pages('before=<p><strong>' . __('Pages:') . '</strong>&after=</p>'); ?> + </div> + + </div><!--.entry--> + + <?php comments_template(); ?> + + <?php endwhile; ?> + <?php endif; ?> + + </div><!--#primary--> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/primepress/template-sitemap.php b/wp-content/themes/primepress/template-sitemap.php new file mode 100644 index 0000000000000000000000000000000000000000..7d1de6e122e424cbffa00c96152ee5a919fcd4d4 --- /dev/null +++ b/wp-content/themes/primepress/template-sitemap.php @@ -0,0 +1,51 @@ +<?php +/** + * Template Name: Sitemap + * + * This template displays a HTML based sitemap of your site listing all your Pages, posts, Category, Tag and Monthly archives. + */ +?> +<?php get_header(); ?> + + <div id="primary"> + + <?php pp_breadcrubs(); ?> + + <div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> + + <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php bloginfo('name'); ?> Sitemap"><?php the_title(); ?></a></h1> + + <div class="entry-content"> + <h2><?php _e('Pages') ?></h2> + <ul> + <?php wp_list_pages('title_li='); ?> + </ul> + + <h2><?php _e('Posts') ?></h2> + <ul> + <?php wp_get_archives('type=postbypost'); ?> + </ul> + + <h2><?php _e('Category Archives') ?></h2> + <ul> + <?php wp_list_categories('title_li='); ?> + </ul> + + <h2><?php _e('Tag Archives') ?></h2> + <p> + <?php wp_tag_cloud('number=0'); ?> + </p> + + <h2><?php _e('Monthly Archives') ?></h2> + <ul> + <?php wp_get_archives(); ?> + </ul> + </div> + + </div><!--.entry--> + + </div><!--#primary--> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> \ No newline at end of file