OK, this is my first theme for WordPress 1.5 (previously 1.3) so please be gentle.
Partially engineered from Kubrick, much code and all design by Matthew.
You need WordPress 1.3/1.5 for this theme to work, when installed if you dont have a 'themes' folder within 'wp-content' then create one. Next drop the 'mallow' folder into this new 'themes' folder. Now log in to your Wordpress install and click the 'Presentation' tab. Near the bottom you should see 'mallow', simply activate it.
Open and alter the images at your will. Theres also an admin and noted user 'feature' for comments. It will by default highlight the admins comments (uses the email address in 'Options-General') and you can also add 'noted' which will be slightly less highlighted than admin comments. Within the comments.php file, look at this bit;
<?php foreach ($comments as $comment) :
$commentnumber = ($commentnumber + 1);
$normal = true;
$isNoted = false;
$isByAuthor = false;
$admin_email = get_settings("admin_email");
if($comment->comment_author_email == $admin_email) {
$isByAuthor = true;
$normal = false;
}
if($comment->comment_author_email == 'noted1@noted.com') {
$isNoted = true;
$normal = false;
}
if($comment->comment_author_email == 'noted2@noted.com') {
$isNoted = true;
$normal = false;
}
?>
Changed 'noted1@noted.com' and 'noted2@noted.com' to
email addresses whose comments you which to be highlighted. Too add address,
take these lines
if($comment->comment_author_email == 'noted2@noted.com') {
$isNoted = true;
$normal = false;
}
...and copy and paste them below themselves... hopefully that makes sense. Then change the address to the new noted address.
To highlight an area in a post use:
<div class="highlight">Some text here</div>
None-too-definitive changelog.
1.59, 22-6-7 - Nominal update for possible WP2.2 compatibility - adding <?php wp_footer(); ?> to footer.php.
1.58, 27-3-5 - As per Chris' suggestion, the tabs should render correctly in IE now:#supernavcontainer
{
font-family: ÒLucida GrandeÓ, Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
float: left;
margin-left: 13px;
margin-top: 123px;
text-align: left;
padding: 3px 8px 2px 8px;
} /* top title nav */Õ
#supernav a {
text-decoration: none;
padding: 3px 8px 5px 8px;
} /* top title tabs */
#supernav a:hover {
text-decoration: none;
padding: 3px 8px 2px 8px;
} /* top title tabs hover */
I have also tweaked the Category and Link call on the sidebar so that categories now show subcategories and links show pictures. I cant find how you set the Link call to show the different link categories.
1.57, 18-3-5 - Still more IE archive fun, around line 431 body#home .meta, body#archives .meta {
width:530px;
padding-top: 5px;
}
and then added underneath it
body#archives .entry { width:530px; }
1.56, 17-3-5 - Fixed (hopefully) a problem with the serach page for Windows IE where it squashed posts. Changed line 310-311 to this body#home .storycontent, body#archives .storycontent {
width: 530px; }
1.55, 5-3-5 - Fixed some bits I missed for validation so its not really necessary to update.
In single.php I changed the second id="content" to id="commentcontent" and updated the style.css here body#single #content, #commentcontent {
padding-bottom: 10px;
width: 650px;
margin-right: auto;
margin-left: auto;
}
Also in comments.php Ive changed the line here < textarea name="comment" id="comment" cols="80%" rows="10" tabindex="4"> note that that id was commentform but is now comment. Sorry if this breaks any antispam plugins but this is as per the default WP theme.
Ive also found some odd behaviour with the comment form as Id altered it (sort of a combination of Mallow and the default WP theme) so I have taken the comment form lock-stock from default and dropped it into Mallow.
1.54, 18-2-5 - The comment form (Name, Mail and Website parts) are now set up as per the default WP 1.5 theme (Kubrick). Ive have set some CSS which should prevent images which are too wide from going over the sidebar, as per usual this is adapted from Kubrick.
1.531, 13-2-5 - I noticed that the background image in #topimage was best aligned center top.
1.53, 5-2-5 - As suggested by Brendan Borlase
In the style.css file, about 75% of the way down, there is a style setting for the comment form. It currently looks like this:This is now fixed.
#commentform #name, #commentform #email, #commentform #url, #commentform textarea {
It _should_ look like this:
#commentform #author, #commentform #email, #commentform #url, #commentform textarea {
As the php comment form refers to the comment poster by "author" rather than by "name".
1.52, 22-1-5 - Changed font colours from lightgray and dimgray to HEX equivalents as suggested by Mikkel Tscherning, this should ensure the CSS validates.
1.51, 10-1-5 - Minor update, fixed an issue with comments/pings being closed after comments are posted. Also tidied that part up a bit.
1.5, 9-1-5 - Changed position of comment count for the posts on pages of multiple posts (IE home page) - hat tip to Michael and his Freya design, sorry but it just works so I thought id acquire it. Also, the use of a coloured background to separate comments owes more than a passing handshake to Freya. Refined the comments page, track/pingback title doesnt appear if there arent any. Tweaked h1, h2, h3 and h4 CSS. Added comments to CSS. Separated h1 for blog title in bar from other h1s, its now '#blogtitle h1'. Changed size/weight of storytitle. The main nav tabs text are now defined as pixels rather than % to try to prevent some oddities. Marked up HTML better and tweaked the 2 static templates slightly (the no sidebar one had a couple of divs left open). Created myfunctions.php to hold anymorepages() and comments_popup_link_title() which is a tweak of the default comments_popup_link() function but adds a titletag which you can pass as the final variable.
1.12, 5-1-5 - As suggested by h0bbel Ive changed the spam form id from 'comment' to 'commentform', this should fix any problems anyone may have with SpamKarma. Altered Kubrick credit. It is there, honest.
1.11, 2-1-5 - As suggested by Robert Ive changed highlight to a class, so please update any posts from id="highlight" to class="highlight".
1.1, 31-12-4 - Definitely worthy of v1.1 I think (infact probably overdue). I have fixed the problem in IE with story titles and meta after the first post having the line cut short so they run on multiple lines. I think it was some kind of stupid IE CSS thing as I have had to reset them back to pixel widths, percentage just didnt work.
1.09, 29-12-4 - Separated track/pingbacks from comments thanks to code sent by Joen.
1.08, 24-12-4 - More CSS tweakage - mainly calendar. Images aligned left or right in posts with text SHOULDNT funk the remaining posts up.
1.07, 21-12-4 - Tweaked CSS, changed some widths from px to %.
1.06, 21-12-4 - Added calendar.
1.05, 17-12-4 - Changed comment count code as per mathias.
1.04, 17-12-4 - Added a nice little feature, in a post put
<div class="highlight">Some text here</div>And itll be nicely highlighted. For more information, here is where I got the idea, and you can also see the pros and conns of class v id.
1.03, 17-12-4 - Fixed slight boo boo with the prev/next nav on the search page.
1.02, 14-12-4 - Further minor CSS amends (blockquotes and more) and yet more tweaking of the footer text. And errr, oops - forgot to remove plugin function calls from search page.
1.01, 12-12-4 - Upped version to 1 then 1.01 for minor amends. Added static page templates both with and without sidebar and removed admin from sidebar as its on the footer. Also fixed error when trying to access non-existent posts. Moved "anymorepages" function to header.php. Created an "other colours" CSS section to make colour amends easier and tidied CSS somewhat. Added initial idea for a main nav.
beta 2, 11-12-4 - Fixed issue with gap at the top of the posts if there is not more than one page of posts (ie no nav links). Tweaked a few bits of CSS. Minor amends really, but I think the version number should probably be atleast V1 as its not technically beta, oh well next version.
beta 1, 7-12-4 - Initial release.
That should be all I think
Matthew.