Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial checkin of slightly modified notepad theme.

  • Loading branch information...
commit eb535354b657787a809ad3c9e591ba583400f37f 0 parents
www-data authored
Showing with 1,823 additions and 0 deletions.
  1. +87 −0 comments.php
  2. +15 −0 footer.php
  3. +62 −0 functions.php
  4. +52 −0 header.php
  5. BIN  img/.DS_Store
  6. BIN  img/bg-stripe.png
  7. BIN  img/blockquote.png
  8. BIN  img/bullet.png
  9. BIN  img/cancel-reply.png
  10. BIN  img/comment-nav.png
  11. BIN  img/comment-submit.png
  12. BIN  img/comments-nav-circle.png
  13. BIN  img/content-dots.png
  14. BIN  img/footer.png
  15. BIN  img/form-button-bg.png
  16. BIN  img/header.png
  17. BIN  img/more-link.png
  18. BIN  img/nav-bg.png
  19. BIN  img/post-nav.png
  20. BIN  img/postdata-icons.png
  21. BIN  img/reply.png
  22. BIN  img/searchform.png
  23. BIN  img/sidebar-dots.png
  24. BIN  img/sidebar-list-arrow.png
  25. BIN  img/sidebar-list-circle.png
  26. BIN  img/socialmedia/amazon.png
  27. BIN  img/socialmedia/aol.png
  28. BIN  img/socialmedia/app-store.png
  29. BIN  img/socialmedia/apple.png
  30. BIN  img/socialmedia/bebo.png
  31. BIN  img/socialmedia/behance.png
  32. BIN  img/socialmedia/blogger.png
  33. BIN  img/socialmedia/delicious.png
  34. BIN  img/socialmedia/design-bump.png
  35. BIN  img/socialmedia/designfloat.png
  36. BIN  img/socialmedia/deviant-art.png
  37. BIN  img/socialmedia/digg.png
  38. BIN  img/socialmedia/email.png
  39. BIN  img/socialmedia/facebook.png
  40. BIN  img/socialmedia/flickr.png
  41. BIN  img/socialmedia/friendfeed.png
  42. BIN  img/socialmedia/frinedster.png
  43. BIN  img/socialmedia/google-talk.png
  44. BIN  img/socialmedia/google.png
  45. BIN  img/socialmedia/lastfm.png
  46. BIN  img/socialmedia/linkedin.png
  47. BIN  img/socialmedia/microsoft.png
  48. BIN  img/socialmedia/mister-wong.png
  49. BIN  img/socialmedia/mixx.png
  50. BIN  img/socialmedia/mobileme.png
  51. BIN  img/socialmedia/msn.png
  52. BIN  img/socialmedia/myspace.png
  53. BIN  img/socialmedia/netvibes.png
  54. BIN  img/socialmedia/newsvine.png
  55. BIN  img/socialmedia/posterous.png
  56. BIN  img/socialmedia/qik.png
  57. BIN  img/socialmedia/reddit.png
  58. BIN  img/socialmedia/retweet.png
  59. BIN  img/socialmedia/rss.png
  60. BIN  img/socialmedia/sharethis.png
  61. BIN  img/socialmedia/skype.png
  62. BIN  img/socialmedia/slashdot.png
  63. BIN  img/socialmedia/slideshare.png
  64. BIN  img/socialmedia/squidoo.png
  65. BIN  img/socialmedia/stumbleupon.png
  66. BIN  img/socialmedia/technorati.png
  67. BIN  img/socialmedia/tumblr.png
  68. BIN  img/socialmedia/twitter.png
  69. BIN  img/socialmedia/viddler.png
  70. BIN  img/socialmedia/vimeo.png
  71. BIN  img/socialmedia/virb.png
  72. BIN  img/socialmedia/wordpress.png
  73. BIN  img/socialmedia/yahoo-buzz.png
  74. BIN  img/socialmedia/yahoo.png
  75. BIN  img/socialmedia/youtube.png
  76. BIN  img/subnav-gradient.png
  77. BIN  img/wrapper.png
  78. +32 −0 index.php
  79. +24 −0 page.php
  80. +28 −0 recent_comments.php
  81. BIN  screenshot.png
  82. +34 −0 search.php
  83. +4 −0 searchform.php
  84. +34 −0 sidebar.php
  85. +35 −0 single.php
  86. +26 −0 socialmedia.php
  87. +806 −0 style.css
  88. +77 −0 theme-options/theme_options.css
  89. +131 −0 theme-options/theme_options.js
  90. +376 −0 theme-options/theme_options.php
