Merge lp:~alourie/ubuntu-qa-website/fix_bug__wp-theme_663124 into lp:~ubuntu-qa-website-devel/ubuntu-qa-website/trunk

Proposed by Alex Lourie
Status: Rejected
Rejected by: Nicholas Skaggs
Proposed branch: lp:~alourie/ubuntu-qa-website/fix_bug__wp-theme_663124
Merge into: lp:~ubuntu-qa-website-devel/ubuntu-qa-website/trunk
Diff against target: 2315 lines (+2176/-0)
18 files modified
404.php (+22/-0)
archive.php (+64/-0)
comments-popup.php (+124/-0)
comments.php (+104/-0)
footer.php (+24/-0)
functions.php (+211/-0)
header.php (+59/-0)
ie.css (+5/-0)
image.php (+61/-0)
images/header-img.php (+82/-0)
index.php (+45/-0)
page.php (+21/-0)
rtl.css (+127/-0)
search.php (+44/-0)
sidebar.php (+70/-0)
single.php (+35/-0)
style.css (+1010/-0)
theme.js (+68/-0)
To merge this branch: bzr merge lp:~alourie/ubuntu-qa-website/fix_bug__wp-theme_663124
Reviewer Review Type Date Requested Status
Ara Pulido (community) Disapprove
Review via email: mp+38811@code.launchpad.net

Description of the change

Fix in the theme branch that turns off the comments form. Fixed bug 663124

To post a comment you must log in.
Revision history for this message
Ara Pulido (ara) wrote :

Please, resubmit your merge proposal against lp:~ubuntu-qa-website-devel/ubuntu-qa-website/wp-theme

review: Disapprove

Unmerged revisions

287. By Alex Lourie

Removing comments under static pages

286. By Ara Pulido

Avoid showing the pages on the sidebar

285. By Ara Pulido

Include some Ubuntu QA information on top of the latest news

284. By Ara Pulido

Show the complete posts in the index page

283. By Ara Pulido

Avoid showing the title and description in the header image

282. By Richard Henry Lee

Merge: lhp

281. By Richard Henry Lee

Merge: jq

280. By Richard Henry Lee

Header image

279. By Richard Henry Lee

Header image

278. By Richard Henry Lee

