diff --git a/wp-content/themes/mnml/404.php b/wp-content/themes/mnml/404.php new file mode 100755 index 0000000000000000000000000000000000000000..ecebc706f44cc433e78c4ca54fba8225e6689a80 --- /dev/null +++ b/wp-content/themes/mnml/404.php @@ -0,0 +1,23 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + + <div id="post-0" class="post error404"> + <h2 class="entry-title"><?php _e('Not Found', 'sandbox') ?></h2> + <div class="entry-content"> + <p><?php _e('Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'sandbox') ?></p> + </div> + <form id="error404-searchform" method="get" action="<?php bloginfo('home') ?>"> + <div> + <input id="error404-s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="40" /> + <input id="error404-searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'sandbox') ?>" /> + </div> + </form> + </div><!-- .post --> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/archive.php b/wp-content/themes/mnml/archive.php new file mode 100755 index 0000000000000000000000000000000000000000..37bfe94bf9a3e34f67e8a4e1bbf985744517e915 --- /dev/null +++ b/wp-content/themes/mnml/archive.php @@ -0,0 +1,48 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php the_post() ?> + +<?php if ( is_day() ) : ?> + <h2 class="page-title"><?php printf(__('Daily Archives: <span>%s</span>', 'sandbox'), get_the_time(get_option('date_format'))) ?></h2> +<?php elseif ( is_month() ) : ?> + <h2 class="page-title"><?php printf(__('Monthly Archives: <span>%s</span>', 'sandbox'), get_the_time('F Y')) ?></h2> +<?php elseif ( is_year() ) : ?> + <h2 class="page-title"><?php printf(__('Yearly Archives: <span>%s</span>', 'sandbox'), get_the_time('Y')) ?></h2> +<?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?> + <h2 class="page-title"><?php _e('Blog Archives', 'sandbox') ?></h2> +<?php endif; ?> + +<?php rewind_posts() ?> + + <div id="nav-above" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + +<?php while ( have_posts() ) : the_post(); ?> + + <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>"> + <h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h3> + <div class="entry-content"> +<?php the_excerpt(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').'') ?> + + </div> + <div class="comments-link"><?php comments_popup_link(__('Add a comment', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?></div> + <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<div class=\"edit-link\">", "</span>\n\t\t\t\t\t</div>\n"); ?> + </div><!-- .post --> + +<?php endwhile ?> + + <div id="nav-below" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + + </div><!-- #content .hfeed --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/archives.php b/wp-content/themes/mnml/archives.php new file mode 100755 index 0000000000000000000000000000000000000000..e4a36411bfc091e16b2940a7413ec50476735a9c --- /dev/null +++ b/wp-content/themes/mnml/archives.php @@ -0,0 +1,50 @@ +<?php +/* +Template Name: Archives Page +*/ +?> +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php the_post() ?> + + <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>"> + <h2 class="entry-title"><?php the_title() ?></h2> + <div class="entry-content"> +<?php the_content(); ?> + + <ul id="archives-page" class="xoxo"> + <li id="category-archives" class="content-column"> + <h3><?php _e('Archives by Category', 'sandbox') ?></h3> + <ul> + <?php wp_list_cats('sort_column=name&optioncount=1&feed=RSS') ?> + </ul> + </li> + <li id="monthly-archives" class="content-column"> + <h3><?php _e('Archives by Month', 'sandbox') ?></h3> + <ul> + <?php wp_get_archives('type=monthly&show_post_count=1') ?> + </ul> + </li> + <?php if ( function_exists('wp_tag_cloud') ) : ?> + <li id="tag-archive" class="content-column"> + <h3>Tag Cloud</h3> + <?php wp_tag_cloud(''); ?> + </li> + <?php endif; ?> + </ul> + +<?php edit_post_link(__('Edit', 'sandbox'),'<span class="edit-link">','</span>') ?> + + </div> + </div><!-- .post --> + +<?php if ( get_post_custom_values('comments') ) comments_template() // Add a key/value of "comments" to enable comments on pages! ?> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/attachment.php b/wp-content/themes/mnml/attachment.php new file mode 100755 index 0000000000000000000000000000000000000000..791b2755dc2d3b23f0c6781d8a4d764a08bcd000 --- /dev/null +++ b/wp-content/themes/mnml/attachment.php @@ -0,0 +1,51 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php the_post() ?> + + <h2 class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php echo get_the_title($post->post_parent) ?></a></h2> + <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class() ?>"> + <h3 class="entry-title"><?php the_title() ?></h3> + <div class="entry-content"> + <div class="entry-attachment"><?php the_attachment_link($post->post_ID, true) ?></div> +<?php the_content(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').''); ?> + +<?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?> + + </div> + <div class="entry-meta"> + <?php printf(__('This entry was written by %1$s, posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>, filed under %6$s and tagged %7$s. Bookmark the <a href="%8$s" title="Permalink to %9$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%10$s" title="Comments RSS to %9$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox'), + '<span class="author vcard"><a class="url fn n" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</a></span>', + get_the_time('Y-m-d'), + get_the_time('H:i:sO'), + the_date('', '', '', false), + get_the_time(), + get_the_category_list(', '), + get_the_tag_list(' and tagged ', ', ', ''), + get_permalink(), + wp_specialchars(get_the_title(), 'double'), + comments_rss() ) ?> + +<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Comments and trackbacks open ?> + <?php printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url()) ?> +<?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Only trackbacks open ?> + <?php printf(__('Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url()) ?> +<?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Only comments open ?> + <?php printf(__('Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox')) ?> +<?php elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Comments and trackbacks closed ?> + <?php _e('Both comments and trackbacks are currently closed.') ?> +<?php endif; ?> +<?php edit_post_link(__('Edit', 'sandbox'), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>"); ?> + + </div> + </div><!-- .post --> + +<?php comments_template(); ?> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/author.php b/wp-content/themes/mnml/author.php new file mode 100755 index 0000000000000000000000000000000000000000..ca9c64a8936704d2c6e5c89480e9c4c761997cad --- /dev/null +++ b/wp-content/themes/mnml/author.php @@ -0,0 +1,39 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php the_post() ?> + + <h2 class="page-title author"><?php printf(__('Author Archives: <span class="vcard">%s</span>', 'sandbox'), "<a class='url fn n' href='$authordata->user_url' title='$authordata->display_name' rel='me'>$authordata->display_name</a>") ?></h2> + <div class="archive-meta"><?php if ( !(''== $authordata->user_description) ) : echo apply_filters('archive_meta', $authordata->user_description); endif; ?></div> + + <div id="nav-above" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + +<?php rewind_posts(); while (have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class(); ?>"> + <h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title(); ?></a></h3> + <div class="entry-content "> +<?php the_excerpt(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').'') ?> + + </div> + <div class="comments-link"><?php comments_popup_link(__('Add a comment', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?></div> + <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<div class=\"edit-link\">", "</span>\n\t\t\t\t\t</div>\n"); ?> + </div><!-- .post --> + +<?php endwhile ?> + + <div id="nav-below" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/category.php b/wp-content/themes/mnml/category.php new file mode 100755 index 0000000000000000000000000000000000000000..266a969dfb4608fcce3fac7a93bda1ec9ca6c4ee --- /dev/null +++ b/wp-content/themes/mnml/category.php @@ -0,0 +1,37 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + + <h2 class="page-title"><?php _e('Category Archives:', 'sandbox') ?> <span><?php echo single_cat_title(); ?></span></h2> + <div class="archive-meta"><?php if ( !(''== category_description()) ) : echo apply_filters('archive_meta', category_description()); endif; ?></div> + + <div id="nav-above" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + +<?php while (have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class(); ?>"> + <h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h3> + <div class="entry-content"> +<?php the_excerpt(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').'') ?> + + </div> + <div class="comments-link"><?php comments_popup_link(__('Add a comment', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?></div> + <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<div class=\"edit-link\">", "</span>\n\t\t\t\t\t</div>\n"); ?> + </div><!-- .post --> + +<?php endwhile; ?> + + <div id="nav-below" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/comments.php b/wp-content/themes/mnml/comments.php new file mode 100755 index 0000000000000000000000000000000000000000..7627589bf0304394c359fb84ce2a365bbcff36a5 --- /dev/null +++ b/wp-content/themes/mnml/comments.php @@ -0,0 +1,126 @@ + <div id="comments"> +<?php + $req = get_option('require_name_email'); // Checks if fields are required. Thanks, Adam. ;-) + if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) ) + die ( 'Please do not load this page directly. Thanks!' ); + if ( ! empty($post->post_password) ) : + if ( $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password ) : +?> + <div class="nopassword"><?php _e('This post is password protected. Enter the password to view any comments.', 'sandbox') ?></div> + </div><!-- .comments --> +<?php + return; + endif; +endif; +?> +<?php if ( $comments ) : ?> +<?php global $sandbox_comment_alt ?> + +<?php /* numbers of pings and comments */ +$ping_count = $comment_count = 0; +foreach ( $comments as $comment ) + get_comment_type() == "comment" ? ++$comment_count : ++$ping_count; +?> +<?php if ( $comment_count ) : ?> +<?php $sandbox_comment_alt = 0 ?> + + <div id="comments-list" class="comments"> + <h3><?php printf($comment_count > 1 ? __('<span>%d</span> Comments', 'sandbox') : __('<span>One</span> Comment', 'sandbox'), $comment_count) ?></h3> + + <ol> +<?php foreach ($comments as $comment) : ?> +<?php if ( get_comment_type() == "comment" ) : ?> + <li id="comment-<?php comment_ID() ?>" class="<?php sandbox_comment_class() ?>"> + <div class="comment-author vcard"><span class="fn n"><?php comment_author_link() ?></span></div> + <div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'sandbox'), + get_comment_date(), + get_comment_time(), + '#comment-' . get_comment_ID() ); + edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div> +<?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'sandbox') ?> + <?php comment_text() ?> + </li> +<?php endif; /* if ( get_comment_type() == "comment" ) */ ?> +<?php endforeach; ?> + + </ol> + </div><!-- #comments-list .comments --> + +<?php endif; /* if ( $comment_count ) */ ?> +<?php if ( $ping_count ) : ?> +<?php $sandbox_comment_alt = 0 ?> + + <div id="trackbacks-list" class="comments"> + <h3><?php printf($ping_count > 1 ? __('<span>%d</span> Trackbacks', 'sandbox') : __('<span>One</span> Trackback', 'sandbox'), $ping_count) ?></h3> + + <ol> +<?php foreach ( $comments as $comment ) : ?> +<?php if ( get_comment_type() != "comment" ) : ?> + + <li id="comment-<?php comment_ID() ?>" class="<?php sandbox_comment_class() ?>"> + <div class="comment-author"><?php printf(__('By %1$s on %2$s at %3$s', 'sandbox'), + get_comment_author_link(), + get_comment_date(), + get_comment_time() ); + edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div> +<?php if ($comment->comment_approved == '0') _e('\t\t\t\t\t<span class="unapproved">Your trackback is awaiting moderation.</span>\n', 'sandbox') ?> + <?php comment_text() ?> + </li> +<?php endif /* if ( get_comment_type() != "comment" ) */ ?> +<?php endforeach; ?> + + </ol> + </div><!-- #trackbacks-list .comments --> + +<?php endif /* if ( $ping_count ) */ ?> +<?php endif /* if ( $comments ) */ ?> +<?php if ( 'open' == $post->comment_status ) : ?> + <div id="respond"> + <h3><?php _e('Post a Comment', 'sandbox') ?></h3> + +<?php if ( get_option('comment_registration') && !$user_ID ) : ?> + <p id="login-req"><?php printf(__('You must be <a href="%s" title="Log in">logged in</a> to post a comment.', 'sandbox'), + get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink() ) ?></p> + +<?php else : ?> + <div class="formcontainer"> + <form id="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post"> + +<?php if ( $user_ID ) : ?> + <p id="login"><?php printf(__('<span class="loggedin">Logged in as <a href="%1$s" title="Logged in as %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Log out of this account">Log out?</a></span>', 'sandbox'), + get_option('siteurl') . '/wp-admin/profile.php', + wp_specialchars($user_identity, true), + get_option('siteurl') . '/wp-login.php?action=logout&redirect_to=' . get_permalink() ) ?></p> + +<?php else : ?> + + <p id="comment-notes"><?php _e('Your email is <em>never</em> published nor shared.', 'sandbox') ?> <?php if ($req) _e('Required fields are marked <span class="required">*</span>', 'sandbox') ?></p> + + <div class="form-label"><label for="author"><?php _e('Name', 'sandbox') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'sandbox') ?></div> + <div class="form-input"><input id="author" name="author" type="text" value="<?php echo $comment_author ?>" size="30" maxlength="20" tabindex="3" /></div> + + <div class="form-label"><label for="email"><?php _e('Email', 'sandbox') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'sandbox') ?></div> + <div class="form-input"><input id="email" name="email" type="text" value="<?php echo $comment_author_email ?>" size="30" maxlength="50" tabindex="4" /></div> + + <div class="form-label"><label for="url"><?php _e('Website', 'sandbox') ?></label></div> + <div class="form-input"><input id="url" name="url" type="text" value="<?php echo $comment_author_url ?>" size="30" maxlength="50" tabindex="5" /></div> + +<?php endif /* if ( $user_ID ) */ ?> + + <div class="form-label"><label for="comment"><?php _e('Comment', 'sandbox') ?></label></div> + <div class="form-textarea"><textarea id="comment" name="comment" cols="45" rows="8" tabindex="6"></textarea></div> + + <?php if (function_exists('show_subscription_checkbox')) { show_subscription_checkbox(); } ?> + + <div class="form-submit"><input id="submit" name="submit" type="submit" value="<?php _e('Post Comment', 'sandbox') ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></div> + + <?php do_action('comment_form', $post->ID); ?> + + </form><!-- #commentform --> + </div><!-- .formcontainer --> +<?php endif /* if ( get_option('comment_registration') && !$user_ID ) */ ?> + + </div><!-- #respond --> +<?php endif /* if ( 'open' == $post->comment_status ) */ ?> + + </div><!-- #comments --> diff --git a/wp-content/themes/mnml/footer.php b/wp-content/themes/mnml/footer.php new file mode 100755 index 0000000000000000000000000000000000000000..439bd17cce6b559b798c46a6f7a467cea646e546 --- /dev/null +++ b/wp-content/themes/mnml/footer.php @@ -0,0 +1,14 @@ + + </div><!-- #content-wrap --> + + <div id="footer"> + <p>This page was generated by <span id="generator-link"><a href="http://wordpress.org/" title="<?php _e('WordPress', 'sandbox'); ?>" rel="generator"><?php _e('WordPress', 'sandbox'); ?></a></span> + and <span id="theme-link"><a href="http://themeshaper.com/" title="<?php _e('A ThemeShaper Theme', 'sandbox'); ?>" rel="designer"><?php _e('MNML', 'sandbox'); ?></a></span>.</p> + </div><!-- #footer --> + +</div><!-- #wrapper .hfeed --> + +<?php wp_footer() ?> + +</body> +</html> \ No newline at end of file diff --git a/wp-content/themes/mnml/functions.php b/wp-content/themes/mnml/functions.php new file mode 100755 index 0000000000000000000000000000000000000000..fb4690d342a392963fb12bf4607332e9a2606168 --- /dev/null +++ b/wp-content/themes/mnml/functions.php @@ -0,0 +1,12 @@ +<?php + +// Path constants +define('THEMELIB', TEMPLATEPATH . '/library'); + +// Add Dynamic Contextual Classes +require_once(THEMELIB . '/functions/sandbox-functions.php'); + +// Get the page number +require_once(THEMELIB . '/functions/page-numbers.php'); + +?> \ No newline at end of file diff --git a/wp-content/themes/mnml/header.php b/wp-content/themes/mnml/header.php new file mode 100755 index 0000000000000000000000000000000000000000..1e956c1f0107f276f0e03bd07d9e0a4e754d2591 --- /dev/null +++ b/wp-content/themes/mnml/header.php @@ -0,0 +1,52 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> +<head profile="http://gmpg.org/xfn/11"> + +<title><?php + if ( is_single() ) { single_post_title(); } + elseif ( is_home() ) { bloginfo('name'); print ' | '; bloginfo('description'); pageGetPageNo(); } + elseif ( is_page() ) { bloginfo('name'); single_post_title(' | '); } + elseif ( is_search() ) { bloginfo('name'); print ' | Search results for ' . wp_specialchars($s); pageGetPageNo(); } + elseif ( is_404() ) { bloginfo('name'); print ' | Not Found'; } + else { bloginfo('name'); wp_title('|'); pageGetPageNo(); } +?></title> + + <meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" /> + <meta name="description" content="<?php bloginfo('description') ?>" /> + <meta name="generator" content="WordPress <?php bloginfo('version') ?>" /><!-- Please leave for stats --> + + <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" /> + <!--[if lt IE 7]> + <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/styles/ie.css" /> + <![endif]--> + <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> <?php _e('Posts RSS feed', 'sandbox'); ?>" /> + <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> <?php _e('Comments RSS feed', 'sandbox'); ?>" /> + <link rel="pingback" href="<?php bloginfo('pingback_url') ?>" /> + +<?php wp_head() ?> + +</head> + +<body class="<?php sandbox_body_class() ?>"> + +<div id="wrapper" class="hfeed"> + + <div id="header"> + <div id="branding"> + <div id="blog-title"><a href="<?php echo get_option('home') ?>/" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></a></div> + <?php if (is_home()) { ?> + <h1 id="blog-description"><?php bloginfo('description') ?></h1> + <?php } else { ?> + <div id="blog-description"><?php bloginfo('description') ?></div> + <?php } ?> + </div><!-- #branding --> + <div id="access"> + <div class="skip-link"><a href="#content" title="<?php _e('Skip navigation to the content', 'sandbox'); ?>"><?php _e('Skip to content', 'sandbox'); ?></a></div> + <?php sandbox_globalnav() ?> + </div><!-- #access --> + <!--[if lt IE 7]> + <a class="browser-upgrade" href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx">Still using Internet Explorer 6?</a> + <![endif]--> + </div><!-- #header --> + + <div id="content-wrap"> \ No newline at end of file diff --git a/wp-content/themes/mnml/images/body-background.gif b/wp-content/themes/mnml/images/body-background.gif new file mode 100644 index 0000000000000000000000000000000000000000..def53290afefa354975a3ad589cd7b0e8c032b42 Binary files /dev/null and b/wp-content/themes/mnml/images/body-background.gif differ diff --git a/wp-content/themes/mnml/images/mnml-header-trans.png b/wp-content/themes/mnml/images/mnml-header-trans.png new file mode 100644 index 0000000000000000000000000000000000000000..c4dc734ca72bc95f676775e821acc3e15924c5cd Binary files /dev/null and b/wp-content/themes/mnml/images/mnml-header-trans.png differ diff --git a/wp-content/themes/mnml/index.php b/wp-content/themes/mnml/index.php new file mode 100755 index 0000000000000000000000000000000000000000..2dff3a09140c015e74ee050d70ec0c902bce6e9c --- /dev/null +++ b/wp-content/themes/mnml/index.php @@ -0,0 +1,72 @@ +<?php +if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'post' ) { + auth_redirect(); + if( !current_user_can( 'publish_posts' ) ) { + wp_redirect( get_bloginfo( 'url' ) . '/' ); + exit; + } + + check_admin_referer( 'new-post' ); + + $user_id = $current_user->user_id; + $post_content = $_POST['posttext']; + $tags = $_POST['tags']; + + $char_limit = 40; + $post_title = strip_tags( $post_content ); + if( strlen( $post_title ) > $char_limit ) { + $post_title = substr( $post_title, 0, $char_limit ) . ' ... '; + } + + $post_id = wp_insert_post( array( + 'post_author' => $user_id, + 'post_title' => $post_title, + 'post_content' => $post_content, + 'tags_input' => $tags, + 'post_status' => 'publish' + ) ); + + wp_redirect( get_bloginfo( 'url' ) . '/' ); + exit; +} + +get_header( ); + +if( current_user_can( 'publish_posts' ) ) { + require_once dirname( __FILE__ ) . '/post-form.php'; +} +?> + + <div id="container"> + <div id="content"> + + <div id="nav-above" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + +<?php while ( have_posts() ) : the_post() ?> + <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>"> + <h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h2> + <div class="entry-content"> +<?php the_content(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').''); ?> + +<?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?> + </div> + <div class="comments-link"><?php comments_popup_link(__('Add a comment', 'sandbox'), __('1 Comment', 'sandbox'), __('% Comments', 'sandbox')) ?></div> + <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<div class=\"edit-link\"><span>", "</span>\n\t\t\t\t\t</div>\n"); ?> + </div><!-- .post --> + +<?php comments_template() ?> +<?php endwhile ?> + + <div id="nav-below" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/library/functions/page-numbers.php b/wp-content/themes/mnml/library/functions/page-numbers.php new file mode 100644 index 0000000000000000000000000000000000000000..249b25c847848760850a8d1fe3d7669c9a19221f --- /dev/null +++ b/wp-content/themes/mnml/library/functions/page-numbers.php @@ -0,0 +1,12 @@ +<?php + +// Get the page number +function pageGetPageNo() +{ + if (get_query_var('paged')) + { + print ' | Page ' . get_query_var('paged'); + } +} + +?> \ No newline at end of file diff --git a/wp-content/themes/mnml/library/functions/prologue-functions.php b/wp-content/themes/mnml/library/functions/prologue-functions.php new file mode 100644 index 0000000000000000000000000000000000000000..138458f426d15080550ede97fb90904ea21ac9ed --- /dev/null +++ b/wp-content/themes/mnml/library/functions/prologue-functions.php @@ -0,0 +1,198 @@ +<?php +function get_recent_post_ids( $return_as_string = true ) { + global $wpdb; + + $recent_ids = (array) $wpdb->get_results( " + SELECT MAX(ID) AS post_id + FROM {$wpdb->posts} + WHERE post_type = 'post' + AND post_status = 'publish' + GROUP BY post_author + ORDER BY post_date_gmt DESC + ", ARRAY_A ); + + if( $return_as_string === true ) { + $ids_string = ''; + foreach( $recent_ids as $post_id ) { + $ids_string .= "{$post_id['post_id']}, "; + } + + // Remove trailing comma + $ids_string = substr( $ids_string, 0, -2 ); + + return $ids_string; + } + + $ids = array( ); + foreach( $recent_ids as $post_id ) { + $ids[] = $post_id['post_id']; + } + + return $ids; +} + +function prologue_recent_projects_widget( $args ) { + extract( $args ); + $options = get_option( 'prologue_recent_projects' ); + + $title = empty( $options['title'] ) ? __( 'Recent Tags' ) : $options['title']; + $num_to_show = empty( $options['num_to_show'] ) ? 35 : $options['num_to_show']; + + $num_to_show = (int) $num_to_show; + + $before = $before_widget; + $before .= $before_title . $title . $after_title; + + $after = $after_widget; + + echo prologue_recent_projects( $num_to_show, $before, $after ); +} + +function prologue_recent_projects( $num_to_show = 35, $before = '', $after = '' ) { + $cache = wp_cache_get( 'prologue_theme_tag_list', '' ); + if( !empty( $cache[$num_to_show] ) ) { + $recent_tags = $cache[$num_to_show]; + } + else { + $all_tags = (array) get_tags( array( 'get' => 'all' ) ); + + $recent_tags = array( ); + foreach( $all_tags as $tag ) { + if( $tag->count < 1 ) + continue; + + $tag_posts = get_objects_in_term( $tag->term_id, 'post_tag' ); + $recent_post_id = max( $tag_posts ); + $recent_tags[$tag->term_id] = $recent_post_id; + } + + arsort( $recent_tags ); + + $num_tags = count( $recent_tags ); + if( $num_tags > $num_to_show ) { + $reduce_by = (int) $num_tags - $num_to_show; + + for( $i = 0; $i < $reduce_by; $i++ ) { + array_pop( $recent_tags ); + } + } + + wp_cache_set( 'prologue_theme_tag_list', array( $num_to_show => $recent_tags ) ); + } + + echo $before; + echo "<ul>\n"; + + foreach( $recent_tags as $term_id => $post_id ) { + $tag = get_term( $term_id, 'post_tag' ); + $tag_link = get_tag_link( $tag->term_id ); +?> + +<li> +<a class="rss" href="<?php echo get_tag_feed_link( $tag->term_id ); ?>">RSS</a> <a href="<?php echo $tag_link; ?>"><?php echo $tag->name; ?></a> ( <?php echo $tag->count; ?> ) +</li> + +<?php + } // foreach get_tags +?> + + </ul> + +<p><a class="allrss" href="<?php bloginfo( 'rss2_url' ); ?>">All Updates RSS</a></p> + +<?php + echo $after; +} + +function prologue_flush_tag_cache( ) { + wp_cache_delete( 'prologue_theme_tag_list' ); +} +add_action( 'save_post', 'prologue_flush_tag_cache' ); + +function prologue_recent_projects_control( ) { + $options = $newoptions = get_option( 'prologue_recent_projects' ); + + if( $_POST['prologue_submit'] ) { + $newoptions['title'] = strip_tags( stripslashes( $_POST['prologue_title'] ) ); + $newoptions['num_to_show'] = strip_tags( stripslashes( $_POST['prologue_num_to_show'] ) ); + } + + if( $options != $newoptions ) { + $options = $newoptions; + update_option( 'prologue_recent_projects', $options ); + } + + $title = attribute_escape( $options['title'] ); + $num_to_show = $options['num_to_show']; +?> + +<input type="hidden" name="prologue_submit" id="prologue_submit" value="1" /> + +<p><label for="prologue_title"><?php _e('Title:') ?> +<input type="text" class="widefat" id="prologue_title" name="prologue_title" value="<?php echo $title ?>" /> +</label></p> + +<p><label for="prologue_num_to_show"><?php _e('Num of tags to show:') ?> +<input type="text" class="widefat" id="prologue_num_to_show" name="prologue_num_to_show" value="<?php echo $num_to_show ?>" /> +</label></p> + +<?php +} +wp_register_sidebar_widget( 'prologue_recent_projects_widget', __( 'Recent Projects' ), 'prologue_recent_projects_widget' ); +wp_register_widget_control( 'prologue_recent_projects_widget', __( 'Recent Projects' ), 'prologue_recent_projects_control' ); + +function load_javascript( ) { +// wp_enqueue_script( 'jquery' ); +} +add_action( 'wp_print_scripts', load_javascript ); + +if( function_exists('register_sidebar') ) + register_sidebar(); + + +define('HEADER_TEXTCOLOR', ''); +define('HEADER_IMAGE', '%s/images/there-is-no-image.jpg'); +define('HEADER_IMAGE_WIDTH', 726); +define('HEADER_IMAGE_HEIGHT', 150); +define('NO_HEADER_TEXT', true); + +function prologue_admin_header_style( ) { +?> +<style type="text/css"> +#headimg h1, #desc { + display: none; +} +#headimg { + height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; + width: <?php echo HEADER_IMAGE_WIDTH; ?>px; +} +</style> +<?php +} +add_custom_image_header( '', 'prologue_admin_header_style' ); + + +if( !function_exists( 'get_avatar' ) ) { + function get_avatar( $wpcom_user_id, $email, $size, $rating = '', $default = 'http://s.wordpress.com/i/mu.gif' ) { + if( !empty( $wpcom_user_id ) && $wpcom_user_id !== false && function_exists( 'avatar_by_id' ) ) { + return avatar_by_id( $wpcom_user_id, $size ); + } + elseif( !empty( $email ) && $email !== false ) { + $default = urlencode( $default ); + + $out = 'http://www.gravatar.com/avatar.php?gravatar_id='; + $out .= md5( $email ); + $out .= "&size={$size}"; + $out .= "&default={$default}"; + + if( !empty( $rating ) ) { + $out .= "&rating={$rating}"; + } + + return "<img alt='' src='{$out}' class='avatar avatar-{$size}' height='{$size}' width='{$size}' />"; + } + else { + return "<img alt='' src='{$default}' />"; + } + } +} diff --git a/wp-content/themes/mnml/library/functions/sandbox-functions.php b/wp-content/themes/mnml/library/functions/sandbox-functions.php new file mode 100644 index 0000000000000000000000000000000000000000..d313e89874f5b3bbf3ffcb2d81da7ead1546d425 --- /dev/null +++ b/wp-content/themes/mnml/library/functions/sandbox-functions.php @@ -0,0 +1,352 @@ +<?php +// Produces a list of pages in the header without whitespace -- er, I mean negative space. +function sandbox_globalnav() { + echo '<div id="menu"><ul>'; + $menu = wp_list_pages('title_li=&sort_column=menu_order&echo=0'); // Params for the page list in header.php + echo str_replace(array("\r", "\n", "\t"), '', $menu); + echo "</ul></div>\n"; +} + +// Generates semantic classes for BODY element +function sandbox_body_class( $print = true ) { + global $wp_query, $current_user; + + // It's surely a WordPress blog, right? + $c = array('wordpress'); + + // Applies the time- and date-based classes (below) to BODY element + sandbox_date_classes(time(), $c); + + // Generic semantic classes for what type of content is displayed + is_home() ? $c[] = 'home' : null; + is_archive() ? $c[] = 'archive' : null; + is_date() ? $c[] = 'date' : null; + is_search() ? $c[] = 'search' : null; + is_paged() ? $c[] = 'paged' : null; + is_attachment() ? $c[] = 'attachment' : null; + is_404() ? $c[] = 'four04' : null; // CSS does not allow a digit as first character + + // Special classes for BODY element when a single post + if ( is_single() ) { + $postID = $wp_query->post->ID; + the_post(); + + // Adds 'single' class and class with the post ID + $c[] = 'single postid-' . $postID; + + // Adds classes for the month, day, and hour when the post was published + if ( isset($wp_query->post->post_date) ) + sandbox_date_classes(mysql2date('U', $wp_query->post->post_date), $c, 's-'); + + // Adds category classes for each category on single posts + if ( $cats = get_the_category() ) + foreach ( $cats as $cat ) + $c[] = 's-category-' . $cat->slug; + + // Adds tag classes for each tags on single posts + if ( $tags = get_the_tags() ) + foreach ( $tags as $tag ) + $c[] = 's-tag-' . $tag->slug; + + // Adds MIME-specific classes for attachments + if ( is_attachment() ) { + $the_mime = get_post_mime_type(); + $boring_stuff = array("application/", "image/", "text/", "audio/", "video/", "music/"); + $c[] = 'attachment-' . str_replace($boring_stuff, "", "$the_mime"); + } + + // Adds author class for the post author + $c[] = 's-author-' . sanitize_title_with_dashes(strtolower(get_the_author_login())); + rewind_posts(); + } + + // Author name classes for BODY on author archives + else if ( is_author() ) { + $author = $wp_query->get_queried_object(); + $c[] = 'author'; + $c[] = 'author-' . $author->user_nicename; + } + + // Category name classes for BODY on category archvies + else if ( is_category() ) { + $cat = $wp_query->get_queried_object(); + $c[] = 'category'; + $c[] = 'category-' . $cat->slug; + } + + // Tag name classes for BODY on tag archives + else if ( is_tag() ) { + $tags = $wp_query->get_queried_object(); + $c[] = 'tag'; + $c[] = 'tag-' . $tags->slug; // Does not work; however I try to return the tag I get a false. Grrr. + } + + // Page author for BODY on 'pages' + else if ( is_page() ) { + $pageID = $wp_query->post->ID; + the_post(); + $c[] = 'page pageid-' . $pageID; + $c[] = 'page-author-' . sanitize_title_with_dashes(strtolower(get_the_author('login'))); + rewind_posts(); + } + + // For when a visitor is logged in while browsing + if ( $current_user->ID ) + $c[] = 'loggedin'; + + // Paged classes; for 'page X' classes of index, single, etc. + if ( ( ( $page = $wp_query->get("paged") ) || ( $page = $wp_query->get("page") ) ) && $page > 1 ) { + $c[] = 'paged-'.$page.''; + if ( is_single() ) { + $c[] = 'single-paged-'.$page.''; + } else if ( is_page() ) { + $c[] = 'page-paged-'.$page.''; + } else if ( is_category() ) { + $c[] = 'category-paged-'.$page.''; + } else if ( is_tag() ) { + $c[] = 'tag-paged-'.$page.''; + } else if ( is_date() ) { + $c[] = 'date-paged-'.$page.''; + } else if ( is_author() ) { + $c[] = 'author-paged-'.$page.''; + } else if ( is_search() ) { + $c[] = 'search-paged-'.$page.''; + } + } + + // Separates classes with a single space, collates classes for BODY + $c = join(' ', apply_filters('body_class', $c)); + + // And tada! + return $print ? print($c) : $c; +} + +// Generates semantic classes for each post DIV element +function sandbox_post_class( $print = true ) { + global $post, $sandbox_post_alt; + + // hentry for hAtom compliace, gets 'alt' for every other post DIV, describes the post type and p[n] + $c = array('hentry', "p$sandbox_post_alt", $post->post_type, $post->post_status); + + // Author for the post queried + $c[] = 'author-' . sanitize_title_with_dashes(strtolower(get_the_author('login'))); + + // Category for the post queried + foreach ( (array) get_the_category() as $cat ) + $c[] = 'category-' . $cat->slug; + + // Tags for the post queried + foreach ( (array) get_the_tags() as $tag ) + $c[] = 'tag-' . $tag->slug; + + // For password-protected posts + if ( $post->post_password ) + $c[] = 'protected'; + + // Applies the time- and date-based classes (below) to post DIV + sandbox_date_classes(mysql2date('U', $post->post_date), $c); + + // If it's the other to the every, then add 'alt' class + if ( ++$sandbox_post_alt % 2 ) + $c[] = 'alt'; + + // Separates classes with a single space, collates classes for post DIV + $c = join(' ', apply_filters('post_class', $c)); + + // And tada! + return $print ? print($c) : $c; +} + +// Define the num val for 'alt' classes (in post DIV and comment LI) +$sandbox_post_alt = 1; + +// Generates semantic classes for each comment LI element +function sandbox_comment_class( $print = true ) { + global $comment, $post, $sandbox_comment_alt; + + // Collects the comment type (comment, trackback), + $c = array($comment->comment_type); + + // Counts trackbacks (t[n]) or comments (c[n]) + if ($comment->comment_type == 'trackback') { + $c[] = "t$sandbox_comment_alt"; + } else { + $c[] = "c$sandbox_comment_alt"; + } + + // If the comment author has an id (registered), then print the log in name + if ( $comment->user_id > 0 ) { + $user = get_userdata($comment->user_id); + + // For all registered users, 'byuser'; to specificy the registered user, 'commentauthor+[log in name]' + $c[] = "byuser comment-author-" . sanitize_title_with_dashes(strtolower($user->user_login)); + // For comment authors who are the author of the post + if ( $comment->user_id === $post->post_author ) + $c[] = 'bypostauthor'; + } + + // If it's the other to the every, then add 'alt' class; collects time- and date-based classes + sandbox_date_classes(mysql2date('U', $comment->comment_date), $c, 'c-'); + if ( ++$sandbox_comment_alt % 2 ) + $c[] = 'alt'; + + // Separates classes with a single space, collates classes for comment LI + $c = join(' ', apply_filters('comment_class', $c)); + + // Tada again! + return $print ? print($c) : $c; +} + +// Generates time- and date-based classes for BODY, post DIVs, and comment LIs; relative to GMT (UTC) +function sandbox_date_classes($t, &$c, $p = '') { + $t = $t + (get_option('gmt_offset') * 3600); + $c[] = $p . 'y' . gmdate('Y', $t); // Year + $c[] = $p . 'm' . gmdate('m', $t); // Month + $c[] = $p . 'd' . gmdate('d', $t); // Day + $c[] = $p . 'h' . gmdate('H', $t); // Hour +} + +// For category lists on category archives: Returns other categories except the current one (redundant) +function sandbox_cats_meow($glue) { + $current_cat = single_cat_title('', false); + $separator = "\n"; + $cats = explode($separator, get_the_category_list($separator)); + + foreach ( $cats as $i => $str ) { + if ( strstr($str, ">$current_cat<") ) { + unset($cats[$i]); + break; + } + } + + if ( empty($cats) ) + return false; + + return trim(join($glue, $cats)); +} + +// For tag lists on tag archives: Returns other tags except the current one (redundant) +function sandbox_tag_ur_it($glue) { + $current_tag = single_tag_title('', '', false); + $separator = "\n"; + $tags = explode($separator, get_the_tag_list("", "$separator", "")); + + foreach ( $tags as $i => $str ) { + if ( strstr($str, ">$current_tag<") ) { + unset($tags[$i]); + break; + } + } + + if ( empty($tags) ) + return false; + + return trim(join($glue, $tags)); +} + + +// Widget: Search; to match the sandbox style and replace Widget plugin default +function widget_sandbox_search($args) { + extract($args); + if ( empty($title) ) + $title = __('Search', 'sandbox'); +?> + <?php echo $before_widget ?> + <?php echo $before_title ?><label for="s"><?php echo $title ?></label><?php echo $after_title ?> + <form id="searchform" method="get" action="<?php bloginfo('home') ?>"> + <div> + <input id="s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="10" tabindex="1" /> + <input id="searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'sandbox') ?>" tabindex="2" /> + </div> + </form> + <?php echo $after_widget ?> + +<?php +} + +// Widget: Meta; to match the sandbox style and replace Widget plugin default +function widget_sandbox_meta($args) { + extract($args); + if ( empty($title) ) + $title = __('Meta', 'sandbox'); +?> + <?php echo $before_widget; ?> + <?php echo $before_title . $title . $after_title; ?> + <ul> + <?php wp_register() ?> + <li><?php wp_loginout() ?></li> + <?php wp_meta() ?> + </ul> + <?php echo $after_widget; ?> +<?php +} + +// Widget: RSS links; to match the sandbox style +function widget_sandbox_rsslinks($args) { + extract($args); + $options = get_option('widget_sandbox_rsslinks'); + $title = empty($options['title']) ? __('RSS Links', 'sandbox') : $options['title']; +?> + <?php echo $before_widget; ?> + <?php echo $before_title . $title . $after_title; ?> + <ul> + <li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> <?php _e('Posts RSS feed', 'sandbox'); ?>" rel="alternate" type="application/rss+xml"><?php _e('All posts', 'sandbox') ?></a></li> + <li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo wp_specialchars(bloginfo('name'), 1) ?> <?php _e('Comments RSS feed', 'sandbox'); ?>" rel="alternate" type="application/rss+xml"><?php _e('All comments', 'sandbox') ?></a></li> + </ul> + <?php echo $after_widget; ?> +<?php +} + +// Widget: RSS links; element controls for customizing text within Widget plugin +function widget_sandbox_rsslinks_control() { + $options = $newoptions = get_option('widget_sandbox_rsslinks'); + if ( $_POST["rsslinks-submit"] ) { + $newoptions['title'] = strip_tags(stripslashes($_POST["rsslinks-title"])); + } + if ( $options != $newoptions ) { + $options = $newoptions; + update_option('widget_sandbox_rsslinks', $options); + } + $title = htmlspecialchars($options['title'], ENT_QUOTES); +?> + <p><label for="rsslinks-title"><?php _e('Title:'); ?> <input style="width: 250px;" id="rsslinks-title" name="rsslinks-title" type="text" value="<?php echo $title; ?>" /></label></p> + <input type="hidden" id="rsslinks-submit" name="rsslinks-submit" value="1" /> +<?php +} + +// Widgets plugin: intializes the plugin after the widgets above have passed snuff +function sandbox_widgets_init() { + if ( !function_exists('register_sidebars') ) + return; + + // Uses H3-level headings with all widgets to match sandbox style + $p = array( + 'before_title' => "<h3 class='widgettitle'>", + 'after_title' => "</h3>\n", + ); + + // Table for how many? One? How lonely. This way, please. + register_sidebars(1, $p); + + // Finished intializing Widgets plugin, now let's load the sandbox default widgets + register_sidebar_widget(__('Search', 'sandbox'), 'widget_sandbox_search', null, 'search'); + unregister_widget_control('search'); + register_sidebar_widget(__('Meta', 'sandbox'), 'widget_sandbox_meta', null, 'meta'); + unregister_widget_control('meta'); + register_sidebar_widget(array(__('RSS Links', 'sandbox'), 'widgets'), 'widget_sandbox_rsslinks'); + register_widget_control(array(__('RSS Links', 'sandbox'), 'widgets'), 'widget_sandbox_rsslinks_control', 300, 90); +} + +// Translate, if applicable +load_theme_textdomain('sandbox'); + +// Runs our code at the end to check that everything needed has loaded +add_action('init', 'sandbox_widgets_init'); + +// Adds filters so that things run smoothly +add_filter('archive_meta', 'wptexturize'); +add_filter('archive_meta', 'convert_smilies'); +add_filter('archive_meta', 'convert_chars'); +add_filter('archive_meta', 'wpautop'); + +?> \ No newline at end of file diff --git a/wp-content/themes/mnml/links.php b/wp-content/themes/mnml/links.php new file mode 100755 index 0000000000000000000000000000000000000000..9cb2af28e9f346021a5ca96b138ea6fc44d3dc6e --- /dev/null +++ b/wp-content/themes/mnml/links.php @@ -0,0 +1,31 @@ +<?php +/* +Template Name: Links Page +*/ +?> +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php the_post() ?> + <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class() ?>"> + <h2 class="entry-title"><?php the_title() ?></h2> + <div class="entry-content"> +<?php the_content() ?> + + <ul id="links-page" class="xoxo"> +<?php wp_list_bookmarks('title_before=<h3>&title_after=</h3>') ?> + </ul> +<?php edit_post_link(__('Edit', 'sandbox'),'<span class="edit-link">','</span>') ?> + + </div> + </div><!-- .post --> + +<?php if ( get_post_custom_values('comments') ) comments_template() // Add a key/value of "comments" to enable comments on pages! ?> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/page.php b/wp-content/themes/mnml/page.php new file mode 100755 index 0000000000000000000000000000000000000000..2ef2adfc2e9b16a2d989b121e8e83e442a8a567e --- /dev/null +++ b/wp-content/themes/mnml/page.php @@ -0,0 +1,25 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php the_post() ?> + <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class() ?>"> + <h1 class="entry-title"><?php the_title(); ?></h1> + <div class="entry-content"> +<?php the_content() ?> + +<?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?> + +<?php edit_post_link(__('Edit', 'sandbox'),'<span class="edit-link">','</span>') ?> + + </div> + </div><!-- .post --> + +<?php if ( get_post_custom_values('comments') ) comments_template() // Add a key+value of "comments" to enable comments on this page ?> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/post-form.php b/wp-content/themes/mnml/post-form.php new file mode 100644 index 0000000000000000000000000000000000000000..28f54ea23e650d1bcd58a4584abbb7a749eb3269 --- /dev/null +++ b/wp-content/themes/mnml/post-form.php @@ -0,0 +1,22 @@ +<?php +$user = get_userdata( $current_user->ID ); +$first_name = attribute_escape( $user->first_name ); +?> + +<div id="postbox"> + <form id="new_post" name="new_post" method="post" action="<?php bloginfo( 'url' ); ?>/"> + <input type="hidden" name="action" value="post" /> + <?php wp_nonce_field( 'new-post' ); ?> + + <label for="posttext">Hi, <?php echo $first_name; ?>. Write a Quick Post.</label> + <textarea name="posttext" id="posttext" rows="3" cols="60"></textarea> + + <label for="tags">Tag it</label> + <input type="text" name="tags" id="tags" autocomplete="off" /> + + <input id="submit" type="submit" value="Post it" /> + </form> + + <div id="user-info">[<a href="<?php echo get_option('siteurl'); ?>/wp-admin/post-new.php" title="<?php _e('Write a Full Post') ?>"><?php _e('Write a Full Post'); ?></a>, <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php" title="<?php _e('View and Edit Your Profile') ?>"><?php _e('My Profile'); ?></a>] </p></div> + +</div> <!-- #postbox --> diff --git a/wp-content/themes/mnml/readme.txt b/wp-content/themes/mnml/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..36e327a1ab38fa209f26548aa8d76cd7683c5b51 --- /dev/null +++ b/wp-content/themes/mnml/readme.txt @@ -0,0 +1,36 @@ += MNML = + +* Version 1.0 +* Updated 20 February 2008 +* by IAN STEWART, http://themeshaper.com/ + + +== ABOUT MNML == + +Auttomatic, the company behind WordPress.com have a great quote on their company site, "Blogging is too hard." I totally agree. Why did you start your personal blog anyway? You wanted a place online to share things you found interesting and occasionally write a longer article, maybe even a rant. Right? Did you want to start a magazine site with 40 categories carefully arranged on a complicated home page? Or did you want a blindingly shiny site that looked like it had been attacked by a pack of floor buffers? Probably not. Did you want something simple and cool looking? Something easy to post too? Something that looked, and worked like the tumblelog-style WordPress theme MNML? + +MNML features: + +* Quick Posting section for logged in users +* An unusual and striking design +* Progressive enhancement for modern browsers +* Search-Engine optimized code + +MNML makes use of The Sandbox theme for WordPress (http://code.google.com/p/sandbox-theme/) + +For more information visit: +http://themeshaper.com/ + +== LICENSE == + +The MNML design, by IAN STEWART, is licensed under the GNU General Public License: + + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details. + + To view the GNU General Public License in it's entirety write to the Free Software Foundation, Inc, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or visit + + http://www.fsf.org/licensing/licenses/gpl.html + + If you have any further questions feel free to contact the author of this program, IAN STEWART, at ian@themeshaper.com. \ No newline at end of file diff --git a/wp-content/themes/mnml/screenshot.png b/wp-content/themes/mnml/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..0fa06a3947e7037f0a50198bde3fc211123660df Binary files /dev/null and b/wp-content/themes/mnml/screenshot.png differ diff --git a/wp-content/themes/mnml/search.php b/wp-content/themes/mnml/search.php new file mode 100755 index 0000000000000000000000000000000000000000..aedcb6596ce22a4d1206246f95d33e46a526d34a --- /dev/null +++ b/wp-content/themes/mnml/search.php @@ -0,0 +1,55 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php if (have_posts()) : ?> + + <h2 class="page-title"><?php _e('Search Results for:', 'sandbox') ?> <span id="search-terms"><?php echo wp_specialchars(stripslashes($_GET['s']), true); ?></span></h2> + + <div id="nav-above" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + +<?php while ( have_posts() ) : the_post(); ?> + + <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>"> + <h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h3> + <div class="entry-content"> +<?php the_excerpt(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').'') ?> + + </div> + <div class="comments-link"><?php comments_popup_link(__('Add a comment', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?></div> + <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<div class=\"edit-link\">", "</span>\n\t\t\t\t\t</div>\n"); ?> + </div><!-- .post --> + +<?php endwhile; ?> + + <div id="nav-below" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + +<?php else : ?> + + <div id="post-0" class="post noresults"> + <h2 class="entry-title"><?php _e('Nothing Found', 'sandbox') ?></h2> + <div class="entry-content"> + <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'sandbox') ?></p> + </div> + <form id="noresults-searchform" method="get" action="<?php bloginfo('home') ?>"> + <div> + <input id="noresults-s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="40" /> + <input id="noresults-searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'sandbox') ?>" /> + </div> + </form> + </div><!-- .post --> + +<?php endif; ?> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> \ No newline at end of file diff --git a/wp-content/themes/mnml/sidebar.php b/wp-content/themes/mnml/sidebar.php new file mode 100755 index 0000000000000000000000000000000000000000..9512a37cfea4f280e43fe8bf5a4e8b5bab26aca0 --- /dev/null +++ b/wp-content/themes/mnml/sidebar.php @@ -0,0 +1,66 @@ + <div id="primary" class="sidebar"> + <ul class="xoxo"> +<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : // begin primary sidebar widgets ?> + + <li id="pages"> + <h3><?php _e('Pages', 'sandbox') ?></h3> + <ul> +<?php wp_list_pages('title_li=&sort_column=post_title' ) ?> + </ul> + </li> + + <li id="categories"> + <h3><?php _e('Categories', 'sandbox'); ?></h3> + <ul> +<?php wp_list_categories('title_li=&show_count=0&hierarchical=1') ?> + + </ul> + </li> + + <li id="archives"> + <h3><?php _e('Archives', 'sandbox') ?></h3> + <ul> +<?php wp_get_archives('type=monthly') ?> + + </ul> + </li> +<?php endif; // end primary sidebar widgets ?> + </ul> + </div><!-- #primary .sidebar --> + + <div id="secondary" class="sidebar"> + <ul class="xoxo"> +<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : // begin secondary sidebar widgets ?> + <li id="search"> + <h3><label for="s"><?php _e('Search', 'sandbox') ?></label></h3> + <form id="searchform" method="get" action="<?php bloginfo('home') ?>"> + <div> + <input id="s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="10" tabindex="1" /> + <input id="searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'sandbox') ?>" tabindex="2" /> + </div> + </form> + </li> + +<?php wp_list_bookmarks('title_before=<h3>&title_after=</h3>&show_images=1') ?> + + <li id="rss-links"> + <h3><?php _e('RSS Feeds', 'sandbox') ?></h3> + <ul> + <li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> <?php _e('Posts RSS feed', 'sandbox'); ?>" rel="alternate" type="application/rss+xml"><?php _e('All posts', 'sandbox') ?></a></li> + <li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo wp_specialchars(bloginfo('name'), 1) ?> <?php _e('Comments RSS feed', 'sandbox'); ?>" rel="alternate" type="application/rss+xml"><?php _e('All comments', 'sandbox') ?></a></li> + </ul> + </li> + + <li id="meta"> + <h3><?php _e('Meta', 'sandbox') ?></h3> + <ul> + <?php wp_register() ?> + + <li><?php wp_loginout() ?></li> + <?php wp_meta() ?> + + </ul> + </li> +<?php endif; // end secondary sidebar widgets ?> + </ul> + </div><!-- #secondary .sidebar --> diff --git a/wp-content/themes/mnml/single.php b/wp-content/themes/mnml/single.php new file mode 100755 index 0000000000000000000000000000000000000000..add0ec6d4966b1fe808b9826219e4941265cc768 --- /dev/null +++ b/wp-content/themes/mnml/single.php @@ -0,0 +1,57 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + +<?php the_post(); ?> + <div id="nav-above" class="navigation"> + <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">«</span> %title') ?></div> + <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">»</span>') ?></div> + </div> + + <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class(); ?>"> + <h1 class="entry-title"><?php the_title(); ?></h1> + <div class="entry-content"> +<?php the_content(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').''); ?> + +<?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?> + </div> + <div class="entry-meta"> + <?php printf(__('This entry was written by %1$s, posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>, filed under %6$s%7$s. Bookmark the <a href="%8$s" title="Permalink to %9$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%10$s" title="Comments RSS to %9$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox'), + '<span class="author vcard"><a class="url fn n" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</a></span>', + get_the_time('Y-m-d'), + get_the_time('H:i:sO'), + the_date('', '', '', false), + get_the_time(), + get_the_category_list(', '), + get_the_tag_list(' '.__('and tagged', 'sandbox').' ', ', ', ''), + get_permalink(), + wp_specialchars(get_the_title(), 'double'), + comments_rss() ) ?> + +<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Comments and trackbacks open ?> + <?php printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url()) ?> +<?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Only trackbacks open ?> + <?php printf(__('Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url()) ?> +<?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Only comments open ?> + <?php printf(__('Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox')) ?> +<?php elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Comments and trackbacks closed ?> + <?php _e('Both comments and trackbacks are currently closed.') ?> +<?php endif; ?> +<?php edit_post_link(__('Edit', 'sandbox'), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>"); ?> + + </div> + </div><!-- .post --> + + <div id="nav-below" class="navigation"> + <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">«</span> %title') ?></div> + <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">»</span>') ?></div> + </div> + +<?php comments_template(); ?> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?> diff --git a/wp-content/themes/mnml/style.css b/wp-content/themes/mnml/style.css new file mode 100755 index 0000000000000000000000000000000000000000..22f912c7e6977baf628abdbf548f61f2da3b1cef --- /dev/null +++ b/wp-content/themes/mnml/style.css @@ -0,0 +1,406 @@ +/* +THEME NAME: MNML +THEME URI: http://themeshaper.com/mnml-a-tumblelog-style-wordpress-theme/ +DESCRIPTION: A Tumblelog-style Theme for WordPress based on <a href="http://www.plaintxt.org/themes/sandbox/">The Sandbox</a> +VERSION: 1.3 +AUTHOR: <a href="http://themeshaper.com/">Ian Stewart</a> +AUTHOR URI: +Tags:two column, fixed width, fixed header, seo +*/ + +@import url('styles/reset.css'); +@import url('styles/typography.css'); + + +/* Structure +-------------------------------------------------------------- */ + +#header { + position:fixed; + bottom:0; + left:0; + right:0; + width:100%; +} +#branding { + width:950px; + margin:0 auto; +} +#access { + width:950px; + margin:0 auto; +} +#content-wrap { + width:950px; + margin:0 auto; + overflow:hidden; +} +#container { + width:590px; + float:left; +} +#content { + margin:0 40px 0 40px; +} +#primary { + float:left; + width:350px; + margin:0 0 36px 10px; +} +#footer { + clear:both; + width:950px; + margin:0 auto; +} + +/* Global Elements +-------------------------------------------------------------- */ + +body { + color:#FFF; + background:#1B1B1B url(images/body-background.gif) no-repeat top center; + background-attachment:fixed; +} +a:link, a:visited { + color:#6DCFF6; + text-decoration:none; +} +blockquote { + font-family:Georgia,serif; + font-size:16px; + font-style:italic; +} + +/* Header +-------------------------------------------------------------- */ + +#header { + background:url(images/mnml-header-trans.png) top; + padding:18px 0 0 0; + z-index:100; +} +#branding { + padding:18px 0; +} +#blog-title { + font-size:24px; + font-weight:bold; + line-height:24px; + display:inline; + padding:0 5px 0 40px; +} +#blog-title a { + text-decoration:none; + color:#FFF; + text-shadow: #040405 0 -1px 5px; +} +#blog-title a:hover { +} +#blog-description { + display:inline; + font-size:18px; + text-transform:uppercase; + letter-spacing:2px; + color:#040405; + margin-right:70px; +} + +/* Menu +-------------------------------------------------------------- */ + +.skip-link {display:none;} + +#access { + overflow:hidden; + border-top:1px solid #232829; +} +#access ul { + margin:0 40px 0 0; + list-style:none; + float:right; + border-right:1px solid #232829; +} +#access ul ul { + display:none; +} +#access li { + display:inline; + margin:0; +} +#access a { + display:block; + float:left; + color:#040405; + padding:0 10px; + line-height:21px; + text-decoration:none; + text-transform:uppercase; + font-size:10px; + letter-spacing:2px; + border-left:1px solid #232829; +} +#access .current_page_item a { + background:#3D4243; +} +#access a:hover { + background:#323739; +} + +/* Content +-------------------------------------------------------------- */ + +#wrapper { + padding:0 0 320px 0; +} +#postbox { + padding:54px 0; + position:relative; +} +#postbox form { + width:870px; + margin:0 auto; +} +#postbox textarea { + width:100%; + margin-bottom:9px; +} +#postbox label { + display: block; +} +#postbox input#tags { +} +#postbox input#submit { +} +#postbox #user-info { + position:absolute; + bottom:54px; + right:40px; +} +#container { + padding:54px 0 32px 0; +} +.hentry { + margin:0 0 54px 0; + position:relative; +} +.entry-title { + font-size:27px; + font-weight:bold; + line-height:28px; + margin-bottom:3px; + letter-spacing:-1px; +} +.entry-title a { + text-decoration:none; +} +.entry-content { + padding-top:16px; +} +.entry-content h1,.entry-content h2,.entry-content h3 { + font-size:15px; + font-weight:bold; + margin:0 0 16px 0; +} +.entry-content h4,.entry-content h5,.entry-content h6 { + font-weight:bold; +} +.entry-content h5 { + font-size:12px; +} +.entry-content h6 { + font-size:11px; +} +.entry-content abbr,.entry-content acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +.caps { + font-size:10px; + text-transform:uppercase; + letter-spacing:2px; +} +.important { + font-weight:bold; +} +.entry-meta { + font-size:11px; +} +.content-column, .entry-content .linkcat { + margin-left:0; + list-style:none; +} +.entry-content .linkcat { + margin-left:-18px; +} +.content-column { + margin-left:-18px; + margin-bottom:18px; +} + +/* Tumblelog Categories +-------------------------------------------------------------- */ + +/* Asides */ +.home .category-asides * { + display:inline; + position:relative; +} +.home .category-asides .entry-title { + display:none; +} +.home .category-asides .comments-link { + margin:0 0 0 .125em; +} +.home .category-asides .edit-link { + margin:0 0 0 .125em; +} + +/* Comments +-------------------------------------------------------------- */ + +#comments { + padding-top:36px; +} +.comments h3 { + font-size:17px; + font-weight:bold; + margin:0 0 18px 0; +} +#comments ol { + margin:36px 0 0 0; +} +#comments ol li { + margin:0 0 36px 0; +} +#comments-list .comment-author { + font-weight:bold; +} +.comment-meta { + font-size:11px; + margin-bottom:18px; +} +#respond h3 { + font-size:17px; + font-weight:bold; + margin:0 0 18px 0; +} +#respond input, #respond textarea { + width:510px; + margin-bottom:9px; +} +#respond .form-submit input#submit { + width:515px; +} + +/* Primary Sidebar +-------------------------------------------------------------- */ + +#primary { + width:348px; + padding:0 0 18px 0; + border-left:1px solid #272727; +} +.loggedin #primary { + border-top:1px solid #272727; +} +#primary ul { + margin:0; + list-style:none; +} +#primary ul ul { + padding:0 40px 18px 40px; + background:transparent; +} +#primary ul ul ul { + padding:0; +} +#primary h3 { + text-transform:uppercase; + font-size:12px; + line-height:36px; + font-weight:bold; + padding:0 39px 0 39px; + border:1px solid #272727; + border-width:1px 0; + margin:0 1px 17px 1px; +} +#primary a:link, #primary a:visited { + color:#FFF; +} +#primary:hover a:link, #primary:hover a:visited { + color:#6DCFF6; +} +.sidebar #search h3 { + display:none; +} +.sidebar #search form { + padding:18px 40px; +} +.sidebar #search input#s { + width:75%; +} + +/* Footer +-------------------------------------------------------------- */ + +#footer p { + margin-left:40px; +} +/* Navigation +-------------------------------------------------------------- */ + +.nav-previous { + float:left; + width:50%; +} +.nav-next { + float:right; +} +#nav-above,#nav-below { + float:right; + width: 100%; +} +.home #nav-above,.single #nav-above { + display:none; +} +#nav-above { + margin:16px 0; +} +#nav-below { + margin-top:-16px; + margin-bottom:16px; +} + +/* Images +-------------------------------------------------------------- */ + +.entry-content img { + margin: 0 0 16px 0; + max-width:100%; +} +img.alignleft, +img.align-left { + float: left; + margin-right:1.5em; +} +img.alignright, +img.align-right { + display: block; + float: right; + margin-left:1.5em; +} +img.centered, +img.align-center { + margin: 0 auto; + display: block; + float: none; + clear: both; +} +.alignright { + float: right; +} + +.alignleft { + float: left; +} + diff --git a/wp-content/themes/mnml/styles/ie.css b/wp-content/themes/mnml/styles/ie.css new file mode 100644 index 0000000000000000000000000000000000000000..2e06e0d6618b1ca455ac2467032ef04a12553e50 --- /dev/null +++ b/wp-content/themes/mnml/styles/ie.css @@ -0,0 +1,90 @@ +body { + background:#1B1B1B; +} +#header { + position:relative; + width:950px; + margin:0 auto; + background:transparent; + padding:72px 0 0 0; + border-bottom:1px solid #272727; +} +#branding { + width:950px; + margin:0 auto; + padding:18px 0; +} +#blog-title { + font-size:35px; + font-weight:bold; + line-height:36px; + padding:0 5px 0 40px; + display:block; + text-transform:uppercase; +} +#blog-title a { + text-decoration:none; + color:#6DCFF6; +} +#blog-title a:hover { + color:#FFF; +} +#blog-description { + display:block; + font-size:18px; + text-transform:none; + letter-spacing:0; + color:#FFF; + margin-right:70px; + margin-left:40px; + padding-bottom:18px; +} +#access { + width:950px; + margin:0 auto; + overflow:hidden; + border-top:1px solid #272727; +} +#access ul { + margin:0 40px 0 0; + list-style:none; + float:right; + border-right:1px solid #272727; +} +#access ul ul { + display:none; +} +#access li { + display:inline; + margin:0; +} +#access a { + display:block; + float:left; + color:#FFF; + padding:0 10px; + line-height:21px; + text-decoration:none; + text-transform:uppercase; + font-size:10px; + letter-spacing:2px; + border-left:1px solid #272727; +} +#access .current_page_item a { + background:#494949; +} +#access a:hover { + background:#323232; +} +a.browser-upgrade { + font-size:10px; + position:absolute; + top:18px; + right:80px; +} +#container { + overflow-x: hidden; +} +#primary { + overflow-x: hidden; +} \ No newline at end of file diff --git a/wp-content/themes/mnml/styles/reset.css b/wp-content/themes/mnml/styles/reset.css new file mode 100644 index 0000000000000000000000000000000000000000..dffb694976bfb608c6e0da23ad1ec40de394ae4e --- /dev/null +++ b/wp-content/themes/mnml/styles/reset.css @@ -0,0 +1 @@ +/* -------------------------------------------------------------- Reset default browser CSS. Based on work by Eric Meyer: * meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ -------------------------------------------------------------- */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; } body { line-height: 1.5; background: #fff; margin:0; } /* Tables still need 'cellspacing="0"' in the markup. */ table { border-collapse: separate; border-spacing: 0; } caption, th, td { text-align: left; font-weight: normal; } /* Remove possible quote marks (") from <q>, <blockquote>. */ blockquote:before, blockquote:after, q:before, q:after { content: ""; } blockquote, q { quotes: "" ""; } a img { border: none; } \ No newline at end of file diff --git a/wp-content/themes/mnml/styles/typography.css b/wp-content/themes/mnml/styles/typography.css new file mode 100644 index 0000000000000000000000000000000000000000..929549ee018f345756b622480ad4ed5f75811a7d --- /dev/null +++ b/wp-content/themes/mnml/styles/typography.css @@ -0,0 +1,98 @@ +/* -------------------------------------------------------------- + + Set some default typography based on Blueprint + * http://code.google.com/p/blueprintcss/ + + Based on work by: + * Nathan Borror [playgroundblues.com] + * Jeff Croft [jeffcroft.com] + * Christian Metts [mintchaos.com] + * Wilson Miner [wilsonminer.com] + + Read more about using a baseline here: + * alistapart.com/articles/settingtypeontheweb + +-------------------------------------------------------------- */ + +body { + font: 12px/18px Arial,sans-serif; + color:#000; +} + +/* Headings +-------------------------------------------------------------- */ + +h1,h2,h3,h4,h5,h6 { + font-weight:normal; + clear:both; +} + +/* Text elements +-------------------------------------------------------------- */ + +p { + margin: 0 0 18px 0; + text-align:left; +} +ul, ol { + margin: 0 0 18px 1.5em; +} +ul { + list-style:disc; +} +ol { + list-style-type: decimal; +} +ol ol { + list-style:upper-alpha; +} +ol ol ol { + list-style:lower-roman; +} +ol ol ol ol { + list-style:lower-alpha; +} +ul ul, ol ol, ul ol, ol ul { + margin-bottom:0; +} +dl { + margin: 0 0 18px 0; +} +dl dt { + font-weight: bold; + margin: 18px 0 0 0; +} +dd { + margin: 0 0 0 1.5em; +} +strong { + font-weight: bold; +} +cite, em, i { + font-style: italic; +} +blockquote { + margin: 0 1.5em; +} +blockquote em, blockquote i, blockquote cite { + font-style:normal; +} +pre { + font:11px Monaco, monospace; + line-height:18px; + margin-bottom:18px; +} +code { + font:11px Monaco, monospace; +} +ins { + text-decoration:none; +} + +/* Forms +-------------------------------------------------------------- */ + +input, textarea { + font:Georgia,serif; + line-height:18px; +} diff --git a/wp-content/themes/mnml/tag.php b/wp-content/themes/mnml/tag.php new file mode 100755 index 0000000000000000000000000000000000000000..05f4cf3758aca00a52d647ecc41c050f19e50e5b --- /dev/null +++ b/wp-content/themes/mnml/tag.php @@ -0,0 +1,36 @@ +<?php get_header() ?> + + <div id="container"> + <div id="content"> + + <h2 class="page-title"><?php _e('Tag Archives:', 'sandbox') ?> <span><?php single_tag_title(); ?></span></h2> + + <div id="nav-above" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + +<?php while (have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class(); ?>"> + <h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h3> + <div class="entry-content"> +<?php the_excerpt(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').'') ?> + + </div> + <div class="comments-link"><?php comments_popup_link(__('Add a comment', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?></div> + <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<div class=\"edit-link\">", "</span>\n\t\t\t\t\t</div>\n"); ?> + </div><!-- .post --> + +<?php endwhile; ?> + + <div id="nav-below" class="navigation"> + <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div> + <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div> + </div> + + </div><!-- #content --> + </div><!-- #container --> + +<?php get_sidebar() ?> +<?php get_footer() ?>