87 comments.php
@@ -0,0 +1,87 @@
+<?php
+// Do not delete these lines
+ if (!empty($_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">This post is password protected. Enter the password to view comments.</p>
+ <?php
+ return;
+ }
+?>
+
+<!-- You can start editing here. -->
+
+<?php if ( have_comments() ) : ?>
+ <h4 id="comments"><?php comments_number(__('No Comments','notepad-theme'), __('One Comment','notepad-theme'), __('% Comments','notepad-theme') );?> <em>(<a href="#respond"><?php _e('+add yours?','notepad-theme') ?></a>)</em></h4>
+
+ <div class="comment-nav">
+ <span class="previous"><?php previous_comments_link(__('Older','notepad-theme')) ?></span>
+ <span class="next"><?php next_comments_link(__('Newer','notepad-theme')) ?></span>
+ </div>
+
+ <ol class="commentlist">
+ <?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>
+ </ol>
+
+ <?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','notepad-theme'); ?>.</p>
+
+ <?php endif; ?>
+<?php endif; ?>
+
+
+<?php if ( comments_open() ) : ?>
+
+<div id="respond">
+
+<h4><?php comment_form_title( __('Leave a Reply','notepad-theme'), __('Leave a Reply to <em>%s</em>','notepad-theme') ); ?></h4>
+
+<p class="cancel-comment-reply">
+ <?php cancel_comment_reply_link(__('Cancel','notepad-theme')); ?>
+</p>
+
+<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
+<p><?php _e('You must be','notepad-theme'); ?> <a href="<?php echo wp_login_url( get_permalink() ); ?>"><?php _e('logged in','notepad-theme'); ?></a> <?php _e('to post a comment','notepad-theme'); ?>.</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 _e('Logged in as','notepad-theme'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account','notepad-theme'); ?>"><?php _e('Log out','notepad-theme'); ?> &raquo;</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"><?php _e('Name','notepad-theme');?> <small><?php if ($req) _e('(required)','notepad-theme'); ?></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">Mail <small><?php if ($req) _e('(required)','notepad-theme'); ?></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"><?php _e('Website','notepad-theme'); ?></label></p>
+
+<?php endif; ?>
+
+<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></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','notepad-theme'); ?>" />
+<?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 ?>
15 footer.php
@@ -0,0 +1,15 @@
+</div>
+<!--/wrapper -->
+
+<div id="footer">
+ <p class="copyright">&copy; <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a> <?php echo date('Y') ?></p>
+ <p class="credits"><a href="http://icondock.com">Icons</a> &amp; <a href="http://www.ndesign-studio.com/wp-themes"><?php _e('Wordpress Theme','notepad-theme'); ?></a> <?php _e('by','notepad-theme'); ?> <?php _e('<a href="http://www.ndesign-studio.com">N.Design</a>','notepad-theme'); ?></p>
+</div>
+<!--/footer -->
+
+</div>
+<!--/pagewrapper -->
+
+<?php wp_footer(); ?>
+</body>
+</html>
62 functions.php
@@ -0,0 +1,62 @@
+<?php
+
+//sidebar widgets
+if ( function_exists('register_sidebar') ) {
+ register_sidebar(array(
+ 'name' => 'Sidebar',
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h4 class="widgettitle">',
+ 'after_title' => '</h4>',
+ ));
+ register_sidebar(array(
+ 'name' => 'Footer 1',
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h4 class="widgettitle">',
+ 'after_title' => '</h4>',
+ ));
+ register_sidebar(array(
+ 'name' => 'Footer 2',
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h4 class="widgettitle">',
+ 'after_title' => '</h4>',
+ ));
+ register_sidebar(array(
+ 'name' => 'Footer 3',
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h4 class="widgettitle">',
+ 'after_title' => '</h4>',
+ ));
+}
+
+include 'theme-options/theme_options.php';
+
+//custom comment template
+function mytheme_comment($comment, $args, $depth) {
+ $GLOBALS['comment'] = $comment; ?>
+ <li>
+ <p class="comment-author">
+ <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?>
+ <?php printf(__('<cite>%s</cite>'), get_comment_author_link()) ?><br />
+ <small><strong><?php comment_date('M d, Y'); ?></strong> @ <?php comment_time('H:i:s'); ?><?php edit_comment_link('Edit',' [',']') ?></small>
+ </p>
+ <div class="commententry" id="commententry-<?php comment_ID() ?>">
+ <?php if ($comment->comment_approved == '0') : ?>
+ <p><em><?php _e('Your comment is awaiting moderation.') ?></em></p>
+ <?php endif; ?>
+
+ <?php comment_text() ?>
+ </div>
+
+ <p class="reply">
+ <?php comment_reply_link(array_merge( $args, array('add_below' => 'commententry', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
+ </p>
+
+<?php
+ }
+
+
+?>
52 header.php
@@ -0,0 +1,52 @@
+<!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>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title><?php if (is_home()) {
+ echo bloginfo('name');
+} elseif (is_404()) {
+ _e('404 Not Found','notepad-theme');
+} elseif (is_category()) {
+ _e('Category:','notepad-theme'); wp_title('');
+} elseif (is_tag()) {
+ _e('Tag:','notepad-theme'); wp_title('');
+} elseif (is_search()) {
+ _e('Search Results for:','notepad-theme'); echo ' ' . $s;
+} elseif ( is_day() || is_month() || is_year() ) {
+ _e('Archives:','notepad-theme'); wp_title('');
+} else {
+ echo wp_title('');
+}
+?></title>
+
+<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
+
+<?php if ( is_single() || is_page() ) wp_enqueue_script( 'comment-reply' ); ?>
+<?php wp_head(); ?>
+</head>
+<body>
+<div id="pagewrapper">
+<div id="header" class="clearfix">
+ <div id="logo-container">
+ <h1 id="logo"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
+ <p class="description"><?php bloginfo('description'); ?></p>
+ </div>
+
+ <?php
+ $notepad_opts = get_option('notepad_opts');
+
+ if ( !$notepad_opts['social_off'] ) include (TEMPLATEPATH . "/socialmedia.php"); ?>
+
+ <ul id="nav">
+ <li<?php if (is_home()) { echo ' class="current_home"'; }?>><a href="<?php echo get_option('home'); ?>"><?php _e('Home','notepad-theme'); ?></a></li>
+ <?php wp_list_pages(array(
+ 'sort_column' => 'menu_order',
+ 'title_li' => '',
+ 'exclude_tree' => $notepad_opts['exclude_pages'],
+ 'depth' => $notepad_opts['no_dropdown'] ? 1 : 0,
+ )); ?>
+ </ul>
+ <?php include (TEMPLATEPATH . '/searchform.php'); ?>
+</div>
+<!--/header -->
+<div id="wrapper">
BIN  img/.DS_Store
Binary file not shown
BIN  img/bg-stripe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/blockquote.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/bullet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/cancel-reply.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/comment-nav.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/comment-submit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/comments-nav-circle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/content-dots.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/footer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/form-button-bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/more-link.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/nav-bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/post-nav.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/postdata-icons.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/reply.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/searchform.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/sidebar-dots.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/sidebar-list-arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/sidebar-list-circle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/socialmedia/amazon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/socialmedia/aol.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/socialmedia/app-store.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/socialmedia/apple.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/socialmedia/bebo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  img/socialmedia/behance.png
Diff not rendered
BIN  img/socialmedia/blogger.png
Diff not rendered
BIN  img/socialmedia/delicious.png
Diff not rendered
BIN  img/socialmedia/design-bump.png
Diff not rendered
BIN  img/socialmedia/designfloat.png
Diff not rendered
BIN  img/socialmedia/deviant-art.png
Diff not rendered
BIN  img/socialmedia/digg.png
Diff not rendered
BIN  img/socialmedia/email.png
Diff not rendered
BIN  img/socialmedia/facebook.png
Diff not rendered
BIN  img/socialmedia/flickr.png
Diff not rendered
BIN  img/socialmedia/friendfeed.png
Diff not rendered
BIN  img/socialmedia/frinedster.png
Diff not rendered
BIN  img/socialmedia/google-talk.png
Diff not rendered
BIN  img/socialmedia/google.png
Diff not rendered
BIN  img/socialmedia/lastfm.png
Diff not rendered
BIN  img/socialmedia/linkedin.png
Diff not rendered
BIN  img/socialmedia/microsoft.png
Diff not rendered
BIN  img/socialmedia/mister-wong.png
Diff not rendered
BIN  img/socialmedia/mixx.png
Diff not rendered
BIN  img/socialmedia/mobileme.png
Diff not rendered
BIN  img/socialmedia/msn.png
Diff not rendered
BIN  img/socialmedia/myspace.png
Diff not rendered
BIN  img/socialmedia/netvibes.png
Diff not rendered
BIN  img/socialmedia/newsvine.png
Diff not rendered
BIN  img/socialmedia/posterous.png
Diff not rendered
BIN  img/socialmedia/qik.png
Diff not rendered
BIN  img/socialmedia/reddit.png
Diff not rendered
BIN  img/socialmedia/retweet.png
Diff not rendered
BIN  img/socialmedia/rss.png
Diff not rendered
BIN  img/socialmedia/sharethis.png
Diff not rendered
BIN  img/socialmedia/skype.png
Diff not rendered
BIN  img/socialmedia/slashdot.png
Diff not rendered
BIN  img/socialmedia/slideshare.png
Diff not rendered
BIN  img/socialmedia/squidoo.png
Diff not rendered
BIN  img/socialmedia/stumbleupon.png
Diff not rendered
BIN  img/socialmedia/technorati.png
Diff not rendered
BIN  img/socialmedia/tumblr.png
Diff not rendered
BIN  img/socialmedia/twitter.png
Diff not rendered
BIN  img/socialmedia/viddler.png
Diff not rendered
BIN  img/socialmedia/vimeo.png
Diff not rendered
BIN  img/socialmedia/virb.png
Diff not rendered
BIN  img/socialmedia/wordpress.png
Diff not rendered
BIN  img/socialmedia/yahoo-buzz.png
Diff not rendered
BIN  img/socialmedia/yahoo.png
Diff not rendered
BIN  img/socialmedia/youtube.png
Diff not rendered
BIN  img/subnav-gradient.png
Diff not rendered
BIN  img/wrapper.png
Diff not rendered
32 index.php
@@ -0,0 +1,32 @@
+<?php get_header(); ?>
+
+ <div id="content">
+
+ <?php if (have_posts()) : ?>
+
+ <?php while (have_posts()) : the_post(); ?>
+
+ <div class="post">
+ <h2 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+ <p class="post-date"><?php the_time(__('M d','notepad-theme')) ?></p>
+ <p class="post-data"><span class="postauthor"><?php the_author_link(); ?></span><span class="postcategory"><?php the_category(', ') ?></span> <?php the_tags( '<span class="posttag">', ', ', '</span>'); ?> <span class="postcomment"><?php comments_popup_link(__('No Comments','notepad-theme'), __('1 Comment','notepad-theme'), __('% Comments','notepad-theme')); ?></span><?php edit_post_link(__('[Edit]','notepad-theme')); ?></p>
+ <div class="post-content"><?php the_content(__('More','notepad-theme')); ?></div>
+ </div>
+ <!--/post -->
+
+ <?php endwhile; ?>
+
+ <p class="post-nav"> <span class="previous"><?php next_posts_link(__('Older Entries','notepad-theme')) ?></span> <span class="next"><?php previous_posts_link(__('Newer Entries','notepad-theme')) ?></span> </p>
+
+ <?php else : ?>
+
+ <h2><?php _e('Not Found','notepad-theme'); ?></h2>
+ <p><?php _e('Sorry, but you are looking for something that isn\'t here','notepad-theme');?>.</p>
+
+ <?php endif; ?>
+
+ </div>
+ <!--/content -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
24 page.php
@@ -0,0 +1,24 @@
+<?php get_header(); ?>
+
+ <div id="content">
+
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+ <div class="post">
+ <h2 class="post-title"><?php the_title(); ?></h2>
+ <?php the_content(__('More','notepad-theme')); ?>
+ <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:','notepad-theme').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
+ </div>
+ <!--/post -->
+
+ <?php endwhile; endif; ?>
+
+ <?php edit_post_link(__('Edit this entry.','notepad-theme'), '<p>', '</p>'); ?>
+
+ <?php comments_template(); ?>
+
+ </div>
+ <!--/content -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
28 recent_comments.php
@@ -0,0 +1,28 @@
+<ul>
+
+<?php
+ $comments = get_comments('number=10&status=approve');
+
+ $true_comment_count = 0;
+
+ foreach($comments as $comment) :
+?>
+
+<?php $comment_type = get_comment_type(); ?>
+<?php if($comment_type == 'comment') { ?>
+
+<?php $true_comment_count = $true_comment_count +1; ?>
+
+<?php $comm_title = get_the_title($comment->comment_post_ID);?>
+<?php $comm_link = get_comment_link($comment->comment_ID);?>
+<?php $comm_comm_temp = get_comment($comment->comment_ID,ARRAY_A);?>
+<?php $comm_content = $comm_comm_temp['comment_content'];?>
+
+<li><span class="comment_author"><?php echo($comment->comment_author)?></span> <?php _e('on','notepad-theme'); ?> <a href="<?php echo($comm_link)?>" title="<?php comment_excerpt(); ?>"> <?php echo $comm_title?> </a></li>
+
+<?php } ?>
+
+<?php if($true_comment_count == 5) {break;} ?>
+<?php endforeach;?>
+
+</ul>
BIN  screenshot.png
Diff not rendered
34 search.php
@@ -0,0 +1,34 @@
+<?php get_header(); ?>
+
+ <div id="content">
+
+ <?php if (have_posts()) : ?>
+
+ <h2><?php _e('Search Results for:','notepad-theme'); ?> <em><?php echo $s; ?></em></h2>
+
+ <?php while (have_posts()) : the_post(); ?>
+
+ <div class="post">
+ <h2 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+ <p class="post-date"><?php the_time('M d') ?></p>
+ <p class="post-data"><span class="postcategory"><?php the_category(', ') ?></span> <?php the_tags( '<span class="posttag">', ', ', '</span>'); ?> <span class="postcomment"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php edit_post_link('[Edit]'); ?></p>
+ <?php the_excerpt(); ?>
+ </div>
+ <!--/post -->
+
+ <?php endwhile; ?>
+
+ <p class="post-nav"> <span class="previous"><?php next_posts_link(__('Older Entries','notepad-theme')) ?></span> <span class="next"><?php previous_posts_link(__('Newer Entries','notepad-theme')) ?></span> </p>
+
+ <?php else : ?>
+
+ <h2><?php _e('Sorry','notepad-theme'); ?></h2>
+ <p><?php _e('No posts found. Please try a different keyword','notepad-theme'); ?></p>
+
+ <?php endif; ?>
+
+ </div>
+ <!--/content -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
4 searchform.php
@@ -0,0 +1,4 @@
+ <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
+ <input type="text" value="<?php _e('Search...','notepad-theme'); ?>" name="s" id="s" onblur="if (this.value == '') {this.value = '<?php _e('Search...','notepad-theme'); ?>';}" onfocus="if (this.value == '<?php _e('Search...','notepad-theme'); ?>') {this.value = '';}" />
+ <input type="hidden" id="searchsubmit" />
+ </form>
34 sidebar.php
@@ -0,0 +1,34 @@
+ <div id="sidebar">
+
+<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
+
+ <div class="widget">
+ <h4><?php _e('Pages','notepad-theme'); ?></h4>
+ <ul>
+ <?php wp_list_pages('title_li=' ); ?>
+ </ul>
+ </div>
+
+ <div class="widget">
+ <h4><?php _e('Category','notepad-theme'); ?></h4>
+ <ul>
+ <?php wp_list_categories('show_count=1&title_li='); ?>
+ </ul>
+ </div>
+
+ <div class="widget">
+ <h4><?php _e('Archives','notepad-theme'); ?></h4>
+ <ul>
+ <?php wp_get_archives('type=monthly'); ?>
+ </ul>
+ </div>
+
+ <div class="widget">
+ <h4><?php _e('Recent Comments','notepad-theme'); ?></h4>
+ <?php include (TEMPLATEPATH . '/recent_comments.php'); ?>
+ </div>
+
+<?php endif; ?>
+
+ </div>
+ <!--/sidebar -->
35 single.php
@@ -0,0 +1,35 @@
+<?php get_header(); ?>
+
+ <div id="content">
+
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+ <div class="post">
+ <h2 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+ <p class="post-date"><?php the_time(__('M d','notepad-theme')); ?></p>
+ <p class="post-data"><span class="postauthor"><?php the_author_link(); ?></span><span class="postcategory"><?php the_category(', ') ?></span> <?php the_tags( '<span class="posttag">', ', ', '</span>'); ?> <span class="postcomment"><?php comments_popup_link(__('No Comments','notepad-theme'), __('1 Comment','notepad-theme'), __('% Comments','notepad-theme')); ?></span><?php edit_post_link(__('[Edit]','notepad-theme')); ?></p>
+ <div class="post-content"><?php the_content(__('More','notepad-theme')); ?></div>
+ <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:','notepad-theme').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
+ </div>
+ <!--/post -->
+
+ <p class="post-nav"> <span class="previous"><?php previous_post_link('%link') ?></span> <span class="next"><?php next_post_link('%link') ?></span></p>
+
+ <?php comments_template(); ?>
+
+ <?php endwhile; else: ?>
+
+ <p>Sorry, no posts matched your criteria.</p>
+
+ <?php endif; ?>
+
+
+ </div>
+ <!--/content -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
+
+
+
+
26 socialmedia.php
@@ -0,0 +1,26 @@
+<p class="socialmedia">
+<?php
+
+$social_buttons = $notepad_opts['social'];
+
+$social_button_count = count($social_buttons);
+$use_text = $notepad_opts['social_display'] != 'image' ? true : false;
+
+for( $i = 0; $i < $social_button_count; $i++ ) {
+ $this_button = $social_buttons[$i];
+ $this_title = $this_button['title'];
+ $this_url = $this_button['url'];
+ $this_img = $this_button['image'];
+
+ $img_url = $this_button['custom'] ? $this_img : get_bloginfo('stylesheet_directory') . '/img/socialmedia/' . $this_img . '.png';
+
+ if ( $this_url == 'feed' ) $this_url = get_bloginfo('rss2_url');
+
+ echo "\t\t" . '<a href="' . $this_url . '"><img src="' . $img_url . '" alt="' . $this_title . '" title="' . $this_title . '" />';
+
+ if ( $use_text ) echo $this_title;
+
+ echo "</a> \n";
+}
+?>
+ </p>
806 style.css
@@ -0,0 +1,806 @@
+/*
+Theme Name: Notepad
+Theme URI: http://www.ndesign-studio.com/wp-themes/notepad
+Description: A notepad theme inspired by the iPhone's Notes.app
+Version: 1.2
+Tags: theme-options, translation-ready, two-columns, right-sidebar, fixed-width, threaded-comments, light, yellow
+Author: Nick La
+Author URI: http://www.ndesign-studio.com
+
+This theme is released under GPL: http://www.gnu.org/licenses/gpl.html
+
+If you remix, convert, translate, modify, or distribute a copy of this theme, please keep the links/credit in the footer.
+*/
+
+/* reset
+-------------------------------------------------*/
+html, body, address, blockquote, div, dl, form, h1, h2, h3, h4, h5, h6, ol, p, pre, table, ul,
+dd, dt, li, tbody, td, tfoot, th, thead, tr, button, del, ins, map, object,
+a, abbr, acronym, b, bdo, big, br, cite, code, dfn, em, i, img, kbd, q, samp, small, span,
+strong, sub, sup, tt, var, legend, fieldset {
+ margin: 0;
+ padding: 0;
+}
+img, fieldset {
+ border: 0;
+}
+/* reset end
+-------------------------------------------------*/
+
+html {
+ background: #f5f4f4 url(img/bg-stripe.png);
+}
+body {
+ font: normal .81em/1.5em Arial, Helvetica, sans-serif;
+ margin: 0;
+ color: #6f5e4e;
+}
+p {
+ margin: 0 0 1em;
+}
+em, i {
+ font: normal italic 100% Georgia, "Times New Roman", Times, serif;
+}
+a {
+ color: #644527;
+ text-decoration: underline;
+ outline: none;
+}
+a:hover {
+ color: #ca6c18;
+}
+big {
+ font-size: 1.2em;
+ font-weight: bold;
+ line-height: 1.46em;
+ color: #887662;
+}
+small {
+ font-size: .9em;
+ color: #9f8c77;
+}
+blockquote {
+ background: url(img/blockquote.png) no-repeat 4px 0;
+ padding: 0 0 0 26px;
+ font: italic 1.1em/1.4em Georgia, "Times New Roman", Times, serif;
+ color: #897662;
+}
+ul {
+ list-style: none;
+ margin: 1.2em 0 1.8em 10px;
+}
+ul li {
+ background: url(img/bullet.png) no-repeat 0 .5em;
+ padding: 0 0 .5em 16px;
+}
+ol {
+ margin: 1.2em 0 1.8em 10px;
+}
+ol li {
+ margin: 0 0 .5em 16px;
+}
+h1, h2, h3, h4, h5, h6 {
+ line-height: 2em;
+ color: #644527;
+}
+h1 {
+ font-size: 2em;
+}
+h2 {
+ font-size: 1.6em;
+}
+h3 {
+ font-size: 1.4em;
+}
+h4 {
+ font-size: 1.2em;
+}
+input, textarea, select {
+ font: normal 1em/1.4em Arial, Helvetica, sans-serif;
+}
+input[type=text], input[type=password], textarea {
+ background: #fdfde8;
+ border: solid 1px #d6d1c7;
+ padding: 5px 7px;
+
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+textarea:focus, input[type=password]:focus, input[type=text]:focus {
+ border: solid 1px #ca6c18;
+ background: #fff;
+ outline: none;
+ box-shadow: 0 1px 4px #c5c5a2;
+
+ -webkit-box-shadow: 0 1px 4px #c5c5a2;
+ -moz-box-shadow: 0 1px 4px #c5c5a2;
+}
+input[type=reset], input[type=submit] {
+ font-weight: bold;
+ color: #fff;
+ background: #402206 url(img/form-button-bg.png) repeat-x;
+ border: solid 1px #402206;
+ padding: 4px 15px;
+
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+input[type=reset]:hover, input[type=submit]:hover {
+ background: #74300c url(img/form-button-bg.png) repeat-x 0 -91px;
+ border: solid 1px #74300c;
+}
+
+#pagewrapper {
+ width: 980px;
+ margin: 0 auto;
+}
+
+/* utility
+-------------------------------------------------*/
+
+.clearfix:after {
+ content: ".";
+ display: block;
+ clear: both;
+ visibility: hidden;
+ line-height: 0;
+ height: 0;
+}
+
+.clearfix {
+ display: inline-block;
+}
+
+html[xmlns] .clearfix {
+ display: block;
+}
+
+* html .clearfix {
+ height: 1%;
+}
+
+/* header
+-------------------------------------------------*/
+#header {
+ background: url(img/header.png) no-repeat center bottom;
+ padding: 30px 10px 110px;
+ position: relative;
+}
+#header #logo-container {
+ float: left;
+}
+#header #logo {
+ font: bold 3.7em/1em Arial, Helvetica, sans-serif;
+ margin: 0 0 10px;
+ letter-spacing: -.08em;
+ color: #74685c;
+ text-shadow: 0 1px 0 #fff;
+}
+#header #logo, #header #logo a {
+ color: #74685c;
+ text-decoration: none;
+}
+#header #logo a:hover {
+ color: #ca6c18;
+}
+#header .description {
+ font: 1.4em/1em Arial, Helvetica, sans-serif;
+ margin: 0 0 20px;
+ letter-spacing: -.04em;
+ color: #7c7268;
+ text-shadow: 0 1px 0 #fff;
+}
+#header .socialmedia {
+ float: right;
+ margin-top: 44px;
+ margin-bottom: 0;
+}
+
+#header .socialmedia a {
+ text-decoration: none;
+ margin-right: 20px;
+ color: #666;
+}
+#header .socialmedia a:hover {
+ color: #ca6c18;
+}
+#header .socialmedia img {
+ vertical-align: middle;
+ margin: 0 8px 5px 0;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ box-shadow: 0 1px 4px #000;
+ -webkit-box-shadow: 0 1px 2px #ccc;
+ -moz-box-shadow: 0 2px 2px #ccc;
+}
+
+
+/* nav level1 */
+#nav {
+ position: absolute;
+ bottom: 54px;
+ left: 30px;
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+#nav li {
+ float: left;
+ margin: 0 10px 0 0;
+ padding: 0 0 5px 5px;
+ background: none;
+ position: relative;
+}
+#nav li a {
+ color: #fff;
+ font: bold 100%/100% Arial, Helvetica, sans-serif;
+ padding: 9px 12px 10px 8px;
+ display: block;
+ text-decoration: none;
+ color: #cbc3bb;
+ text-shadow: 0 1px 1px #1f1206;
+}
+#nav li.current_page_item, #nav li.current_home, #nav li:hover {
+ background: url(img/nav-bg.png) no-repeat;
+}
+#nav li.current_page_item a, #nav li a:hover {
+ background: url(img/nav-bg.png) no-repeat right -85px;
+ color: #fff;
+}
+
+/* show hover bg */
+#nav li:hover a {
+ background: url(img/nav-bg.png) no-repeat right -85px;
+}
+#nav li.current_home a {
+ background: url(img/nav-bg.png) no-repeat right -169px;
+ padding-right: 20px;
+ color: #fff;
+}
+
+/* nav level2 */
+#nav ul {
+ position: absolute;
+ top: 18px;
+ left: -10px;
+ padding: 8px 0 10px;
+ background: #fbf4b5 url(img/subnav-gradient.png) repeat-x;
+ border: solid 1px #c5c5a2;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ box-shadow: 0 1px 4px #c5c5a2;
+ -webkit-box-shadow: 0 1px 4px #c5c5a2;
+ -moz-box-shadow: 0 1px 4px #c5c5a2;
+}
+#nav ul li {
+ background: none;
+ padding: 0;
+ margin: 0;
+}
+#nav ul li:hover, #nav ul li:hover a, #nav ul li.current_page_item {
+ background: none;
+}
+#nav ul a {
+ color: #755433;
+ font-weight: normal;
+ text-shadow: none;
+ padding: 7px 0 7px 15px;
+ width: 200px;
+ background: none !important;
+}
+#nav li.current_page_item li a, #nav ul li.current_page_item a {
+ color: #755433;
+ background: none;
+}
+#nav ul a:hover, #nav li.current_page_item li a:hover, #nav ul li.current_page_item a:hover {
+ background: none;
+ color: #000;
+}
+
+/* dropdown */
+#nav ul {
+ display: none;
+}
+#nav li:hover > ul {
+ display: block;
+}
+
+/* nav sub levels */
+#nav ul ul {
+ left: 200px;
+ top: -18px;
+ z-index: 3;
+}
+
+#searchform {
+ position: absolute;
+ bottom: 57px;
+ right: 25px;
+ background: url(img/searchform.png) no-repeat;
+ width: 222px;
+ height: 26px;
+ padding: 5px 0 3px;
+}
+#searchform #s {
+ background: #332518;
+ border: none;
+ font: italic 110% Georgia, "Times New Roman", Times, serif;
+ color: #ada8a3;
+ width: 168px;
+ padding: 2px 5px;
+ margin-left: 30px;
+}
+#searchform #s:focus {
+ outline: none;
+ box-shadow: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+}
+
+/* content
+-------------------------------------------------*/
+#wrapper {
+ background: url(img/wrapper.png) center 5px;
+ width: 100%;
+ min-height: 600px;
+ overflow: hidden;
+ padding-top: 8px;
+}
+
+#content {
+ float: left;
+ width: 520px;
+ margin-left: 15px;
+ padding: 0 0 0 90px;
+}
+
+.post {
+ margin: 0 0 45px;
+ clear: both;
+}
+.post-title {
+ font: bold 1.9em/1em Arial, Helvetica, sans-serif;
+ letter-spacing: -.05em;
+ margin: 0 0 10px;
+ text-shadow: 0px 1px 4px #dfdfbb;
+ color: #644527;
+}
+.post-title a {
+ text-decoration: none;
+ color: #644527;
+}
+.post-title a:hover {
+ color: #ca6c18;
+}
+.post-date {
+ font: bold 1.2em/1em Arial, Helvetica, sans-serif;
+ color: #887057;
+ margin: -30px 0 0 -96px;
+ padding: 0;
+ width: 80px;
+ text-align: right;
+ position: absolute;
+}
+.post-data {
+ margin: 0 0 20px;
+ font: bold .9em/1.3em Arial, Helvetica, sans-serif;
+ color: #b09473;
+}
+.post-data a {
+ color: #b09473;
+ text-decoration: none;
+ padding-bottom: 4px;
+}
+.post-data a:hover {
+ color: #ca6c18;
+ text-decoration: none;
+}
+.post-data span {
+ padding: 0 0 3px 19px;
+ margin-right: 12px;
+}
+.postauthor {
+ background: url(img/postdata-icons.png) no-repeat 0 -512px;
+}
+.postauthor:hover {
+ background: url(img/postdata-icons.png) no-repeat 0 -619px;
+}
+.postcategory {
+ background: url(img/postdata-icons.png) no-repeat;
+}
+.postcategory:hover {
+ background-position: 0 -253px;
+}
+.posttag {
+ background: url(img/postdata-icons.png) no-repeat 0 -86px;
+}
+.posttag:hover {
+ background-position: 0 -339px;
+}
+.postcomment {
+ background: url(img/postdata-icons.png) no-repeat 0 -172px;
+}
+.postcomment:hover {
+ background-position: 0 -425px;
+}
+
+.more-link {
+ font: bold 1em/1em Arial, Helvetica, sans-serif;
+ background: url(img/more-link.png) no-repeat right 3px;
+ text-decoration: none;
+ padding: 0 12px 3px 0;
+}
+a.more-link:hover {
+ background-position: right -67px;
+}
+
+.post-nav {
+ background: url(img/content-dots.png) repeat-x;
+ width: 100%;
+ overflow: hidden;
+ margin: 10px 0 25px;
+ padding-top: 12px;
+}
+.post-nav a {
+ font: bold 1.2em/1.1em Arial, Helvetica, sans-serif;
+ padding: 3px 0 12px;
+ display: block;
+ text-decoration: none;
+ width: 225px;
+ background: #ccc;
+}
+.post-nav .previous a {
+ background: url(img/post-nav.png) no-repeat;
+ padding-left: 32px;
+ float: left;
+}
+.post-nav .previous a:hover {
+ background-position: 0 -191px;
+}
+.post-nav .next a {
+ background: url(img/post-nav.png) no-repeat right -383px;
+ padding-right: 32px;
+ text-align: right;
+ float: right;
+}
+.post-nav .next a:hover {
+ background-position: right -574px;
+}
+
+/* content end
+-------------------------------------------------*/
+
+/* comments
+-------------------------------------------------*/
+#comments, #respond h4 {
+ font: bold 1.6em/1em Arial, Helvetica, sans-serif;
+ padding: 15px 0 0;
+ margin: 5px 0 20px;
+ letter-spacing: -.04em;
+ text-shadow: 0px 1px 4px #dfdfbb;
+}
+#comments, .commentlist #respond h4 {
+ background: url(img/content-dots.png) repeat-x;
+}
+#comments em, #respond h4 em {
+ font: italic .7em/1em Georgia, "Times New Roman", Times, serif;
+}
+/* commentlist level1 */
+.commentlist {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+.commentlist li {
+ margin: 0 0 20px;
+ padding: 0;
+}
+.comment-author {
+ margin: 0 0 5px;
+}
+.comment-author small {
+ color: #9d8b78;
+ font-size: .85em;
+}
+.comment-author cite {
+ font: bold normal 1.35em/1em Arial, Helvetica, sans-serif;
+}
+.comment-author cite a {
+ text-decoration: none;
+}
+.avatar {
+ position: absolute;
+ margin: -4px 0 0 -65px;
+ background: #fdfde8;
+ border: solid 1px #d6d1c7;
+ padding: 4px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+.reply {
+ background: url(img/reply.png) no-repeat 0 center;
+ padding: 0 0 0 12px;
+}
+.comment-reply-link {
+ text-transform: uppercase;
+ font-size: .8em;
+ font-weight: bold;
+ color: #a5907a;
+ text-decoration: none;
+}
+a.comment-reply-link:hover {
+ color: #ca6c18;
+}
+.commententry {
+ clear: both;
+}
+
+/*commentlist level2 */
+.commentlist ul {
+ margin: 20px 0 0;
+ padding: 0;
+}
+.commentlist ul li {
+ background: none;
+ margin: 0;
+ padding: 0;
+}
+.commentlist ul .comment-author {
+ margin: 0 0 10px;
+}
+.commentlist ul .avatar {
+ width: 32px;
+ height: 32px;
+ position: relative;
+ float: left;
+ margin: -5px 10px 0 0;
+}
+
+/*commentlist sub levels */
+.commentlist ul ul {
+ margin-left: 53px;
+ padding: 0;
+}
+
+
+/* comment nav */
+.comment-nav {
+ clear: both;
+ float: right;
+ margin: -33px 0 0;
+ line-height: 1em;
+}
+.comment-nav a {
+ text-decoration: none;
+ color: #b8a98a;
+ font-weight: bold;
+ text-transform: uppercase;
+}
+.comment-nav a:hover {
+ color: #ca6c18;
+}
+.comment-nav .previous a {
+ background: url(img/comment-nav.png) no-repeat 0 -144px;
+ padding-left: 18px;
+ margin-right: 20px;
+}
+.comment-nav .previous a:hover {
+ background-position: 0 -217px;
+}
+.comment-nav .previous a:after {
+content: close-quote;
+}
+.comment-nav .next a {
+ background: url(img/comment-nav.png) no-repeat right 3px;
+ padding-right: 24px;
+}
+.comment-nav .next a:hover {
+ background-position: right -70px;
+}
+.comment-nav .divider {
+ background: url(img/comments-nav-circle.png) no-repeat center center;
+ padding: 0 10px;
+}
+
+#respond {
+ position: relative;
+ margin-bottom: 40px;
+}
+#respond .cancel-comment-reply {
+ position: absolute;
+ top: 20px;
+ right: 0;
+}
+#respond #cancel-comment-reply-link {
+ font: bold .9em/1em Arial, Helvetica, sans-serif;
+ text-transform: uppercase;
+ background: url(img/cancel-reply.png) no-repeat 0 3px;
+ padding: 2px 2px 2px 16px;
+ text-decoration: none;
+ color: #b8a98a;
+}
+#respond #cancel-comment-reply-link:hover {
+ text-decoration: none;
+ color: #ca6c18;
+ background-position: 0 -55px;
+}
+#commentform input[type=text] {
+ width: 210px;
+ margin-right: 5px;
+ background: #fdfde8;
+ border: solid 1px #d6d1c7;
+ padding: 5px 7px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+#commentform textarea {
+ width: 97%;
+ height: 200px;
+ padding: 10px 7px;
+ border: solid 1px #d6d1c7;
+ background: #fdfde8;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+#commentform textarea:focus, #commentform input[type=text]:focus {
+ border: solid 1px #ca6c18;
+ background: #fff;
+ outline: none;
+ box-shadow: 0 1px 4px #c5c5a2;
+ -webkit-box-shadow: 0 1px 4px #c5c5a2;
+ -moz-box-shadow: 0 1px 4px #c5c5a2;
+}
+#commentform label {
+ font-weight: bold;
+}
+#commentform label small {
+ font-weight: normal;
+}
+#commentform #submit {
+ background: url(img/comment-submit.png) no-repeat 0 bottom;
+ width: 183px;
+ height: 35px;
+ border: none;
+ font: bold 1.05em/1em Arial, Helvetica, sans-serif;
+ color: #fff;
+ text-shadow: 0 1px 2px #000;
+ cursor: pointer;
+ padding: 3px 0 7px;
+}
+#commentform #submit:hover {
+ background-position: 0 0;
+}
+
+/* comments end
+-------------------------------------------------*/
+
+/* sidebar
+-------------------------------------------------*/
+#sidebar {
+ width: 270px;
+ float: right;
+ margin-right: 35px;
+ font-size: .95em;
+ line-height: 1.5em;
+}
+#sidebar h4, #sidebar .widgettitle {
+ font: bold 1.5em/1em Arial, Helvetica, sans-serif;
+ background: url(img/sidebar-dots.png) repeat-x 0 bottom;
+ padding: 0 0 10px;
+ margin: 0 0 10px;
+ text-shadow: 0px 1px 4px #dfdfbb;
+}
+#sidebar h4 a, #sidebar .widgettitle a {
+ text-decoration: none;
+}
+#sidebar ul {
+ list-style: none;
+ margin: 0 0 1em;
+}
+#sidebar ul ul {
+ margin: 0;
+}
+#sidebar ul li {
+ background: url(img/sidebar-list-arrow.png) no-repeat 0 4px;
+ padding: 0 0 0 11px;
+ margin: 4px 0;
+}
+#sidebar ul ul li {
+ background: url(img/sidebar-list-circle.png) no-repeat 0 4px;
+}
+#sidebar ul a {
+ font-weight: bold;
+ text-decoration: none;
+}
+
+/* widgets */
+#sidebar .widget {
+ margin: 0 0 32px;
+}
+#sidebar #searchform {
+ position: relative;
+ margin: 0;
+ right: auto;
+ bottom: auto;
+}
+#sidebar #wp-calendar caption {
+ font-weight: bold;
+}
+#sidebar #wp-calendar td {
+ width: 32px;
+ padding: 4px 2px;
+ text-align: center;
+}
+/* sidebar end
+-------------------------------------------------*/
+
+/* footer
+-------------------------------------------------*/
+#footer {
+ font-size: .9em;
+ background: url(img/footer.png) no-repeat center top;
+ padding: 108px 10px 30px;
+ clear: both;
+ width: auto;
+ overflow: hidden;
+ color: #888;
+}
+#footer a {
+ color: #666;
+ text-decoration: none;
+}
+#footer a:hover {
+ text-decoration: underline;
+}
+#footer .copyright {
+ float: left;
+}
+#footer .credits {
+ float: right;
+}
+/* footer end
+-------------------------------------------------*/
+
+/* wordpress post formating, etc.
+-------------------------------------------------*/
+.center {
+ text-align: center;
+}
+img.alignleft, img.aligncenter, img.alignright, img.alignnone {
+ background: #fff;
+ border: solid 1px #d6d1c7;
+ padding: 5px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+.alignleft {
+ float: left;
+ margin-right: 20px;
+}
+.alignright {
+ float: right;
+ margin-left: 20px;
+}
+.aligncenter {
+ text-align: center;
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+.wp-caption {
+ text-align: center;
+ background: #fff;
+ border: solid 1px #d6d1c7;
+ padding: 5px 2px 0;
+ margin-bottom: 15px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+.wp-caption-text {
+ font: italic 1em/1.3em Georgia, "Times New Roman", Times, serif;
+ margin: 6px 0;
+ color: #777;
+}
+
+/* wordpress post formating end
+-------------------------------------------------*/
77 theme-options/theme_options.css
@@ -0,0 +1,77 @@
+/*
+Theme options by Jon Raasch
+
+http://jonraasch.com
+http://twitter.com/jonraasch
+*/
+
+.social-button {
+ background-color: #EEE;
+ border: 1px solid #DADADA;
+ position: relative;
+ padding: 9px 9px 9px 160px;
+ margin-bottom: 17px;
+ width: 386px;
+}
+
+.social-button select {
+ position: absolute;
+ top: 9px;
+ left: 9px;
+ width: 140px;
+}
+
+.social-button label {
+ text-align: right;
+ float: left;
+ clear: left;
+ width: 60px;
+ padding: 5px 10px;
+}
+
+.social-button .regular-text {
+ float: left;
+ display: block;
+ margin: 5px 0;
+}
+
+.social-button .description {
+ display: block;
+ padding-left: 80px;
+ margin: 0 0 5px;
+ clear: both;
+}
+
+.social-add-cta, .social-delete-cta {
+ color: #222;
+ text-decoration: none;
+ font-size: 10px;
+ position: absolute;
+ right: -60px;
+ width: 50px;
+}
+
+.social-add-cta {
+ top: 5px;
+}
+
+.social-delete-cta {
+ top: 20px;
+}
+
+.social-button .social-custom-inputs, .social-button .social-rss-inputs {
+ display: none;
+}
+
+.social-button.sb-custom .social-custom-inputs,
+.social-button.sb-rss .social-rss-inputs {
+ display: block;
+}
+
+.social-button.sb-rss .social-url-inputs {
+ display: none;
+}
+
+.antisocial-cta {
+ display: block;
+}
131 theme-options/theme_options.js
@@ -0,0 +1,131 @@
+/*
+Theme options by Jon Raasch
+
+http://jonraasch.com
+http://twitter.com/jonraasch
+*/
+
+jQuery(document).ready(function($) {
+ function reset_form(ev) {
+ ev.preventDefault();
+
+ var answer = confirm('Are you sure you want to reset the Notepad options?');
+
+ if ( answer ) return document.getElementById('reset_form').submit();
+ else return false;
+ }
+
+ $('#theme-opts-reset').click(reset_form);
+
+ function build_button_form() {
+ out = '<div class="social-button"><select class="social-select">'
+ + '<option value="twitter">Twitter</option>'
+ + '<option value="facebook">Facebook</option>'
+ + '<option value="flickr">Flickr</option>'
+ + '<option value="myspace">MySpace</option>'
+ + '<option value="youtube">YouTube</option>'
+ + '<option value="email">Email</option>'
+ + '<option value="rss">RSS</option>'
+ + '<option value="custom">Custom Button</option></select>';
+
+ out += '<div class="social-custom-inputs"><label>Title</label><input class="regular-text social-title" type="text" name="social_title[]" value="Twitter" /><label>Image</label><input class="regular-text social-image" type="text" name="social_image[]" value="twitter" /><span class="description">Dimension 32 x 32px</span></div>';
+
+ randInt = new Date().getTime();
+
+ out += '<div class="social-rss-inputs"><label>URL</label><div class="regular-text"><input class="social-rss-default" type="radio" name="social-fake-radio' + randInt + '" value="0" checked /> Default &nbsp; <input class="social-rss-custom" type="radio" name="social-fake-radio' + randInt + '" /> Custom Feed</div><label>&nbsp;</label><input class="regular-text social-rss-url" type="text" name="social_rss_url[]" value="" disabled /></div>';
+
+ out += '<div class="social-url-inputs"><label>URL</label><input class="regular-text social-url" type="text" name="social_url[]" /></div>';
+
+ out += '<input class="social-custom" type="hidden" name="social_custom[]" value="0" /><br class="clear" />';
+
+ out += '<a href="#" class="social-add-cta">+ Add</a><a href="#" class="social-delete-cta">x Delete</a></div>';
+
+ return out;
+ }
+
+ $('#notepad-opts select.social-select').live('change', function(ev) {
+ var $this = $(this).parent(),
+ this_val = ev.target.value,
+ $title_input = $('input.social-title', $this),
+ $image_input = $('input.social-image', $this),
+ $url_input = $('input.social-url', $this).val(''),
+ $custom_input = $('input.social-custom', $this);
+
+ $this.removeClass('sb-rss sb-custom');
+
+ var custom_input = 0,
+ image_input = this_val;
+
+ switch(this_val) {
+ case 'rss' :
+ $this.addClass('sb-rss');
+ $url_input.val('feed');
+ var title_input = 'RSS';
+ break;
+
+ case 'custom':
+ $this.addClass('sb-custom');
+ var title_input = '',
+ image_input = '',
+ custom_input = 1;
+ break;
+
+ case 'myspace':
+ var title_input = 'MySpace';
+ break;
+
+ case 'youtube':
+ var title_input = 'YouTube';
+ break;
+
+ default :
+ var title_input = this_val.substring(0,1).toUpperCase() +
+this_val.substring(1);
+ break;
+ }
+
+ $title_input.val(title_input);
+ $image_input.val(image_input);
+ $custom_input.val(custom_input);
+
+
+ });
+
+ // add social media button
+ $('#notepad-opts a.social-add-cta').live('click', function(ev) {
+ ev.preventDefault();
+
+ var out = build_button_form();
+
+ $(this).parent().after($(out));
+ });
+
+ // delete social media button
+ $('#notepad-opts a.social-delete-cta').live('click', function(ev) {
+ ev.preventDefault();
+
+ var $panel = $(this).parent();
+
+ if ( !$panel.siblings('div.social-button').length ) $panel.before($('<a href="#" class="antisocial-cta">+ Add Social Media Button</a>'));
+
+ $panel.remove();
+ });
+
+ // rss stuff
+ $('#notepad-opts input.social-rss-default').live('click', function(ev) {
+ $(this).parent().siblings('input.social-rss-url').attr('disabled', true).val('');
+ });
+
+ $('#notepad-opts input.social-rss-custom').live('click', function(ev) {
+ $(this).parent().siblings('input.social-rss-url').attr('disabled', false);
+ });
+
+ // antisocial link
+ $('#notepad-opts .antisocial-cta').live('click', function(ev) {
+ ev.preventDefault();
+
+ var out = build_button_form();
+
+ $(this).after($(out)).remove();
+ });
+});
376 theme-options/theme_options.php
@@ -0,0 +1,376 @@
+<?php
+/*
+Theme options by Jon Raasch
+
+http://jonraasch.com
+http://twitter.com/jonraasch
+*/
+
+function notepad_admin_init() {
+ add_theme_page("Notepad Options", "Notepad Options", 'edit_themes', 'theme-settings', 'notepad_admin');
+}
+
+add_action('admin_menu', 'notepad_admin_init');
+
+function notepad_admin() {
+ function process_admin_opts() {
+ $notepad_opts['color_scheme'] = $_POST['color_scheme'];
+ $notepad_opts['favicon'] = $_POST['favicon'];
+ $notepad_opts['exclude_pages'] = $_POST['exclude_pages'];
+ $notepad_opts['tracking_code'] = $_POST['tracking_code'];
+ $notepad_opts['social_display'] = $_POST['social_display'];
+ $notepad_opts['social_off'] = $_POST['social_off'] ? true : false;
+ $notepad_opts['no_dropdown'] = $_POST['no_dropdown'] ? true : false;
+
+ $social_titles = $_POST['social_title'];
+ $social_images = $_POST['social_image'];
+ $social_urls = $_POST['social_url'];
+ $social_rss_urls = $_POST['social_rss_url'];
+ $social_customs = $_POST['social_custom'];
+
+ $social_count = count($social_customs);
+
+ $social = array();
+
+ for( $i = 0; $i < $social_count; $i++ ) {
+ if ( $social_images[$i] == 'rss' ) {
+ $social_urls[$i] = $social_rss_urls[$i] ? $social_rss_urls[$i] : 'feed';
+ }
+
+ $social[$i] = array(
+ 'title' => $social_titles[$i],
+ 'image' => $social_images[$i],
+ 'url' => $social_urls[$i],
+ 'custom' => $social_customs[$i],
+ );
+ }
+
+ $notepad_opts['social'] = $social;
+
+ // update options and flash success message
+ update_option('notepad_opts', $notepad_opts);
+
+ global $ol_flash;
+
+ $ol_flash = "Your Notepad Options have been saved.";
+
+ return $notepad_opts;
+ }
+
+ global $ol_flash, $current_user;
+ get_currentuserinfo();
+
+ // process posted options
+ if (isset($_POST['color_scheme'])) $notepad_opts = process_admin_opts();
+ else if ( isset($_POST['reset_all_opts']) ) {
+ $notepad_opts = notepad_init_opts();
+
+ $ol_flash = "The Notepad Options have been reset to the default.";
+ }
+ else {
+ $notepad_opts = get_option('notepad_opts');
+ if ( !$notepad_opts ) $notepad_opts = notepad_init_opts();
+ }
+
+ // build the scheme option output
+ $schemes = array(
+ array('yellow', 'Yellow (default)'),
+ );
+
+ $schemeOpts = '';
+ $schemeCount = count( $schemes );
+
+ for ( $i = 0; $i < $schemeCount; $i++ ) {
+ $schemeSlug = $schemes[$i][0];
+ $schemeName = $schemes[$i][1];
+
+ $schemeOpts .= '<option value="' . $schemeSlug . '"' . ( $schemeSlug == $notepad_opts['color_scheme'] ? ' selected="selected"' : '' ) . '>' . $schemeName . '</option>';
+ }
+
+ // build the social media option output
+
+ $sm = '';
+
+ $social_count = count($notepad_opts['social']);
+
+ if ( $social_count ) :
+
+ $select_opts = array(
+ array('twitter', 'Twitter'),
+ array('facebook', 'Facebook'),
+ array('flickr', 'Flickr'),
+ array('myspace', 'MySpace'),
+ array('youtube', 'YouTube'),
+ array('email', 'Email'),
+ array('rss', 'RSS'),
+ array('custom', 'Custom Button'),
+ );
+ $select_opts_count = count($select_opts);
+
+ for( $i = 0; $i < $social_count; $i++ ) {
+ $social = $notepad_opts['social'][$i];
+
+ $this_title = $social['title'];
+ $this_image = $social['image'];
+ $this_url = $social['url'];
+ $this_custom = $social['custom'] ? 1 : 0;
+
+ $opt_str = '';
+
+ $this_select_slug = $this_custom ? 'custom' : $this_image;
+
+ for ( $j = 0; $j < $select_opts_count; $j++ ) {
+ $val = $select_opts[$j][0];
+ $display = $select_opts[$j][1];
+
+ $opt_str .= '<option value="' . $val . '"';
+ if ( $val == $this_select_slug ) $opt_str .= ' selected="selected"';
+
+ $opt_str .= '>' . $display . '</option>';
+ }
+
+ $custom_rss_url = ( $social['image'] == 'rss' && $social['url'] != 'feed' );
+
+ $rss_opts = '<label>URL</label>
+ <div class="regular-text">
+ <input class="social-rss-default" type="radio" ' . ( !$custom_rss_url ? 'checked ' : '' ) . ' name="social-fake-radio-' . $i . '" /> Default &nbsp;
+ <input class="social-rss-custom" type="radio" name="social-fake-radio-' . $i . '" ' . ( $custom_rss_url ? 'checked ' : '' ) . '/> Custom Feed
+ </div>
+
+ <label>&nbsp;</label><input class="regular-text social-rss-url" type="text" name="social_rss_url[]" ' . ( $custom_rss_url ? 'value="' . $this_url . '"' : 'disabled' ) . ' />';
+
+
+ $sm .= <<<EOT
+
+ <div class="social-button sb-$this_select_slug">
+ <select class="social-select">
+ $opt_str
+ </select>
+
+ <div class="social-custom-inputs">
+ <label>Title</label><input class="regular-text social-title" type="text" name="social_title[]" value="$this_title" />
+ <label>Image</label><input class="regular-text social-image" type="text" name="social_image[]" value="$this_image" />
+ <span class="description">Dimension 32 x 32px</span>
+ </div>
+
+ <div class="social-rss-inputs">
+ $rss_opts
+ </div>
+
+ <div class="social-url-inputs">
+ <label>URL</label><input class="regular-text social-url" type="text" name="social_url[]" value="$this_url" />
+ </div>
+
+ <input class="social-custom" type="hidden" name="social_custom[]" value="$this_custom" />
+
+ <br class="clear" />
+
+ <a href="#" class="social-add-cta">+ Add</a>
+ <a href="#" class="social-delete-cta">x Delete</a>
+ </div>
+
+EOT;
+ }
+
+ else :
+ $sm .= '<a href="#" class="antisocial-cta">+ Add Social Media Button</a>';
+
+ endif; // if $social_count
+
+ // add social media display opts
+
+ $sm .= '<strong>Display:</strong> ';
+
+ $display_opts = array('image', 'both');
+
+ for ( $i = 0; $i < 2; $i++ ) {
+ $this_opt = $display_opts[$i];
+
+ $sm .= '<input type="radio" class="input-radio" name="social_display" value="' . $this_opt . '" ' . ( $notepad_opts['social_display'] == $this_opt ? ' checked="checked"' : '' ) . ' /> ';
+
+ $sm .= !$i ? 'Image Only &nbsp;' : 'Image &amp; Text';
+ }
+
+ // define form values (for ones that can just use a string)
+
+ $custom_favicon = stripslashes($notepad_opts['favicon']);
+ $exclude_pages = stripslashes($notepad_opts['exclude_pages']);
+ $tracking_code = stripslashes($notepad_opts['tracking_code']);
+ $social_off = $notepad_opts['social_off'] ? ' checked="checked"' : '';
+ $no_dropdown = $notepad_opts['no_dropdown'] ? ' checked="checked"' : '';
+
+ // build the page output
+ $out = '';
+
+ if ($ol_flash) $out .= '<div id="message"class="updated fade"><p>' . $ol_flash . '</p></div>';
+
+ $out .= <<<EOT
+ <div class="wrap nosubsub" id="notepad-opts">
+ <div id="icon-options-general" class="icon32"><br /></div>
+
+ <h2>
+ Notepad Options
+ </h2>
+
+ <div>
+ Theme settings by <a href="http://jonraasch.com" target="_blank">Jon Raasch</a>
+ </div>
+
+ <form action="" method="post" id="notepad_form">
+ <table class="form-table"><tbody>
+ <tr valign="top">
+ <th scope="row">
+ <label for="color-scheme">Color Scheme</label>
+ </th>
+ <td>
+ <select id="color-scheme" name="color_scheme">
+ $schemeOpts
+ </select>
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <th scope="row">
+ <label for="custom-favicon">Custom Favicon</label>
+ </th>
+ <td>
+ <input type="text" class="regular-text" id="custom-favicon" value="$custom_favicon" name="favicon" />
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <th scope="row">
+ <label for="exclude-pages">Exclude Pages in Menu</label>
+ </th>
+ <td>
+ <input type="text" class="regular-text" id="exclude-pages" value="$exclude_pages" name="exclude_pages" />
+
+ <span class="description">
+ Enter a comma-separated list of page ID's (e.g. 2,4,16)
+ </span>
+
+ <br />
+
+ <input type="checkbox" name="no_dropdown" $no_dropdown /> No dropdown menu
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <th scope="row">
+ <label for="social-media-buttons">Social Media Buttons</label>
+ </th>
+ <td>
+
+ <div>
+ $sm
+ </div>
+
+ <div>
+ <input id="social-media-buttons" type="checkbox" name="social_off" $social_off /> Turn Off Social Media Buttons
+ </div>
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <th scope="row">
+ <label for="footer-tracking-code">Footer Tracking Code</label>
+ </th>
+ <td>
+ <textarea class="large-text code" id="footer-tracking-code" cols="50" rows="10" name="tracking_code">$tracking_code</textarea>
+
+ <span class="description">
+ This code will be added to the footer before the &lt;/body&gt; closing tag
+ </span>
+ </td>
+ </tr>
+
+ <tr valign="top">
+ <th scope="row">&nbsp;</th>
+ <td>
+ <div class="submit"><input type="submit" class="button-primary" value="Save Options" /> <a href="#" class="button" id="theme-opts-reset">Reset Options to Defaults</a></div>
+ </td>
+ </tr>
+ </tbody></table>
+ </form>
+
+ <form action="" method="post" id="reset_form">
+ <input type="hidden" name="reset_all_opts" value="true" />
+
+ <input type="submit" style="display: none;" />
+ </form>
+
+ </div>
+EOT;
+
+ echo $out;
+}
+
+// css and js for the notepad options
+function notepad_css_js() {
+ $theme_dir = get_bloginfo('template_directory');
+ ?>
+
+ <link rel="stylesheet" type="text/css" href="<?=$theme_dir; ?>/theme-options/theme_options.css" />
+
+ <script type="text/javascript" src="<?=$theme_dir; ?>/theme-options/theme_options.js"></script>
+
+ <?php
+}
+
+if ( $_GET['page'] == 'theme-settings' ) add_action('admin_head', 'notepad_css_js');
+
+// init or reset options
+
+function notepad_init_opts() {
+ $notepad_opts['color_scheme'] = 'yellow';
+ $notepad_opts['favicon'] = '';
+ $notepad_opts['exclude_pages'] = '';
+ $notepad_opts['tracking_code'] = '';
+ $notepad_opts['social_display'] = 'both';
+ $notepad_opts['social_off'] = false;
+ $notepad_opts['no_dropdown'] = false;
+
+ $notepad_opts['social'] = array(
+ array(
+ 'title' => 'RSS',
+ 'url' => 'feed',
+ 'image' => 'rss',
+ 'custom' => 0,
+ ),