Search box effects

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '404.php'
2--- 404.php 1970-01-01 00:00:00 +0000
3+++ 404.php 2010-10-19 08:49:44 +0000
4@@ -0,0 +1,22 @@
5+<?php
6+/**
7+ * @package WordPress
8+ * @subpackage Default_Theme
9+ */
10+
11+get_header(); ?>
12+<div id="page-404" class="post">
13+ <div id="bubbles">
14+ ...otherwise<br />
15+ known as<br />
16+ 404
17+ </div>
18+ <h2>But don’t panic. Here’s what you can do:</h2>
19+ <ul>
20+ <li><a href="<?php echo get_option('home'); ?>"><span>-</span>Return to the blog home page</a></li>
21+ <li><span>-</span>Use the menu on the right to browse blog archives</li>
22+ <li><span>-</span>Use the search box above to find posts</li>
23+ </ul>
24+ <div class="killDiv"></div>
25+</div>
26+<?php get_footer(); ?>
27
28=== added file 'archive.php'
29--- archive.php 1970-01-01 00:00:00 +0000
30+++ archive.php 2010-10-19 08:49:44 +0000
31@@ -0,0 +1,64 @@
32+<?php
33+/**
34+ * @package WordPress
35+ * @subpackage Default_Theme
36+ */
37+
38+get_header();
39+?>
40+<?php if (have_posts()) : ?>
41+ <div class="archiveStartEnd">
42+ <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
43+ <?php /* If this is a category archive */ if (is_category()) { ?>
44+ <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
45+ <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
46+ <h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
47+ <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
48+ <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
49+ <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
50+ <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
51+ <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
52+ <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
53+ <?php /* If this is an author archive */ } elseif (is_author()) { ?>
54+ <h2 class="pagetitle">Author Archive</h2>
55+ <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
56+ <h2 class="pagetitle">Blog Archives</h2>
57+ <?php } ?>
58+
59+ <div class="archiveOlder">
60+ <?php next_posts_link('&laquo; Older Entries') ?>
61+ </div>
62+ <div class="archiveNew">
63+ <?php previous_posts_link('Newer Entries &raquo;') ?>
64+ </div>
65+ <div class="killDiv"></div>
66+ </div>
67+
68+ <?php while (have_posts()) : the_post();
69+ render_post(true);
70+ endwhile; ?>
71+
72+ <div class="archiveStartEnd archiveEnd">
73+ <div class="archiveOlder">
74+ <?php next_posts_link('&laquo; Older Entries') ?>
75+ </div>
76+ <div class="archiveNew">
77+ <?php previous_posts_link('Newer Entries &raquo;') ?>
78+ </div>
79+ <div class="killDiv"></div>
80+ </div>
81+ <?php else :
82+ if ( is_category() ) { // If this is a category archive
83+ printf("<h2 class='pagetitle center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
84+ } else if ( is_date() ) { // If this is a date archive
85+ echo("<h2 class='pagetitle center'>Sorry, but there aren't any posts with this date.</h2>");
86+ } else if ( is_author() ) { // If this is a category archive
87+ $userdata = get_userdatabylogin(get_query_var('author_name'));
88+ printf("<h2 class='pagetitle center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
89+ } else {
90+ echo("<h2 class='pagetitle center'>No posts found.</h2>");
91+ }
92+ get_search_form();
93+endif;
94+?>
95+<?php get_footer(); ?>
96
97=== added file 'comments-popup.php'
98--- comments-popup.php 1970-01-01 00:00:00 +0000
99+++ comments-popup.php 2010-10-19 08:49:44 +0000
100@@ -0,0 +1,124 @@
101+<?php
102+/**
103+ * @package WordPress
104+ * @subpackage Default_Theme
105+ */
106+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
107+<html xmlns="http://www.w3.org/1999/xhtml">
108+<head>
109+ <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
110+
111+ <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
112+ <style type="text/css" media="screen">
113+ @import url( <?php bloginfo('stylesheet_url'); ?> );
114+ body { margin: 3px; }
115+ </style>
116+
117+</head>
118+<body id="commentspopup">
119+
120+<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
121+
122+<?php
123+/* Don't remove these lines. */
124+add_filter('comment_text', 'popuplinks');
125+if ( have_posts() ) :
126+while ( have_posts() ) : the_post();
127+?>
128+<h2 id="comments">Comments</h2>
129+
130+<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
131+
132+<?php if ( pings_open() ) { ?>
133+<p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
134+<?php } ?>
135+
136+<?php
137+// this line is WordPress' motor, do not delete it.
138+$commenter = wp_get_current_commenter();
139+extract($commenter);
140+$comments = get_approved_comments($id);
141+$post = get_post($id);
142+if ( post_password_required($post) ) { // and it doesn't match the cookie
143+ echo(get_the_password_form());
144+} else { ?>
145+
146+<?php if ($comments) { ?>
147+<ol id="commentlist">
148+<?php foreach ($comments as $comment) { ?>
149+ <li id="comment-<?php comment_ID() ?>">
150+ <?php comment_text() ?>
151+ <p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
152+ </li>
153+
154+<?php } // end for each comment ?>
155+</ol>
156+<?php } else { // this is displayed if there are no comments so far ?>
157+ <p>No comments yet.</p>
158+<?php } ?>
159+
160+<?php if ( comments_open() ) { ?>
161+<h2>Leave a comment</h2>
162+<p>Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
163+
164+<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
165+<?php if ( $user_ID ) : ?>
166+ <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
167+<?php else : ?>
168+ <p>
169+ <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" />
170+ <label for="author">Name</label>
171+ </p>
172+
173+ <p>
174+ <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" />
175+ <label for="email">E-mail</label>
176+ </p>
177+
178+ <p>
179+ <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" />
180+ <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label>
181+ </p>
182+<?php endif; ?>
183+
184+ <p>
185+ <label for="comment">Your Comment</label>
186+ <br />
187+ <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
188+ </p>
189+
190+ <p>
191+ <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
192+ <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
193+ <input name="submit" type="submit" tabindex="5" value="Say It!" />
194+ </p>
195+ <?php do_action('comment_form', $post->ID); ?>
196+</form>
197+<?php } else { // comments are closed ?>
198+<p>Sorry, the comment form is closed at this time.</p>
199+<?php }
200+} // end password check
201+?>
202+
203+<div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>
204+
205+<?php // if you delete this the sky will fall on your head
206+endwhile; //endwhile have_posts()
207+else: //have_posts()
208+?>
209+<p>Sorry, no posts matched your criteria.</p>
210+<?php endif; ?>
211+<!-- // this is just the end of the motor - don't touch that line either :) -->
212+<?php //} ?>
213+<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
214+<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
215+<script type="text/javascript">
216+<!--
217+document.onkeypress = function esc(e) {
218+ if(typeof(e) == "undefined") { e=event; }
219+ if (e.keyCode == 27) { self.close(); }
220+}
221+// -->
222+</script>
223+</body>
224+</html>
225
226=== added file 'comments.php'
227--- comments.php 1970-01-01 00:00:00 +0000
228+++ comments.php 2010-10-19 08:49:44 +0000
229@@ -0,0 +1,104 @@
230+<?php
231+/**
232+ * @package WordPress
233+ * @subpackage Default_Theme
234+ */
235+
236+// Do not delete these lines
237+ if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
238+ die ('Please do not load this page directly. Thanks!');
239+
240+ if ( post_password_required() ) { ?>
241+ <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
242+ <?php
243+ return;
244+ }
245+?>
246+
247+<!-- You can start editing here. -->
248+
249+<?php if ( have_comments() ) : ?>
250+ <div id="comments">
251+ <h3>
252+ <?php comments_number('No Responses', 'One Response', '% Responses' );?>
253+ <div id="commentsTab">hide comments</div>
254+ </h3>
255+ <div class="commentsNav">
256+ <div class="commentsPrev">
257+ <?php previous_comments_link() ?>
258+ </div>
259+ <div class="commentsNext">
260+ <?php next_comments_link() ?>
261+ </div>
262+ </div>
263+ <div id="commentList">
264+ <?php wp_list_comments('type=comment&callback=render_comment'); ?>
265+ </div>
266+ <div class="commentsNav">
267+ <div class="commentsPrev">
268+ <?php previous_comments_link() ?>
269+ </div>
270+ <div class="commentsNext">
271+ <?php next_comments_link() ?>
272+ </div>
273+ </div>
274+ </div>
275+<?php else : // this is displayed if there are no comments so far ?>
276+ <?php if ( comments_open() ) : ?>
277+ <!-- If comments are open, but there are no comments. -->
278+
279+ <?php else : // comments are closed ?>
280+ <!-- If comments are closed. -->
281+
282+ <?php endif; ?>
283+<?php endif; ?>
284+
285+
286+<?php if ( comments_open() ) : ?>
287+
288+ <div id="respond">
289+
290+ <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
291+
292+ <div class="cancel-comment-reply">
293+ <small><?php cancel_comment_reply_link(); ?></small>
294+ </div>
295+
296+ <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
297+ <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
298+ <?php else : ?>
299+
300+ <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
301+
302+ <?php if ( is_user_logged_in() ) : ?>
303+
304+ <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
305+
306+ <?php else : ?>
307+
308+ <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> class="textField" />
309+ <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
310+
311+ <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> class="textField" />
312+ <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
313+
314+ <p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" class="textField" />
315+ <label for="url"><small>Website</small></label></p>
316+
317+ <?php endif; ?>
318+
319+ <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
320+
321+ <p><textarea name="comment" id="comment" class="textArea"cols="58" rows="10" tabindex="4"></textarea></p>
322+
323+ <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
324+ <?php comment_id_fields(); ?>
325+ </p>
326+ <?php do_action('comment_form', $post->ID); ?>
327+
328+ </form>
329+
330+ <?php endif; // If registration required and not logged in ?>
331+ </div>
332+
333+<?php endif; // if you delete this the sky will fall on your head ?>
334
335=== added file 'footer.php'
336--- footer.php 1970-01-01 00:00:00 +0000
337+++ footer.php 2010-10-19 08:49:44 +0000
338@@ -0,0 +1,24 @@
339+<?php
340+/**
341+ * @package WordPress
342+ * @subpackage Default_Theme
343+ */
344+?>
345+ </div>
346+</div>
347+
348+<?php get_sidebar(); ?>
349+<div class="killDiv"></div>
350+
351+</div>
352+
353+<div id="footer">
354+ <div id="disclaimer">
355+ &copy; 2010 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.
356+ </div>
357+ <a href="http://www.canonical.com/"><img src="<?php bloginfo('template_url'); ?>/images/footer_logo.png" /></a>
358+</div>
359+
360+<?php wp_footer(); ?>
361+</body>
362+</html>
363
364=== added file 'functions.php'
365--- functions.php 1970-01-01 00:00:00 +0000
366+++ functions.php 2010-10-19 08:49:44 +0000
367@@ -0,0 +1,211 @@
368+<?php
369+/**
370+ * @package WordPress
371+ * @subpackage Default_Theme
372+ */
373+
374+$content_width = 450;
375+
376+automatic_feed_links();
377+
378+if ( function_exists('register_sidebar') ) {
379+ register_sidebar(array(
380+ 'before_widget' => '<li id="%1$s" class="widget %2$s">',
381+ 'after_widget' => '</li>',
382+ 'before_title' => '<h2 class="widgettitle">',
383+ 'after_title' => '</h2>',
384+ ));
385+}
386+
387+
388+// Remove permalinks to syndicated blog posts
389+
390+remove_filter('post_link', 'syndication_permalink',1);
391+
392+
393+// User Defined: Custom Header Image
394+
395+define('HEADER_TEXTCOLOR', '');
396+define('HEADER_IMAGE', '%s/images/header.jpg'); // %s is the template dir uri
397+define('HEADER_IMAGE_WIDTH', 976); // use width and height appropriate for your theme
398+define('HEADER_IMAGE_HEIGHT', 428);
399+
400+define('NO_HEADER_TEXT', true );
401+
402+// gets included in the site header
403+function header_style() {
404+ ?><style type="text/css">
405+ #wrapper {
406+ background: url(<?php header_image(); ?>) no-repeat #dfdcd9;
407+ }
408+ </style><?php
409+}
410+
411+function admin_header_style() {
412+ ?><style type="text/css">
413+ #headimg {
414+ width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
415+ height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
416+ }
417+ </style><?php
418+}
419+
420+add_custom_image_header('header_style', 'admin_header_style');
421+
422+
423+// Category walker
424+
425+class Custom_Walker_Category extends Walker_Category {
426+ /**
427+ * @see Walker::start_el()
428+ * @since 2.1.0
429+ *
430+ * @param string $output Passed by reference. Used to append additional content.
431+ * @param object $category Category data object.
432+ * @param int $depth Depth of category in reference to parents.
433+ * @param array $args
434+ */
435+ function start_el(&$output, $category, $depth, $args) {
436+ extract($args);
437+
438+ $cat_name = esc_attr( $category->name);
439+ $cat_name = apply_filters( 'list_cats', $cat_name, $category );
440+ $link = '<a href="' . get_category_link( $category->term_id ) . '" ';
441+ if ( $use_desc_for_title == 0 || empty($category->description) )
442+ $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
443+ else
444+ $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
445+ $link .= '>';
446+ $link .= $cat_name . '</a>';
447+
448+ if ( (! empty($feed_image)) || (! empty($feed)) ) {
449+ $link .= ' ';
450+
451+ if ( empty($feed_image) )
452+ $link .= '(';
453+
454+ $link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"';
455+
456+ if ( empty($feed) )
457+ $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"';
458+ else {
459+ $title = ' title="' . $feed . '"';
460+ $alt = ' alt="' . $feed . '"';
461+ $name = $feed;
462+ $link .= $title;
463+ }
464+
465+ $link .= '>';
466+
467+ if ( empty($feed_image) )
468+ $link .= $name;
469+ else
470+ $link .= "<img src='$feed_image'$alt$title" . ' />';
471+ $link .= '</a>';
472+ if ( empty($feed_image) )
473+ $link .= ')';
474+ }
475+
476+ if ( isset($show_count) && $show_count )
477+ $link .= '<span>' . intval($category->count) . '</span>';
478+
479+ if ( isset($show_date) && $show_date ) {
480+ $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
481+ }
482+
483+ if ( isset($current_category) && $current_category )
484+ $_current_category = get_category( $current_category );
485+
486+ if ( 'list' == $args['style'] ) {
487+ $output .= "\t<li";
488+ $class = 'cat-item cat-item-'.$category->term_id;
489+ if ( isset($current_category) && $current_category && ($category->term_id == $current_category) )
490+ $class .= ' current-cat';
491+ elseif ( isset($_current_category) && $_current_category && ($category->term_id == $_current_category->parent) )
492+ $class .= ' current-cat-parent';
493+ $output .= ' class="'.$class.'"';
494+ $output .= ">$link\n";
495+ } else {
496+ $output .= "\t$link<br />\n";
497+ }
498+ }
499+}
500+
501+
502+// Reusable post method
503+
504+function render_post($full = true)
505+{
506+ ?>
507+ <div <?php post_class() ?> id="<?php the_ID(); ?>">
508+ <div class="authorTab">
509+ <?php the_author() ?>
510+ </div>
511+ <div class="postHeader">
512+ <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
513+ <div class="postInfo">
514+ <p>
515+ <span><?php the_time('F jS, Y') ?></span>
516+ by <?php the_author() ?>
517+ </p>
518+ </div>
519+ <div class="killDiv"></div>
520+ </div>
521+ <div class="postContent">
522+ <?php
523+ if($full):
524+ the_content();
525+ else:
526+ $images = get_posts(array(
527+ 'post_parent' => get_the_ID(),
528+ 'post_type' => 'attachment',
529+ 'numberposts' => 1
530+ ));
531+ if($images)
532+ echo wp_get_attachment_image($images[0]->ID);
533+ the_excerpt();
534+ ?>
535+ <p>
536+ <a class="readMore" href="<?php the_permalink() ?>">Read more</a>
537+ </p>
538+ <?php
539+ endif;
540+ ?>
541+ <div class="postContentSpacer"></div>
542+ <div class="killDiv"></div>
543+ </div>
544+ </div>
545+ <?php
546+}
547+
548+
549+// Custom comment renderer
550+
551+function render_comment($comment, $args, $depth)
552+{
553+ $GLOBALS['comment'] = $comment;
554+
555+ $comment_date=date_parse($comment->comment_date);
556+ ?>
557+ <div <?php comment_class('uid-'.$comment->user_id); ?> id="comment-<?php comment_ID() ?>">
558+ <div class="commentHeader">
559+ <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf('%02d.%02d.%d',$comment_date['day'],$comment_date['month'],$comment_date['year']-2000); ?></a> <?php comment_author_link(); ?> wrote,
560+ </div>
561+ <div class="commentAvatar">
562+ <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?>
563+ </div>
564+ <div class="commentText">
565+ <?php comment_text(); ?>
566+ <p class="commentActions">
567+ <?php edit_comment_link(__('(Edit)'),'',' | ') ?><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
568+ </p>
569+ </div>
570+ </div>
571+ <?php if ($comment->comment_approved == '0') : ?>
572+ <?php _e('Your comment is awaiting moderation.') ?>
573+ <?php endif; ?>
574+ <?php
575+}
576+
577+
578+?>
579
580=== added file 'header.php'
581--- header.php 1970-01-01 00:00:00 +0000
582+++ header.php 2010-10-19 08:49:44 +0000
583@@ -0,0 +1,59 @@
584+<?php
585+/**
586+ * @package WordPress
587+ * @subpackage Default_Theme
588+ */
589+?>
590+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
591+<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
592+<head profile="http://gmpg.org/xfn/11">
593+<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
594+<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
595+<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
596+<!--[if IE]>
597+ <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie.css" type="text/css" media="screen" />
598+<![endif]-->
599+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
600+<style type="text/css" media="screen">
601+<?php
602+// Checks to see whether it needs a sidebar or not
603+if ( empty($withcomments) && !is_single() ) {
604+?>
605+ //#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
606+<?php } else { // No sidebar ?>
607+ //#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
608+<?php } ?>
609+</style>
610+<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
611+<?php wp_head(); ?>
612+
613+<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
614+<script src="<?php bloginfo('template_directory')?>/theme.js" type="text/javascript" charset="utf-8"></script>
615+</head>
616+<body <?php body_class(); ?>>
617+<div id="wrapper">
618+<div id="header">
619+ <ul id="navbar">
620+ <li><a href="/">Home</a></li>
621+ <?php
622+ global $top_level_pages;
623+ $top_level_pages=get_pages(array('parent'=>0,' sort_column'=>'menu_order'));
624+ foreach($top_level_pages as $page)
625+ echo '<li><a href="'.get_permalink($page->ID).'">'.$page->post_title.'</a></li>';
626+ ?>
627+ <li id="lastItem">&nbsp;</li>
628+ </ul>
629+ <a id="ubuntuLink" href="/">
630+ <img id="topLogo" src="<?php bloginfo('stylesheet_directory'); ?>/images/header_logo.png" />
631+ </a>
632+ <form id="searchBar" role="search" method="get" id="searchform" action="<?php echo get_option('home');?>">
633+ <input class="textField" type="text" id="s" name="s" value="Search" onfocus="javascript:searchOnFocus(this);" />
634+ <input id="searchButton" type="image"
635+ src="<?php bloginfo('stylesheet_directory'); ?>/images/search_button.png"
636+ onmouseover="this.src='<?php bloginfo('stylesheet_directory'); ?>/images/search_button_rollover.png'"
637+ onmouseout="this.src='<?php bloginfo('stylesheet_directory'); ?>/images/search_button.png'" />
638+ </form>
639+</div>
640+<div id="transitionDots"></div>
641+<div id="middle">
642+<div id="main">
643
644=== added file 'ie.css'
645--- ie.css 1970-01-01 00:00:00 +0000
646+++ ie.css 2010-10-19 08:49:44 +0000
647@@ -0,0 +1,5 @@
648+.post .authorTab
649+{
650+ left:624px;
651+ top:16px;
652+}
653
654=== added file 'image.php'
655--- image.php 1970-01-01 00:00:00 +0000
656+++ image.php 2010-10-19 08:49:44 +0000
657@@ -0,0 +1,61 @@
658+<?php
659+/**
660+ * @package WordPress
661+ * @subpackage Default_Theme
662+ */
663+
664+get_header();
665+?>
666+<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
667+ <div class="post imageView" id="<?php the_ID(); ?>">
668+ <div class="postHeader">
669+ <h2><a href="<?php echo get_permalink($post->post_parent); ?>"><?php echo get_the_title($post->post_parent); ?></a></h2>
670+ <h3><?php the_title(); ?></h3>
671+ </div>
672+ <div id="imageContent">
673+ <a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a>
674+ </div>
675+ <?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?>
676+ <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
677+ <div id="imgNav">
678+ <div id="prevImgLink">
679+ <?php previous_image_link(false,'&laquo;') ?>
680+ <?php previous_image_link() ?>
681+ </div>
682+ <div id="nextImgLink">
683+ <?php next_image_link(false,'&raquo;') ?>
684+ <?php next_image_link() ?>
685+ </div>
686+ </div>
687+ <div class="killDiv"></div>
688+ <small>
689+ This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
690+ and is filed under <?php the_category(', ') ?>.
691+ <?php the_taxonomies(); ?>
692+ You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
693+
694+ <?php if ( comments_open() && pings_open() ) {
695+ // Both Comments and Pings are open ?>
696+ You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
697+
698+ <?php } elseif ( !comments_open() && pings_open() ) {
699+ // Only Pings are Open ?>
700+ Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
701+
702+ <?php } elseif ( comments_open() && !pings_open() ) {
703+ // Comments are open, Pings are not ?>
704+ You can skip to the end and leave a response. Pinging is currently not allowed.
705+
706+ <?php } elseif ( !comments_open() && !pings_open() ) {
707+ // Neither Comments, nor Pings are open ?>
708+ Both comments and pings are currently closed.
709+
710+ <?php } edit_post_link('Edit this entry.','',''); ?>
711+
712+ </small>
713+ </div>
714+ <?php comments_template(); ?>
715+<?php endwhile; else: ?>
716+ <p>Sorry, no attachments matched your criteria.</p>
717+<?php endif; ?>
718+<?php get_footer(); ?>
719
720=== added directory 'images'
721=== added file 'images/404.png'
722Binary files images/404.png 1970-01-01 00:00:00 +0000 and images/404.png 2010-10-19 08:49:44 +0000 differ
723=== added file 'images/arrow.png'
724Binary files images/arrow.png 1970-01-01 00:00:00 +0000 and images/arrow.png 2010-10-19 08:49:44 +0000 differ
725=== added file 'images/arrow_close.png'
726Binary files images/arrow_close.png 1970-01-01 00:00:00 +0000 and images/arrow_close.png 2010-10-19 08:49:44 +0000 differ
727=== added file 'images/arrow_open.png'
728Binary files images/arrow_open.png 1970-01-01 00:00:00 +0000 and images/arrow_open.png 2010-10-19 08:49:44 +0000 differ
729=== added file 'images/audio.jpg'
730Binary files images/audio.jpg 1970-01-01 00:00:00 +0000 and images/audio.jpg 2010-10-19 08:49:44 +0000 differ
731=== added file 'images/bg_dot.png'
732Binary files images/bg_dot.png 1970-01-01 00:00:00 +0000 and images/bg_dot.png 2010-10-19 08:49:44 +0000 differ
733=== added file 'images/big_search_button.png'
734Binary files images/big_search_button.png 1970-01-01 00:00:00 +0000 and images/big_search_button.png 2010-10-19 08:49:44 +0000 differ
735=== added file 'images/big_search_field.png'
736Binary files images/big_search_field.png 1970-01-01 00:00:00 +0000 and images/big_search_field.png 2010-10-19 08:49:44 +0000 differ
737=== added file 'images/comment_callout.png'
738Binary files images/comment_callout.png 1970-01-01 00:00:00 +0000 and images/comment_callout.png 2010-10-19 08:49:44 +0000 differ
739=== added file 'images/footer_logo.png'
740Binary files images/footer_logo.png 1970-01-01 00:00:00 +0000 and images/footer_logo.png 2010-10-19 08:49:44 +0000 differ
741=== added file 'images/header-img.php'
742--- images/header-img.php 1970-01-01 00:00:00 +0000
743+++ images/header-img.php 2010-10-19 08:49:44 +0000
744@@ -0,0 +1,82 @@
745+<?php
746+/**
747+ * @package WordPress
748+ * @subpackage Default_Theme
749+ */
750+
751+/** @ignore */
752+$img = 'kubrickheader.jpg';
753+
754+// If we don't have image processing support, redirect.
755+if ( ! function_exists('imagecreatefromjpeg') )
756+ die(header("Location: kubrickheader.jpg"));
757+
758+// Assign and validate the color values
759+$default = false;
760+$vars = array('upper'=>array('r1', 'g1', 'b1'), 'lower'=>array('r2', 'g2', 'b2'));
761+foreach ( $vars as $var => $subvars ) {
762+ if ( isset($_GET[$var]) ) {
763+ foreach ( $subvars as $index => $subvar ) {
764+ $length = strlen($_GET[$var]) / 3;
765+ $v = substr($_GET[$var], $index * $length, $length);
766+ if ( $length == 1 ) $v = '' . $v . $v;
767+ $$subvar = hexdec( $v );
768+ if ( $$subvar < 0 || $$subvar > 255 )
769+ $default = true;
770+ }
771+ } else {
772+ $default = true;
773+ }
774+}
775+
776+if ( $default )
777+ list ( $r1, $g1, $b1, $r2, $g2, $b2 ) = array ( 105, 174, 231, 65, 128, 182 );
778+
779+// Create the image
780+$im = imagecreatefromjpeg($img);
781+
782+// Get the background color, define the rectangle height
783+$white = imagecolorat( $im, 15, 15 );
784+$h = 182;
785+
786+// Define the boundaries of the rounded edges ( y => array ( x1, x2 ) )
787+$corners = array(
788+ 0 => array ( 25, 734 ),
789+ 1 => array ( 23, 736 ),
790+ 2 => array ( 22, 737 ),
791+ 3 => array ( 21, 738 ),
792+ 4 => array ( 21, 738 ),
793+ 177 => array ( 21, 738 ),
794+ 178 => array ( 21, 738 ),
795+ 179 => array ( 22, 737 ),
796+ 180 => array ( 23, 736 ),
797+ 181 => array ( 25, 734 ),
798+ );
799+
800+// Blank out the blue thing
801+for ( $i = 0; $i < $h; $i++ ) {
802+ $x1 = 19;
803+ $x2 = 740;
804+ imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );
805+}
806+
807+// Draw a new color thing
808+for ( $i = 0; $i < $h; $i++ ) {
809+ $x1 = 20;
810+ $x2 = 739;
811+ $r = ( $r2 - $r1 != 0 ) ? $r1 + ( $r2 - $r1 ) * ( $i / $h ) : $r1;
812+ $g = ( $g2 - $g1 != 0 ) ? $g1 + ( $g2 - $g1 ) * ( $i / $h ) : $g1;
813+ $b = ( $b2 - $b1 != 0 ) ? $b1 + ( $b2 - $b1 ) * ( $i / $h ) : $b1;
814+ $color = imagecolorallocate( $im, $r, $g, $b );
815+ if ( array_key_exists($i, $corners) ) {
816+ imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );
817+ list ( $x1, $x2 ) = $corners[$i];
818+ }
819+ imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color );
820+}
821+
822+//die;
823+header("Content-Type: image/jpeg");
824+imagejpeg($im, '', 92);
825+imagedestroy($im);
826+?>
827
828=== added file 'images/header.jpg'
829Binary files images/header.jpg 1970-01-01 00:00:00 +0000 and images/header.jpg 2010-10-19 08:49:44 +0000 differ
830=== added file 'images/header_logo.png'
831Binary files images/header_logo.png 1970-01-01 00:00:00 +0000 and images/header_logo.png 2010-10-19 08:49:44 +0000 differ
832=== added file 'images/light_stripes.png'
833Binary files images/light_stripes.png 1970-01-01 00:00:00 +0000 and images/light_stripes.png 2010-10-19 08:49:44 +0000 differ
834=== added file 'images/nav_divider.png'
835Binary files images/nav_divider.png 1970-01-01 00:00:00 +0000 and images/nav_divider.png 2010-10-19 08:49:44 +0000 differ
836=== added file 'images/question_head.png'
837Binary files images/question_head.png 1970-01-01 00:00:00 +0000 and images/question_head.png 2010-10-19 08:49:44 +0000 differ
838=== added file 'images/search_arrow.png'
839Binary files images/search_arrow.png 1970-01-01 00:00:00 +0000 and images/search_arrow.png 2010-10-19 08:49:44 +0000 differ
840=== added file 'images/search_button.png'
841Binary files images/search_button.png 1970-01-01 00:00:00 +0000 and images/search_button.png 2010-10-19 08:49:44 +0000 differ
842=== added file 'images/search_button_rollover.png'
843Binary files images/search_button_rollover.png 1970-01-01 00:00:00 +0000 and images/search_button_rollover.png 2010-10-19 08:49:44 +0000 differ
844=== added file 'images/search_field.png'
845Binary files images/search_field.png 1970-01-01 00:00:00 +0000 and images/search_field.png 2010-10-19 08:49:44 +0000 differ
846=== added file 'images/sidebox_stripes.png'
847Binary files images/sidebox_stripes.png 1970-01-01 00:00:00 +0000 and images/sidebox_stripes.png 2010-10-19 08:49:44 +0000 differ
848=== added file 'images/textarea_bg.png'
849Binary files images/textarea_bg.png 1970-01-01 00:00:00 +0000 and images/textarea_bg.png 2010-10-19 08:49:44 +0000 differ
850=== added file 'images/transition_dots.png'
851Binary files images/transition_dots.png 1970-01-01 00:00:00 +0000 and images/transition_dots.png 2010-10-19 08:49:44 +0000 differ
852=== added file 'images/user_callout.png'
853Binary files images/user_callout.png 1970-01-01 00:00:00 +0000 and images/user_callout.png 2010-10-19 08:49:44 +0000 differ
854=== added file 'index.php'
855--- index.php 1970-01-01 00:00:00 +0000
856+++ index.php 2010-10-19 08:49:44 +0000
857@@ -0,0 +1,45 @@
858+<?php
859+/**
860+ * @package WordPress
861+ * @subpackage Default_Theme
862+ */
863+
864+get_header(); ?>
865+<div class="fixedpost">
866+<p><h1>Join Ubuntu QA!</h1></p>
867+<p>&nbsp;</p>
868+<div class="postContent">
869+<p>
870+The Ubuntu QA team is focused on developing tools, policies, and practices for ensuring Ubuntu's quality as a distribution as well as providing general advice, oversight, and leadership of QA activities within the Ubuntu project.</p>
871+<p>
872+<b>Browse our activities in the navigation bar and help making Ubuntu even better!</b>
873+</p>
874+<p>&nbsp;</p>
875+<p>
876+<h2>We love communication!</h2>
877+<ul>
878+<li>We hold meetings every Wednesday at 17:00UTC or 19:00UTC. Check the <a href="https://wiki.ubuntu.com/QATeam/Meetings">meeting agenda</a>.</li>
879+<li>We have a mailing list, that we use to discuss topics, send announcements and provide advise. <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-qa">Subscribe</a>.</li>
880+</ul>
881+</p>
882+</div>
883+</div>
884+<?php if (have_posts()) : ?>
885+ <div class="startPost">
886+ <h1>Latest news</h1>
887+ </div>
888+ <?php while (have_posts()) : the_post();
889+ render_post(true);
890+ endwhile; ?>
891+ <h3 id="paginationBar">
892+ <div id="olderPosts">
893+ <?php next_posts_link('&laquo; Older Entries') ?>
894+ </div>
895+ <div id="newPosts">
896+ <?php previous_posts_link('Newer Entries &raquo;') ?>
897+ </div>
898+ </h3>
899+<?php else : ?>
900+ <?php get_search_form(); ?>
901+<?php endif; ?>
902+<?php get_footer(); ?>
903
904=== added file 'page.php'
905--- page.php 1970-01-01 00:00:00 +0000
906+++ page.php 2010-10-19 08:49:44 +0000
907@@ -0,0 +1,21 @@
908+<?php
909+/**
910+ * @package WordPress
911+ * @subpackage Default_Theme
912+ */
913+
914+get_header(); ?>
915+<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
916+<div class="post" id="<?php the_ID(); ?>">
917+ <div class="postHeader">
918+ <h2><?php the_title(); ?></h2>
919+ </div>
920+ <div class="postContent">
921+ <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
922+
923+ <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
924+ <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
925+ </div>
926+</div>
927+<?php endwhile; endif; ?>
928+<?php get_footer(); ?>
929
930=== added file 'rtl.css'
931--- rtl.css 1970-01-01 00:00:00 +0000
932+++ rtl.css 2010-10-19 08:49:44 +0000
933@@ -0,0 +1,127 @@
934+/*
935+Theme name: WordPress Default - kubrick -
936+Editors: Navid Kashani
937+Persian WordPress Project : wp-persian.com
938+*/
939+body, .commentlist li, #commentform input, #commentform textarea, #commentform p, #sidebar, #wp-calendar caption {
940+ font-family:tahoma, arial;
941+}
942+#page {
943+ text-align:right;
944+ direction:rtl;
945+}
946+h1, h2, h3, #sidebar h2 {
947+ font-family:arial, tahoma;
948+}
949+.commentlist li .avatar {
950+ float:left;
951+}
952+
953+.commentlist li {
954+ padding: 5px 10px 10px 5px;
955+ }
956+.commentlist li ul li {
957+ margin-left: -5px;
958+ margin-right: 10px;
959+}
960+
961+.commentlist p {
962+ margin: 10px 0 10px 5px;
963+}
964+#header {
965+ margin:0 1px 0 0;
966+}
967+.narrowcolumn {
968+ float:right;
969+ padding: 0 45px 20px 0;
970+}
971+.widecolumn {
972+ margin: 5px 150px 0 0;
973+}
974+.widecolumn .smallattachment {
975+ margin: 5px 0 5px 5px;
976+}
977+.postmetadata {
978+ clear:right;
979+}
980+#sidebar {
981+ margin-left: 0;
982+ margin-right: 545px;
983+}
984+img.alignright {
985+ margin: 0 7px 2px 0;
986+}
987+
988+img.alignleft {
989+ margin: 0 0 2px 7px;
990+}
991+
992+.alignright {
993+ float: left;
994+}
995+
996+.alignleft {
997+ float: right;
998+}
999+code {
1000+ display:block;
1001+ direction:ltr;
1002+ text-align:left;
1003+}
1004+acronym, abbr, span.caps {
1005+ letter-spacing:0; /* fix opera bug */
1006+}
1007+html>body .entry ul {
1008+ padding:0 10px 0 0;
1009+ text-indent:10px;
1010+}
1011+html>body .entry li {
1012+ margin: 7px 10px 8px 0;
1013+}
1014+.entry ol {
1015+ padding: 0 35px 0 0;
1016+}
1017+#sidebar ul ul, #sidebar ul ol {
1018+ margin: 5px 10px 0 0;
1019+}
1020+#sidebar ul ul ul, #sidebar ul ol {
1021+ margin: 0 10px 0 0;
1022+}
1023+#commentform {
1024+ margin: 5px 0 0 10px;
1025+ }
1026+#commentform input {
1027+ margin: 5px 0 1px 5px;
1028+}
1029+#commentform #submit {
1030+ float:left;
1031+}
1032+.commentlist p {
1033+ margin: 10px 0 10px 5px;
1034+}
1035+
1036+.children .even, .alt {
1037+ border-left: 0;
1038+ border-right: 1px solid #ddd;
1039+}
1040+
1041+#wp-calendar #next a {
1042+ padding-right:0;
1043+ padding-left:10px;
1044+ text-align:left;
1045+}
1046+#wp-calendar #prev a {
1047+ padding-left:0;
1048+ padding-right:10px;
1049+ text-align:right;
1050+}
1051+blockquote {
1052+ margin: 15px 10px 0 30px;
1053+ padding-left: 0;
1054+ padding-right: 20px;
1055+ border-left: 0 none;
1056+ border-right: 5px solid #ddd;
1057+}
1058+#email, #url {
1059+ direction:ltr;
1060+}
1061\ No newline at end of file
1062
1063=== added file 'screenshot.jpg'
1064Binary files screenshot.jpg 1970-01-01 00:00:00 +0000 and screenshot.jpg 2010-10-19 08:49:44 +0000 differ
1065=== added file 'search.php'
1066--- search.php 1970-01-01 00:00:00 +0000
1067+++ search.php 2010-10-19 08:49:44 +0000
1068@@ -0,0 +1,44 @@
1069+<?php
1070+/**
1071+ * @package WordPress
1072+ * @subpackage Default_Theme
1073+ */
1074+
1075+get_header(); ?>
1076+<form id="searchedFor" role="search" method="get" action="<?php echo get_option('home');?>">
1077+ You searched for: <input type="text" id="s2" name="s" value="<?php echo esc_attr(apply_filters('the_search_query', get_search_query())); ?>" />
1078+ <input id="searchButton2" type="image"
1079+ src="<?php bloginfo('stylesheet_directory'); ?>/images/big_search_button.png" />
1080+</form>
1081+<?php if (have_posts()) : ?>
1082+ <div id="searchResults">
1083+ <h2>...and we have <?php echo $wp_query->found_posts; ?> results for you</h2>
1084+ <div class="searchNav">
1085+ <?php next_posts_link('&laquo; Older Entries') ?>
1086+ <?php previous_posts_link('Newer Entries &raquo;') ?>
1087+ </div>
1088+ <?php while (have_posts()) : the_post(); ?>
1089+ <a href="<?php the_permalink() ?>" class="searchResult" id="<?php the_ID(); ?>">
1090+ <span class="searchTitle"><?php the_title(); ?></span>
1091+ <small><?php the_time('j F Y') ?></small>
1092+ <?php the_excerpt(); ?>
1093+ </a>
1094+ <?php endwhile; ?>
1095+ <div id="searchResultsCap"></div>
1096+ <div class="searchNav">
1097+ <?php next_posts_link('&laquo; Older Entries') ?>
1098+ <?php previous_posts_link('Newer Entries &raquo;') ?>
1099+ </div>
1100+ </div>
1101+<?php else : ?>
1102+ <div id="noResults">
1103+ <h2>...and, after looking everywhere, we couldn’t find any matching posts :(</h2>
1104+ <h3>Why not try widening your search? You can do this by:</h3>
1105+ <ul>
1106+ <li><span>-</span>Adding alternative words or phrases</li>
1107+ <li><span>-</span>Using individual words instead of phrases</li>
1108+ <li><span>-</span>Trying a different spelling</li>
1109+ </ul>
1110+ </div>
1111+<?php endif; ?>
1112+<?php get_footer(); ?>
1113
1114=== added file 'sidebar.php'
1115--- sidebar.php 1970-01-01 00:00:00 +0000
1116+++ sidebar.php 2010-10-19 08:49:44 +0000
1117@@ -0,0 +1,70 @@
1118+<?php
1119+/**
1120+* @package WordPress
1121+* @subpackage Default_Theme
1122+*/
1123+?>
1124+<div id="sidebar">
1125+ <?php /* Widgetized sidebar, if you have the plugin installed. */
1126+ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
1127+ <?php if ( false /*is_404() || is_category() || is_day() || is_month() ||
1128+ is_year() || is_search() || is_paged()*/ ) {
1129+ ?>
1130+ <?php /* If this is a 404 page */ if (is_404()) { ?>
1131+ <?php /* If this is a category archive */ } elseif (is_category()) { ?>
1132+ <?php single_cat_title(''); ?>
1133+ <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
1134+ <?php bloginfo('url'); ?><br />
1135+ <?php bloginfo('name'); ?><br />
1136+ <?php the_time('l, F jS, Y'); ?><br />
1137+ <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
1138+ <?php bloginfo('url'); ?><br />
1139+ <?php bloginfo('name'); ?><br />
1140+ <?php the_time('F, Y'); ?><br />
1141+ <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
1142+ <?php bloginfo('url'); ?><br />
1143+ <?php bloginfo('name'); ?><br />
1144+ <?php the_time('Y'); ?><br />
1145+ <?php /* If this is a search result */ } elseif (is_search()) { ?>
1146+ <?php bloginfo('url'); ?><br />
1147+ <?php bloginfo('name'); ?><br />
1148+ <?php the_search_query(); ?><br />
1149+ <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
1150+ <?php bloginfo('url'); ?><br />
1151+ <?php bloginfo('name'); ?><br />
1152+ <?php } ?>
1153+ <?php }?>
1154+
1155+ <div class="sideBox">
1156+ <h3><span class="sideBoxArrow"></span>Archives</h3>
1157+ <ul>
1158+ <?php wp_get_archives('type=monthly&limit=5'); ?>
1159+ </ul>
1160+ </div>
1161+
1162+ <div class="sideBox categoriesSideBox">
1163+ <h3><span class="sideBoxArrow"></span>Categories</h3>
1164+ <ul>
1165+ <?php wp_list_categories(array(
1166+ 'show_count' => 1,
1167+ 'title_li' => '',
1168+ 'walker' => new Custom_Walker_Category(),
1169+ 'number' => 5,
1170+ 'orderby' => 'count',
1171+ 'order' => 'DESC'
1172+ )); ?>
1173+ </ul>
1174+ </div>
1175+ <?php /* If this is the frontpage */ if ( true || is_home() || is_page() ) { ?>
1176+ <?php //wp_list_bookmarks(); ?>
1177+ <div class="sideBox">
1178+ <h3><span class="sideBoxArrow"></span>Meta</h3>
1179+ <ul>
1180+ <?php wp_register(); ?>
1181+ <li><?php wp_loginout(); ?></li>
1182+ </ul>
1183+ </div>
1184+ <?php wp_meta(); ?>
1185+ <?php } ?>
1186+ <?php endif; ?>
1187+</div>
1188
1189=== added file 'single.php'
1190--- single.php 1970-01-01 00:00:00 +0000
1191+++ single.php 2010-10-19 08:49:44 +0000
1192@@ -0,0 +1,35 @@
1193+<?php
1194+/**
1195+ * @package WordPress
1196+ * @subpackage Default_Theme
1197+ */
1198+
1199+get_header();
1200+?>
1201+<?php if (have_posts()) : while (have_posts()) : the_post();
1202+ render_post();
1203+ ?>
1204+ <div id="respondStatus">
1205+ <?php
1206+ if ( comments_open() && pings_open() ) {
1207+ // Both Comments and Pings are open ?>
1208+ You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
1209+
1210+ <?php } elseif ( !comments_open() && pings_open() ) {
1211+ // Only Pings are Open ?>
1212+ Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
1213+
1214+ <?php } elseif ( comments_open() && !pings_open() ) {
1215+ // Comments are open, Pings are not ?>
1216+ You can skip to the end and leave a response. Pinging is currently not allowed.
1217+
1218+ <?php } elseif ( !comments_open() && !pings_open() ) {
1219+ // Neither Comments, nor Pings are open ?>
1220+ Both comments and pings are currently closed.
1221+
1222+ <?php } //edit_post_link('Edit this entry','','.'); ?>
1223+ </div>
1224+ <?php comments_template(); ?>
1225+<?php endwhile; else: ?>
1226+<?php endif; ?>
1227+<?php get_footer(); ?>
1228
1229=== added file 'style.css'
1230--- style.css 1970-01-01 00:00:00 +0000
1231+++ style.css 2010-10-19 08:49:44 +0000
1232@@ -0,0 +1,1010 @@
1233+/*
1234+Theme Name: QA Blog Wordpress Theme
1235+Theme URI: http://qa.ubuntu.com/
1236+Description: A WordPress theme for QA blog.
1237+Version: 0.1
1238+Author: Ubuntu Design Team
1239+Author URI: http://qa.ubuntu.com/
1240+Tags: Ubuntu, QA
1241+*/
1242+
1243+
1244+/*---------- General ----------*/
1245+
1246+.killDiv
1247+{
1248+ clear:both;
1249+}
1250+
1251+a
1252+{
1253+ color:#dd4814;
1254+}
1255+
1256+
1257+/*---------- Heading ----------*/
1258+
1259+h1
1260+{
1261+ font-size:36px;
1262+ line-height:45px;
1263+ margin:0;
1264+ font-weight:normal;
1265+ float:left;
1266+ clear:both;
1267+ padding:0 4px;
1268+}
1269+
1270+h2
1271+{
1272+ font-size:24px;
1273+ line-height:28px;
1274+ margin:0 0 8px 0;
1275+ font-weight:normal;
1276+}
1277+
1278+h3
1279+{
1280+ font-size:16px;
1281+ line-height:20px;
1282+ margin:0 0 16px 0;
1283+ font-weight:normal;
1284+}
1285+
1286+
1287+/*---------- Main Compartments ----------*/
1288+
1289+body
1290+{
1291+ background:url('images/bg_dot.png');
1292+ margin:0;
1293+ font-family:'UbuntuBeta','Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;
1294+ font-size:12px;
1295+ line-height:16px;
1296+}
1297+
1298+#wrapper
1299+{
1300+ width:976px;
1301+ margin:0 auto;
1302+ position:relative;
1303+ -moz-border-radius-bottomright:4px;
1304+ -moz-border-radius-bottomleft:4px;
1305+ border-bottom-left-radius:4px;
1306+ border-bottom-right-radius:4px;
1307+ -moz-box-shadow:0 3px 5px #ccc;
1308+ -webkit-box-shadow:0 3px 5px #ccc;
1309+}
1310+
1311+#main
1312+{
1313+ width:656px;
1314+ float:left;
1315+}
1316+
1317+#sidebar
1318+{
1319+ width:224px;
1320+ float:right;
1321+ margin-right:16px;
1322+ position:relative;
1323+}
1324+
1325+p
1326+{
1327+ margin:0 0 8px 0;
1328+}
1329+
1330+
1331+/*---------- Header ----------*/
1332+
1333+#header
1334+{
1335+ height:296px;
1336+}
1337+
1338+#header #titleBox
1339+{
1340+ margin: 48px 0 0 24px;
1341+}
1342+
1343+#header #titleBox h1 a
1344+{
1345+ text-decoration:none;
1346+ background:#dfded9;
1347+ color:#dd4814;
1348+}
1349+
1350+#header #titleBox h3
1351+{
1352+ line-height:28px;
1353+ background:#dfded9;
1354+ float:left;
1355+ clear:both;
1356+ padding:0 4px;
1357+}
1358+
1359+#transitionDots
1360+{
1361+ height:132px;
1362+ top:296px;
1363+ width:976px;
1364+ background:url('images/transition_dots.png');
1365+ position:absolute;
1366+}
1367+
1368+#navbar
1369+{
1370+ height:64px;
1371+ margin:0;
1372+ background:#dd4814 url('images/light_stripes.png') no-repeat;
1373+ list-style-type:none;
1374+ padding:0 0 0 16px;
1375+ font-size:14px;
1376+ line-height:16px;
1377+ -moz-border-radius:0 0 5px 5px;
1378+ -webkit-border-radius:0 0 5px 5px;
1379+ -moz-box-shadow:0 0 5px #555;
1380+ -webkit-box-shadow:0 0 5px #555;
1381+ position:relative;
1382+ z-index:2;
1383+}
1384+
1385+#navbar li
1386+{
1387+ float:left;
1388+ font-size:14px;
1389+ line-height:16px;
1390+ background:url('images/nav_divider.png') no-repeat;
1391+ padding:0 0 0 2px;
1392+ height:64px;
1393+}
1394+
1395+#navbar li a
1396+{
1397+ color:white;
1398+ text-decoration:none;
1399+ padding:24px 8px;
1400+ display:block;
1401+ text-shadow:0 1px black;
1402+}
1403+
1404+#header #ubuntuLink
1405+{
1406+ position:absolute;
1407+ top:16px;
1408+ right:18px;
1409+ z-index:3;
1410+}
1411+
1412+#header #ubuntuLink img
1413+{
1414+ border:none;
1415+}
1416+
1417+
1418+/*---------- Search Bar ----------*/
1419+
1420+#searchBar
1421+{
1422+ background:#e3e1de;
1423+ height:40px;
1424+ width:224px;
1425+ position:absolute;
1426+ top:64px;
1427+ right:16px;
1428+ -moz-border-radius-bottomright:4px;
1429+ -moz-border-radius-bottomleft:4px;
1430+ -webkit-border-radius-bottomright:4px;
1431+ -webkit-border-radius-bottomleft:4px;
1432+ -moz-box-shadow:0 0 2px #555;
1433+ -webkit-box-shadow:0 0 2px #555;
1434+ border-bottom-left-radius:4px;
1435+ border-bottom-right-radius:4px;
1436+ z-index:1;
1437+}
1438+
1439+#searchBar #s
1440+{
1441+ position:absolute;
1442+ top:8px;
1443+ left:8px;
1444+}
1445+
1446+#searchBar #searchButton
1447+{
1448+ position:absolute;
1449+ right:8px;
1450+ top:8px;
1451+}
1452+
1453+/*---------- Text Field ----------*/
1454+
1455+.textField
1456+{
1457+ border:0;
1458+ background:url('images/search_field.png');
1459+ font-size:12px;
1460+ width:168px;
1461+ height:24px;
1462+ line-height:24px;
1463+ padding:0 4px;
1464+}
1465+
1466+/*------ Start Posts ----------*/
1467+
1468+.startPost
1469+{
1470+ background:white;
1471+ margin:20px 16px 0px;
1472+ -moz-border-radius:4px;
1473+ -webkit-border-radius:4px;
1474+ padding:12px;
1475+ position:relative;
1476+ min-height:30px;
1477+}
1478+
1479+.startPost h1
1480+{
1481+ width:592px;
1482+ float:left;
1483+ color:#dd4814;
1484+
1485+}
1486+
1487+
1488+/*------ Fixed Post ----------*/
1489+
1490+.fixedpost
1491+{
1492+ background:white;
1493+ margin:0 16px 1px;
1494+ -moz-border-radius:4px;
1495+ -webkit-border-radius:4px;
1496+ padding:16px;
1497+ position:relative;
1498+ min-height:106px;
1499+}
1500+
1501+.fixedpost h1
1502+{
1503+ width:592px;
1504+ float:left;
1505+ color:#dd4814;
1506+}
1507+
1508+
1509+
1510+/*---------- Post ----------*/
1511+
1512+.post
1513+{
1514+ background:white;
1515+ margin:0 16px 5px;
1516+ -moz-border-radius:4px;
1517+ -webkit-border-radius:4px;
1518+ padding:16px;
1519+ position:relative;
1520+}
1521+
1522+.post .authorTab
1523+{
1524+ position:absolute;
1525+ top:0;
1526+ left:624px;
1527+ -webkit-transform:rotate(90deg);
1528+ -webkit-transform-origin:0 16px;
1529+ -moz-transform:rotate(90deg);
1530+ -moz-transform-origin:0 16px;
1531+ background:#aea79f;
1532+ padding:0 6px;
1533+ white-space:nowrap;
1534+ color:white;
1535+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
1536+
1537+ -moz-border-radius-topright:4px;
1538+ -moz-border-radius-topleft:4px;
1539+ border-top-left-radius:4px;
1540+ border-top-right-radius:4px;
1541+}
1542+
1543+.post .postHeader
1544+{
1545+ font-size:10px;
1546+ line-height:14px;
1547+ border-top:solid 4px #aea79f;
1548+ border-bottom:solid 2px #aea79f;
1549+ padding:6px 0 8px;
1550+ margin-bottom:8px;
1551+ min-height:60px;
1552+}
1553+
1554+.post .postHeader .avatar
1555+{
1556+ margin:2px 8px 0 0;
1557+ float:left;
1558+}
1559+
1560+.post .postHeader span
1561+{
1562+ color:#555;
1563+}
1564+
1565+.post h2
1566+{
1567+ width:464px;
1568+ float:left;
1569+}
1570+
1571+.post h2 a
1572+{
1573+ text-decoration:none;
1574+}
1575+
1576+.post .postInfo
1577+{
1578+ width:128px;
1579+ float:left;
1580+}
1581+
1582+.post .postInfo a
1583+{
1584+ color:black;
1585+ text-decoration:none;
1586+}
1587+
1588+.post .postContent
1589+{
1590+ width:464px;
1591+}
1592+
1593+.post .postContent p
1594+{
1595+ margin:0 0 8px;
1596+}
1597+
1598+.post .postContent a.readMore
1599+{
1600+ text-decoration:none;
1601+ background:url('images/arrow.png') no-repeat right 2px;
1602+ padding-right:10px;
1603+}
1604+
1605+.post .postContent .attachment-thumbnail
1606+{
1607+ float:left;
1608+ margin:0 16px 16px 0;
1609+}
1610+
1611+.post .postContent .postContentSpacer
1612+{
1613+ height:8px;
1614+}
1615+
1616+.post .postContent img
1617+{
1618+ max-width:464px;
1619+}
1620+
1621+.post a img
1622+{
1623+ border:0;
1624+}
1625+
1626+#respondStatus
1627+{
1628+ background:#F5F2EF;
1629+ padding:16px;
1630+ margin:0 16px 16px;
1631+ -moz-border-radius:4px;
1632+ -webkit-border-radius:4px;
1633+}
1634+
1635+
1636+/*---------- Comments ----------*/
1637+
1638+#comments
1639+{
1640+ margin:32px 16px 16px 16px;
1641+}
1642+
1643+#comments h3
1644+{
1645+ border-bottom:1px dotted #B3B2AF;
1646+ position:relative;
1647+ margin-bottom:8px;
1648+}
1649+
1650+#comments #commentsTab
1651+{
1652+ font-size:12px;
1653+ line-height:14px;
1654+ background:#aea79f;
1655+ padding:1px 6px;
1656+ white-space:nowrap;
1657+ color:white;
1658+ position:absolute;
1659+ right:0;
1660+ bottom:0;
1661+ text-decoration:none;
1662+
1663+ -moz-border-radius-topright:4px;
1664+ -moz-border-radius-topleft:4px;
1665+ border-top-left-radius:4px;
1666+ border-top-right-radius:4px;
1667+ -moz-box-shadow:0 -1px 1px #888888;
1668+ -webkit-box-shadow:0 -1px 1px #888888;
1669+ cursor:pointer;
1670+}
1671+
1672+#comments .commentsNav
1673+{
1674+ height:14px;
1675+ margin:8px 0;
1676+}
1677+
1678+#comments .commentsNav .commentsPrev
1679+{
1680+ float:left;
1681+}
1682+
1683+#comments .commentsNav .commentsNext
1684+{
1685+ float:right;
1686+}
1687+
1688+#comments .commentsNav a
1689+{
1690+ text-decoration:none;
1691+}
1692+
1693+.comment
1694+{
1695+ margin-bottom:16px;
1696+}
1697+
1698+.comment:last-child
1699+{
1700+ margin-bottom:8px;
1701+}
1702+
1703+.comment .commentHeader
1704+{
1705+ margin-bottom:4px;
1706+}
1707+
1708+.comment .commentAvatar
1709+{
1710+ height:55px;
1711+ background:url("images/user_callout.png") no-repeat scroll 24px 51px transparent;
1712+}
1713+
1714+.comment.uid-0 .commentAvatar
1715+{
1716+ background:url("images/comment_callout.png") no-repeat scroll 24px 51px transparent;
1717+}
1718+
1719+.comment .commentText
1720+{
1721+ background:#dd4818;
1722+ -moz-border-radius:4px;
1723+ -webkit-border-radius:4px;
1724+ padding:16px 16px 8px 16px;
1725+ color:white;
1726+}
1727+
1728+.comment .commentText a
1729+{
1730+ color:#AEA79F;
1731+}
1732+
1733+.comment.uid-0 .commentText
1734+{
1735+ background:#EFECEA;
1736+ color:black;
1737+}
1738+
1739+.comment.uid-0 .commentText a
1740+{
1741+ color:#dd4814;
1742+}
1743+
1744+.comment .commentActions
1745+{
1746+ text-align:right;
1747+}
1748+
1749+#respond
1750+{
1751+ margin:16px;
1752+}
1753+
1754+#respond h3
1755+{
1756+ border-bottom:1px dotted #B3B2AF;
1757+ margin-bottom:8px;
1758+}
1759+
1760+#respond #commentform
1761+{
1762+ background:white;
1763+ -moz-border-radius:4px;
1764+ -webkit-border-radius:4px;
1765+ padding:16px;
1766+}
1767+
1768+#respond .textArea
1769+{
1770+ border-right:solid #e0e0e0 1px;
1771+ border-bottom:solid #e0e0e0 1px;
1772+ border-left:solid #e0e0e0 1px;
1773+ border-top:0;
1774+ background:url("images/textarea_bg.png") repeat-x;
1775+ margin:0;
1776+}
1777+
1778+
1779+/*---------- Sidebar ----------*/
1780+
1781+#sidebar #pageSidebox
1782+{
1783+ background:#f5f2ef;
1784+ -moz-border-radius:4px;
1785+ -webkit-border-radius:4px;
1786+ font-size:14px;
1787+ padding:6px 8px;
1788+ -moz-box-shadow:0 1px 2px #bbb;
1789+ -webkit-box-shadow:0 1px 2px #bbb;
1790+ margin-bottom:16px;
1791+}
1792+
1793+#sidebar #pageSidebox a
1794+{
1795+ text-decoration:none;
1796+ color:#333;
1797+ padding:5px 0 6px;
1798+ display:block;
1799+}
1800+
1801+#sidebar #pageSidebox .current_page_item a
1802+{
1803+ color:#762c54;
1804+}
1805+
1806+#sidebar #pageSidebox .current_page_item li a
1807+{
1808+ color:#666;
1809+}
1810+
1811+#sidebar #pageSidebox ul
1812+{
1813+ list-style-type:none;
1814+ margin:0;
1815+ padding:0;
1816+}
1817+
1818+#sidebar #pageSidebox li
1819+{
1820+ border-top:#93918f 1px dotted;
1821+}
1822+
1823+#sidebar #pageSidebox li:first-child
1824+{
1825+ border-top:none;
1826+}
1827+
1828+#sidebar #pageSidebox li ul
1829+{
1830+ border-top:#c5c3c1 1px dotted;
1831+ padding-left:16px;
1832+}
1833+
1834+#sidebar #pageSidebox li li
1835+{
1836+ border-top:#c5c3c1 1px dotted;
1837+}
1838+
1839+#sidebar #pageSidebox li li a
1840+{
1841+ color:#666;
1842+}
1843+
1844+#sidebar .sideBox
1845+{
1846+ background:#e3e1de;
1847+ -moz-border-radius:4px;
1848+ -webkit-border-radius:4px;
1849+ -moz-box-shadow:0 1px 2px #bbb;
1850+ -webkit-box-shadow:0 1px 2px #bbb;
1851+ margin-bottom:16px;
1852+}
1853+
1854+#sidebar .sideBox h3
1855+{
1856+ background:url('images/sidebox_stripes.png');
1857+ line-height:32px;
1858+ -moz-border-radius:4px;
1859+ -webkit-border-radius:4px;
1860+ border:solid 1px #e3e1de;
1861+ padding:0 8px;
1862+ color:#dd4814;
1863+ cursor:pointer;
1864+ margin:0;
1865+}
1866+
1867+#sidebar .sideBox .sideBoxArrow
1868+{
1869+ background:url('images/arrow_close.png') no-repeat 0 7px;
1870+ display:inline-block;
1871+ width:18px;
1872+ height:16px;
1873+}
1874+
1875+#sidebar .sideBox.open .sideBoxArrow
1876+{
1877+ background:url('images/arrow_open.png') no-repeat 0 7px;
1878+}
1879+
1880+#sidebar .sideBox ul
1881+{
1882+ list-style-type:none;
1883+ margin:0;
1884+ padding:6px 8px;
1885+}
1886+
1887+#sidebar .sideBox li
1888+{
1889+ line-height:19px;
1890+ border-bottom:#b6b4b2 1px dotted;
1891+}
1892+
1893+#sidebar .sideBox li a
1894+{
1895+ text-decoration:none;
1896+ color:#333;
1897+}
1898+
1899+#sidebar .sideBox li span
1900+{
1901+ color:#aea79f;
1902+}
1903+
1904+#sidebar .sideBox.categoriesSideBox li
1905+{
1906+ height:19px;
1907+}
1908+
1909+#sidebar .sideBox.categoriesSideBox li a
1910+{
1911+ float:left;
1912+}
1913+
1914+#sidebar .sideBox.categoriesSideBox li span
1915+{
1916+ float:right;
1917+}
1918+
1919+
1920+/*---------- Pagination Bar ----------*/
1921+
1922+#paginationBar
1923+{
1924+ background:#F5F2EF;
1925+ margin:16px;
1926+ padding:8px 16px;
1927+ -moz-border-radius:4px;
1928+ -webkit-border-radius:4px;
1929+ height:20px;
1930+}
1931+
1932+#paginationBar #olderPosts
1933+{
1934+ float:left;
1935+}
1936+
1937+#paginationBar #newPosts
1938+{
1939+ float:right;
1940+}
1941+
1942+#paginationBar a
1943+{
1944+ text-decoration:none;
1945+}
1946+
1947+
1948+/*---------- 404 ----------*/
1949+
1950+
1951+#page-404
1952+{
1953+ font-size:16px;
1954+ line-height:20px;
1955+}
1956+
1957+#page-404 #bubbles
1958+{
1959+ position:absolute;
1960+ background:url('images/404.png') no-repeat;
1961+ color:white;
1962+ padding:80px 100px 80px 36px;
1963+ text-align:center;
1964+ top:-64px;
1965+ left:16px;
1966+}
1967+
1968+#page-404 h2
1969+{
1970+ margin-left:208px;
1971+ width:176px;
1972+}
1973+
1974+#page-404 ul
1975+{
1976+ float:left;
1977+ width:192px;
1978+ padding-left:16px;
1979+ margin:0;
1980+}
1981+
1982+#page-404 ul li
1983+{
1984+ margin-bottom:8px;
1985+ list-style-type:none;
1986+ /*text-indent:-16px;*/
1987+ position:relative;
1988+}
1989+
1990+#page-404 ul span
1991+{
1992+ position:absolute;
1993+ width:16px;
1994+ height:20px;
1995+ line-height:20px;
1996+ left:-16px;
1997+ text-align:center;
1998+}
1999+
2000+#page-404 ul a
2001+{
2002+ text-decoration:none;
2003+}
2004+
2005+
2006+/*---------- Image ----------*/
2007+
2008+.imageView .postHeader h2
2009+{
2010+ float:none;
2011+}
2012+
2013+.imageView #imageContent
2014+{
2015+ text-align:center;
2016+ margin-bottom:16px;
2017+}
2018+
2019+.imageView #imgNav
2020+{
2021+ line-height:48px;
2022+ font-size:32px;
2023+ height:48px;
2024+ margin-bottom:16px;
2025+}
2026+
2027+.imageView #imgNav img
2028+{
2029+ height:48px;
2030+ width:auto;
2031+}
2032+
2033+.imageView #imgNav a
2034+{
2035+ text-decoration:none;
2036+}
2037+
2038+.imageView #imgNav #prevImgLink
2039+{
2040+ float:left;
2041+}
2042+
2043+.imageView #imgNav #prevImgLink a
2044+{
2045+ float:left;
2046+}
2047+
2048+.imageView #imgNav #nextImgLink
2049+{
2050+ float:right;
2051+}
2052+
2053+.imageView #imgNav #nextImgLink a
2054+{
2055+ float:right;
2056+}
2057+
2058+
2059+/*---------- Search ----------*/
2060+
2061+#searchedFor
2062+{
2063+ line-height:32px;
2064+ font-size:24px;
2065+ padding:16px 12px;
2066+ background:#e1e3de;
2067+ margin:0 16px 16px 16px;
2068+ position:relative;
2069+ -moz-border-radius:4px;
2070+ -webkit-border-radius:4px;
2071+ -moz-box-shadow:1px 1px 2px #666;
2072+ -webkit-box-shadow:1px 1px 2px #666;
2073+}
2074+
2075+#searchedFor #s2
2076+{
2077+ border:0;
2078+ width:334px;
2079+ height:21px;
2080+ font-size:16px;
2081+ line-height:21px;
2082+ padding:4px;
2083+ background:url("images/big_search_field.png");
2084+ vertical-align:middle;
2085+}
2086+
2087+#searchedFor #searchButton2
2088+{
2089+ position:absolute;
2090+ right:12px;
2091+}
2092+
2093+#noResults
2094+{
2095+ margin:16px;
2096+ background:url("images/question_head.png") no-repeat 48px 24px white;
2097+ position:relative;
2098+ padding:16px 16px 16px 176px;
2099+ -moz-border-radius:4px;
2100+ -webkit-border-radius:4px;
2101+}
2102+
2103+#noResults ul
2104+{
2105+ margin:0;
2106+ padding:0;
2107+ list-style-type:none;
2108+ position:relative;
2109+}
2110+
2111+#noResults ul span
2112+{
2113+ position:absolute;
2114+ width:16px;
2115+ left:-16px;
2116+ text-align:center;
2117+}
2118+
2119+#noResults ul li
2120+{
2121+ margin-bottom:8px;
2122+}
2123+
2124+#searchResults
2125+{
2126+ background:white;
2127+ -moz-border-radius:4px;
2128+ -webkit-border-radius:4px;
2129+ margin:16px;
2130+ padding:16px;
2131+ position:relative;
2132+}
2133+
2134+#searchResults .searchResult
2135+{
2136+ padding:16px 48px 8px 0;
2137+ border-top:#ccc 1px dotted;
2138+ display:block;
2139+ text-decoration:none;
2140+ color:black;
2141+}
2142+
2143+#searchResults .searchResult .searchTitle
2144+{
2145+ display:block;
2146+ font-size:16px;
2147+ line-height:20px;
2148+ color:#dd4814;
2149+}
2150+
2151+#searchResults .searchResult small
2152+{
2153+ display:block;
2154+ margin-bottom:8px;
2155+ color:#666;
2156+}
2157+
2158+#searchResults .searchResult:hover
2159+{
2160+ background:#f7f6f5 url('images/search_arrow.png') no-repeat right center;
2161+}
2162+
2163+#searchResults #searchResultsCap
2164+{
2165+ border-top:#ccc 1px dotted;
2166+ margin-bottom:16px;
2167+}
2168+
2169+#searchResults .searchNav
2170+{
2171+ height:14px;
2172+ margin-bottom:16px;
2173+}
2174+
2175+#searchResults .searchNav a
2176+{
2177+ float:right;
2178+}
2179+
2180+#searchResults .searchNav a:first-child
2181+{
2182+ float:left;
2183+}
2184+
2185+
2186+/*---------- Archive ----------*/
2187+
2188+.archive .archiveStartEnd
2189+{
2190+ margin:0 16px 16px;
2191+ padding:16px;
2192+ background:white;
2193+ position:relative;
2194+ -moz-border-radius:4px;
2195+ -webkit-border-radius:4px;
2196+}
2197+
2198+.archive .archiveStartEnd .archiveOlder
2199+{
2200+ float:left;
2201+}
2202+
2203+.archive .archiveStartEnd .archiveNewer
2204+{
2205+ float:right;
2206+
2207+}.archive .archiveEnd
2208+{
2209+ margin-top:16px;
2210+}
2211+
2212+
2213+/*---------- Footer ----------*/
2214+
2215+#footer
2216+{
2217+ width:976px;
2218+ margin:0 auto;
2219+ background:#f7f6f5;
2220+ height:80px;
2221+ position:relative;
2222+}
2223+
2224+#footer #disclaimer
2225+{
2226+ position:absolute;
2227+ left:16px;
2228+ bottom:16px;
2229+ color:#aea79f;
2230+}
2231+
2232+#footer a
2233+{
2234+ position:absolute;
2235+ right:16px;
2236+ bottom:16px;
2237+}
2238+
2239+#footer a img
2240+{
2241+ border:0;
2242+}
2243
2244=== added file 'theme.js'
2245--- theme.js 1970-01-01 00:00:00 +0000
2246+++ theme.js 2010-10-19 08:49:44 +0000
2247@@ -0,0 +1,68 @@
2248+var $ = jQuery;
2249+
2250+// Expanding and collapsing sideboxes
2251+
2252+$(document).ready(function() {
2253+ var $sideBoxHeaders = $('.sideBox h3');
2254+
2255+ $sideBoxHeaders.each(function(index, header) {
2256+ var $header = $(header)
2257+
2258+ $header.parent().addClass('open');
2259+
2260+ $header.toggle(
2261+ function () {collapseSidebox($header.parent());},
2262+ function () {expandSidebox($header.parent());}
2263+ );
2264+ });
2265+});
2266+
2267+function expandSidebox(sidebox)
2268+{
2269+ sidebox.addClass('open');
2270+ sidebox.children('ul').slideDown();
2271+}
2272+
2273+function collapseSidebox(sidebox)
2274+{
2275+ sidebox.removeClass('open');
2276+ sidebox.children('ul').slideUp();
2277+}
2278+
2279+
2280+// Clearing the search box
2281+
2282+var firstSearchClick=true;
2283+
2284+function searchOnFocus(control)
2285+{
2286+ if(firstSearchClick)
2287+ {
2288+ control.value='';
2289+ firstSearchClick=false;
2290+ }
2291+}
2292+
2293+
2294+// Toggle comments
2295+
2296+var $commentsTab, $commentList;
2297+
2298+$(document).ready(function() {
2299+ $commentsTab = $('#commentsTab');
2300+ $commentList = $('#commentList');
2301+
2302+ $commentsTab.toggle(collapseComments, expandComments);
2303+});
2304+
2305+function collapseComments()
2306+{
2307+ $commentsTab.html('show comments');
2308+ $commentList.slideUp();
2309+}
2310+
2311+function expandComments()
2312+{
2313+ $commentsTab.html('hide comments');
2314+ $commentList.slideDown();
2315+}

Subscribers

People subscribed via source and target branches

to status/vote changes: