diff --git a/wp-content/themes/default/404.php b/wp-content/themes/default/404.php new file mode 100644 index 0000000000000000000000000000000000000000..449ae051e2b96024e4485ed4ebc6d66dee074f7d --- /dev/null +++ b/wp-content/themes/default/404.php @@ -0,0 +1,18 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +get_header(); +?> + + <div id="content" class="narrowcolumn"> + + <h2 class="center"><?php _e('Error 404 - Not Found', 'kubrick'); ?></h2> + + </div> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/archive.php b/wp-content/themes/default/archive.php new file mode 100644 index 0000000000000000000000000000000000000000..8c82cd741c82f85803830b06a65cda911594713d --- /dev/null +++ b/wp-content/themes/default/archive.php @@ -0,0 +1,75 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +get_header(); +?> + + <div id="content" class="narrowcolumn" role="main"> + + <?php if (have_posts()) : ?> + + <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> + <?php /* If this is a category archive */ if (is_category()) { ?> + <h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'kubrick'), single_cat_title('', false)); ?></h2> + <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> + <h2 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'kubrick'), single_tag_title('', false) ); ?></h2> + <?php /* If this is a daily archive */ } elseif (is_day()) { ?> + <h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></h2> + <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> + <h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></h2> + <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> + <h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></h2> + <?php /* If this is an author archive */ } elseif (is_author()) { ?> + <h2 class="pagetitle"><?php _e('Author Archive', 'kubrick'); ?></h2> + <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> + <h2 class="pagetitle"><?php _e('Blog Archives', 'kubrick'); ?></h2> + <?php } ?> + + + <div class="navigation"> + <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')); ?></div> + <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')); ?></div> + </div> + + <?php while (have_posts()) : the_post(); ?> + <div <?php post_class(); ?>> + <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3> + <small><?php the_time(__('l, F jS, Y', 'kubrick')) ?></small> + + <div class="entry"> + <?php the_content() ?> + </div> + + <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick'), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p> + + </div> + + <?php endwhile; ?> + + <div class="navigation"> + <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')); ?></div> + <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')); ?></div> + </div> + <?php else : + + if ( is_category() ) { // If this is a category archive + printf("<h2 class='center'>".__("Sorry, but there aren't any posts in the %s category yet.", 'kubrick').'</h2>', single_cat_title('',false)); + } else if ( is_date() ) { // If this is a date archive + echo('<h2>'.__("Sorry, but there aren't any posts with this date.", 'kubrick').'</h2>'); + } else if ( is_author() ) { // If this is a category archive + $userdata = get_userdatabylogin(get_query_var('author_name')); + printf("<h2 class='center'>".__("Sorry, but there aren't any posts by %s yet.", 'kubrick')."</h2>", $userdata->display_name); + } else { + echo("<h2 class='center'>".__('No posts found.', 'kubrick').'</h2>'); + } + get_search_form(); + endif; +?> + </div> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/archives.php b/wp-content/themes/default/archives.php new file mode 100644 index 0000000000000000000000000000000000000000..8dd0462da2bbbcf06d726372334b8e580f4562b9 --- /dev/null +++ b/wp-content/themes/default/archives.php @@ -0,0 +1,29 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ +/* +Template Name: Archives +*/ +?> + +<?php get_header(); ?> + +<div id="content" class="widecolumn"> + +<?php get_search_form(); ?> + +<h2><?php _e('Archives by Month:', 'kubrick'); ?></h2> + <ul> + <?php wp_get_archives('type=monthly'); ?> + </ul> + +<h2><?php _e('Archives by Subject:', 'kubrick'); ?></h2> + <ul> + <?php wp_list_categories(); ?> + </ul> + +</div> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/comments-popup.php b/wp-content/themes/default/comments-popup.php new file mode 100644 index 0000000000000000000000000000000000000000..2f701b1f03e58afe6ef37b6d886db5a8aaf15c74 --- /dev/null +++ b/wp-content/themes/default/comments-popup.php @@ -0,0 +1,124 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ +?><!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> + <title><?php printf(__('%1$s - Comments on %2$s', 'kubrick'), get_option('blogname'), the_title('','',false)); ?></title> + + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> + <style type="text/css" media="screen"> + @import url( <?php bloginfo('stylesheet_url'); ?> ); + body { margin: 3px; } + </style> + +</head> +<body id="commentspopup"> + +<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> + +<?php +/* Don't remove these lines. */ +add_filter('comment_text', 'popuplinks'); +if ( have_posts() ) : +while( have_posts()) : the_post(); +?> +<h2 id="comments"><?php _e('Comments', 'kubrick'); ?></h2> + +<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.', 'kubrick'); ?></a></p> + +<?php if ( pings_open() ) { ?> +<p><?php printf(__('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em>%s</em>', 'kubrick'), get_trackback_url()); ?></p> +<?php } ?> + +<?php +// this line is WordPress' motor, do not delete it. +$commenter = wp_get_current_commenter(); +extract($commenter); +$comments = get_approved_comments($id); +$post = get_post($id); +if ( post_password_required($post) ) { // and it doesn't match the cookie + echo(get_the_password_form()); +} else { ?> + +<?php if ($comments) { ?> +<ol id="commentlist"> +<?php foreach ($comments as $comment) { ?> + <li id="comment-<?php comment_ID() ?>"> + <?php comment_text() ?> + <p><cite><?php comment_type(__('Comment', 'kubrick'), __('Trackback', 'kubrick'), __('Pingback', 'kubrick')); ?> <?php printf(__('by %1$s — %2$s @ <a href="#comment-%3$s">%4$s</a>', 'kubrick'), get_comment_author_link(), get_comment_date(), get_comment_ID(), get_comment_time()); ?></cite></p> + </li> + +<?php } // end for each comment ?> +</ol> +<?php } else { // this is displayed if there are no comments so far ?> + <p><?php _e('No comments yet.', 'kubrick'); ?></p> +<?php } ?> + +<?php if ( comments_open() ) { ?> +<h2><?php _e('Leave a comment', 'kubrick'); ?></h2> +<p><?php printf(__('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>', 'kubrick'), allowed_tags()); ?></p> + +<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> +<?php if ( $user_ID ) : ?> + <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out »</a>', 'kubrick'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity, wp_logout_url()); ?></p> +<?php else : ?> + <p> + <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" /> + <label for="author"><?php _e('Name', 'kubrick'); ?></label> + </p> + + <p> + <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" /> + <label for="email"><?php _e('E-mail', 'kubrick'); ?></label> + </p> + + <p> + <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" /> + <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>', 'kubrick'); ?></label> + </p> +<?php endif; ?> + + <p> + <label for="comment"><?php _e('Your Comment', 'kubrick'); ?></label> + <br /> + <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> + </p> + + <p> + <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> + <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> + <input name="submit" type="submit" tabindex="5" value="<?php _e('Say It!' , 'kubrick'); ?>" /> + </p> + <?php do_action('comment_form', $post->ID); ?> +</form> +<?php } else { // comments are closed ?> +<p><?php _e('Sorry, the comment form is closed at this time.', 'kubrick'); ?></p> +<?php } +} // end password check +?> + +<div><strong><a href="javascript:window.close()"><?php _e('Close this window.', 'kubrick'); ?></a></strong></div> + +<?php // if you delete this the sky will fall on your head +endwhile; // have_posts() +else: // have_posts() +?> +<p><?php _e('Sorry, no posts matched your criteria.'); ?></p> +<?php endif; ?> +<!-- // this is just the end of the motor - don't touch that line either :) --> +<?php //} ?> +<p class="credit"><?php timer_stop(1); ?> <cite><?php printf(__('Powered by <a href="%s" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a>', 'kubrick'), 'http://wordpress.org/'); ?></cite></p> +<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> +<script type="text/javascript"> +<!-- +document.onkeypress = function esc(e) { + if(typeof(e) == "undefined") { e=event; } + if (e.keyCode == 27) { self.close(); } +} +// --> +</script> +</body> +</html> diff --git a/wp-content/themes/default/comments.php b/wp-content/themes/default/comments.php new file mode 100644 index 0000000000000000000000000000000000000000..5c49b54f1f2667e159606c2b829b8895d61afab2 --- /dev/null +++ b/wp-content/themes/default/comments.php @@ -0,0 +1,96 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +// Do not delete these lines + if (isset($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) + die ('Please do not load this page directly. Thanks!'); + + if ( post_password_required() ) { ?> + <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'kubrick'); ?></p> + <?php + return; + } +?> + +<!-- You can start editing here. --> + +<?php if ( have_comments() ) : ?> + <h3 id="comments"><?php comments_number(__('No Responses', 'kubrick'), __('One Response', 'kubrick'), __('% Responses', 'kubrick'));?> <?php printf(__('to “%s”', 'kubrick'), the_title('', '', false)); ?></h3> + + <div class="navigation"> + <div class="alignleft"><?php previous_comments_link() ?></div> + <div class="alignright"><?php next_comments_link() ?></div> + </div> + + <ol class="commentlist"> + <?php wp_list_comments();?> + </ol> + + <div class="navigation"> + <div class="alignleft"><?php previous_comments_link() ?></div> + <div class="alignright"><?php next_comments_link() ?></div> + </div> + <?php else : // this is displayed if there are no comments so far ?> + + <?php if ( comments_open() ) : ?> + <!-- If comments are open, but there are no comments. --> + + <?php else : // comments are closed ?> + <!-- If comments are closed. --> + <p class="nocomments"><?php _e('Comments are closed.', 'kubrick'); ?></p> + + <?php endif; ?> +<?php endif; ?> + + +<?php if ( comments_open() ) : ?> + +<div id="respond"> + +<h3><?php comment_form_title( __('Leave a Reply', 'kubrick'), __('Leave a Reply for %s' , 'kubrick') ); ?></h3> + +<div id="cancel-comment-reply"> + <small><?php cancel_comment_reply_link() ?></small> +</div> + +<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?> +<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'kubrick'), wp_login_url( get_permalink() )); ?></p> +<?php else : ?> + +<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> + +<?php if ( is_user_logged_in() ) : ?> + +<p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'kubrick'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'kubrick'); ?>"><?php _e('Log out »', 'kubrick'); ?></a></p> + +<?php else : ?> + +<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'"; ?> /> +<label for="author"><small><?php _e('Name', 'kubrick'); ?> <?php if ($req) _e("(required)", "kubrick"); ?></small></label></p> + +<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'"; ?> /> +<label for="email"><small><?php _e('Mail (will not be published)', 'kubrick'); ?> <?php if ($req) _e("(required)", "kubrick"); ?></small></label></p> + +<p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" /> +<label for="url"><small><?php _e('Website', 'kubrick'); ?></small></label></p> + +<?php endif; ?> + +<!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'kubrick'), allowed_tags()); ?></small></p>--> + +<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p> + +<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'kubrick'); ?>" /> +<?php comment_id_fields(); ?> +</p> +<?php do_action('comment_form', $post->ID); ?> + +</form> + +<?php endif; // If registration required and not logged in ?> +</div> + +<?php endif; // if you delete this the sky will fall on your head ?> diff --git a/wp-content/themes/default/footer.php b/wp-content/themes/default/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..edb10665ce1b199b60d3eca337aa04f99f05d076 --- /dev/null +++ b/wp-content/themes/default/footer.php @@ -0,0 +1,25 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ +?> + +<hr /> +<div id="footer" role="contentinfo"> +<!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> + <p> + <?php printf(__('%1$s is proudly powered by %2$s', 'kubrick'), get_bloginfo('name'), + '<a href="http://wordpress.org/">WordPress</a>'); ?> + <br /><?php printf(__('%1$s and %2$s.', 'kubrick'), '<a href="' . get_bloginfo('rss2_url') . '">' . __('Entries (RSS)', 'kubrick') . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __('Comments (RSS)', 'kubrick') . '</a>'); ?> + <!-- <?php printf(__('%d queries. %s seconds.', 'kubrick'), get_num_queries(), timer_stop(0, 3)); ?> --> + </p> +</div> +</div> + +<!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> +<?php /* "Just what do you think you're doing Dave?" */ ?> + + <?php wp_footer(); ?> +</body> +</html> diff --git a/wp-content/themes/default/functions.php b/wp-content/themes/default/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..f8d2b1cc5a030fa0fd2ea364a8c7d3ec660df871 --- /dev/null +++ b/wp-content/themes/default/functions.php @@ -0,0 +1,433 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +$content_width = 450; + +add_theme_support( 'automatic-feed-links' ); + +if ( function_exists('register_sidebar') ) { + register_sidebar(array( + 'before_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h2 class="widgettitle">', + 'after_title' => '</h2>', + )); +} + +/** @ignore */ +function kubrick_head() { + $head = "<style type='text/css'>\n<!--"; + $output = ''; + if ( kubrick_header_image() ) { + $url = kubrick_header_image_url() ; + $output .= "#header { background: url('$url') no-repeat bottom center; }\n"; + } + if ( false !== ( $color = kubrick_header_color() ) ) { + $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n"; + } + if ( false !== ( $display = kubrick_header_display() ) ) { + $output .= "#headerimg { display: $display }\n"; + } + $foot = "--></style>\n"; + if ( '' != $output ) + echo $head . $output . $foot; +} + +add_action('wp_head', 'kubrick_head'); + +function kubrick_header_image() { + return apply_filters('kubrick_header_image', get_option('kubrick_header_image')); +} + +function kubrick_upper_color() { + if (strpos($url = kubrick_header_image_url(), 'header-img.php?') !== false) { + parse_str(substr($url, strpos($url, '?') + 1), $q); + return $q['upper']; + } else + return '69aee7'; +} + +function kubrick_lower_color() { + if (strpos($url = kubrick_header_image_url(), 'header-img.php?') !== false) { + parse_str(substr($url, strpos($url, '?') + 1), $q); + return $q['lower']; + } else + return '4180b6'; +} + +function kubrick_header_image_url() { + if ( $image = kubrick_header_image() ) + $url = get_template_directory_uri() . '/images/' . $image; + else + $url = get_template_directory_uri() . '/images/kubrickheader.jpg'; + + return $url; +} + +function kubrick_header_color() { + return apply_filters('kubrick_header_color', get_option('kubrick_header_color')); +} + +function kubrick_header_color_string() { + $color = kubrick_header_color(); + if ( false === $color ) + return 'white'; + + return $color; +} + +function kubrick_header_display() { + return apply_filters('kubrick_header_display', get_option('kubrick_header_display')); +} + +function kubrick_header_display_string() { + $display = kubrick_header_display(); + return $display ? $display : 'inline'; +} + +add_action('admin_menu', 'kubrick_add_theme_page'); + +function kubrick_add_theme_page() { + if ( isset( $_GET['page'] ) && $_GET['page'] == basename(__FILE__) ) { + if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) { + check_admin_referer('kubrick-header'); + if ( isset($_REQUEST['njform']) ) { + if ( isset($_REQUEST['defaults']) ) { + delete_option('kubrick_header_image'); + delete_option('kubrick_header_color'); + delete_option('kubrick_header_display'); + } else { + if ( '' == $_REQUEST['njfontcolor'] ) + delete_option('kubrick_header_color'); + else { + $fontcolor = preg_replace('/^.*(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['njfontcolor']); + update_option('kubrick_header_color', $fontcolor); + } + if ( preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njuppercolor'], $uc) && preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njlowercolor'], $lc) ) { + $uc = ( strlen($uc[0]) == 3 ) ? $uc[0]{0}.$uc[0]{0}.$uc[0]{1}.$uc[0]{1}.$uc[0]{2}.$uc[0]{2} : $uc[0]; + $lc = ( strlen($lc[0]) == 3 ) ? $lc[0]{0}.$lc[0]{0}.$lc[0]{1}.$lc[0]{1}.$lc[0]{2}.$lc[0]{2} : $lc[0]; + update_option('kubrick_header_image', "header-img.php?upper=$uc&lower=$lc"); + } + + if ( isset($_REQUEST['toggledisplay']) ) { + if ( false === get_option('kubrick_header_display') ) + update_option('kubrick_header_display', 'none'); + else + delete_option('kubrick_header_display'); + } + } + } else { + + if ( isset($_REQUEST['headerimage']) ) { + check_admin_referer('kubrick-header'); + if ( '' == $_REQUEST['headerimage'] ) + delete_option('kubrick_header_image'); + else { + $headerimage = preg_replace('/^.*?(header-img.php\?upper=[0-9a-fA-F]{6}&lower=[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['headerimage']); + update_option('kubrick_header_image', $headerimage); + } + } + + if ( isset($_REQUEST['fontcolor']) ) { + check_admin_referer('kubrick-header'); + if ( '' == $_REQUEST['fontcolor'] ) + delete_option('kubrick_header_color'); + else { + $fontcolor = preg_replace('/^.*?(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['fontcolor']); + update_option('kubrick_header_color', $fontcolor); + } + } + + if ( isset($_REQUEST['fontdisplay']) ) { + check_admin_referer('kubrick-header'); + if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] ) + delete_option('kubrick_header_display'); + else + update_option('kubrick_header_display', 'none'); + } + } + //print_r($_REQUEST); + wp_redirect("themes.php?page=functions.php&saved=true"); + die; + } + add_action('admin_head', 'kubrick_theme_page_head'); + } + add_theme_page(__('Custom Header'), __('Custom Header'), 'edit_themes', basename(__FILE__), 'kubrick_theme_page'); +} + +function kubrick_theme_page_head() { +?> +<script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script> +<script type='text/javascript'> +// <![CDATA[ + function pickColor(color) { + ColorPicker_targetInput.value = color; + kUpdate(ColorPicker_targetInput.id); + } + function PopupWindow_populate(contents) { + contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" class="button-secondary" value="<?php esc_attr_e('Close Color Picker'); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>'; + this.contents = contents; + this.populated = false; + } + function PopupWindow_hidePopup(magicword) { + if ( magicword != 'prettyplease' ) + return false; + if (this.divName != null) { + if (this.use_gebi) { + document.getElementById(this.divName).style.visibility = "hidden"; + } + else if (this.use_css) { + document.all[this.divName].style.visibility = "hidden"; + } + else if (this.use_layers) { + document.layers[this.divName].visibility = "hidden"; + } + } + else { + if (this.popupWindow && !this.popupWindow.closed) { + this.popupWindow.close(); + this.popupWindow = null; + } + } + return false; + } + function colorSelect(t,p) { + if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" ) + cp.hidePopup('prettyplease'); + else { + cp.p = p; + cp.select(t,p); + } + } + function PopupWindow_setSize(width,height) { + this.width = 162; + this.height = 210; + } + + var cp = new ColorPicker(); + function advUpdate(val, obj) { + document.getElementById(obj).value = val; + kUpdate(obj); + } + function kUpdate(oid) { + if ( 'uppercolor' == oid || 'lowercolor' == oid ) { + uc = document.getElementById('uppercolor').value.replace('#', ''); + lc = document.getElementById('lowercolor').value.replace('#', ''); + hi = document.getElementById('headerimage'); + hi.value = 'header-img.php?upper='+uc+'&lower='+lc; + document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/'+hi.value+'") center no-repeat'; + document.getElementById('advuppercolor').value = '#'+uc; + document.getElementById('advlowercolor').value = '#'+lc; + } + if ( 'fontcolor' == oid ) { + document.getElementById('header').style.color = document.getElementById('fontcolor').value; + document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value; + } + if ( 'fontdisplay' == oid ) { + document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; + } + } + function toggleDisplay() { + td = document.getElementById('fontdisplay'); + td.value = ( td.value == 'none' ) ? 'inline' : 'none'; + kUpdate('fontdisplay'); + } + function toggleAdvanced() { + a = document.getElementById('jsAdvanced'); + if ( a.style.display == 'none' ) + a.style.display = 'block'; + else + a.style.display = 'none'; + } + function kDefaults() { + document.getElementById('headerimage').value = ''; + document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#69aee7'; + document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#4180b6'; + document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/kubrickheader.jpg") center no-repeat'; + document.getElementById('header').style.color = '#FFFFFF'; + document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = ''; + document.getElementById('fontdisplay').value = 'inline'; + document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; + } + function kRevert() { + document.getElementById('headerimage').value = '<?php echo esc_js(kubrick_header_image()); ?>'; + document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#<?php echo esc_js(kubrick_upper_color()); ?>'; + document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#<?php echo esc_js(kubrick_lower_color()); ?>'; + document.getElementById('header').style.background = 'url("<?php echo esc_js(kubrick_header_image_url()); ?>") center no-repeat'; + document.getElementById('header').style.color = ''; + document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '<?php echo esc_js(kubrick_header_color_string()); ?>'; + document.getElementById('fontdisplay').value = '<?php echo esc_js(kubrick_header_display_string()); ?>'; + document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; + } + function kInit() { + document.getElementById('jsForm').style.display = 'block'; + document.getElementById('nonJsForm').style.display = 'none'; + } + addLoadEvent(kInit); +// ]]> +</script> +<style type='text/css'> + #headwrap { + text-align: center; + } + #kubrick-header { + font-size: 80%; + } + #kubrick-header .hibrowser { + width: 780px; + height: 260px; + overflow: scroll; + } + #kubrick-header #hitarget { + display: none; + } + #kubrick-header #header h1 { + font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif; + font-weight: bold; + font-size: 4em; + text-align: center; + padding-top: 70px; + margin: 0; + } + + #kubrick-header #header .description { + font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; + font-size: 1.2em; + text-align: center; + } + #kubrick-header #header { + text-decoration: none; + color: <?php echo kubrick_header_color_string(); ?>; + padding: 0; + margin: 0; + height: 200px; + text-align: center; + background: url('<?php echo kubrick_header_image_url(); ?>') center no-repeat; + } + #kubrick-header #headerimg { + margin: 0; + height: 200px; + width: 100%; + display: <?php echo kubrick_header_display_string(); ?>; + } + + .description { + margin-top: 16px; + color: #fff; + } + + #jsForm { + display: none; + text-align: center; + } + #jsForm input.submit, #jsForm input.button, #jsAdvanced input.button { + padding: 0px; + margin: 0px; + } + #advanced { + text-align: center; + width: 620px; + } + html>body #advanced { + text-align: center; + position: relative; + left: 50%; + margin-left: -380px; + } + #jsAdvanced { + text-align: right; + } + #nonJsForm { + position: relative; + text-align: left; + margin-left: -370px; + left: 50%; + } + #nonJsForm label { + padding-top: 6px; + padding-right: 5px; + float: left; + width: 100px; + text-align: right; + } + .defbutton { + font-weight: bold; + } + .zerosize { + width: 0px; + height: 0px; + overflow: hidden; + } + #colorPickerDiv a, #colorPickerDiv a:hover { + padding: 1px; + text-decoration: none; + border-bottom: 0px; + } +</style> +<?php +} + +function kubrick_theme_page() { + if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated"><p><strong>'.__('Options saved.').'</strong></p></div>'; +?> +<div class='wrap'> + <h2><?php _e('Customize Header'); ?></h2> + <div id="kubrick-header"> + <div id="headwrap"> + <div id="header"> + <div id="headerimg"> + <h1><?php bloginfo('name'); ?></h1> + <div class="description"><?php bloginfo('description'); ?></div> + </div> + </div> + </div> + <br /> + <div id="nonJsForm"> + <form method="post" action=""> + <?php wp_nonce_field('kubrick-header'); ?> + <div class="zerosize"><input type="submit" name="defaultsubmit" value="<?php esc_attr_e('Save'); ?>" /></div> + <label for="njfontcolor"><?php _e('Font Color:'); ?></label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo esc_attr(kubrick_header_color()); ?>" /> <?php printf(__('Any CSS color (%s or %s or %s)'), '<code>red</code>', '<code>#FF0000</code>', '<code>rgb(255, 0, 0)</code>'); ?><br /> + <label for="njuppercolor"><?php _e('Upper Color:'); ?></label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo esc_attr(kubrick_upper_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br /> + <label for="njlowercolor"><?php _e('Lower Color:'); ?></label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo esc_attr(kubrick_lower_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br /> + <input type="hidden" name="hi" id="hi" value="<?php echo esc_attr(kubrick_header_image()); ?>" /> + <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php esc_attr_e('Toggle Text'); ?>" /> + <input type="submit" name="defaults" value="<?php esc_attr_e('Use Defaults'); ?>" /> + <input type="submit" class="defbutton" name="submitform" value=" <?php esc_attr_e('Save'); ?> " /> + <input type="hidden" name="action" value="save" /> + <input type="hidden" name="njform" value="true" /> + </form> + </div> + <div id="jsForm"> + <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>"> + <?php wp_nonce_field('kubrick-header'); ?> + <input type="button" class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php esc_attr_e('Font Color'); ?>"></input> + <input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php esc_attr_e('Upper Color'); ?>"></input> + <input type="button" class="button-secondary" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php esc_attr_e('Lower Color'); ?>"></input> + <input type="button" class="button-secondary" name="revert" value="<?php esc_attr_e('Revert'); ?>" onclick="kRevert()" /> + <input type="button" class="button-secondary" value="<?php esc_attr_e('Advanced'); ?>" onclick="toggleAdvanced()" /> + <input type="hidden" name="action" value="save" /> + <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo esc_attr(kubrick_header_display()); ?>" /> + <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo esc_attr(kubrick_header_color()); ?>" /> + <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo esc_attr(kubrick_upper_color()); ?>" /> + <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo esc_attr(kubrick_lower_color()); ?>" /> + <input type="hidden" name="headerimage" id="headerimage" value="<?php echo esc_attr(kubrick_header_image()); ?>" /> + <p class="submit"><input type="submit" name="submitform" class="button-primary" value="<?php esc_attr_e('Update Header'); ?>" onclick="cp.hidePopup('prettyplease')" /></p> + </form> + <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> + <div id="advanced"> + <form id="jsAdvanced" style="display:none;" action=""> + <?php wp_nonce_field('kubrick-header'); ?> + <label for="advfontcolor"><?php _e('Font Color (CSS):'); ?> </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo esc_attr(kubrick_header_color()); ?>" /><br /> + <label for="advuppercolor"><?php _e('Upper Color (HEX):');?> </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo esc_attr(kubrick_upper_color()); ?>" /><br /> + <label for="advlowercolor"><?php _e('Lower Color (HEX):'); ?> </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo esc_attr(kubrick_lower_color()); ?>" /><br /> + <input type="button" class="button-secondary" name="default" value="<?php esc_attr_e('Select Default Colors'); ?>" onclick="kDefaults()" /><br /> + <input type="button" class="button-secondary" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php esc_attr_e('Toggle Text Display'); ?>"></input><br /> + </form> + </div> + </div> + </div> +</div> +<?php } ?> diff --git a/wp-content/themes/default/header.php b/wp-content/themes/default/header.php new file mode 100644 index 0000000000000000000000000000000000000000..458e63b38c6d1c43cc494e5946d892ae33ab4313 --- /dev/null +++ b/wp-content/themes/default/header.php @@ -0,0 +1,45 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> + +<head profile="http://gmpg.org/xfn/11"> +<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> + +<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> + +<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> +<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> + +<style type="text/css" media="screen"> + +<?php +// Checks to see whether it needs a sidebar or not +if ( empty($withcomments) && !is_single() ) { +?> + #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; } +<?php } else { // No sidebar ?> + #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; } +<?php } ?> + +</style> + +<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> + +<?php wp_head(); ?> +</head> +<body <?php body_class(); ?>> +<div id="page"> + + +<div id="header" role="banner"> + <div id="headerimg"> + <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> + <div class="description"><?php bloginfo('description'); ?></div> + </div> +</div> +<hr /> diff --git a/wp-content/themes/default/image.php b/wp-content/themes/default/image.php new file mode 100644 index 0000000000000000000000000000000000000000..94f41717f79c7513796ebee776488a99856fb320 --- /dev/null +++ b/wp-content/themes/default/image.php @@ -0,0 +1,69 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +get_header(); +?> + + <div id="content" class="widecolumn"> + + <?php if (have_posts()) : while (have_posts()) : the_post(); ?> + + <div class="post" id="post-<?php the_ID(); ?>"> + <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2> + <div class="entry"> + <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p> + <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div> + + <?php the_content('<p class="serif">' . __('Read the rest of this entry »', 'kubrick') . '</p>'); ?> + + <div class="navigation"> + <div class="alignleft"><?php previous_image_link() ?></div> + <div class="alignright"><?php next_image_link() ?></div> + </div> + <br class="clear" /> + + <p class="postmetadata alt"> + <small> + <?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'kubrick'), get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', ')); ?> + <?php the_taxonomies(); ?> + <?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "kubrick"), get_post_comments_feed_link()); ?> + + <?php if ( comments_open() && pings_open() ) { + // Both Comments and Pings are open ?> + <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), get_trackback_url()); ?> + + <?php } elseif ( !comments_open() && pings_open() ) { + // Only Pings are Open ?> + <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), get_trackback_url()); ?> + + <?php } elseif ( comments_open() && !pings_open() ) { + // Comments are open, Pings are not ?> + <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); ?> + + <?php } elseif ( !comments_open() && !pings_open() ) { + // Neither Comments, nor Pings are open ?> + <?php _e('Both comments and pings are currently closed.', 'kubrick'); ?> + + <?php } edit_post_link('Edit this entry.','',''); ?> + + </small> + </p> + + </div> + + </div> + + <?php comments_template(); ?> + + <?php endwhile; else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p> + +<?php endif; ?> + + </div> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/images/audio.jpg b/wp-content/themes/default/images/audio.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b02e1c86e5eacc83f2189a37e816a9310469d434 Binary files /dev/null and b/wp-content/themes/default/images/audio.jpg differ diff --git a/wp-content/themes/default/images/header-img.php b/wp-content/themes/default/images/header-img.php new file mode 100644 index 0000000000000000000000000000000000000000..50bd3c370cc244d46b428b850e4f0c20890f4342 --- /dev/null +++ b/wp-content/themes/default/images/header-img.php @@ -0,0 +1,82 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +/** @ignore */ +$img = 'kubrickheader.jpg'; + +// If we don't have image processing support, redirect. +if ( ! function_exists('imagecreatefromjpeg') ) + die(header("Location: kubrickheader.jpg")); + +// Assign and validate the color values +$default = false; +$vars = array('upper'=>array('r1', 'g1', 'b1'), 'lower'=>array('r2', 'g2', 'b2')); +foreach ( $vars as $var => $subvars ) { + if ( isset($_GET[$var]) ) { + foreach ( $subvars as $index => $subvar ) { + $length = strlen($_GET[$var]) / 3; + $v = substr($_GET[$var], $index * $length, $length); + if ( $length == 1 ) $v = '' . $v . $v; + $$subvar = hexdec( $v ); + if ( $$subvar < 0 || $$subvar > 255 ) + $default = true; + } + } else { + $default = true; + } +} + +if ( $default ) + list ( $r1, $g1, $b1, $r2, $g2, $b2 ) = array ( 105, 174, 231, 65, 128, 182 ); + +// Create the image +$im = imagecreatefromjpeg($img); + +// Get the background color, define the rectangle height +$white = imagecolorat( $im, 15, 15 ); +$h = 182; + +// Define the boundaries of the rounded edges ( y => array ( x1, x2 ) ) +$corners = array( + 0 => array ( 25, 734 ), + 1 => array ( 23, 736 ), + 2 => array ( 22, 737 ), + 3 => array ( 21, 738 ), + 4 => array ( 21, 738 ), + 177 => array ( 21, 738 ), + 178 => array ( 21, 738 ), + 179 => array ( 22, 737 ), + 180 => array ( 23, 736 ), + 181 => array ( 25, 734 ), + ); + +// Blank out the blue thing +for ( $i = 0; $i < $h; $i++ ) { + $x1 = 19; + $x2 = 740; + imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); +} + +// Draw a new color thing +for ( $i = 0; $i < $h; $i++ ) { + $x1 = 20; + $x2 = 739; + $r = ( $r2 - $r1 != 0 ) ? $r1 + ( $r2 - $r1 ) * ( $i / $h ) : $r1; + $g = ( $g2 - $g1 != 0 ) ? $g1 + ( $g2 - $g1 ) * ( $i / $h ) : $g1; + $b = ( $b2 - $b1 != 0 ) ? $b1 + ( $b2 - $b1 ) * ( $i / $h ) : $b1; + $color = imagecolorallocate( $im, $r, $g, $b ); + if ( array_key_exists($i, $corners) ) { + imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); + list ( $x1, $x2 ) = $corners[$i]; + } + imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color ); +} + +//die; +header("Content-Type: image/jpeg"); +imagejpeg($im, '', 92); +imagedestroy($im); +?> diff --git a/wp-content/themes/default/images/kubrickbg-ltr.jpg b/wp-content/themes/default/images/kubrickbg-ltr.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dc74fb8d3d14f0c2dfd717b9a76cfb95cbf2c0c1 Binary files /dev/null and b/wp-content/themes/default/images/kubrickbg-ltr.jpg differ diff --git a/wp-content/themes/default/images/kubrickbg-rtl.jpg b/wp-content/themes/default/images/kubrickbg-rtl.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2e9e23747a52f635600fbc936448726152bcaa59 Binary files /dev/null and b/wp-content/themes/default/images/kubrickbg-rtl.jpg differ diff --git a/wp-content/themes/default/images/kubrickbgcolor.jpg b/wp-content/themes/default/images/kubrickbgcolor.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4653b68e6d1a5ba924c65573dfbd1546235461df Binary files /dev/null and b/wp-content/themes/default/images/kubrickbgcolor.jpg differ diff --git a/wp-content/themes/default/images/kubrickbgwide.jpg b/wp-content/themes/default/images/kubrickbgwide.jpg new file mode 100644 index 0000000000000000000000000000000000000000..77096f24a454461210f8aae017e0b2cfa2d03166 Binary files /dev/null and b/wp-content/themes/default/images/kubrickbgwide.jpg differ diff --git a/wp-content/themes/default/images/kubrickfooter.jpg b/wp-content/themes/default/images/kubrickfooter.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d7a4c659943978b9ef7fb58c1b0b480e98d857c8 Binary files /dev/null and b/wp-content/themes/default/images/kubrickfooter.jpg differ diff --git a/wp-content/themes/default/images/kubrickheader.jpg b/wp-content/themes/default/images/kubrickheader.jpg new file mode 100644 index 0000000000000000000000000000000000000000..69441ee3aae0908334b77dc449b19dfbe9cd2774 Binary files /dev/null and b/wp-content/themes/default/images/kubrickheader.jpg differ diff --git a/wp-content/themes/default/index.php b/wp-content/themes/default/index.php new file mode 100644 index 0000000000000000000000000000000000000000..136e8233934b6b19b958ef95cbdb713341be9293 --- /dev/null +++ b/wp-content/themes/default/index.php @@ -0,0 +1,45 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +get_header(); ?> + + <div id="content" class="narrowcolumn" role="main"> + + <?php if (have_posts()) : ?> + + <?php while (have_posts()) : the_post(); ?> + + <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> + <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> + <small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small> + + <div class="entry"> + <?php the_content(__('Read the rest of this entry »', 'kubrick')); ?> + </div> + + <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p> + </div> + + <?php endwhile; ?> + + <div class="navigation"> + <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')) ?></div> + <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')) ?></div> + </div> + + <?php else : ?> + + <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2> + <p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?></p> + <?php get_search_form(); ?> + + <?php endif; ?> + + </div> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/kubrick.pot b/wp-content/themes/default/kubrick.pot new file mode 100644 index 0000000000000000000000000000000000000000..82ca2632180078078115a24aea9da2f843cc4a28 --- /dev/null +++ b/wp-content/themes/default/kubrick.pot @@ -0,0 +1,617 @@ +# Translation of the WordPress theme WordPress Default 1.6 by Michael Heilemann. +# Copyright (C) 2009 Michael Heilemann +# This file is distributed under the same license as the WordPress Default package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: WordPress Default 1.6\n" +"Report-Msgid-Bugs-To: http://wordpress.org/tag/theme\n" +"POT-Creation-Date: 2009-12-23 23:38+0200\n" +"PO-Revision-Date: 2009-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: 404.php:12 +msgid "Error 404 - Not Found" +msgstr "" + +#: archive.php:16 +#, php-format +msgid "Archive for the ‘%s’ Category" +msgstr "" + +#: archive.php:18 +#, php-format +msgid "Posts Tagged ‘%s’" +msgstr "" + +#: archive.php:20 +#, php-format +msgid "Archive for %s|Daily archive page" +msgstr "" + +#: archive.php:20 index.php:17 +msgid "F jS, Y" +msgstr "" + +#: archive.php:22 +#, php-format +msgid "Archive for %s|Monthly archive page" +msgstr "" + +#: archive.php:22 sidebar.php:33 +msgid "F, Y" +msgstr "" + +#: archive.php:24 +#, php-format +msgid "Archive for %s|Yearly archive page" +msgstr "" + +#: archive.php:24 +msgid "Y" +msgstr "" + +#: archive.php:26 +msgid "Author Archive" +msgstr "" + +#: archive.php:28 +msgid "Blog Archives" +msgstr "" + +#: archive.php:33 archive.php:53 index.php:29 search.php:16 search.php:33 +msgid "« Older Entries" +msgstr "" + +#: archive.php:34 archive.php:54 index.php:30 search.php:17 search.php:34 +msgid "Newer Entries »" +msgstr "" + +#: archive.php:39 index.php:16 search.php:24 +#, php-format +msgid "Permanent Link to %s" +msgstr "" + +#: archive.php:40 image.php:32 sidebar.php:30 single.php:34 +msgid "l, F jS, Y" +msgstr "" + +#: archive.php:46 index.php:23 search.php:27 single.php:26 +msgid "Tags:" +msgstr "" + +#: archive.php:46 index.php:23 search.php:27 +#, php-format +msgid "Posted in %s" +msgstr "" + +#: archive.php:46 index.php:23 search.php:27 +msgid "Edit" +msgstr "" + +#: archive.php:46 index.php:23 search.php:27 +msgid "No Comments »" +msgstr "" + +#: archive.php:46 index.php:23 search.php:27 +msgid "1 Comment »" +msgstr "" + +#: archive.php:46 index.php:23 search.php:27 +msgid "% Comments »" +msgstr "" + +#: archive.php:46 index.php:23 search.php:27 +msgid "Comments Closed" +msgstr "" + +#: archive.php:59 +#, php-format +msgid "Sorry, but there aren't any posts in the %s category yet." +msgstr "" + +#: archive.php:61 +msgid "Sorry, but there aren't any posts with this date." +msgstr "" + +#: archive.php:64 +#, php-format +msgid "Sorry, but there aren't any posts by %s yet." +msgstr "" + +#: archive.php:66 +msgid "No posts found." +msgstr "" + +#: archives.php:17 +msgid "Archives by Month:" +msgstr "" + +#: archives.php:22 +msgid "Archives by Subject:" +msgstr "" + +#: comments-popup.php:9 +#, php-format +msgid "%1$s - Comments on %2$s" +msgstr "" + +#: comments-popup.php:28 +msgid "Comments" +msgstr "" + +#: comments-popup.php:30 +msgid "" +"<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on " +"this post." +msgstr "" + +#: comments-popup.php:33 +#, php-format +msgid "" +"The <abbr title=\"Universal Resource Locator\">URL</abbr> to TrackBack this " +"entry is: <em>%s</em>" +msgstr "" + +#: comments-popup.php:51 +msgid "Comment" +msgstr "" + +#: comments-popup.php:51 +msgid "Trackback" +msgstr "" + +#: comments-popup.php:51 +msgid "Pingback" +msgstr "" + +#: comments-popup.php:51 +#, php-format +msgid "by %1$s — %2$s @ <a href=\"#comment-%3$s\">%4$s</a>" +msgstr "" + +#: comments-popup.php:57 +msgid "No comments yet." +msgstr "" + +#: comments-popup.php:61 +msgid "Leave a comment" +msgstr "" + +#: comments-popup.php:62 +#, php-format +msgid "" +"Line and paragraph breaks automatic, e-mail address never displayed, " +"<acronym title=\"Hypertext Markup Language\">HTML</acronym> allowed: <code>%" +"s</code>" +msgstr "" + +#: comments-popup.php:66 +#, php-format +msgid "" +"Logged in as <a href=\"%1$s\">%2$s</a>. <a href=\"%3$s\" title=\"Log out of " +"this account\">Log out »</a>" +msgstr "" + +#: comments-popup.php:70 comments.php:72 +msgid "Name" +msgstr "" + +#: comments-popup.php:75 +msgid "E-mail" +msgstr "" + +#: comments-popup.php:80 +msgid "<abbr title=\"Universal Resource Locator\">URL</abbr>" +msgstr "" + +#: comments-popup.php:85 +msgid "Your Comment" +msgstr "" + +#: comments-popup.php:93 +msgid "Say It!" +msgstr "" + +#: comments-popup.php:98 +msgid "Sorry, the comment form is closed at this time." +msgstr "" + +#: comments-popup.php:103 +msgid "Close this window." +msgstr "" + +#: comments-popup.php:109 image.php:65 single.php:65 +msgid "Sorry, no posts matched your criteria." +msgstr "" + +#: comments-popup.php:113 +#, php-format +msgid "" +"Powered by <a href=\"%s\" title=\"Powered by WordPress, state-of-the-art " +"semantic personal publishing platform\"><strong>WordPress</strong></a>" +msgstr "" + +#: comments.php:12 +msgid "This post is password protected. Enter the password to view comments." +msgstr "" + +#: comments.php:21 +msgid "No Responses" +msgstr "" + +#: comments.php:21 +msgid "One Response" +msgstr "" + +#: comments.php:21 +msgid "% Responses" +msgstr "" + +#: comments.php:21 +#, php-format +msgid "to “%s”" +msgstr "" + +#: comments.php:43 +msgid "Comments are closed." +msgstr "" + +#: comments.php:53 +msgid "Leave a Reply" +msgstr "" + +#: comments.php:53 +#, php-format +msgid "Leave a Reply for %s" +msgstr "" + +#: comments.php:60 +#, php-format +msgid "You must be <a href=\"%s\">logged in</a> to post a comment." +msgstr "" + +#: comments.php:67 +#, php-format +msgid "Logged in as <a href=\"%1$s\">%2$s</a>." +msgstr "" + +#: comments.php:67 +msgid "Log out of this account" +msgstr "" + +#: comments.php:67 +msgid "Log out »" +msgstr "" + +#: comments.php:72 comments.php:75 +msgid "(required)" +msgstr "" + +#: comments.php:75 +msgid "Mail (will not be published)" +msgstr "" + +#: comments.php:78 +msgid "Website" +msgstr "" + +#: comments.php:82 +#, php-format +msgid "<strong>XHTML:</strong> You can use these tags: <code>%s</code>" +msgstr "" + +#: comments.php:86 +msgid "Submit Comment" +msgstr "" + +#: footer.php:12 +#, php-format +msgid "%1$s is proudly powered by %2$s" +msgstr "" + +#: footer.php:14 +#, php-format +msgid "%1$s and %2$s." +msgstr "" + +#: footer.php:14 +msgid "Entries (RSS)" +msgstr "" + +#: footer.php:14 +msgid "Comments (RSS)" +msgstr "" + +#: footer.php:15 +#, php-format +msgid "%d queries. %s seconds." +msgstr "" + +#: functions.php:160 +msgid "Custom Header" +msgstr "" + +#: functions.php:173 +msgid "Close Color Picker" +msgstr "" + +#: functions.php:376 +msgid "Options saved." +msgstr "" + +#: functions.php:379 +msgid "Customize Header" +msgstr "" + +#: functions.php:393 functions.php:400 +msgid "Save" +msgstr "" + +#: functions.php:394 +msgid "Font Color:" +msgstr "" + +#: functions.php:394 +#, php-format +msgid "Any CSS color (%s or %s or %s)" +msgstr "" + +#: functions.php:395 +msgid "Upper Color:" +msgstr "" + +#: functions.php:395 functions.php:396 +#, php-format +msgid "HEX only (%s or %s)" +msgstr "" + +#: functions.php:396 +msgid "Lower Color:" +msgstr "" + +#: functions.php:398 +msgid "Toggle Text" +msgstr "" + +#: functions.php:399 +msgid "Use Defaults" +msgstr "" + +#: functions.php:408 +msgid "Font Color" +msgstr "" + +#: functions.php:409 +msgid "Upper Color" +msgstr "" + +#: functions.php:410 +msgid "Lower Color" +msgstr "" + +#: functions.php:411 +msgid "Revert" +msgstr "" + +#: functions.php:412 +msgid "Advanced" +msgstr "" + +#: functions.php:419 +msgid "Update Header" +msgstr "" + +#: functions.php:425 +msgid "Font Color (CSS):" +msgstr "" + +#: functions.php:426 +msgid "Upper Color (HEX):" +msgstr "" + +#: functions.php:427 +msgid "Lower Color (HEX):" +msgstr "" + +#: functions.php:428 +msgid "Select Default Colors" +msgstr "" + +#: functions.php:429 +msgid "Toggle Text Display" +msgstr "" + +#: image.php:20 index.php:20 single.php:23 +msgid "Read the rest of this entry »" +msgstr "" + +#: image.php:22 page.php:17 single.php:25 +msgid "Pages:" +msgstr "" + +#: image.php:32 +#, php-format +msgid "This entry was posted on %1$s at %2$s and is filed under %3$s." +msgstr "" + +#: image.php:34 single.php:35 +#, php-format +msgid "" +"You can follow any responses to this entry through the <a href='%s'>RSS 2.0</" +"a> feed." +msgstr "" + +#: image.php:38 single.php:39 +#, php-format +msgid "" +"You can <a href=\"#respond\">leave a response</a>, or <a href=\"%s\" rel=" +"\"trackback\">trackback</a> from your own site." +msgstr "" + +#: image.php:42 single.php:43 +#, php-format +msgid "" +"Responses are currently closed, but you can <a href=\"%s\" rel=\"trackback" +"\">trackback</a> from your own site." +msgstr "" + +#: image.php:46 single.php:47 +msgid "" +"You can skip to the end and leave a response. Pinging is currently not " +"allowed." +msgstr "" + +#: image.php:50 single.php:51 +msgid "Both comments and pings are currently closed." +msgstr "" + +#: index.php:35 +msgid "Not Found" +msgstr "" + +#: index.php:36 +msgid "Sorry, but you are looking for something that isn’t here." +msgstr "" + +#: links.php:16 +msgid "Links:" +msgstr "" + +#: page.php:15 +msgid "Read the rest of this page »" +msgstr "" + +#: page.php:22 +msgid "Edit this entry." +msgstr "" + +#: search.php:13 +msgid "Search Results" +msgstr "" + +#: search.php:39 +msgid "No posts found. Try a different search?" +msgstr "" + +#: sidebar.php:16 +msgid "Author" +msgstr "" + +#: sidebar.php:27 +#, php-format +msgid "You are currently browsing the archives for the %s category." +msgstr "" + +#: sidebar.php:30 +#, php-format +msgid "" +"You are currently browsing the <a href=\"%1$s/\">%2$s</a> blog archives for " +"the day %3$s." +msgstr "" + +#: sidebar.php:33 +#, php-format +msgid "" +"You are currently browsing the <a href=\"%1$s/\">%2$s</a> blog archives for %" +"3$s." +msgstr "" + +#: sidebar.php:36 +#, php-format +msgid "" +"You are currently browsing the <a href=\"%1$s/\">%2$s</a> blog archives for " +"the year %3$s." +msgstr "" + +#: sidebar.php:39 +#, php-format +msgid "" +"You have searched the <a href=\"%1$s/\">%2$s</a> blog archives for " +"<strong>‘%3$s’</strong>. If you are unable to find anything in " +"these search results, you can try one of these links." +msgstr "" + +#: sidebar.php:42 +#, php-format +msgid "" +"You are currently browsing the <a href=\"%1$s/\">%2$s</a> blog archives." +msgstr "" + +#: sidebar.php:50 +msgid "Pages" +msgstr "" + +#: sidebar.php:52 +msgid "Archives" +msgstr "" + +#: sidebar.php:58 +msgid "Categories" +msgstr "" + +#: sidebar.php:64 +msgid "Meta" +msgstr "" + +#: sidebar.php:68 +msgid "This page validates as XHTML 1.0 Transitional" +msgstr "" + +#: sidebar.php:68 +msgid "Valid <abbr title=\"eXtensible HyperText Markup Language\">XHTML</abbr>" +msgstr "" + +#: sidebar.php:69 +msgid "XHTML Friends Network" +msgstr "" + +#: sidebar.php:69 +msgid "XFN" +msgstr "" + +#: sidebar.php:70 +msgid "" +"Powered by WordPress, state-of-the-art semantic personal publishing platform." +msgstr "" + +#: single.php:34 +#, php-format +msgid "This entry was posted %1$s on %2$s at %3$s and is filed under %4$s." +msgstr "" + +#: single.php:53 +msgid "Edit this entry" +msgstr "" + +#. Theme Name of an extension +msgid "WordPress Default" +msgstr "" + +#. Theme URI of an extension +msgid "http://wordpress.org/" +msgstr "" + +#. Description of an extension +msgid "" +"The default WordPress theme based on the famous <a href=\"http://" +"binarybonsai.com/kubrick/\">Kubrick</a>." +msgstr "" + +#. Author of an extension +msgid "Michael Heilemann" +msgstr "" + +#. Author URI of an extension +msgid "http://binarybonsai.com/" +msgstr "" + +#. Tags of an extension +msgid "blue, custom header, fixed width, two columns, widgets" +msgstr "" diff --git a/wp-content/themes/default/links.php b/wp-content/themes/default/links.php new file mode 100644 index 0000000000000000000000000000000000000000..2f62a8abd63c34d6a9ad2c7e717b30ece2244e1f --- /dev/null +++ b/wp-content/themes/default/links.php @@ -0,0 +1,23 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +/* +Template Name: Links +*/ +?> + +<?php get_header(); ?> + +<div id="content" class="widecolumn"> + +<h2><?php _e('Links:', 'kubrick'); ?></h2> +<ul> +<?php wp_list_bookmarks(); ?> +</ul> + +</div> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/page.php b/wp-content/themes/default/page.php new file mode 100644 index 0000000000000000000000000000000000000000..1d72dd0f6522183b0cef4f4eb8d59468a8fb5079 --- /dev/null +++ b/wp-content/themes/default/page.php @@ -0,0 +1,30 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +get_header(); ?> + + <div id="content" class="narrowcolumn" role="main"> + + <?php if (have_posts()) : while (have_posts()) : the_post(); ?> + <div class="post" id="post-<?php the_ID(); ?>"> + <h2><?php the_title(); ?></h2> + <div class="entry"> + <?php the_content('<p class="serif">' . __('Read the rest of this page »', 'kubrick') . '</p>'); ?> + + <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> + + </div> + </div> + <?php endwhile; endif; ?> + <?php edit_post_link(__('Edit this entry.', 'kubrick'), '<p>', '</p>'); ?> + + <?php comments_template(); ?> + + </div> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/rtl.css b/wp-content/themes/default/rtl.css new file mode 100644 index 0000000000000000000000000000000000000000..0583b52f1ef7959170a55509bfcc15a01ed341dd --- /dev/null +++ b/wp-content/themes/default/rtl.css @@ -0,0 +1,127 @@ +/* +Theme name: WordPress Default - kubrick - +Editors: Navid Kashani +Persian WordPress Project : wp-persian.com +*/ +body, .commentlist li, #commentform input, #commentform textarea, #commentform p, #sidebar, #wp-calendar caption { + font-family:tahoma, arial; +} +#page { + text-align:right; + direction:rtl; +} +h1, h2, h3, #sidebar h2 { + font-family:arial, tahoma; +} +.commentlist li .avatar { + float:left; +} + +.commentlist li { + padding: 5px 10px 10px 5px; + } +.commentlist li ul li { + margin-left: -5px; + margin-right: 10px; +} + +.commentlist p { + margin: 10px 0 10px 5px; +} +#header { + margin:0 1px 0 0; +} +.narrowcolumn { + float:right; + padding: 0 45px 20px 0; +} +.widecolumn { + margin: 5px 150px 0 0; +} +.widecolumn .smallattachment { + margin: 5px 0 5px 5px; +} +.postmetadata { + clear:right; +} +#sidebar { + margin-left: 0; + margin-right: 545px; +} +img.alignright { + margin: 0 7px 2px 0; +} + +img.alignleft { + margin: 0 0 2px 7px; +} + +.alignright { + float: left; +} + +.alignleft { + float: right; +} +code { + display:block; + direction:ltr; + text-align:left; +} +acronym, abbr, span.caps { + letter-spacing:0; /* fix opera bug */ +} +html>body .entry ul { + padding:0 10px 0 0; + text-indent:10px; +} +html>body .entry li { + margin: 7px 10px 8px 0; +} +.entry ol { + padding: 0 35px 0 0; +} +#sidebar ul ul, #sidebar ul ol { + margin: 5px 10px 0 0; +} +#sidebar ul ul ul, #sidebar ul ol { + margin: 0 10px 0 0; +} +#commentform { + margin: 5px 0 0 10px; + } +#commentform input { + margin: 5px 0 1px 5px; +} +#commentform #submit { + float:left; +} +.commentlist p { + margin: 10px 0 10px 5px; +} + +.children .even, .alt { + border-left: 0; + border-right: 1px solid #ddd; +} + +#wp-calendar #next a { + padding-right:0; + padding-left:10px; + text-align:left; +} +#wp-calendar #prev a { + padding-left:0; + padding-right:10px; + text-align:right; +} +blockquote { + margin: 15px 10px 0 30px; + padding-left: 0; + padding-right: 20px; + border-left: 0 none; + border-right: 5px solid #ddd; +} +#email, #url { + direction:ltr; +} \ No newline at end of file diff --git a/wp-content/themes/default/screenshot.png b/wp-content/themes/default/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..e0b1d488e1e987de70e4a929786a309dc83bb216 Binary files /dev/null and b/wp-content/themes/default/screenshot.png differ diff --git a/wp-content/themes/default/search.php b/wp-content/themes/default/search.php new file mode 100644 index 0000000000000000000000000000000000000000..df9ce49acdbe7e5f4ab8492be2e6ac0fc662155e --- /dev/null +++ b/wp-content/themes/default/search.php @@ -0,0 +1,48 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +get_header(); ?> + + <div id="content" class="narrowcolumn" role="main"> + + <?php if (have_posts()) : ?> + + <h2 class="pagetitle"><?php _e('Search Results', 'kubrick'); ?></h2> + + <div class="navigation"> + <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')) ?></div> + <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')) ?></div> + </div> + + + <?php while (have_posts()) : the_post(); ?> + + <div <?php post_class(); ?>> + <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3> + <small><?php the_time('l, F jS, Y') ?></small> + + <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p> + </div> + + <?php endwhile; ?> + + <div class="navigation"> + <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')) ?></div> + <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')) ?></div> + </div> + + <?php else : ?> + + <h2 class="center"><?php _e('No posts found. Try a different search?', 'kubrick'); ?></h2> + <?php get_search_form(); ?> + + <?php endif; ?> + + </div> + +<?php get_sidebar(); ?> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/sidebar.php b/wp-content/themes/default/sidebar.php new file mode 100644 index 0000000000000000000000000000000000000000..f8b3f04f95bb4d79228cef6b917deaebecc6bab9 --- /dev/null +++ b/wp-content/themes/default/sidebar.php @@ -0,0 +1,78 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ +?> + <div id="sidebar" role="complementary"> + <ul> + <?php /* Widgetized sidebar, if you have the plugin installed. */ + if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> + <li> + <?php get_search_form(); ?> + </li> + + <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. + <li><h2><?php _e('Author', 'kubrick'); ?></h2> + <p>A little something about you, the author. Nothing lengthy, just an overview.</p> + </li> + --> + + <?php if ( is_404() || is_category() || is_day() || is_month() || + is_year() || is_search() || is_paged() ) { + ?> <li> + + <?php /* If this is a 404 page */ if (is_404()) { ?> + <?php /* If this is a category archive */ } elseif (is_category()) { ?> + <p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p> + + <?php /* If this is a daily archive */ } elseif (is_day()) { ?> + <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p> + + <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> + <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p> + + <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> + <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p> + + <?php /* If this is a search result */ } elseif (is_search()) { ?> + <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>‘%3$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p> + + <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> + <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p> + + <?php } ?> + + <?php }?> + </ul> + <ul role="navigation"> + <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> + + <li><h2><?php _e('Archives', 'kubrick'); ?></h2> + <ul> + <?php wp_get_archives('type=monthly'); ?> + </ul> + </li> + + <?php wp_list_categories('show_count=1&title_li=<h2>' . __('Categories', 'kubrick') . '</h2>'); ?> + </ul> + <ul> + <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> + <?php wp_list_bookmarks(); ?> + + <li><h2><?php _e('Meta', 'kubrick'); ?></h2> + <ul> + <?php wp_register(); ?> + <li><?php wp_loginout(); ?></li> + <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional', 'kubrick'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>', 'kubrick'); ?></a></li> + <li><a href="http://gmpg.org/xfn/"><abbr title="<?php _e('XHTML Friends Network', 'kubrick'); ?>"><?php _e('XFN', 'kubrick'); ?></abbr></a></li> + <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'kubrick'); ?>">WordPress</a></li> + <?php wp_meta(); ?> + </ul> + </li> + <?php } ?> + + <?php endif; ?> + </ul> + </div> + diff --git a/wp-content/themes/default/single.php b/wp-content/themes/default/single.php new file mode 100644 index 0000000000000000000000000000000000000000..861f893543082793c609996a0f5fb76dd4df1698 --- /dev/null +++ b/wp-content/themes/default/single.php @@ -0,0 +1,71 @@ +<?php +/** + * @package WordPress + * @subpackage Default_Theme + */ + +get_header(); +?> + + <div id="content" class="widecolumn" role="main"> + + <?php if (have_posts()) : while (have_posts()) : the_post(); ?> + + <div class="navigation"> + <div class="alignleft"><?php previous_post_link( '%link', '« %title' ) ?></div> + <div class="alignright"><?php next_post_link( '%link', '%title »' ) ?></div> + </div> + + <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> + <h2><?php the_title(); ?></h2> + + <div class="entry"> + <?php the_content('<p class="serif">' . __('Read the rest of this entry »', 'kubrick') . '</p>'); ?> + + <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> + <?php the_tags( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>'); ?> + + <p class="postmetadata alt"> + <small> + <?php /* This is commented, because it requires a little adjusting sometimes. + You'll need to download this plugin, and follow the instructions: + http://binarybonsai.com/wordpress/time-since/ */ + /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'kubrick'), time_since($entry_datetime)); */ ?> + <?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'kubrick'), get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', ')); ?> + <?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "kubrick"), get_post_comments_feed_link()); ?> + + <?php if ( comments_open() && pings_open() ) { + // Both Comments and Pings are open ?> + <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), get_trackback_url()); ?> + + <?php } elseif ( !comments_open() && pings_open() ) { + // Only Pings are Open ?> + <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), get_trackback_url()); ?> + + <?php } elseif ( comments_open() && !pings_open() ) { + // Comments are open, Pings are not ?> + <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); ?> + + <?php } elseif ( !comments_open() && !pings_open() ) { + // Neither Comments, nor Pings are open ?> + <?php _e('Both comments and pings are currently closed.', 'kubrick'); ?> + + <?php } edit_post_link(__('Edit this entry', 'kubrick'),'','.'); ?> + + </small> + </p> + + </div> + </div> + + <?php comments_template(); ?> + + <?php endwhile; else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p> + +<?php endif; ?> + + </div> + +<?php get_footer(); ?> diff --git a/wp-content/themes/default/style.css b/wp-content/themes/default/style.css new file mode 100644 index 0000000000000000000000000000000000000000..db6d96ec9591433b3a1bab362de14e753332deea --- /dev/null +++ b/wp-content/themes/default/style.css @@ -0,0 +1,718 @@ +/* +Theme Name: Default +Theme URI: http://wordpress.org/ +Description: The default WordPress theme that graced version 1.5 to version 2.9, based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>. +Version: 1.7.2 +Author: Michael Heilemann +Author URI: http://binarybonsai.com/ +Tags: blue, silver, white, two-columns, fixed-width, right-sidebar, fixed-width, custom-header, threaded-comments, sticky-post, rtl-language-support, translation-ready +Text Domain: kubrick + + Kubrick v1.5 + http://binarybonsai.com/kubrick/ + + This theme was designed and built by Michael Heilemann, + whose blog you will find at http://binarybonsai.com/ + + The CSS, XHTML and design is released under GPL: + http://www.opensource.org/licenses/gpl-license.php + +*/ + + + +/* Begin Typography & Colors */ +body { + font-size: 62.5%; /* Resets 1em to 10px */ + font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; + background: #d5d6d7 url('images/kubrickbgcolor.jpg'); + color: #333; + text-align: center; + } + +#page { + background-color: white; + border: 1px solid #959596; + text-align: left; + } + +#header { + background: #73a0c5 url('images/kubrickheader.jpg') no-repeat bottom center; + } + +#headerimg { + margin: 7px 9px 0; + height: 192px; + width: 740px; + } + +#content { + font-size: 1.2em; + } + +.widecolumn .entry p { + font-size: 1.05em; + } + +.narrowcolumn .entry, .widecolumn .entry { + line-height: 1.4em; + } + +.widecolumn { + line-height: 1.6em; + } + +.narrowcolumn .postmetadata { + text-align: center; + } + +.thread-alt { + background-color: #f8f8f8; +} +.thread-even { + background-color: white; +} +.depth-1 { +border: 1px solid #ddd; +} + +.even, .alt { + + border-left: 1px solid #ddd; +} + +#footer { + background: #e7e7e7 url('images/kubrickfooter.jpg') no-repeat top; + border: none; + } + +small { + font-family: Arial, Helvetica, Sans-Serif; + font-size: 0.9em; + line-height: 1.5em; + } + +h1, h2, h3 { + font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif; + font-weight: bold; + } + +h1 { + font-size: 4em; + text-align: center; + } + +#headerimg .description { + font-size: 1.2em; + text-align: center; + } + +h2 { + font-size: 1.6em; + } + +h2.pagetitle { + font-size: 1.6em; + } + +#sidebar h2 { + font-family: 'Lucida Grande', Verdana, Sans-Serif; + font-size: 1.2em; + } + +h3 { + font-size: 1.3em; + } + +h1, h1 a, h1 a:hover, h1 a:visited, #headerimg .description { + text-decoration: none; + color: white; + } + +h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited { + color: #333; + } + +h2, h2 a, h2 a:hover, h2 a:visited, h3, h3 a, h3 a:hover, h3 a:visited, #sidebar h2, #wp-calendar caption, cite { + text-decoration: none; + } + +.entry p a:visited { + color: #b85b5a; + } + +.sticky { + background: #f7f7f7; + padding: 0 10px 10px; + } +.sticky h2 { + padding-top: 10px; + } + +.commentlist li, #commentform input, #commentform textarea { + font: 0.9em 'Lucida Grande', Verdana, Arial, Sans-Serif; + } +.commentlist li ul li { + font-size: 1em; +} + +.commentlist li { + font-weight: bold; +} + +.commentlist li .avatar { + float: right; + border: 1px solid #eee; + padding: 2px; + background: #fff; + } + +.commentlist cite, .commentlist cite a { + font-weight: bold; + font-style: normal; + font-size: 1.1em; + } + +.commentlist p { + font-weight: normal; + line-height: 1.5em; + text-transform: none; + } + +#commentform p { + font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; + } + +.commentmetadata { + font-weight: normal; + } + +#sidebar { + font: 1em 'Lucida Grande', Verdana, Arial, Sans-Serif; + } + +small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, blockquote, strike { + color: #777; + } + +code { + font: 1.1em 'Courier New', Courier, Fixed; + } + +acronym, abbr, span.caps +{ + font-size: 0.9em; + letter-spacing: .07em; + } + +a, h2 a:hover, h3 a:hover { + color: #06c; + text-decoration: none; + } + +a:hover { + color: #147; + text-decoration: underline; + } + +#wp-calendar #prev a, #wp-calendar #next a { + font-size: 9pt; + } + +#wp-calendar a { + text-decoration: none; + } + +#wp-calendar caption { + font: bold 1.3em 'Lucida Grande', Verdana, Arial, Sans-Serif; + text-align: center; + } + +#wp-calendar th { + font-style: normal; + text-transform: capitalize; + } +/* End Typography & Colors */ + + + +/* Begin Structure */ +body { + margin: 0 0 20px 0; + padding: 0; + } + +#page { + background-color: white; + margin: 20px auto; + padding: 0; + width: 760px; + border: 1px solid #959596; + } + +#header { + background-color: #73a0c5; + margin: 0 0 0 1px; + padding: 0; + height: 200px; + width: 758px; + } + +#headerimg { + margin: 0; + height: 200px; + width: 100%; + } + +.narrowcolumn { + float: left; + padding: 0 0 20px 45px; + margin: 0px 0 0; + width: 450px; + } + +.widecolumn { + padding: 10px 0 20px 0; + margin: 5px 0 0 150px; + width: 450px; + } + +.post { + margin: 0 0 40px; + text-align: justify; + } + +.post hr { + display: block; + } + +.widecolumn .post { + margin: 0; + } + +.narrowcolumn .postmetadata { + padding-top: 5px; + } + +.widecolumn .postmetadata { + margin: 30px 0; + } + +.widecolumn .smallattachment { + text-align: center; + float: left; + width: 128px; + margin: 5px 5px 5px 0px; +} + +.widecolumn .attachment { + text-align: center; + margin: 5px 0px; +} + +.postmetadata { + clear: both; +} + +.clear { + clear: both; +} + +#footer { + padding: 0; + margin: 0 auto; + width: 760px; + clear: both; + } + +#footer p { + margin: 0; + padding: 20px 0; + text-align: center; + } +/* End Structure */ + + + +/* Begin Headers */ +h1 { + padding-top: 70px; + margin: 0; + } + +h2 { + margin: 30px 0 0; + } + +h2.pagetitle { + margin-top: 30px; + text-align: center; +} + +#sidebar h2 { + margin: 5px 0 0; + padding: 0; + } + +h3 { + padding: 0; + margin: 30px 0 0; + } + +h3.comments { + padding: 0; + margin: 40px auto 20px ; + } +/* End Headers */ + + + +/* Begin Images */ +p img { + padding: 0; + max-width: 100%; + } + +/* Using 'class="alignright"' on an image will (who would've + thought?!) align the image to the right. And using 'class="centered', + will of course center the image. This is much better than using + align="center", being much more futureproof (and valid) */ + +img.centered { + display: block; + margin-left: auto; + margin-right: auto; + } + +img.alignright { + padding: 4px; + margin: 0 0 2px 7px; + display: inline; + } + +img.alignleft { + padding: 4px; + margin: 0 7px 2px 0; + display: inline; + } + +.alignright { + float: right; + } + +.alignleft { + float: left; + } +/* End Images */ + + + +/* Begin Lists + + Special stylized non-IE bullets + Do not work in Internet Explorer, which merely default to normal bullets. */ + +html>body .entry ul { + margin-left: 0px; + padding: 0 0 0 30px; + list-style: none; + padding-left: 10px; + text-indent: -10px; + } + +html>body .entry li { + margin: 7px 0 8px 10px; + } + +.entry ul li:before, #sidebar ul ul li:before { + content: "\00BB \0020"; + } + +.entry ol { + padding: 0 0 0 35px; + margin: 0; + } + +.entry ol li { + margin: 0; + padding: 0; + } + +.postmetadata ul, .postmetadata li { + display: inline; + list-style-type: none; + list-style-image: none; + } + +#sidebar ul, #sidebar ul ol { + margin: 0; + padding: 0; + } + +#sidebar ul li { + list-style-type: none; + list-style-image: none; + margin-bottom: 15px; + } + +#sidebar ul p, #sidebar ul select { + margin: 5px 0 8px; + } + +#sidebar ul ul, #sidebar ul ol { + margin: 5px 0 0 10px; + } + +#sidebar ul ul ul, #sidebar ul ol { + margin: 0 0 0 10px; + } + +ol li, #sidebar ul ol li { + list-style: decimal outside; + } + +#sidebar ul ul li, #sidebar ul ol li { + margin: 3px 0 0; + padding: 0; + } +/* End Entry Lists */ + + + +/* Begin Form Elements */ +#searchform { + margin: 10px auto; + padding: 5px 3px; + text-align: center; + } + +#sidebar #searchform #s { + width: 108px; + padding: 2px; + } + +#sidebar #searchsubmit { + padding: 1px; + } + +.entry form { /* This is mainly for password protected posts, makes them look better. */ + text-align:center; + } + +select { + width: 130px; + } + +#commentform input { + width: 170px; + padding: 2px; + margin: 5px 5px 1px 0; + } + +#commentform { + margin: 5px 10px 0 0; + } +#commentform textarea { + width: 100%; + padding: 2px; + } +#respond:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; + } +#commentform #submit { + margin: 0 0 5px auto; + float: right; + } +/* End Form Elements */ + + + +/* Begin Comments*/ +.alt { + margin: 0; + padding: 10px; + } + +.commentlist { + padding: 0; + text-align: justify; + } + +.commentlist li { + margin: 15px 0 10px; + padding: 5px 5px 10px 10px; + list-style: none; + } +.commentlist li ul li { + margin-right: -5px; + margin-left: 10px; +} + +.commentlist p { + margin: 10px 5px 10px 0; +} +.children { padding: 0; } + +#commentform p { + margin: 5px 0; + } + +.nocomments { + text-align: center; + margin: 0; + padding: 0; + } + +.commentmetadata { + margin: 0; + display: block; + } +/* End Comments */ + + + +/* Begin Sidebar */ +#sidebar +{ + padding: 20px 0 10px 0; + margin-left: 545px; + width: 190px; + } + +#sidebar form { + margin: 0; + } +/* End Sidebar */ + + + +/* Begin Calendar */ +#wp-calendar { + empty-cells: show; + margin: 10px auto 0; + width: 155px; + } + +#wp-calendar #next a { + padding-right: 10px; + text-align: right; + } + +#wp-calendar #prev a { + padding-left: 10px; + text-align: left; + } + +#wp-calendar a { + display: block; + } + +#wp-calendar caption { + text-align: center; + width: 100%; + } + +#wp-calendar td { + padding: 3px 0; + text-align: center; + } + +#wp-calendar td.pad:hover { /* Doesn't work in IE */ + background-color: #fff; } +/* End Calendar */ + + + +/* Begin Various Tags & Classes */ +acronym, abbr, span.caps { + cursor: help; + } + +acronym, abbr { + border-bottom: 1px dashed #999; + } + +blockquote { + margin: 15px 30px 0 10px; + padding-left: 20px; + border-left: 5px solid #ddd; + } + +blockquote cite { + margin: 5px 0 0; + display: block; + } + +.center { + text-align: center; + } + +.hidden { + display: none; + } + +.screen-reader-text { + position: absolute; + left: -1000em; +} + +hr { + display: none; + } + +a img { + border: none; + } + +.navigation { + display: block; + text-align: center; + margin-top: 10px; + margin-bottom: 60px; + } +/* End Various Tags & Classes*/ + + + +/* Captions */ +.aligncenter, +div.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; +} + +.wp-caption { + border: 1px solid #ddd; + text-align: center; + background-color: #f3f3f3; + padding-top: 4px; + margin: 10px; + -moz-border-radius: 3px; + -khtml-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.wp-caption img { + margin: 0; + padding: 0; + border: 0 none; +} + +.wp-caption p.wp-caption-text { + font-size: 11px; + line-height: 17px; + padding: 0 4px 5px; + margin: 0; +} +/* End captions */ + + +/* "Daisy, Daisy, give me your answer do. I'm half crazy all for the love of you. + It won't be a stylish marriage, I can't afford a carriage. + But you'll look sweet upon the seat of a bicycle built for two." */