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

Add theme seo_october_special

parent a061f8cb
No related branches found
No related tags found
No related merge requests found
Showing
with 420 additions and 0 deletions
###############################################
#Theme: October Special #
#Designed by: Derek Punsalan #
#Search engine optimization by: Neil Patel #
#Copyrighted by Derek Punsalan and Neil Patel #
###############################################
Tables of Contents
1. Theme Installation
2. Search Engine Optimization Overview
3. Meta Description
4. 301 Permanent Redirect
5. Sitemap
1. Upload the 'octoberspecial' directory to /wp-contents/themes/. Login and navigate to Presentation tab and activate October Special. The theme does support widgets. Download and install the WordPress Widgets plugin here - http://automattic.com/code/widgets/
2. Search Engine Optimization Overview
Currently this theme is optimized for search engines, but there are a few additional things that can be done including a meta description tag, 301 permanent redirect, and creating a sitemap.
3. Meta Description
Search engines usually see your content as duplicate. Granted it usually is not duplicate content, but without a unique meta description tag on each of your posts you are hampering your search engine traffic.
To solve this we can use the head meta description tag. It can be downloaded from http://guff.szub.net/2005/09/01/head-meta-description/ and it is easy to install. That URL contains instructions and I recommend setting the length of the meta description tag to 20 or 25 words.
4. 301 Permanent Redirect
When people link to your blog they usually link to http://domain.com or http://www.domain.com. Because of this the search engines usually see them as two separate sites and you may have 100 sites that link to http://domain.com and 50 sites that link to http://www.domain.com. If the search engines saw it as 150 links in total instead of 50 and 100 your rankings would most likely go up. You want to consolidate the links and do a 301 permanent redirect in your .htaccess file. Here is the code that you may want to use:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_Host} ^YOURDOMAIN\.com [NC]
RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [L,R=301]
**Make sure the code is on 4 lines in your .htaccess file and replace "YOURDOMAIN" with your domain name.
5. Sitemap
You don't really need a sitemap for your blog, but it will just help get your pages indexed faster. You can create your own HTML sitemap or you can use a WordPress plugin. I recommend using the Google Sitemap generator plugin which can be found at http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final.
<?php get_header(); ?>
<div id="content_wrapper">
<div id="content_inner" class="clearfix">
<div class="content_left">
<div class="post">
<h2>Nothing to see here</h2>
<div class="entry">
<p>You seem to have found a mislinked file or page.</p>
</div>
<div class="clear"></div>
</div>
</div>
<div class="content_right">
<?php include (TEMPLATEPATH . '/main_right.php'); ?>
</div>
</div>
</div>
<div id="bottom_wrapper">
<div id="bottom_inner" class="clearfix">
<div class="bottom_left">
<?php comments_template(); ?>
</div>
<?php include (TEMPLATEPATH . '/bottom_right.php'); ?>
<div class="clear"></div>
<div id="categories">
<h3>Browse by Category</h3>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=0'); ?>
</ul>
</div>
</div>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<div id="archived_posts">
<?php query_posts('showposts=5'); ?>
<?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>
<div class="archived_posts_date">
<?php the_time('F jS Y') ?><br />
Tags: <?php the_category(', ') ?>
<?php comments_popup_link('No Comments', 'One Comment', '% Comments'); ?>
</div>
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h3>
<div class="archived_entry">
<?php the_content_rss('', TRUE, '', 50); ?>
</div>
<div class="clear"></div>
<?php endif; endwhile; ?>
</div>
\ No newline at end of file
<div class="archived_right">
<div class="archived_sub_right">
<h3>Search</h3>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
<div class="archived_sub_right">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<?php endif; ?>
</div>
</div>
\ No newline at end of file
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.<p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<div id="comments_title" class="clearfix">
<h3 id="comments">Activity</h3>
<div id="comment_meta"><?php comments_number('No comments', 'One comment', '% total comments' );?>, <a href="#respond">leave your comment</a> or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a>.</div>
</div>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type() == "comment"){ ?>
<li class="<?php if ($comment->comment_author_email == "admin@domain.com") echo 'author'; else echo $oddcomment; ?> item" id="comment-<?php comment_ID() ?>">
<div class="comment_credentials">
<span class="author_highlight"><?php comment_author_link() ?></span><br />
<a href="#comment-<?php comment_ID() ?>" title="Comment Permalink"><?php comment_date('M jS Y') ?></a>
<?php edit_comment_link('Moderate','<br />',''); ?>
</div>
<div class="comment_text">
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<?php comment_text() ?>
</div>
<div class="clear"></div>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php } ?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<a name="showpings"></a>
<ol class="pingslist">
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type() != "comment"){ ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<a name="showpings"></a>
<div class="comment_credentials">
<?php the_time('F jS Y') ?><br />
<?php edit_comment_link('Moderate','',''); ?>
</div>
<div class="comment_text">
<p><?php comment_author_link() ?></p>
</div>
<div class="clear"></div>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php } ?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<div id="comments_title" class="clearfix">
<h3 id="comments">Activity</h3>
<div id="comment_meta"><?php comments_number('No comments', 'One comment', '% total comments' );?>, <a href="#respond">leave your comment</a> or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a>.</div>
</div>
<?php else : // comments are closed ?>
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<br />
<h3 id="respond">Leave a Reply</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out">Logout &raquo;</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Mail <?php if ($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"><?php if (function_exists('quoter_comment_server')) { quoter_comment_server(); } ?></textarea></p>
<p><input name="submit" type="image" src="<?php bloginfo('template_directory'); ?>/images/submit-btn.gif" alt="Submit" id="submit" tabindex="5" value="Submit" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<br />
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
\ No newline at end of file
<div id="footer_wrapper">
<div id="footer_inner" class="clearfix">
<div class="footer_desc">
<?php bloginfo('name'); ?> and all content &amp; imagery &copy; 2006 unless otherwise noted.<br />Design &amp; layout may not be reused without permission. Design &amp; presentation by <a href="http://5thirtyone.com/archives/703" title="Derek Punsalan">Derek Punsalan</a>, optimized by <a href="http://pronetadvertising.com" title="Pronet Advertising">Pronet Advertising</a>.
</div>
</div>
</div>
<?php wp_footer(); ?>
<!-- Design by Derek Punsalan - http://5thirtyone.com - For Syl -->
</div>
</body>
</html>
\ No newline at end of file
<?php
if ( function_exists('register_sidebar') )
register_sidebars((2),array(
'before_widget' => '<div class="sidebar_widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
/*
File Name: Wordpress Theme Toolkit
Version: 1.0
Author: Ozh
Author URI: http://planetOzh.com/
*/
/************************************************************************************
* THEME USERS : don't touch anything !! Or don't ask the theme author for support :)
************************************************************************************/
include(dirname(__FILE__).'/themetoolkit.php');
/************************************************************************************
* THEME AUTHOR : edit the following function call :
************************************************************************************/
themetoolkit(
'OctoberSpecial', /* Make yourself at home :
* Name of the variable that will contain all the options of
* your theme admin menu (in the form of an array)
* Name it according to PHP naming rules (http://php.net/variables) */
array( /* Variables used by your theme features (i.e. things the end user will
* want to customize through the admin menu)
* Syntax :
* 'option_variable' => 'Option Title ## optionnal explanations',
* 'option_variable' => 'Option Title {radio|value1|Text1|value2|Text2} ## optionnal explanations',
* 'option_variable' => 'Option Title {textarea|rows|cols} ## optionnal explanations',
* 'option_variable' => 'Option Title {checkbox|option_varname1|value1|Text1|option_varname2|value2|Text2} ## optionnal explanations',
* Examples :
* 'your_age' => 'Your Age',
* 'cc_number' => 'Credit Card Number ## I can swear I will not misuse it :P',
* 'gender' => 'Gender {radio|girl|You are a female|boy|You are a male} ## What is your gender ?'
* Dont forget the comma at the end of each line ! */
'scheme' => 'Color Scheme {radio|blue|Blue|pink|Pink|green|Green|brown|Brown|red|Red|orange|Orange} ## Select the color scheme visible to readers.',
'debug' => 'debug', /* this is a fake entry that will activate the "Programmer's Corner"
* showing you vars and values while you build your theme. Remove it
* when your theme is ready for shipping */
),
__FILE__ /* Parent. DO NOT MODIFY THIS LINE !
* This is used to check which file (and thus theme) is calling
* the function (useful when another theme with a Theme Toolkit
* was installed before */
);
/************************************************************************************
* THEME AUTHOR : Congratulations ! The hard work is all done now :)
*
* From now on, you can create functions for your theme that will use the array
* of variables $mytheme->option. For example there will be now a variable
* $mytheme->option['your_age'] with value as set by theme end-user in the admin menu.
************************************************************************************/
/***************************************
* Additionnal Features and Functions
*
* Create your own functions using the array
* of user defined variables $mytheme->option.
*
**************************************/
/* mytheme_scheme()
* Prints css style according to what has been defined in the admin pannel
*/
function getColorScheme() {
global $OctoberSpecial;
$default = "1";
$tempVar = $OctoberSpecial->option['scheme'];
echo $tempVar;
}
?>
\ No newline at end of file
<!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">
<head profile="http://gmpg.org/xfn/11">
<title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) {
single_cat_title(); echo " - "; bloginfo('name');
} elseif (is_single() || is_page() ) {
single_post_title();
} elseif (is_search() ) {
bloginfo('name'); echo " search results: "; echo wp_specialchars($s);
} else { wp_title('',true); }
?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link href="<?php bloginfo('template_url'); ?>/switch.css" type="text/css" rel="stylesheet" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body class="<?php echo getColorScheme(); ?>">
<div id="main_wrapper">
<div id="header_wrapper">
<div id="nav_wrapper" class="clearfix">
<ul id="navigation">
<li><a href="/">Home</a></li>
<li><a href="/">Colophon</a></li>
<li><a href="#categories">Archives</a></li>
<li class="right"><a href="#bottom_wrapper">Search</a></li>
</ul>
</div>
</div>
<div id="bca_wrapper">
<div id="bca_inner" class="clearfix">
<div class="bca_border">
<div class="bca_title">
<h3><?php bloginfo('name'); ?></h3>
</div>
<div class="bca_desc">“I like nonsense, it wakes up the brain cells. Fantasy is a necessary ingredient in living, it’s a way of looking at life through the wrong end of a telescope. Which is what I do, and that enables you to laugh at life’s realities.” - <em>Dr. Seuss</em>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php get_header(); ?>
<div id="content_wrapper">
<div id="content_inner" class="clearfix">
<div class="content_left">
<?php $top_query = new WP_Query('showposts=1'); ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="post_date">
<?php the_time('M jS Y') ?><br />
Tags: <?php the_category(', ') ?>
<div class="extra_status">
<?php comments_popup_link('No Comments', 'One Comment', '% Comments'); ?>
</div>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content('[...]'); ?>
</div>
<div class="clear"></div>
</div>
<?php endwhile; ?>
</div>
<div class="content_right">
<?php include (TEMPLATEPATH . '/main_right.php'); ?>
</div>
</div>
</div>
<div id="bottom_wrapper">
<div id="bottom_inner" class="clearfix">
<div class="bottom_left">
<div id="archived_posts">
<?php query_posts('showposts=6'); ?>
<?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>
<div class="archived_posts_date">
<?php the_time('F jS Y') ?><br />
Tags: <?php the_category(', ') ?><br /><br />
<?php comments_popup_link('No Comments', 'One Comment', '% Comments'); ?>
</div>
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h3>
<div class="archived_entry">
<?php the_content_rss('', FALSE, '', 50); ?>
</div>
<div class="clear"></div>
<?php endif; endwhile; ?>
<br />
</div>
</div>
<?php include (TEMPLATEPATH . '/bottom_right.php'); ?>
<div class="clear"></div>
<div id="categories">
<h3>Browse by Category</h3>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=0'); ?>
</ul>
</div>
</div>
</div>
<?php get_footer(); ?>
\ No newline at end of file
wp-content/themes/seo_october_special/octoberspecial/images/9rules.gif

1.6 KiB

wp-content/themes/seo_october_special/octoberspecial/images/a-bca.gif

195 B

wp-content/themes/seo_october_special/octoberspecial/images/a-entry.gif

195 B

wp-content/themes/seo_october_special/octoberspecial/images/archived-wrapper.gif

546 B

wp-content/themes/seo_october_special/octoberspecial/images/author.gif

543 B

wp-content/themes/seo_october_special/octoberspecial/images/content-wrapper.gif

554 B

wp-content/themes/seo_october_special/octoberspecial/images/diag-dark.gif

50 B

wp-content/themes/seo_october_special/octoberspecial/images/pink-content-wrapper.gif

443 B

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