diff --git a/wp-content/themes/bliss/404.php b/wp-content/themes/bliss/404.php new file mode 100644 index 0000000000000000000000000000000000000000..d80acad7b48db5032f8df6c78cf37a220ebf3c45 --- /dev/null +++ b/wp-content/themes/bliss/404.php @@ -0,0 +1,13 @@ +<?php get_header(); ?> + + <div class="post"> + + <h1 class="post-title"><?php _e('Not Found','bliss'); ?></h1> + + <div class="entry"> + <p><?php _e('Sorry, but you are looking for something that isn't here.','bliss'); ?></p> + </div> + + </div> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/archive.php b/wp-content/themes/bliss/archive.php new file mode 100644 index 0000000000000000000000000000000000000000..82f5c6890ab303c4edcd80f386db14feb9c238a7 --- /dev/null +++ b/wp-content/themes/bliss/archive.php @@ -0,0 +1,61 @@ +<?php get_header(); ?> + +<div class="post archive-header"> + <h1 class="post-title"> + <?php + _e('Archive for ','bliss'); + if(is_day()) : the_time(__('F jS, Y','bliss')); + elseif(is_month()) : the_time(__('F Y','bliss')); + elseif(is_year()) : the_time(__('Y','bliss')); + endif; + ?> + </h1> + <div class="entry"> + <p><?php _e('You are browsing the archives of','bliss'); wp_title(''); ?>.</p> + </div> +</div> + +<?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(); ?>"><?php the_title(); ?></a> + </h2> + + <p class="byline"> + <span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span> + <span class="author"><?php the_author_posts_link() ?></span> + <?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?> + <?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?> + </p> + + <div class="entry"> + <?php + if($settings['archives'] == __('Excerpts','bliss')) the_excerpt(); + else the_content(__('Read more »','bliss')); + ?> + </div> + + <div class="post-meta-data"> + <span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span> + <span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span> + </div> + + </div> + + <?php endwhile; ?> + + <div class="navigation-links section"> + <?php posts_nav_link('', + '<span class="previous">« '.__('Previous Page','bliss').'</span>', + '<span class="next">'.__('Next Page','bliss').' »</span>' + ); ?> + </div> + +<?php else: ?> + <p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/attachment.php b/wp-content/themes/bliss/attachment.php new file mode 100644 index 0000000000000000000000000000000000000000..cc053e03c895cf31cc92a3a5008e4a691862c7e9 --- /dev/null +++ b/wp-content/themes/bliss/attachment.php @@ -0,0 +1,32 @@ +<?php get_header(); ?> + +<?php if(have_posts()) : while(have_posts()) : the_post(); ?> + + <div class="post"> + + <h1 class="post-title"> + <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> + </h1> + + <div class="entry"> + <?php the_content(); ?> + </div> + + </div> + + <?php comments_template(); ?> + + <div class="navigation-links section"> + <span class="previous"><?php previous_post_link('« %link'); ?></span> + <span class="next"><?php next_post_link(' %link »'); ?></span> + </div> + + <?php endwhile; ?> + +<?php else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/author.php b/wp-content/themes/bliss/author.php new file mode 100644 index 0000000000000000000000000000000000000000..59a665577d19407a6cc4ada547a2b61966a97dbe --- /dev/null +++ b/wp-content/themes/bliss/author.php @@ -0,0 +1,54 @@ +<?php get_header(); ?> + +<div class="post author-header"> + <h1 class="post-title"><?php wp_title(''); ?></h1> + <div class="entry"> + <?php op_author_bio(); // Author header hook ?> + </div> +</div> + +<?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(); ?>"><?php the_title(); ?></a> + </h2> + + <p class="byline"> + <span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span> + <span class="author"><?php the_author_posts_link(); ?></span> + <?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?> + <?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?> + </p> + + <div class="entry"> + <?php + if($settings['archives'] == __('Excerpts','bliss')) the_excerpt(); + else the_content(__('Read more »','bliss')); + ?> + </div> + + <div class="post-meta-data"> + <span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span> + <span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span> + </div> + + </div> + + <?php endwhile; ?> + + <div class="navigation-links section"> + <?php posts_nav_link('', + '<span class="previous">« '.__('Previous Page','bliss').'</span>', + '<span class="next">'.__('Next Page','bliss').' »</span>' + ); ?> + </div> + +<?php else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/category.php b/wp-content/themes/bliss/category.php new file mode 100644 index 0000000000000000000000000000000000000000..2bce3784819cbdc32e3665e57fd4c4f28bdd3488 --- /dev/null +++ b/wp-content/themes/bliss/category.php @@ -0,0 +1,53 @@ +<?php get_header(); ?> + +<div class="post category-header"> + <h1 class="post-title"><?php single_cat_title(); ?></h1> + <div class="entry"> + <?php echo category_description(); ?> + </div> +</div> + +<?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(); ?>"><?php the_title(); ?></a> + </h2> + + <p class="byline"> + <span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span> + <span class="author"><?php the_author_posts_link(); ?></span> + <?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?> + <?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?> + </p> + + <div class="entry"> + <?php + if($settings['archives'] == __('Excerpts','bliss')) the_excerpt(); + else the_content(__('Read more »','bliss')); + ?> + </div> + + <div class="post-meta-data"> + <span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span> + <span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span> + </div> + </div> + + <?php endwhile; ?> + + <div class="navigation-links section"> + <?php posts_nav_link('', + '<span class="previous">« '.__('Previous Page','bliss').'</span>', + '<span class="next">'.__('Next Page','bliss').' »</span>' + ); ?> + </div> + +<?php else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/comments.php b/wp-content/themes/bliss/comments.php new file mode 100644 index 0000000000000000000000000000000000000000..6cc29faf44203e960dfde8c668c79c2014a29059 --- /dev/null +++ b/wp-content/themes/bliss/comments.php @@ -0,0 +1,124 @@ +<div id="comments-template"> +<?php // Do not delete these lines +if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); +if (!empty($post->post_password)) { // if there's a password + if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie + echo '<h2>'; _e('Password Protected','bliss'); echo '</h2>'; + echo '<p>'; _e('Enter the password to view comments.','bliss'); echo '</p></div>'; + return; + } +} +// Variable for alternating comments with the CSS class "alt" +$oddcomment = 'alt'; + +// Start editing here + if ($comments) : + echo '<h3 id="comments">'; + comments_number(__('No Responses','bliss'), __('One Response','bliss'), '% '.__('Responses','bliss')); + echo ' '; _e('to','bliss'); echo ' “'; the_title(); + echo '”</h3>'; + + echo '<ol class="commentlist">'; + + foreach ($comments as $comment) : ?> + + <li class="<?php echo $oddcomment; ?> <?php if($comment->comment_author_email == get_the_author_email()) echo 'author'; ?>" id="comment-<?php comment_ID(); ?>"> + + <div class="comment-meta-data"> + <?php + if($comment->comment_author_url == true) { + if($comment->comment_author_url == 'http://') $comment->comment_author_url = 'http://gravatar.com'; + echo "<a href=\"$comment->comment_author_url\" rel=\"nofollow\" title=\""; comment_author(); echo "\">"; + } + $comment_type = get_comment_type(); + if($comment_type == 'trackback' || $comment_type == 'pingback') $avatar = get_bloginfo('template_directory').'/images/trackback.jpg'; + elseif(get_option('bs_avatar') == true) $avatar = 'wavatar'; + else $avatar = get_option('avatar_default'); + echo get_avatar(get_comment_author_email(), '80', $avatar); + if($comment->comment_author_url == true) echo '</a>'; + ?> + <span class="permalink"> + <a class="time" href="#comment-<?php comment_ID(); ?>" title=""><?php _e('Permalink','bliss'); ?></a> + </span> + <?php edit_comment_link(__('Edit','bliss'),'<span class="edit">','</span>'); + if ($comment->comment_approved == '0') : + echo '<em>'; _e('Your comment is awaiting moderation.','bliss'); echo '</em>'; + endif; ?> + </div><!-- comment-meta-data --> + <p> + <span class="comment-author"> + <?php _e('By','bliss'); ?> <?php comment_author_link(); ?> + </span> + <span class="time"> + <?php _e('on','bliss'); ?> <?php comment_date(__('M jS, Y','bliss')); ?> + <?php _e('at','bliss'); ?> <?php comment_time(); ?> + </span> + </p> + <div class="comment-text"> + <?php comment_text() ?> + </div> + </li> + +<?php // Changes every other comment to a different class + if ('alt' == $oddcomment) $oddcomment = ''; + else $oddcomment = 'alt'; +endforeach; // end foreach comment +?> + +</ol> +<?php +else : // this is displayed if there are no comments so far + +if ('open' == $post->comment_status) : + // If comments are open, but there are no comments. + else : // comments are closed +// If comments are closed ?> + <p class="nocomments"><?php _e('Comments are closed.','bliss'); ?></p> + + <?php endif; +endif; + +if ('open' == $post->comment_status) : ?> + <h3 id="respond"><?php _e('Leave a Reply','bliss'); ?></h3> + +<?php if ( get_option('comment_registration') && !$user_ID ) : ?> +<p><?php _e('You must be','bliss'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"> <?php _e('logged in','bliss'); ?></a> <?php echo ' '; _e('to post a comment.','bliss'); ?></p> + +<?php else : ?> + +<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> +<?php if ( $user_ID ) : ?> + +<p><?php _e('Logged in as','bliss'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"> <?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','bliss'); ?>"><?php _e('Logout','bliss'); ?> »</a></p> + +<?php else : ?> + +<div class="comment-input"> +<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="40" tabindex="1" /> +<label for="author"><?php _e('Name','bliss'); echo ' '; if ($req) _e('(Required)','bliss'); ?></label></p> + +<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" /> +<label for="email"><?php _e('Email','bliss'); echo ' '; if ($req) if ($req) _e('(Required)','bliss'); ?></label></p> + +<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" /> +<label for="url"><?php _e('Website','bliss'); ?></label></p> +</div> + +<?php endif; ?> + +<p class="textarea"><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea></p> + +<p class="comment-submit"><input class="submit-comment" name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit','bliss'); ?>" /> +<input class="reset-comment" name="reset" type="reset" id="reset" tabindex="6" value="<?php _e('Reset','bliss'); ?>" /> +<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> +</p> +<div class="comment-footer"> +<?php do_action('comment_form', $post->ID); ?> +<p class="allowed-tags"><?php echo '<strong>'; _e('You can use these XHTML tags','bliss'); echo ':</strong>'; ?> <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong></p> + +</div> + +</form> + <?php endif; // If registration required and not logged in ?> +<?php endif; // if you delete this the sky will fall on your head ?> +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/en_EN.mo b/wp-content/themes/bliss/en_EN.mo new file mode 100644 index 0000000000000000000000000000000000000000..047605fad59b448e1d02eeade3b3935a94999c7c Binary files /dev/null and b/wp-content/themes/bliss/en_EN.mo differ diff --git a/wp-content/themes/bliss/en_EN.po b/wp-content/themes/bliss/en_EN.po new file mode 100644 index 0000000000000000000000000000000000000000..6fca0c6ca3abcce9a0de67db21c720e73a221789 --- /dev/null +++ b/wp-content/themes/bliss/en_EN.po @@ -0,0 +1,651 @@ +msgid "" +msgstr "" +"Project-Id-Version: Visionary WordPress Theme\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-08-05 06:45-0600\n" +"PO-Revision-Date: 2008-08-05 06:45-0600\n" +"Last-Translator: Justin Tadlock <justin@justintadlock.com>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: .\n" + +#: 404.php:5 +msgid "Not Found" +msgstr "" + +#: 404.php:8 +msgid "Sorry, but you are looking for something that isn't here." +msgstr "" + +#: archive.php:6 +msgid "Archive for " +msgstr "" + +#: archive.php:7 +#: single.php:12 +msgid "F jS, Y" +msgstr "" + +#: archive.php:8 +msgid "F Y" +msgstr "" + +#: archive.php:9 +#: library/functions/template-functions.php:85 +msgid "Y" +msgstr "" + +#: archive.php:14 +#: tag.php:8 +#: library/functions/template-functions.php:270 +msgid "You are browsing the archives of" +msgstr "" + +#: archive.php:27 +#: author.php:19 +#: category.php:19 +#: comments.php:53 +#: index.php:10 +#: search.php:23 +#: tag.php:21 +msgid "M jS, Y" +msgstr "" + +#: archive.php:29 +#: author.php:21 +#: category.php:21 +#: index.php:12 +#: search.php:25 +#: tag.php:23 +msgid "No Comments" +msgstr "" + +#: archive.php:29 +#: author.php:21 +#: category.php:21 +#: index.php:12 +#: search.php:25 +#: tag.php:23 +msgid "1 Comment" +msgstr "" + +#: archive.php:29 +#: author.php:21 +#: category.php:21 +#: index.php:12 +#: search.php:25 +#: tag.php:23 +msgid "% Comments" +msgstr "" + +#: archive.php:30 +#: author.php:22 +#: category.php:22 +#: comments.php:43 +#: index.php:13 +#: search.php:26 +#: single.php:14 +#: tag.php:24 +msgid "Edit" +msgstr "" + +#: archive.php:35 +#: author.php:27 +#: category.php:27 +#: index.php:18 +#: search.php:31 +#: tag.php:29 +#: library/settings/general.php:48 +#: library/settings/general.php:49 +#: library/settings/general.php:66 +#: library/settings/general.php:67 +#: library/settings/theme-settings-xhtml.php:5 +msgid "Excerpts" +msgstr "" + +#: archive.php:36 +#: author.php:28 +#: category.php:28 +#: index.php:19 +#: search.php:32 +#: tag.php:30 +msgid "Read more »" +msgstr "" + +#: archive.php:41 +#: author.php:33 +#: category.php:33 +#: index.php:25 +#: search.php:37 +#: single.php:23 +#: tag.php:35 +msgid "Categories:" +msgstr "" + +#: archive.php:42 +#: author.php:34 +#: category.php:34 +#: index.php:26 +#: search.php:38 +#: single.php:24 +#: tag.php:36 +msgid "Tags:" +msgstr "" + +#: archive.php:51 +#: author.php:43 +#: category.php:42 +#: index.php:35 +#: search.php:46 +#: tag.php:45 +msgid "Previous Page" +msgstr "" + +#: archive.php:52 +#: author.php:44 +#: category.php:43 +#: index.php:36 +#: search.php:47 +#: tag.php:46 +msgid "Next Page" +msgstr "" + +#: archive.php:57 +#: attachment.php:28 +#: author.php:50 +#: category.php:49 +#: image.php:36 +#: search.php:53 +#: tag.php:52 +msgid "Sorry, no posts matched your criteria." +msgstr "" + +#: comments.php:6 +msgid "Password Protected" +msgstr "" + +#: comments.php:7 +msgid "Enter the password to view comments." +msgstr "" + +#: comments.php:17 +msgid "No Responses" +msgstr "" + +#: comments.php:17 +msgid "One Response" +msgstr "" + +#: comments.php:17 +msgid "Responses" +msgstr "" + +#: comments.php:18 +msgid "to" +msgstr "" + +#: comments.php:41 +msgid "Permalink" +msgstr "" + +#: comments.php:45 +msgid "Your comment is awaiting moderation." +msgstr "" + +#: comments.php:50 +msgid "By" +msgstr "" + +#: comments.php:53 +msgid "on" +msgstr "" + +#: comments.php:54 +msgid "at" +msgstr "" + +#: comments.php:76 +msgid "Comments are closed." +msgstr "" + +#: comments.php:82 +msgid "Leave a Reply" +msgstr "" + +#: comments.php:85 +msgid "You must be" +msgstr "" + +#: comments.php:85 +msgid "logged in" +msgstr "" + +#: comments.php:85 +msgid "to post a comment." +msgstr "" + +#: comments.php:92 +msgid "Logged in as" +msgstr "" + +#: comments.php:92 +msgid "Log out of this account" +msgstr "" + +#: comments.php:92 +msgid "Logout" +msgstr "" + +#: comments.php:98 +msgid "Name" +msgstr "" + +#: comments.php:98 +#: comments.php:101 +msgid "(Required)" +msgstr "" + +#: comments.php:101 +msgid "Email" +msgstr "" + +#: comments.php:104 +msgid "Website" +msgstr "" + +#: comments.php:111 +msgid "Submit" +msgstr "" + +#: comments.php:112 +msgid "Reset" +msgstr "" + +#: comments.php:117 +msgid "You can use these XHTML tags" +msgstr "" + +#: index.php:21 +#: page.php:13 +#: single.php:19 +msgid "Pages:" +msgstr "" + +#: search.php:9 +msgid "You are browsing the search results for" +msgstr "" + +#: includes/widget-insert.php:10 +#: includes/widget-insert.php:30 +#: includes/widget-insert.php:42 +#: library/functions/widgets.php:11 +msgid "Home Insert" +msgstr "" + +#: includes/widget-insert.php:12 +#: library/functions/widgets.php:14 +msgid "Attachment Insert" +msgstr "" + +#: includes/widget-insert.php:14 +#: library/functions/widgets.php:12 +msgid "Single Insert" +msgstr "" + +#: includes/widget-insert.php:16 +#: library/functions/widgets.php:15 +msgid "Page Insert" +msgstr "" + +#: includes/widget-insert.php:18 +#: library/functions/widgets.php:16 +msgid "Category Insert" +msgstr "" + +#: includes/widget-insert.php:20 +#: library/functions/widgets.php:17 +msgid "Tag Insert" +msgstr "" + +#: includes/widget-insert.php:22 +#: library/functions/widgets.php:18 +msgid "Search Insert" +msgstr "" + +#: includes/widget-insert.php:24 +#: library/functions/widgets.php:19 +msgid "Author Insert" +msgstr "" + +#: includes/widget-insert.php:26 +#: library/functions/widgets.php:13 +msgid "Archive Insert" +msgstr "" + +#: includes/widget-insert.php:28 +#: library/functions/widgets.php:20 +msgid "404 Insert" +msgstr "" + +#: library/functions/filters.php:17 +msgid "Subscribe to the feed" +msgstr "" + +#: library/functions/filters.php:17 +msgid "Subscribe by RSS" +msgstr "" + +#: library/functions/filters.php:19 +msgid "Subscribe by email" +msgstr "" + +#: library/functions/filters.php:73 +msgid "Search this site..." +msgstr "" + +#: library/functions/filters.php:74 +msgid "Go" +msgstr "" + +#: library/functions/functions.php:7 +msgid "Oooops! It looks like you've messed something up. Try undoing your last edit to see if you can fix it. If it's still broken, check out the support forums." +msgstr "" + +#: library/functions/functions.php:161 +msgid "posts by" +msgstr "" + +#: library/functions/functions.php:188 +msgid "posts filed under" +msgstr "" + +#: library/functions/template-functions.php:59 +msgid "RSS 2.0" +msgstr "" + +#: library/functions/template-functions.php:60 +msgid "RSS .92" +msgstr "" + +#: library/functions/template-functions.php:61 +msgid "Atom 0.3" +msgstr "" + +#: library/functions/template-functions.php:72 +msgid "by" +msgstr "" + +#: library/functions/template-functions.php:85 +msgid "Copyright" +msgstr "" + +#: library/functions/template-functions.php:88 +msgid "Powered by" +msgstr "" + +#: library/functions/template-functions.php:88 +msgid "Powered by WordPress, state-of-the-art semantic personal publishing platform" +msgstr "" + +#: library/functions/template-functions.php:88 +msgid "WordPress" +msgstr "" + +#: library/functions/template-functions.php:112 +msgid "404 Not Found" +msgstr "" + +#: library/functions/template-functions.php:114 +msgid "Category: " +msgstr "" + +#: library/functions/template-functions.php:116 +msgid "Tag: " +msgstr "" + +#: library/functions/template-functions.php:118 +msgid "Search Results:" +msgstr "" + +#: library/functions/template-functions.php:120 +msgid "Archives:" +msgstr "" + +#: library/functions/template-functions.php:122 +msgid "Attachment:" +msgstr "" + +#: library/functions/template-functions.php:171 +msgid "Left" +msgstr "" + +#: library/functions/template-functions.php:234 +msgid "Browse" +msgstr "" + +#: library/functions/template-functions.php:236 +msgid "Home" +msgstr "" + +#: library/functions/template-functions.php:285 +msgid "Related Posts" +msgstr "" + +#: library/functions/template-functions.php:326 +#: library/functions/template-functions.php:333 +msgid "Read More »" +msgstr "" + +#: library/settings/about.php:2 +msgid "About This Theme" +msgstr "" + +#: library/settings/about.php:8 +msgid "Theme Description:" +msgstr "" + +#: library/settings/about.php:12 +msgid "Theme Version:" +msgstr "" + +#: library/settings/about.php:16 +msgid "Theme Documentation:" +msgstr "" + +#: library/settings/about.php:17 +msgid "Theme Documentation" +msgstr "" + +#: library/settings/about.php:20 +msgid "Theme Support:" +msgstr "" + +#: library/settings/about.php:21 +msgid "Visit the support forums." +msgstr "" + +#: library/settings/about.php:24 +msgid "Donate:" +msgstr "" + +#: library/settings/about.php:25 +msgid "Contribute to this project" +msgstr "" + +#: library/settings/about.php:25 +msgid "Donations" +msgstr "" + +#: library/settings/about.php:25 +msgid "help keep theme downloads and support free." +msgstr "" + +#: library/settings/footer.php:3 +msgid "Header & Footer Settings" +msgstr "" + +#: library/settings/footer.php:9 +msgid "Header Insert:" +msgstr "" + +#: library/settings/footer.php:14 +msgid "You can place XHTML and JavaScript here to have it inserted automatically into your theme. Take note that this is placed within the <head></head> tags. This is useful for adding JavaScript and alternate stylesheets." +msgstr "" + +#: library/settings/footer.php:19 +msgid "Footer Insert:" +msgstr "" + +#: library/settings/footer.php:24 +msgid "You can place XHTML and JavaScript here to have it inserted automatically into your theme. If you have a script, such as one from Google Analytics, this could be useful." +msgstr "" + +#: library/settings/footer.php:29 +msgid "Site Footer:" +msgstr "" + +#: library/settings/footer.php:33 +msgid "Check this if you want the theme to auto-generate your site's copyright and title in the footer." +msgstr "" + +#: library/settings/footer.php:38 +msgid "WordPress Love:" +msgstr "" + +#: library/settings/footer.php:42 +msgid "Want to show your love of WordPress? Check this and a link will be added to your footer back to WordPress.org." +msgstr "" + +#: library/settings/footer.php:47 +msgid "Justin Tadlock Love:" +msgstr "" + +#: library/settings/footer.php:51 +msgid "Want to show your love of Justin Tadlock? Just check this and a link will be appended to your footer. This is totally optional. Really." +msgstr "" + +#: library/settings/footer.php:56 +msgid "Credit Removal:" +msgstr "" + +#: library/settings/footer.php:62 +msgid "If you've purchased credit removal, you can insert the credit removal key here to have the theme automatically remove the credit links in the footer. Inputting this key helps me keep track of users that have legally purchased credit removal." +msgstr "" + +#: library/settings/footer.php:69 +#: library/settings/general.php:102 +msgid "Update Options" +msgstr "" + +#: library/settings/general.php:3 +msgid "General Settings" +msgstr "" + +#: library/settings/general.php:10 +msgid "Feedburner URL:" +msgstr "" + +#: library/settings/general.php:15 +msgid "If you have a <a href=\"http://feedburner.com\" title=\"Feedburner\"> Feedburner</a> account, you can enter your feed address here to have the theme set your feed URL link. If blank, the theme will default to your WordPress RSS feed." +msgstr "" + +#: library/settings/general.php:21 +msgid "Author Archive Bio:" +msgstr "" + +#: library/settings/general.php:25 +msgid "Show author biographical information on author archives with an avatar?" +msgstr "" + +#: library/settings/general.php:31 +msgid "Print Stylesheet:" +msgstr "" + +#: library/settings/general.php:35 +msgid "Select this to have the theme automatically include a print stylesheet." +msgstr "" + +#: library/settings/general.php:41 +msgid "Home Display:" +msgstr "" + +#: library/settings/general.php:45 +#: library/settings/general.php:46 +#: library/settings/general.php:63 +#: library/settings/general.php:64 +#: library/settings/theme-settings-admin.php:18 +#: library/settings/theme-settings-admin.php:19 +#: library/settings/theme-settings-xhtml.php:6 +msgid "Full Posts" +msgstr "" + +#: library/settings/general.php:53 +msgid "Select how you want your home page's posts to display." +msgstr "" + +#: library/settings/general.php:59 +msgid "Archives Display:" +msgstr "" + +#: library/settings/general.php:71 +msgid "Select how you want your archived posts to display." +msgstr "" + +#: library/settings/general.php:77 +msgid "Home Insert 1:" +msgstr "" + +#: library/settings/general.php:82 +#: library/settings/general.php:94 +msgid "You can input any XHTML you want to here. You might also have to add CSS rules for this in your stylesheet." +msgstr "" + +#: library/settings/general.php:83 +msgid "This will be added before your home page's main content." +msgstr "" + +#: library/settings/general.php:89 +msgid "Home Insert 2:" +msgstr "" + +#: library/settings/general.php:95 +msgid "This will be added after your home page's main content." +msgstr "" + +#: library/settings/theme-settings-admin.php:6 +msgid "Bliss" +msgstr "" + +#: library/settings/theme-settings-admin.php:7 +#: library/settings/theme-settings.php:14 +msgid "Bliss Theme Settings" +msgstr "" + +#: library/settings/theme-settings-admin.php:59 +msgid "Theme" +msgstr "" + +#: library/settings/theme-settings-admin.php:71 +msgid "Settings saved." +msgstr "" + +#: library/settings/theme-settings-admin.php:81 +msgid "From this page, you can set multiple options for your site. Everything is just a <em> click of the button</em> away." +msgstr "" + +#: library/settings/theme-settings-admin.php:82 +msgid "You don't have to touch code at all. Just configure your settings and let the theme work its magic." +msgstr "" + +#: library/settings/theme-settings-xhtml.php:15 +msgid "Home Section 1:" +msgstr "" + +#: library/settings/theme-settings.php:14 +msgid "Bliss Settings" +msgstr "" + diff --git a/wp-content/themes/bliss/footer.php b/wp-content/themes/bliss/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..f7665987dbf2f52d0d54e02bccf8554ed0dd0156 --- /dev/null +++ b/wp-content/themes/bliss/footer.php @@ -0,0 +1,21 @@ + </div> + + <?php op_widget_insert(); // Widget insert hook ?> + + </div> + + <div id="footer-container"> + + <div id="footer"> + + <?php op_footer(); // Theme footer hook ?> + + <?php wp_footer(); // WordPress footer hook ?> + + </div> + + </div> + +</div> +</body> +</html> \ No newline at end of file diff --git a/wp-content/themes/bliss/functions.php b/wp-content/themes/bliss/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..3b4548e526afc172c5a8a1deb1717c844163096f --- /dev/null +++ b/wp-content/themes/bliss/functions.php @@ -0,0 +1,36 @@ +<?php +/******************************************************** +* Do not modify unless you know what you're doing +********************************************************/ + +// For international users + load_theme_textdomain('bliss'); + +// Define constant paths + $op_dir = get_bloginfo('template_directory'); + + define('OP_LIBRARY', TEMPLATEPATH . '/library'); + define('OP_INCLUDES', TEMPLATEPATH . '/includes'); + define('OP_WIDGETS', TEMPLATEPATH . '/widgets'); + define('OP_FUNCTIONS', OP_LIBRARY . '/functions'); + define('OP_SETTINGS', OP_LIBRARY . '/settings'); + define('OP_CSS', $op_dir . '/library/css'); + define('OP_JS', $op_dir . '/library/js'); + +// Include required files + require_once(OP_FUNCTIONS . '/filters.php'); + require_once(OP_FUNCTIONS . '/functions.php'); + require_once(OP_FUNCTIONS . '/get-the-image.php'); + require_once(OP_FUNCTIONS . '/get-the-video.php'); + require_once(OP_FUNCTIONS . '/hooks.php'); + require_once(OP_FUNCTIONS . '/media.php'); + require_once(OP_FUNCTIONS . '/template-functions.php'); + require_once(OP_FUNCTIONS . '/widgets.php'); + +// Theme settings + if(is_admin()) require_once(OP_SETTINGS . '/theme-settings.php'); + +// Return theme settings variable if not admin + if(!is_admin()) $settings = get_option('bliss_theme_settings'); + +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/header.php b/wp-content/themes/bliss/header.php new file mode 100644 index 0000000000000000000000000000000000000000..939f6805d19cfb3091ffb4bb7c2c37401b39e40e --- /dev/null +++ b/wp-content/themes/bliss/header.php @@ -0,0 +1,34 @@ +<!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> +<title><?php op_document_title(); ?></title> + +<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> + +<?php op_head(); // Theme head hook ?> + +<?php wp_head(); // WordPress head hook ?> + +<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> + +</head> + +<body> +<div id="body-container"> + + <?php op_before_header(); ?> + + <div id="header"> + <<?php echo op_header_tag(); ?> id="site-title"> + <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><span><?php bloginfo('name'); ?></span></a> + </<?php echo op_header_tag(); ?>> + + <<?php echo op_desc_tag(); ?> id="site-description"> + <?php bloginfo('description'); ?> + </<?php echo op_desc_tag(); ?>> + </div> + + <?php op_after_header(); ?> + + <div id="container"> + <div id="<?php echo op_page_id(); ?>" class="<?php echo op_page_class(); ?>"> \ No newline at end of file diff --git a/wp-content/themes/bliss/home.php b/wp-content/themes/bliss/home.php new file mode 100644 index 0000000000000000000000000000000000000000..876d5ce3e2088d93f815cfb89e6265e90e9fdb65 --- /dev/null +++ b/wp-content/themes/bliss/home.php @@ -0,0 +1,9 @@ +<?php get_header(); ?> + + <?php if($settings['home_custom_1'] && !is_paged()) include(OP_INCLUDES . '/insert-1.php'); ?> + + <?php include(TEMPLATEPATH . '/index.php'); ?> + + <?php if($settings['home_custom_1'] && !is_paged()) include(OP_INCLUDES . '/insert-2.php'); ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/image.php b/wp-content/themes/bliss/image.php new file mode 100644 index 0000000000000000000000000000000000000000..c7c055ae0af01ddaf8c724ff17d946793e264807 --- /dev/null +++ b/wp-content/themes/bliss/image.php @@ -0,0 +1,40 @@ +<?php get_header(); ?> + +<?php if(have_posts()) : while(have_posts()) : the_post(); ?> + + <div class="post"> + <h1 class="post-title"> + <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> + </h1> + + <div class="entry"> + <p> + <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title(); ?>"> + <img src="<?php echo wp_get_attachment_url(); ?>" alt="<?php the_title(); ?>" /> + </a> + </p> + <?php the_content(); ?> + </div> + + <div class="navigation-attachment"> + <div class="left"><?php previous_image_link(); ?></div> + <div class="right"><?php next_image_link(); ?></div> + </div> + </div> + + <?php comments_template(); ?> + + <div class="navigation-links section"> + <span class="previous"><?php previous_post_link('« %link'); ?></span> + <span class="next"><?php next_post_link(' %link »'); ?></span> + </div> + + <?php endwhile; ?> + +<?php else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/images/bullet.gif b/wp-content/themes/bliss/images/bullet.gif new file mode 100644 index 0000000000000000000000000000000000000000..b3597b7cd58617d24de66dc924dba2f92b188558 Binary files /dev/null and b/wp-content/themes/bliss/images/bullet.gif differ diff --git a/wp-content/themes/bliss/images/code-bg.png b/wp-content/themes/bliss/images/code-bg.png new file mode 100644 index 0000000000000000000000000000000000000000..67f2cb6407c27cc1a5a230e792cb5d40fd892b77 Binary files /dev/null and b/wp-content/themes/bliss/images/code-bg.png differ diff --git a/wp-content/themes/bliss/images/feed.png b/wp-content/themes/bliss/images/feed.png new file mode 100644 index 0000000000000000000000000000000000000000..1679ab05b016ab3eb7556d6eaa869795bf457aa0 Binary files /dev/null and b/wp-content/themes/bliss/images/feed.png differ diff --git a/wp-content/themes/bliss/images/trackback.jpg b/wp-content/themes/bliss/images/trackback.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a9cf71e42b5b927a143cc70a5b9aeb0c982b667f Binary files /dev/null and b/wp-content/themes/bliss/images/trackback.jpg differ diff --git a/wp-content/themes/bliss/includes/insert-1.php b/wp-content/themes/bliss/includes/insert-1.php new file mode 100644 index 0000000000000000000000000000000000000000..0e89669d4a282eda6c1299a2e200c4fc435de479 --- /dev/null +++ b/wp-content/themes/bliss/includes/insert-1.php @@ -0,0 +1,10 @@ +<?php +// Create your own custom home page section/module. +// This is already pre-included in the Structure theme administration panel and home.php. +?> + +<div id="home-insert-1" class="section"> + + <?php echo stripslashes($settings['home_custom_1']); ?> + +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/includes/insert-2.php b/wp-content/themes/bliss/includes/insert-2.php new file mode 100644 index 0000000000000000000000000000000000000000..7042db48292fed2dd84e70b6f55d15a180900592 --- /dev/null +++ b/wp-content/themes/bliss/includes/insert-2.php @@ -0,0 +1,10 @@ +<?php +// Create your own custom home page section/module. +// This is already pre-included in the Structure theme administration panel and home.php. +?> + +<div id="home-insert-2" class="section"> + + <?php echo stripslashes($settings['home_custom_2']); ?> + +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/includes/widget-insert.php b/wp-content/themes/bliss/includes/widget-insert.php new file mode 100644 index 0000000000000000000000000000000000000000..e27e8d98f4a50e254ea7f95a93845b200bd1d027 --- /dev/null +++ b/wp-content/themes/bliss/includes/widget-insert.php @@ -0,0 +1,51 @@ +<?php +/** +* +* Widget inserts +* Displays widget area by conditional tags +* @since 0.1 +* +*/ + if(is_front_page() || is_home()) + $insert_id = __('Home Insert','bliss'); + elseif(is_attachment()) + $insert_id = __('Attachment Insert','bliss'); + elseif(is_single()) + $insert_id = __('Single Insert','bliss'); + elseif(is_page()) + $insert_id = __('Page Insert','bliss'); + elseif(is_category()) + $insert_id = __('Category Insert','bliss'); + elseif(is_tag()) + $insert_id = __('Tag Insert','bliss'); + elseif(is_search()) + $insert_id = __('Search Insert','bliss'); + elseif(is_author()) + $insert_id = __('Author Insert','bliss'); + elseif(is_archive()) + $insert_id = __('Archive Insert','bliss'); + elseif(is_404()) + $insert_id = __('404 Insert','bliss'); + else + $insert_id = __('Home Insert','bliss'); +?> + +<div id="widget-insert-container"> + + <div id='widget-insert'> + + <?php op_before_widget_insert(); // Before widgets hook ?> + + <?php + if(dynamic_sidebar($insert_id)) : + else : + if(dynamic_sidebar(__('Home Insert','bliss'))) : + endif; + endif; + ?> + + <?php op_after_widget_insert(); // After widgets hook ?> + + </div> + +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/index.php b/wp-content/themes/bliss/index.php new file mode 100644 index 0000000000000000000000000000000000000000..9ee746067e7435bd68043d7c886f21c40ed23394 --- /dev/null +++ b/wp-content/themes/bliss/index.php @@ -0,0 +1,40 @@ +<?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(); ?>"><?php the_title(); ?></a> + </h2> + + <p class="byline"> + <span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span> + <span class="author"><?php the_author_posts_link(); ?></span> + <?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?> + <?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?> + </p> + + <div class="entry"> + <?php + if($settings['home'] == __('Excerpts','bliss')) the_excerpt(); + else the_content(__('Read more »','bliss')); + ?> + <?php wp_link_pages("before=<p>".__('Pages:','bliss')."&after=</p>"); ?> + </div> + + <div class="post-meta-data"> + <span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span> + <span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span> + </div> + + </div> + + <?php endwhile; ?> + + <div class="navigation-links section"> + <?php posts_nav_link('', + '<span class="previous">« '.__('Previous Page','bliss').'</span>', + '<span class="next">'.__('Next Page','bliss').' »</span>' + ); ?> + </div> + +<?php endif; ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/css/base.css b/wp-content/themes/bliss/library/css/base.css new file mode 100644 index 0000000000000000000000000000000000000000..c422ab66e611c45f260daecf97d09340eb9bbc93 --- /dev/null +++ b/wp-content/themes/bliss/library/css/base.css @@ -0,0 +1 @@ +html,body,div,span,object,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;vertical-align:baseline;outline:none;font-size:100%;background:transparent;border:none;text-decoration:none;}body{line-height:18px;font-family:Georgia,"Times New Roman",Times,serif;color:#333;background:#fafafa}h1,h2,h3,h4,h5,h6{margin:0 0 18px 0;font-weight:normal}h1{font-size:1.6em}h2{font-size:1.5em}h3{font-size:1.4em}h4{font-size:1.3em}h5{font-size:1.2em}h6{font-size:1.1em}p{margin:0 0 18px 0}ol,ul{list-style:none}ul{list-style:disc;margin:0 0 18px 2.5em}ol{list-style-type:decimal;margin:0 0 18px 3em}ol ol{list-style:upper-roman}ol ol ol{list-style:lower-roman}ol ol ol ol{list-style:upper-alpha}ol ol ol ol ol{list-style:lower-alpha}ul ul,ol ol,ul ol,ol ul{margin-bottom:0}dl{margin:0 0 1.5em 0}dl dt{font-weight:bold;margin:18px 0 0 0}dd{margin:0 0 0 1.5em}strong{font-weight:bold}em,cite{font-style:italic}abbr,acronym{text-transform:uppercase;border-bottom:1px dashed #333;cursor:help}big{font-size:120%}small,sup,sub{font-size:85%}sup{vertical-align:super}sub{vertical-align:sub}address{font-style:italic;margin:0 0 18px 0}blockquote{margin:0 2.5em;font-style:normal}blockquote em,blockquote cite{font-style:italic}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}a:link,a:visited{cursor:pointer;text-decoration:underline}a:hover,a:active{text-decoration:none}a img{border:none}pre{font:1em Monaco,monospace,Courier,"Courier New";line-height:18px;margin-bottom:18px;padding:9px}code{font:.9em Monaco,monospace,Courier,"Courier New"}pre code{font-size:.9em}ins,dfn{font-style:italic;text-decoration:none;border-bottom:1px solid #333}del{text-decoration:line-through}input,textarea{font-size:1em;padding:3px}:focus{outline:none}form label{cursor:pointer}table{border-collapse:collapse;border-spacing:0} \ No newline at end of file diff --git a/wp-content/themes/bliss/library/css/print.css b/wp-content/themes/bliss/library/css/print.css new file mode 100644 index 0000000000000000000000000000000000000000..182f10b1e2ea5337ff5efe4a795323f54856b5a8 --- /dev/null +++ b/wp-content/themes/bliss/library/css/print.css @@ -0,0 +1,53 @@ +/* +Print Stylesheet +Author: Justin Tadlock +Author URI: http://justintadlock.com +Copyright (c) 2007 - 2008 Justin Tadlock +*/ +body { + color: #000; + background: #fff; + font: 11pt "Georgia", "Times New Roman", Times, serif; + padding: 0; + margin: 0; + } +#body-container { margin: 0 auto; padding: 0; } +#container { margin: 0; padding: 0; } +#content, #home { margin: 0 auto; padding: 0; } +a:link, a:visited { + color: #0C386E; + text-decoration: none; + border-bottom: #999; + } +.post-title { margin: 0 0 5px 0; padding: 0; } +.byline { font-style: italic; padding-bottom: 10px; border-bottom: 1px solid #eee; } +.post-meta-data { + font-size: 10pt; + color: #333; + } +h1, h2, h3, h4, h5, h6 { color: #666; } +h1 { font-size: 18pt; } +h2 { font-size: 16pt; } +h3 { font-size: 15pt; } +h4 { font-size: 14pt; } +h5 { font-size: 13pt; } +h6 { font-size: 12pt; } + +#footer { border-top: 1px solid #eee; font-size: 9pt; color: #666; } + +/* Don't display this stuff */ +#header, +#nav-container, +#widget-blocks, +.navigation-links, +#sidebar, +.video, +.navigation, +#comments-template, +#footer img, +#feed, +#widget-insert-container, #widget-insert, +#footer-container, #footer, +.menu { + display: none; + } \ No newline at end of file diff --git a/wp-content/themes/bliss/library/css/theme-settings.css b/wp-content/themes/bliss/library/css/theme-settings.css new file mode 100644 index 0000000000000000000000000000000000000000..a606a1c5669d28324231aecb0b06114f68d8f3b3 --- /dev/null +++ b/wp-content/themes/bliss/library/css/theme-settings.css @@ -0,0 +1,21 @@ +.block-left { + width: 35%; + float: left; + } +.block-right { + width: 60%; + float: left; + } + +.widefat thead th a { + color:#d7d7d7 !important; + text-decoration:underline; +} +.error +{ + padding:12px; +} +.wrap.alternate { + margin-bottom:1.5em; + padding:0 0 0 8px; +} \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/filters.php b/wp-content/themes/bliss/library/functions/filters.php new file mode 100644 index 0000000000000000000000000000000000000000..81c88c894b4cee534c2077c6bcc3c23191e49561 --- /dev/null +++ b/wp-content/themes/bliss/library/functions/filters.php @@ -0,0 +1,81 @@ +<?php +/*********************************************************** +* Theme filters +* @since 1.3 +* Functions that can be filtered +***********************************************************/ + +function op_header_feed() { + global $settings; + + if($settings['feed_url']) $url = $settings['feed_url']; + else $url = get_bloginfo('rss2_url'); + + echo "<div id='feed'>\n\t\t"; + + $feed = "\t<ul>"; + $feed .= '<li class="feed-url"><a href="' . $url . '" title="' . __('Subscribe to the feed','bliss') . '"><span>' . __('Subscribe by RSS','bliss') . '</span></a></li>'; + if($settings['feed_id']) + $feed .= '<li class="feed-email"><a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=' . $settings['feed_id'] . '" title="' . __('Subscribe by email','bliss') . '"><span>' . __('Subscribe by email','bliss') . '</span></a></li>'; + $feed .= '</ul>'; + echo apply_filters('op_header_feed', $feed); + + echo "\n\t\t</div>\n"; +} + +/*********************************************************** +* op_page_nav() - Displays main navigation +* @since 1.3 +* @filter +***********************************************************/ +function op_page_nav() { + + echo "<div id='navigation'>\n\t\t"; + + // Allow users to filter navigation + $nav = '<ul id="nav">'; + $nav .= str_replace(array("\t","\n","\r"), '', wp_list_pages('title_li=&depth=1&sort_column=menu_order&echo=0')); + $nav .= '</ul>'; + echo apply_filters('op_page_nav', $nav); + // Get search + op_main_search(); + + echo "\t</div>\n"; +} + +/*********************************************************** +* op_cat_nav() - Displays sub navigation +* @since 1.3 +* @filter +***********************************************************/ +function op_cat_nav() { + echo "\n\t<div id='cat-navigation'>\n\t\t"; + $nav = '<ul id="sub-nav">'; + $nav .= str_replace(array("\t","\n","\r"), '', wp_list_categories('title_li=&use_desc_for_title=0&depth=1&orderby=name&hierarchical=1&echo=0')); + $nav .= '</ul>'; + echo apply_filters('op_cat_nav',$nav); + echo "\n\t</div>\n"; +} + + +/*********************************************************** +* op_main_search() - Displays search in main nav +* @since 1.3 +* @filter +***********************************************************/ + +function op_main_search() { + global $settings; + + echo "\n\t\t<div id='search'>\n\t\t\t"; + $search = '<form method="get" id="searchform" action="' . get_bloginfo("home") . '">'; + $search .= '<div>'; + $search .= '<input class="search" type="text" name="s" id="s" tabindex="7" value="' . __('Search this site...','bliss') . '" onfocus="if(this.value==this.defaultValue)this.value=\'\';" onblur="if(this.value==\'\')this.value=this.defaultValue;" />'; + $search .= '<input class="search-submit" name="submit" type="submit" id="search-submit" tabindex="8" value="' . __('Go','bliss') . '" />'; + $search .= '</div>'; + $search .= '</form>'; + echo apply_filters('op_main_search',$search); + echo "\n\t\t</div>\n"; +} + +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/functions.php b/wp-content/themes/bliss/library/functions/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..14d8feee54df85db242cfaf77b99d9b6bbf6594d --- /dev/null +++ b/wp-content/themes/bliss/library/functions/functions.php @@ -0,0 +1,219 @@ +<?php +/******************************************************** +* op_error() - A simple error output +* @since 1.3 +********************************************************/ +function op_error() { + _e('Oooops! It looks like you\'ve messed something up. Try undoing your last edit to see if you can fix it. If it\'s still broken, check out the support forums.','bliss'); +} + +/*********************************************************** +* op_all_cats() - Returns an array of available categories +* @since 1.2 +***********************************************************/ +function op_all_cats() { + $all_cats = get_all_category_ids(); + foreach($all_cats as $key => $value) : + $all_cats[$key] = get_cat_name($all_cats[$key]); + $all_cats[$key] = str_replace("&", "&", $all_cats[$key]); + $all_cats[$key] = str_replace("&","&", $all_cats[$key]); + endforeach; + $all_cats['none'] = false; + return $all_cats; +} + +/*********************************************************** +* op_all_cat_slugs() - Returns an array of available category slugs +* @since 1.2 +***********************************************************/ +function op_all_cat_slugs() { + $cats = get_categories("hierarchical=0"); + foreach($cats as $key) : + $all_cats[] = $key->category_nicename; + endforeach; + $all_cats['none'] = false; + return $all_cats; +} + +/*********************************************************** +* op_all_tags() - Returns an array of the available tags (slugs) +* @since 1.1 - 1.2 +***********************************************************/ +function op_all_tags() { + $all_tags = wp_tag_cloud('number=0&format=array'); + if($all_tags) : + foreach($all_tags as $key => $value) : + $value = strip_tags(stripslashes($value)); + $value = strtolower($value); + $value = str_replace(array(" ", " "), "-", $value); + $all_tags[$key] = $value; + endforeach; + endif; + $all_tags['none'] = false; + return $all_tags; +} + +/*********************************************************** +* op_all_tag_names() - Returns an array of the available tags (names) +* @since 1.1 - 1.2 +***********************************************************/ +function op_all_tag_names() { + $all_tags = wp_tag_cloud('number=0&format=array'); + if($all_tags) : + foreach($all_tags as $key => $value) : + $value = strip_tags(stripslashes($value)); + $all_tags[$key] = $value; + endforeach; + endif; + $all_tags['none'] = false; + return $all_tags; +} + +/*********************************************************** +* op_all_authors() - Returns an array of the available authors +* @since 1.1 - 1.2 +***********************************************************/ +function op_all_authors() { + global $wpdb; + $query = "SELECT ID, user_nicename from $wpdb->users ORDER BY user_nicename"; + $user_ids = $wpdb->get_results($query); + foreach($user_ids as $user_id => $value) : + $user = get_userdata($user_id); + if($user->user_level > 0) $all_authors[$user->user_login] = $user->user_login; + endforeach; + $all_authors['none'] = false; + return $all_authors; +} + +/*********************************************************** +* op_all_authors_ids() - Returns an array of the available author IDs +* @since 1.1 - 1.2 +***********************************************************/ +function op_all_authors_ids() { + global $wpdb; + $user_ids = $wpdb->get_results("SELECT COUNT(b.ID) AS postsperuser, a.ID as post_id, display_name, user_nicename, b.ID as ID FROM wp_posts AS a LEFT join wp_users AS b ON a.post_author = b.ID GROUP BY b.ID ORDER BY display_name"); + //$query = "SELECT ID, user_nicename from $wpdb->users ORDER BY user_nicename"; + //$user_ids = $wpdb->get_results($query); + foreach($user_ids as $user_id => $value) : + $user = get_userdata($user_id); + $all_ids[$user->ID] = $user->ID; + $all_names[$user->display_name] = $user->display_name; + $all_nice[$user->user_nicename] = $user->user_nicename; + endforeach; + return array($all_ids, $all_names, $all_nice); +} + +/*********************************************************** +* op_author_id() - Returns author ID by nicename +* @since 1.1 - 1.2 +***********************************************************/ +function op_author_id($author_name) { + //$author_name = str_replace("-", " ", $author_name); + $curauth = get_userdatabylogin($author_name); + $author_id = $curauth->ID; + return $author_id; +} + +/*********************************************************** +* op_author_nicename() - Returns author nicename +* @since 1.1 - 1.2 +***********************************************************/ +function op_author_nicename($author_name) { + $curauth = get_userdatabylogin($author_name); + $nicer = $curauth->user_nicename; + return $nicer; +} + +/*********************************************************** +* op_author_display_name() - Returns author display name by nicename +* @since 1.1 - 1.2 +***********************************************************/ +function op_author_display_name($author_name) { + //$author_name = str_replace("-", " ", $author_name); + $curauth = get_userdatabylogin($author_name); + $display = $curauth->display_name; + return $display; +} + +/*********************************************************** +* op_author_cloud() - Returns a cloud of authors +* @since 1.2 +* @fix 1.3 removed 53 db queries +***********************************************************/ +function op_author_cloud() { + global $wpdb; + $author_cloud = $wpdb->get_results("SELECT COUNT(b.ID) AS postsperuser, a.ID as post_id, display_name, user_nicename, b.ID as ID FROM wp_posts AS a LEFT join wp_users AS b ON a.post_author = b.ID GROUP BY b.ID ORDER BY display_name"); + foreach($author_cloud as $user) : + $user_ids[] = $user->ID; + $user_nicenames[] = $user->user_nicename; + $user_name = $user->display_name; + $count = get_usernumposts($user->ID); + if($count >= 0) $counts[$user_name] = $count; + endforeach; + + $dist = max($counts) - min($counts); + if($dist <= 0) $dist = 1; + $font = $dist / 10; + $i = 0; + + foreach($counts as $authname => $count) : + $link = get_author_posts_url($user_ids[$i]); + echo "\n<a href=\"$link\" title=\"$count "; _e('posts by','bliss'); echo " $authname\" style=\"font-size:".(10 + ceil($count/$font))."px\">$authname</a> "; + $i++; + endforeach; +} + +/*********************************************************** +* op_category_cloud() - Returns a cloud of categories +* @since 1.2 +***********************************************************/ +function op_category_cloud() { + $cat_cloud = get_categories("hierarchical=0"); + foreach($cat_cloud as $cat) : + $cat_link = get_category_link($cat->cat_ID); + $cat_name = $cat->cat_name; + $count = $cat->category_count; + if($count >= 0) { + $counts[$cat_name] = $count; + $cat_links[$cat_name] = $cat_link; + } + endforeach; + + $dist = max($counts) - min($counts); + if($dist <= 0) $dist = 1; + $font = $dist / 10; + + foreach($counts as $cat_name => $count) : + $link = $cat_links[$cat_name]; + echo "\n<a href=\"$link\" title=\"$count "; _e('posts filed under','bliss'); echo " $cat_name\" style=\"font-size:".(10 + ceil($count/$font))."px\">$cat_name</a> "; + endforeach; +} + +/*********************************************************** +* op_bookmark_cloud() - Returns a cloud of bookmarks by rating +* @since 1.3 +***********************************************************/ +function op_bookmark_cloud() { + $bookmarks = get_bookmarks(); + foreach($bookmarks as $book) : + $book_name = $book->link_name; + if($count >= 0) { + $counts[$book_name] = $book->link_rating; + $book_links[$book_name] = $book->link_url; + $book_rels[$book_name] = $book->link_rel; + } + endforeach; + + $dist = max($counts) - min($counts); + if($dist <= 0) $dist = 1; + $font = $dist / 10; + + foreach($counts as $book_name => $count) : + $link = $book_links[$book_name]; + $rel = $book_rels[$book_name]; + echo "\n<a href=\"$link\" title=\"$book_name\" style=\"font-size:".(10 + ceil($count/$font))."px\" "; + if($rel == true) echo "rel=\"$rel\""; else echo "rel=\"bookmark\""; + echo ">$book_name</a> "; + endforeach; +} +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/get-the-image.php b/wp-content/themes/bliss/library/functions/get-the-image.php new file mode 100644 index 0000000000000000000000000000000000000000..114d7bcd14a1397077b8572f452dcb1e764d1ccc --- /dev/null +++ b/wp-content/themes/bliss/library/functions/get-the-image.php @@ -0,0 +1,168 @@ +<?php +/*********************************************************** +* This is a highly intuitive script file that gets images. +* @since 1.2 +* -2 queries in 1.3 +***********************************************************/ + +/*********************************************************** +* Catchall function for getting images +* @since 1.2 +* @return string image +***********************************************************/ +function get_the_image($arr = false, $default_size = 'medium', $default_img = false) { + global $post; + $cf_array = load_the_image($arr, $post, $default_size); + $image = display_the_image($cf_array, $post, $default_size, $default_img); + if($image == false) $image = '<!-- No images were added to this post. -->'; + return $image; +} + +/*********************************************************** +* Catchall function for getting images with a link +* @since 1.2 +* @return string image linked to the post +***********************************************************/ +function get_the_image_link($arr = false, $default_size = 'medium', $default_img = false) { + global $post; + $cf_array = load_the_image($arr, $post, $default_size); + $image = display_the_image($cf_array, $post, $default_size, $default_img); + + if($image == false) : + $image_link = '<!-- No images were added to this post. -->'; + else : + $post_perm = get_permalink($post->ID); + $image_link = "<a href=\"$post_perm\" title=\"$post->post_title\">$image</a>"; + endif; + return $image_link; +} + +/*********************************************************** +* Function for loading an image +* @since 1.2 +* @return array image, image alt, image class +***********************************************************/ +function load_the_image($custom_fields = false, $en_post, $default_size) { + +// Checks only if there are custom fields to check for + if(isset($custom_fields)) { + + // Loop through the custom fields, checking for images or video + $i = 0; + while(strcmp($image[0],'') == 0 && $i <= sizeof($custom_fields)) { + + // Check custom field values for image, image alt text, and image class + $image = get_post_custom_values($key = $custom_fields[$i]); + $image_alt = get_post_custom_values($key = $custom_fields[$i] . ' Alt'); + $image_class = get_post_custom_values($key = $custom_fields[$i] . ' Class'); + // Convert custom field key name to image class + $img_class = $custom_fields[$i]; + $img_class = strtolower($img_class); + $img_class = str_replace (" ", "-", $img_class); + + // Add space to image class if user inputs an extra class + if($image_class == true) $image_class .= ' '; + + // Add user image class to default image classes + if($default_size == 'thumbnail' && $img_class == 'thumbnail') $image_class .= $default_size; + elseif($default_size == 'medium' && $img_class == 'medium') $image_class .= $default_size; + elseif($default_size == 'full' && $img_class == 'full') $image_class .= $default_size; + else $image_class .= $img_class . ' ' . $default_size; + + $i++; + } // End while loop + } // End check for custom field image + +// If there is no image set through custom fields, check post attachments + if($image == false && $default_size == true) { + $img_att_arr = find_attachment_image($custom_fields[0], $en_post, $default_size); + //if(strcmp($image_att_arr[0],'') == 0) : + if($img_att_arr[0] !== 0) : + $image = $img_att_arr[0]; + $image_class = $img_att_arr[1]; + $image_alt = false; + else : + $image = false; $image_alt = false; $image_class = false; + endif; + } + +// Return array with an image, image alt, and image class + return array($image, $image_alt, $image_class); +} + +/*********************************************************** +* Function for displaying an image +* @since 1.2 +* @return string XHTML formatted image +***********************************************************/ +function display_the_image($cf_array = false, $en_post = false, $default_size = false, $default_img = false) { + +// Set nice names for image info + if($cf_array[0] == false && $default_img == true) : + $image[0] = $default_img; + $image_class = $default_size; + else : + $image = $cf_array[0]; + $image_alt = $cf_array[1]; + $image_class = $cf_array[2]; + endif; + +// If there's any kind of image for this post + if(isset($image[0]) && strcmp($image[0],'') != 0) : + // Open img tag + $output = '<img src="'.$image[0].'"'; + $output .= ' alt="'; + // Image alt text + if(isset($image_alt[0]) && strcmp($image_alt[0],'') != 0) $output .= $image_alt[0]; + else $output .= $en_post->post_title; + // Image class + $output .= '" class="'; + if(isset($image_class[0])) $output .= $image_class; + else $output .= 'left'; + // Close img tag + $output .= '" />'; +// If there's no image + else : + $output = false; + endif; +// Return the image + return $output; +} + +/*********************************************************** +* Function for finding an attachment image. +* Only called if no custom field images are set. +* @since 1.2 +* @return array image URL, image class +***********************************************************/ +function find_attachment_image($custom_fields = false, $en_post = false, $default_size = 'medium') { + + $custom = $custom_fields; + $custom = strtolower($custom); + $custom = str_replace (" ", "-", $custom); +// Don't repeat the same class name + if($custom == 'thumbnail' || $custom == 'medium' || $custom == 'full') $img_class = $default_size; + else $img_class = $custom . ' ' . $default_size; + + $attachments = get_children( array('post_parent' => $en_post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); + + // WP 2.5 compatibility + //$attachments = get_children("post_parent=$en_post->ID&post_type=attachment&post_mime_type=image&orderby=\"menu_order ASC, ID ASC\"&numberposts=1"); + + if($attachments == true) : + foreach($attachments as $id => $attachment) : + $img = wp_get_attachment_image_src($id, $default_size); + $img_arr[0] = $img; + break; + /* + * Break because we only want first image + * Using 'numberposts' => 1 in get_children() causes additional db queries + */ + endforeach; + $img_arr[1] = $img_class; + else : + $img_arr = false; + endif; + return $img_arr; +} +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/get-the-video.php b/wp-content/themes/bliss/library/functions/get-the-video.php new file mode 100644 index 0000000000000000000000000000000000000000..4cbf9e95b3b51f58c0fec7a0bce28663f47dbcdc --- /dev/null +++ b/wp-content/themes/bliss/library/functions/get-the-video.php @@ -0,0 +1,73 @@ +<?php +/*********************************************************** +* This is a highly intuitive script file that gets videos. +* @since 1.2 +***********************************************************/ + +/*********************************************************** +* get_the_video() - Catchall function for getting videos +* @since 1.2 +***********************************************************/ +function get_the_video($arr = false, $default = false) { + global $post; + $cf_array = load_the_video($arr, $post, $default); + $video = display_the_video($cf_array); + return $video; +} + +/*********************************************************** +* load_the_video() - Function for loading a video +* @since 1.2 +***********************************************************/ +function load_the_video($custom_fields = false, $post = false, $default = false) { + +// If custom fields and default video are set to false +if($custom_fields == false && $default == false) : + $video = false; + +// If custom fields are set +elseif($custom_fields == true) : +// Checks only if there are custom fields to check for + if(isset($custom_fields)) : + // Loop through the custom fields, checking for a video + $i = 0; + while(strcmp($video[0],'') == 0 && $i <= sizeof($custom_fields)) : + $video = get_post_custom_values($key = $custom_fields[$i]); + $i++; + endwhile; + endif; + +// If a default is set or no custom field videos are found +elseif($default == true) : + $video[] = $default; +endif; + +// Return array with video (make array in case we need to add values later) + return array($video); +} + +/*********************************************************** +* display_the_video() - Function for displaying a video +* @since 1.2 +***********************************************************/ +function display_the_video($cf_array) { + +// Set video nicename + $video = $cf_array[0]; + +// If there's an imported video associated with this post + if(isset($video[0]) && strcmp($video[0],'') != 0) : + $output = " + <object class='left' type='application/x-shockwave-flash' data='$video[0]' width='298' height='250'> + <param name='movie' value='$video[0]' /> + <param name='wmode' value='transparent' /> + </object>"; +// If there's no video + else : + $output = false; + endif; + +// Return the video + return $output; +} +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/hooks.php b/wp-content/themes/bliss/library/functions/hooks.php new file mode 100644 index 0000000000000000000000000000000000000000..45295d4340e3866983cb9b291c2cbfdc8252caf1 --- /dev/null +++ b/wp-content/themes/bliss/library/functions/hooks.php @@ -0,0 +1,97 @@ +<?php +/*********************************************************** +* Theme hooks +* @since 0.1 +* Create hooks and add actions to hooks +***********************************************************/ + +// Add actions to hooks + add_action('op_head', 'op_enqueue_script'); + add_action('wp_head','op_theme_meta'); + add_action('wp_head', 'op_enqueue_style'); + add_action('wp_head','op_header_insert'); + + add_action('op_before_header','op_header_feed'); + + add_action('op_footer','op_footer_insert'); + add_action('wp_footer','op_auto_footer'); + add_action('wp_footer','op_key'); + + add_action('op_author_bio','op_author_info'); + +/*********************************************************** +* op_head() - Adds stuff before wp_head() +* Useful for wp_enqueue_script() +* @since 0.1 +***********************************************************/ +function op_head() { + do_action('op_head'); +} + +/*********************************************************** +* op_before_header() - Add things before site header (title) +* @since 0.1 +***********************************************************/ +function op_before_header() { + do_action('op_before_header'); +} + +/*********************************************************** +* op_header() - Add things inside the header +* @since 0.1 +***********************************************************/ +function op_header() { + do_action('op_header'); +} + +/*********************************************************** +* op_after_header() - Add things after site header (title) +* @since 0.1 +***********************************************************/ +function op_after_header() { + do_action('op_after_header'); +} + +/*********************************************************** +* op_footer() - Add things to the footer +* Called before wp_footer() +* @since 0.1 +***********************************************************/ +function op_footer() { + do_action('op_footer'); +} + +/*********************************************************** +* op_after_single() - Add things after single posts +* Called before comments_template() +* @since 0.1 +***********************************************************/ +function op_after_single() { + do_action('op_after_single'); +} + +/*********************************************************** +* op_before_widget_insert() - Append before widget insert +* @since 0.1 +***********************************************************/ +function op_before_widget_insert() { + do_action('op_before_widget_insert'); +} + +/*********************************************************** +* op_after_widget_insert() - Append after widget insert +* @since 0.1 +***********************************************************/ +function op_after_widget_insert() { + do_action('op_after_widget_insert'); +} + +/*********************************************************** +* op_author_bio() - Add things to author archive header +* @since 0.1 +***********************************************************/ +function op_author_bio() { + do_action('op_author_bio'); +} + +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/media.php b/wp-content/themes/bliss/library/functions/media.php new file mode 100644 index 0000000000000000000000000000000000000000..059ebe7331fc109830391146b9571afd39409876 --- /dev/null +++ b/wp-content/themes/bliss/library/functions/media.php @@ -0,0 +1,37 @@ +<?php +/*********************************************************** +* Media functions +* Loads files and scripts for the theme +* @since 0.1 +* See (get-the-image.php, get-the-video.php) for other media +***********************************************************/ + +/*********************************************************** +* op_enqueue_style() - Displays stylesheets +* @since 0.1 +* @hook wp_head() +***********************************************************/ +function op_enqueue_style() { + global $settings; + +// Check whether to display Smooth Gallery CSS + if($settings['print_style']) : + wp_enqueue_style('print_css', OP_CSS . '/print.css', false, '0.1', 'print'); + endif; + +// Print styles + wp_print_styles(array('print_css')); +} + +/*********************************************************** +* op_enqueue_script() - Loads JavaScript +* Only load JS when it's needed +* Functions called should use wp_enqueue_script() +* @since 0.1 +* @hook op_head() +***********************************************************/ +function op_enqueue_script() { + // Not JavaScript needed right now + // Holder function for later +} +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/template-functions.php b/wp-content/themes/bliss/library/functions/template-functions.php new file mode 100644 index 0000000000000000000000000000000000000000..fa96ce090b7b9b833f585cb8d5c9da1ba2e387ea --- /dev/null +++ b/wp-content/themes/bliss/library/functions/template-functions.php @@ -0,0 +1,353 @@ +<?php +/** +* +* op_widget_insert() - Loads widget insert +* @since 0.1 +* +*/ +function op_widget_insert() { + include(OP_INCLUDES . '/widget-insert.php'); +} + +/** +* +* op_header_tag() - Returns tag for site title +* @since 0.1 +* +*/ +function op_header_tag() { + if(is_front_page() || is_home()) : + $tag = 'h1'; + else : + $tag = 'div'; + endif; + return $tag; +} + +/** +* +* op_desc_tag() - Returns tag for site description +* @since 0.1 +* +*/ +function op_desc_tag() { + if(is_front_page() || is_home()) : + $tag = 'h2'; + else : + $tag = 'div'; + endif; + return $tag; +} +/** +* +* op_theme_meta() - Add theme info to header +* Helpful for checking versions with theme support +* @since 0.1 +* @hook wp_head() +* +*/ +function op_theme_meta() { + global $post; + $data = get_theme_data(TEMPLATEPATH . '/style.css'); + if(is_single() || is_page()) : $meta_desc = get_post_meta($post->ID, 'Description', $single = true); + elseif(is_category()) : $meta_desc = stripslashes(strip_tags(category_description())); + endif; + if($meta_desc && strlen($meta_desc) > 1) + echo "<meta name='Description' content='$meta_desc' />\n"; + + echo "<meta name='wordpress_theme' content='" . $data['Title'] . " " . $data['Version'] . "' />\n"; + echo "<link rel='alternate' type='application/rss+xml' title='" . __('RSS 2.0','bliss') . "' href='" . get_bloginfo('rss2_url') . "' />\n"; + echo "<link rel='alternate' type='text/xml' title='" . __('RSS .92','bliss') . "' href='" . get_bloginfo('rss_url') . "' />\n"; + echo "<link rel='alternate' type='application/atom+xml' title='" . __('Atom 0.3','bliss') . "' href='" . get_bloginfo('atom_url') . "' />\n"; + echo "<link rel='pingback' href='" . get_bloginfo('pingback_url') . "' />\n"; +} + +/** +* +* op_jt_love() - Inserts link back to justintadlock.com +* @since 0.1 +* +*/ +function op_jt_love() { + $love = ' ' . __('by','bliss') . ' <a href="http://justintadlock.com" title="Justin Tadlock"> Justin Tadlock</a>'; + return $love; +} + +/******************************************************** +* op_auto_footer() - Insert link to site w/copyright +* @since 0.1 +* @hook op_footer() +********************************************************/ +function op_auto_footer() { + global $settings; + if($settings['site_footer'] || $settings['wp_credit']) echo '<p>'; + if($settings['site_footer']) : + _e('Copyright','bliss'); echo ' © '; print(date(__('Y','bliss'))); echo ' <a href="' . get_bloginfo('url') . '" title="' . get_bloginfo('name') . '">' . get_bloginfo('name') . '</a>. '; + endif; + if($settings['wp_credit']) : + echo __('Powered by','bliss') . ' <a class="wp-icon" href="http://wordpress.org" title="' . __('Powered by WordPress, state-of-the-art semantic personal publishing platform','bliss') . '"><span>' . __('WordPress','bliss') . '</span></a>.'; + endif; + if($settings['site_footer'] || $settings['wp_credit']) echo '</p>'; +} + +/*********************************************************** +* op_document_title() - Display better page title +* Replaces op_title_bar() +* @since 0.1 +***********************************************************/ +function op_document_title() { + global $post; + if(is_single() || is_page()) : + $title = get_post_meta($post->ID, 'Title', $single = true); + if($title) : + echo $title; + else : + $subtitle = get_post_meta($post->ID, 'Subtitle', $single = true); + echo wp_title(''); if($subtitle) echo ': '. $subtitle; + endif; + + elseif(is_front_page()) : + echo bloginfo('name'); echo ": "; echo bloginfo('description'); + elseif(is_404()) : + _e('404 Not Found','bliss'); + elseif(is_category()) : + single_cat_title(__('Category: ','bliss')); + elseif(is_tag()) : + single_tag_title(__('Tag: ','bliss')); + elseif(is_search()) : + _e('Search Results:','bliss'); echo ' '; the_search_query(); + elseif(is_archive()) : + _e('Archives:','bliss'); wp_title(''); + elseif(is_attachment()) : + _e('Attachment:','bliss'); wp_title(''); + else : + echo wp_title(''); + endif; +} + +/*********************************************************** +* op_page_id() - Returns page ID +* @since 0.1 +***********************************************************/ +function op_page_id() { + + if(is_page_template('no-sidebar.php')) : + $page_id = 'no-sidebar'; + elseif(is_page_template('3-column.php')) : + $page_id = 'three-column'; + elseif(is_home()) : + $page_id = 'home'; + else : + $page_id = 'content'; + endif; + + return $page_id; +} + +/*********************************************************** +* op_page_class() - Returns page class +* @since 0.1 +***********************************************************/ +function op_page_class() { + global $settings; + + if(is_home()) : $page_class = 'home'; + elseif(is_attachment()) : $page_class = 'attachment'; + elseif(is_single()) : $page_class = 'single'; + elseif(is_page()) : $page_class = 'page'; + elseif (is_404()) : $page_class = 'error-404'; + elseif (is_category()) : $page_class = 'category'; + elseif(is_tag()) : $page_class = 'tag'; + elseif(is_author()) : $page_class = 'author'; + elseif(is_search()) : $page_class = 'search'; + elseif(is_archive()) : $page_class = 'archive'; + endif; + + if(is_paged()) $page_class .= ' paged'; + + $sidebar_display = $settings['sidebar']; + + if($sidebar_display == false) $page_class = $page_class; + elseif($sidebar_display == __('Left','bliss')) $page_class .= ' right'; + else $page_class .= ' left'; + + return $page_class; +} + +/*********************************************************** +* op_navigation_pages() - Navigation by pages +* @since 0.1 +* @hook op_before_header() +***********************************************************/ +function op_navigation_pages() { + op_page_nav(); +} + +/*********************************************************** +* op_navigation_pages() - Navigation by category +* @since 0.1 +* @hook op_before_header() +***********************************************************/ +function op_navigation_categories() { + op_cat_nav(); +} + +/*********************************************************** +* op_widget_blocks() - Gets the widget blocks +* @since 0.1 +***********************************************************/ +function op_widget_blocks() { + include(OP_INCLUDES . '/widget-blocks.php'); +} + +/*********************************************************** +* op_header_insert() - Adds insert to header +* Goes between <head></head> tags +* @since 0.1 +* @hook wp_head() +***********************************************************/ +function op_header_insert() { + global $settings; + if($settings['header_insert']) echo stripslashes($settings['header_insert']) . "\n"; +} + +/*********************************************************** +* op_footer_insert() - Adds insert to footer +* @since 0.1 +* @hook op_footer() +***********************************************************/ +function op_footer_insert() { + global $settings; + if($settings['footer_insert']) echo stripslashes($settings['footer_insert']); +} + +/*********************************************************** +* breadcrumb() - Shows a breadcrumb for single and page +* @since 0.1 +***********************************************************/ +function breadcrumb($crumbs = true, $title = 'Browse', $separator = '/') { + global $post; +?> + <div class="breadcrumb section"> + <?php + if($title !== 'Browse') echo $title; + else _e('Browse','bliss'); + ?>: + <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php _e('Home','bliss'); ?></a> <?php echo $separator; ?> + <?php + if(is_single()) : + the_category(', '); echo ' ' . $separator . ' '; + elseif(is_page()) : + $parent_id = $post->post_parent; + $parents = array(); + while($parent_id) : + $page = get_page($parent_id); + if($params["link_none"]) $parents[] = get_the_title($page->ID); + else $parents[] = '<a href="'.get_permalink($page->ID).'" title="'.get_the_title($page->ID).'">'.get_the_title($page->ID).'</a> ' . $separator . ' '; + $parent_id = $page->post_parent; + endwhile; + $parents = array_reverse($parents); + foreach($parents as $val) : + echo $val; + endforeach; + endif; + the_title(); ?> + </div> +<?php +} + +/*********************************************************** +* op_author_info() - Shows author box on author archives +* @since 0.1 +***********************************************************/ +function op_author_info() { + global $settings; + if($settings['author_bio']) : + $curauth = get_userdata(get_query_var('author')); + echo get_avatar($curauth->user_email, '96'); + echo $curauth->description; + else: + echo '<p>'; _e('You are browsing the archives of','bliss'); wp_title(''); echo '.</p>'; + endif; +} + +/*********************************************************** +* op_related_posts() - Shows related posts by plugin +* @since 0.1 +* +* @plugin - http://wasabi.pbwiki.com/Related%20Entries +* @plugin - http://rmarsh.com/plugins/similar-posts +* @plugin - http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin +***********************************************************/ +function op_related_posts() { + if(function_exists('related_posts') || function_exists('similar_posts') || function_exists('wp_related_posts')) : + echo '<div id="related" class="section">'; + echo '<h3 class="section-header">'; _e('Related Posts','bliss'); echo '</h3>'; + echo '<ul class="related">'; + endif; + if(function_exists('related_posts')) : + related_posts(); echo "</ul></div>\n"; + elseif(function_exists('similar_posts')) : + similar_posts(); echo "</ul></div>\n"; + elseif(function_exists('wp_related_posts')) : + wp_related_posts(); echo "</ul></div>\n"; + endif; +} + +/*********************************************************** +* limit_content() - Returns excerpt by variable count # +* @since 0.1 +***********************************************************/ +function limit_content($max_char, $more_link_text = 'Read More »', $stripteaser = 0, $more_file = '') { + if(is_numeric($max_char) && $max_char > 1) : + $max_char = (int)$max_char; + $title = get_the_title(); + $title = apply_filters('the_title', $title); + $title = strip_tags($title); + $title = strlen($title); + $max_char = $max_char - $title; + $content = get_the_excerpt($more_link_text, $stripteaser, $more_file); + $content = apply_filters('the_excerpt', $content); + $content = str_replace(']]>', ']]>', $content); + $content = strip_tags($content); + $char = $content; + if((strlen($char) > $max_char) && ($espacio = strpos($char, " ", $max_char))) : + $content = substr($content, 0, $espacio); $content = $content; + echo "<p class='read-more'>"; + echo $content; echo "..."; + if($more_link_text) : + echo " <a href='"; the_permalink(); echo "' title='"; the_title(); echo "'>".$more_link_text."</a>"; + endif; + echo "</p>"; + elseif(strlen($_GET['p']) > 0) : + echo "<p class='read-more'>"; + echo $content; + if($more_link_text) : + echo " <a href='"; the_permalink(); echo "'title='"; the_title(); echo "'>".__('Read More »','bliss')."</a>"; + endif; + echo "</p>"; + else : + echo "<p class='read-more'>"; + echo $content; + if($more_link_text) : + echo " <a href='"; the_permalink(); echo "' title='"; the_title(); echo "'>".__('Read More »','bliss')."</a>"; + endif; + echo "</p>"; + endif; + endif; +} + +/******************************************************** +* op_key() - Theme key/ID +* For better support requests +* @since 0.1 +********************************************************/ +function op_key() { + global $settings; + $key = 'themehybridbliss'; + if($settings['key'] == md5($key)) : echo '<!-- Hybrid - ' . $settings['key_id'] . ' -->'; + else : echo $settings['hybrid'] . '<!-- ' . Hybrid . ' -->'; + endif; +} + +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/functions/widgets.php b/wp-content/themes/bliss/library/functions/widgets.php new file mode 100644 index 0000000000000000000000000000000000000000..9c23d3f1df035380e162147a46eb322b4ba0e777 --- /dev/null +++ b/wp-content/themes/bliss/library/functions/widgets.php @@ -0,0 +1,34 @@ +<?php +/************************************************ +* Register the widget areas and widgets. +* Can add new widget areas in child theme's functions.php. +************************************************/ + +/************************************************ +* Create sidebar names +************************************************/ + $widget_insert = array( + __('Home Insert','bliss'), + __('Single Insert','bliss'), + __('Archive Insert','bliss'), + __('Attachment Insert','bliss'), + __('Page Insert','bliss'), + __('Category Insert','bliss'), + __('Tag Insert','bliss'), + __('Search Insert','bliss'), + __('Author Insert','bliss'), + __('404 Insert','bliss'), + ); + +/************************************************ +* Widgets display for each widget insert +************************************************/ + foreach($widget_insert as $insert) : + register_sidebar(array( + 'name' => $insert, + 'before_widget' => '<div class="menu">', + 'after_widget' => '</div>', + 'before_title' => '<h2 class="section-header">', + 'after_title' => '</h2>', )); + endforeach; +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/settings/about.php b/wp-content/themes/bliss/library/settings/about.php new file mode 100644 index 0000000000000000000000000000000000000000..b18515d85608358bdc7c23e8fee42e968c2ee72d --- /dev/null +++ b/wp-content/themes/bliss/library/settings/about.php @@ -0,0 +1,30 @@ +<div class="postbox close"> +<h3><?php _e('About This Theme','bliss'); ?></h3> + +<div class="inside"> + <table class="form-table"> + + <tr> + <th><?php _e('Theme Description:','bliss'); ?></th> + <td><?php echo $theme_data['Description']; ?></td> + </tr> + <tr> + <th><?php _e('Theme Version:','bliss'); ?></th> + <td><?php echo $theme_data['Title']; ?> <?php echo $theme_data['Version']; ?></td> + </tr> + <tr> + <th><?php _e('Theme Documentation:','bliss'); ?></th> + <td><a href="<?php echo $theme_data['URI']; ?>" title="<?php _e('Theme Documentation','bliss'); ?>"><?php _e('Theme Documentation','bliss'); ?></a></td> + </tr> + <tr> + <th><?php _e('Theme Support:','bliss'); ?></th> + <td><a href="http://themehybrid.com/support" title="<?php _e('Visit the support forums.','bliss'); ?>"><?php _e('Visit the support forums.','bliss'); ?></a></td> + </tr> + <tr> + <th><?php _e('Donate:','bliss'); ?></th> + <td><a href="http://themehybrid.com/contribute" title="<?php _e('Contribute to this project','bliss'); ?>"><?php _e('Donations','bliss'); ?></a> <?php _e('help keep theme downloads and support free.','bliss'); ?></td> + </tr> + + </table> +</div> +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/settings/footer.php b/wp-content/themes/bliss/library/settings/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..45f7f45657a94a51c152fa458ae26eca3309fa51 --- /dev/null +++ b/wp-content/themes/bliss/library/settings/footer.php @@ -0,0 +1,74 @@ +<div class="postbox close"> + +<h3><?php _e('Header & Footer Settings','bliss'); ?></h3> +<div class="inside"> + + <table class="form-table"> + <tr> + <th> + <label for="<?php echo $data['header_insert']; ?>"><?php _e('Header Insert:','bliss'); ?></label> + </th> + <td> + <textarea id="<?php echo $data['header_insert']; ?>" name="<?php echo $data['header_insert']; ?>" cols="60" rows="5" style="width: 95%;"><?php echo str_replace('<','<',stripslashes($val['header_insert'])); ?></textarea> + <br /> + <?php _e('You can place XHTML and JavaScript here to have it inserted automatically into your theme. Take note that this is placed within the <head></head> tags. This is useful for adding JavaScript and alternate stylesheets.','bliss'); ?> + </td> + </tr> + <tr> + <th> + <label for="<?php echo $data['footer_insert']; ?>"><?php _e('Footer Insert:','bliss'); ?></label> + </th> + <td> + <textarea id="<?php echo $data['footer_insert']; ?>" name="<?php echo $data['footer_insert']; ?>" cols="60" rows="5" style="width: 95%;"><?php echo str_replace('<','<',stripslashes($val['footer_insert'])); ?></textarea> + <br /> + <?php _e('You can place XHTML and JavaScript here to have it inserted automatically into your theme. If you have a script, such as one from Google Analytics, this could be useful.','bliss'); ?> + </td> + </tr> + <tr> + <th> + <label for="<?php echo $data['site_footer']; ?>"><?php _e('Site Footer:','bliss'); ?></label> + </th> + <td> + <input id="<?php echo $data['site_footer']; ?>" name="<?php echo $data['site_footer']; ?>" type="checkbox" <?php if($val['site_footer']) echo 'checked="checked"'; ?> value="true" /> + <?php _e('Check this if you want the theme to auto-generate your site\'s copyright and title in the footer.','bliss'); ?> + </td> + </tr> + <tr> + <th> + <label for="<?php echo $data['wp_credit']; ?>"><?php _e('WordPress Love:','bliss'); ?></label> + </th> + <td> + <input id="<?php echo $data['wp_credit']; ?>" name="<?php echo $data['wp_credit']; ?>" type="checkbox" <?php if($val['wp_credit']) echo 'checked="checked"'; ?> value="true" /> + <?php _e('Want to show your love of WordPress? Check this and a link will be added to your footer back to WordPress.org.','bliss'); ?> + </td> + </tr> + <tr> + <th> + <label for="<?php echo $data['jt_love']; ?>"><?php _e('Justin Tadlock Love:','bliss'); ?></label> + </th> + <td> + <input id="<?php echo $data['jt_love']; ?>" name="<?php echo $data['jt_love']; ?>" type="checkbox" <?php if($val['jt_love']) echo 'checked="checked"'; ?> value="true" /> + <?php _e('Want to show your love of Justin Tadlock? Just check this and a link will be appended to your footer. This is totally optional. Really.','bliss'); ?> + </td> + </tr> + <tr> + <th> + <label for="<?php echo $data['key']; ?>"><?php _e('Credit Removal:','bliss'); ?></label> + </th> + <td> + <input id="<?php echo $data['key']; ?>" name="<?php echo $data['key']; ?>" value="<?php echo $val['key']; ?>" size="30" /> — + <input id="<?php echo $data['key_id']; ?>" name="<?php echo $data['key_id']; ?>" value="<?php echo $val['key_id']; ?>" size="2" maxlength="2" /> + <br /> + <?php _e('If you\'ve purchased credit removal, you can insert the credit removal key here to have the theme automatically remove the credit links in the footer. Inputting this key helps me keep track of users that have legally purchased credit removal.','bliss'); ?> + </td> + </tr> + + </table> + + <p class="submit"> + <input type="submit" name="Submit" value="<?php _e('Update Options', 'bliss' ) ?>" /> + <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y" /> + </p> + +</div> +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/settings/general.php b/wp-content/themes/bliss/library/settings/general.php new file mode 100644 index 0000000000000000000000000000000000000000..498f857b3b877b620cbbe4b61fc88301dcfba295 --- /dev/null +++ b/wp-content/themes/bliss/library/settings/general.php @@ -0,0 +1,106 @@ +<div class="postbox close"> + +<h3><?php _e('General Settings','bliss'); ?></h3> +<div class="inside"> + + <table class="form-table"> + + <tr> + <th> + <label for="<?php echo $data['feed_url']; ?>"><?php _e('Feedburner URL:','bliss'); ?></label> + </th> + <td> + <input id="<?php echo $data['feed_url']; ?>" name="<?php echo $data['feed_url']; ?>" value="<?php echo $val['feed_url']; ?>" size="30" /> + <br /> + <?php _e('If you have a <a href="http://feedburner.com" title="Feedburner"> Feedburner</a> account, you can enter your feed address here to have the theme set your feed URL link. If blank, the theme will default to your WordPress RSS feed.','bliss'); ?> + </td> + </tr> + + <tr> + <th> + <label for="<?php echo $data['author_bio']; ?>"><?php _e('Author Archive Bio:','bliss'); ?></label> + </th> + <td> + <input id="<?php echo $data['author_bio']; ?>" name="<?php echo $data['author_bio']; ?>" type="checkbox" <?php if($val['author_bio']) echo 'checked="checked"'; ?> value="true" /> + <?php _e('Show author biographical information on author archives with an avatar?','bliss'); ?> + </td> + </tr> + + <tr> + <th> + <label for="<?php echo $data['print_style']; ?>"><?php _e('Print Stylesheet:','bliss'); ?></label> + </th> + <td> + <input id="<?php echo $data['print_style']; ?>" name="<?php echo $data['print_style']; ?>" type="checkbox" <?php if($val['print_style']) echo 'checked="checked"'; ?> value="true" /> + <?php _e('Select this to have the theme automatically include a print stylesheet.','bliss'); ?> + </td> + </tr> + + <tr> + <th> + <label for="<?php echo $data['home']; ?>"><?php _e('Home Display:','bliss'); ?></label> + </th> + <td> + <select id="<?php echo $data['home']; ?>" name="<?php echo $data['home']; ?>"> + <option <?php if($val['home'] == __('Full Posts','bliss')) echo ' selected="selected"'; ?>> + <?php _e('Full Posts','bliss'); ?> + </option> + <option <?php if($val['home'] == __('Excerpts','bliss')) echo ' selected="selected"'; ?>> + <?php _e('Excerpts','bliss'); ?> + </option> + </select> + <br /> + <?php _e('Select how you want your home page\'s posts to display.','bliss'); ?> + </td> + </tr> + + <tr> + <th> + <label for="<?php echo $data['archives']; ?>"><?php _e('Archives Display:','bliss'); ?></label> + </th> + <td> + <select id="<?php echo $data['archives']; ?>" name="<?php echo $data['archives']; ?>"> + <option <?php if($val['archives'] == __('Full Posts','bliss')) echo ' selected="selected"'; ?>> + <?php _e('Full Posts','bliss'); ?> + </option> + <option <?php if($val['archives'] == __('Excerpts','bliss')) echo ' selected="selected"'; ?>> + <?php _e('Excerpts','bliss'); ?> + </option> + </select> + <br /> + <?php _e('Select how you want your archived posts to display.','bliss'); ?> + </td> + </tr> + + <tr> + <th> + <label for="<?php echo $data['home_custom_1']; ?>"><?php _e('Home Insert 1:','bliss'); ?></label> + </th> + <td> + <textarea id="<?php echo $data['home_custom_1']; ?>" name="<?php echo $data['home_custom_1']; ?>" cols="60" rows="5" style="width: 95%;"><?php echo str_replace('<','<',stripslashes($val['home_custom_1'])); ?></textarea> + <br /> + <?php _e('You can input any XHTML you want to here. You might also have to add CSS rules for this in your stylesheet.','bliss'); ?> + <?php _e('This will be added before your home page\'s main content.','bliss'); ?> + </td> + </tr> + + <tr> + <th> + <label for="<?php echo $data['home_custom_2']; ?>"><?php _e('Home Insert 2:','bliss'); ?></label> + </th> + <td> + <textarea id="<?php echo $data['home_custom_2']; ?>" name="<?php echo $data['home_custom_2']; ?>" cols="60" rows="5" style="width: 95%;"><?php echo str_replace('<','<',stripslashes($val['home_custom_2'])); ?></textarea> + <br /> + <?php _e('You can input any XHTML you want to here. You might also have to add CSS rules for this in your stylesheet.','bliss'); ?> + <?php _e('This will be added after your home page\'s main content.','bliss'); ?> + </td> + </tr> + + </table> + + <p class="submit"> + <input type="submit" name="Submit" value="<?php _e('Update Options', 'bliss' ) ?>" /> + <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y" /> + </p> +</div> +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/settings/theme-settings-admin.php b/wp-content/themes/bliss/library/settings/theme-settings-admin.php new file mode 100644 index 0000000000000000000000000000000000000000..3d3e75996a1cffc6031dfa2003186fbdc2ea3e9b --- /dev/null +++ b/wp-content/themes/bliss/library/settings/theme-settings-admin.php @@ -0,0 +1,93 @@ +<?php + +function vi_theme_page() { + +// Some variables + $theme_name = __('Bliss','bliss'); + $settings_page_title = __('Bliss Theme Settings','bliss'); + $hidden_field_name = 'op_submit_hidden'; + $theme_data = get_theme_data(TEMPLATEPATH . '/style.css'); + +// Add all options to a single array +// This makes one entry in the database + $settings_arr = array( + 'feed_url' => false, + 'author_bio' => true, + 'print_style' => true, + + 'home' => __('Full Posts','bliss'), // Home + 'archives' => __('Full Posts','bliss'), // Archives + + 'home_custom_1' => false, // Custom home sections + 'home_custom_2' => false, + + 'header_insert' => false, // Header & footer settings + 'footer_insert' => false, + 'site_footer' => true, + 'wp_credit' => true, + 'jt_love' => true, + 'key_id' => false, + 'key' => false, + 'hybrid' => false, + ); + +// Add theme settings to database + add_option('bliss_theme_settings', $settings_arr); + +// Set form data IDs the same as settings keys +// Loop through each + $settings_keys = array_keys($settings_arr); + foreach($settings_keys as $key) : + $data[$key] = $key; + endforeach; + +// Get existing options from database + $settings = get_option('bliss_theme_settings'); + + foreach($settings_arr as $key => $value) : + $val[$key] = $settings[$key]; + endforeach; + + // See if information has been posted + if($_POST[$hidden_field_name] == 'Y') : + + // Loop through values and set them if posted + foreach($settings_arr as $key => $value) : + $settings[$key] = $val[$key] = $_POST[$data[$key]]; + endforeach; + if($settings['jt_love']) $love = op_jt_love(); + $settings['hybrid'] = $val['hybrid'] = '<p class="credit"><a class="credit" href="' . $theme_data['URI'] . '" title="' . $theme_data['Title'] . ' ' . __('Theme') . '"><span>' . $theme_data['Title'] . ' ' . __('Theme') . '</span></a>' . $love . '</p>'; + + + // Update theme settings + update_option('bliss_theme_settings', $settings); + + ?> + + <div class="wrap"> + <h2><?php echo $settings_page_title; ?></h2> + + <div class="updated" style="margin: 15px 10px 15px 25px;"> + <p><strong><?php _e('Settings saved.', 'bliss'); ?></strong></p> + </div> + + <?php + else : + ?> + + <div class="wrap"> + <h2><?php echo $settings_page_title; ?></h2> + <div class="updated" style="margin: 15px 10px 15px 25px;"> + <p><?php _e('From this page, you can set multiple options for your site. Everything is just a <em> click of the button</em> away.','bliss'); ?></p> + <p><?php _e('You don\'t have to touch code at all. Just configure your settings and let the theme work its magic.','bliss'); ?></p> + </div> + <?php + endif; + + if($theme_data['URI'] !== 'http://themehybrid.com/themes/bliss') : op_error(); + else : include(OP_SETTINGS . '/theme-settings-xhtml.php'); + endif; + +} + +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/settings/theme-settings-xhtml.php b/wp-content/themes/bliss/library/settings/theme-settings-xhtml.php new file mode 100644 index 0000000000000000000000000000000000000000..bf08b80f06bedd781ab4e0b73b94f6a254449593 --- /dev/null +++ b/wp-content/themes/bliss/library/settings/theme-settings-xhtml.php @@ -0,0 +1,50 @@ +<?php +// Array of home sections to shorten code later +// Reuse and recycle for the good of the WP environment + $home_sections_arr = array( + __('Excerpts','bliss'), + __('Full Posts','bliss'), + ); + $home_arr_val = array_values($home_sections_arr); + +// Theme data + $theme_data = get_theme_data(TEMPLATEPATH . '/style.css'); + +// Home sections array + $home_sec_arr = array( + array(__('Home Section 1:','bliss'), 'home1') + ); + +// Get all category slugs for use + $all_cat_slugs_arr = op_all_cat_slugs(); + +// Get all category names for use + $all_cats_arr = op_all_cats(); + +// Get all tags for use + $all_tags_arr = op_all_tags(); +?> + +<div id="poststuff" class="dlm"> + + <form name="form0" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>" style="border:none;background:transparent;"> + + <?php + include(OP_SETTINGS . '/about.php'); + include(OP_SETTINGS . '/general.php'); + include(OP_SETTINGS . '/footer.php'); + ?> + + <script type="text/javascript"> + <!-- + jQuery('.postbox h3').prepend('<a class="togbox">+</a> '); + jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } ); + jQuery('.postbox.close').each(function(){ jQuery(this).addClass("closed"); }); + //--> + </script> + + </form> + +</div> + +</div> \ No newline at end of file diff --git a/wp-content/themes/bliss/library/settings/theme-settings.php b/wp-content/themes/bliss/library/settings/theme-settings.php new file mode 100644 index 0000000000000000000000000000000000000000..eec1aa6be8326a27bd732d0280d5428649a21bf4 --- /dev/null +++ b/wp-content/themes/bliss/library/settings/theme-settings.php @@ -0,0 +1,24 @@ +<?php + +// Include files + include(OP_SETTINGS . '/theme-settings-admin.php'); + +// Add actions + add_action('admin_menu', 'op_add_pages'); + add_action('admin_head', 'op_admin_enqueue_style'); + +/*********************************************************** +* op_add_pages() - Gets all theme admin menu pages +***********************************************************/ +function op_add_pages() { + add_theme_page(__('Bliss Theme Settings','bliss'), __('Bliss Settings','bliss'), 10, 'theme-settings.php', vi_theme_page); +} + +/*********************************************************** +* op_admin_css() - Adds admin CSS +***********************************************************/ +function op_admin_enqueue_style() { + wp_enqueue_style('bliss_admin_css', OP_CSS . '/theme-settings.css', false, false, 'screen'); + wp_print_styles(array('bliss_admin_css')); +} +?> \ No newline at end of file diff --git a/wp-content/themes/bliss/license.txt b/wp-content/themes/bliss/license.txt new file mode 100644 index 0000000000000000000000000000000000000000..107294d8eed61510fc5f6921b84f42080b71776f --- /dev/null +++ b/wp-content/themes/bliss/license.txt @@ -0,0 +1,12 @@ +This license grants you limited non-exclusive use of the Bliss WordPress theme. + +* You may use this theme on any number of websites or blogs that you own or run. +* You may not use it for a client's website, unless it is work you're not paid for. +* You may not remove the credit message in the footer.php file. You may not edit any part of this message, which includes text and link, or hide it by using PHP, CSS, or by using anything else. The credit message must be visible at all times on your site or blog, unless you've purchased Credit Removal (email me for details on removing credits). +* Excluding the credit message, you may modify this theme as you see fit. +* Modified or unmodified, you may not redistribute or resell this theme. +* Modified or unmodified, you may not claim intellectual and / or exclusive ownership of this theme. + +The Bliss theme is provided "as is" without warranty of any kind, either expressed or implied. + +This in no way prohibits the use of advertising on your site or blog if you use this theme, provided that you leave the credit links intact. You may also run a commercial site and use this theme. \ No newline at end of file diff --git a/wp-content/themes/bliss/page.php b/wp-content/themes/bliss/page.php new file mode 100644 index 0000000000000000000000000000000000000000..7af7138762a2d239e7ab7cc57d8d0149de6688fa --- /dev/null +++ b/wp-content/themes/bliss/page.php @@ -0,0 +1,24 @@ +<?php get_header(); ?> + +<?php if(have_posts()) : while(have_posts()) : the_post(); ?> + + <div class="post"> + + <h1 class="post-title"> + <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> + </h1> + + <div class="entry"> + <?php the_content(); ?> + <?php wp_link_pages("before=<p>".__('Pages:','bliss')."&after=</p>"); ?> + </div> + + </div> + + <?php endwhile; ?> + + <?php comments_template(); ?> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/readme.txt b/wp-content/themes/bliss/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..08a1d848634838c1c4313d78d4f65644b8f3abc9 --- /dev/null +++ b/wp-content/themes/bliss/readme.txt @@ -0,0 +1,15 @@ +/* +Theme Name: Bliss +Theme URI: http://themehybrid.com/themes/bliss +Description: Bliss is a theme designed to accentuate your content. It was made to get rid of all the mess normally involved with running a blog. It's a blogger's theme, pure and simple. It allows your content to shine. +Version: 0.1 +Author: Justin Tadlock +Author URI: http://justintadlock.com +Copyright (c) 2007 - 2008 Justin Tadlock +*/ + +For instructions on using this theme, please refer to: +http://themehybrid.com/themes/bliss + +For support questions, please visit: +http://themehybrid.com/support \ No newline at end of file diff --git a/wp-content/themes/bliss/screenshot.jpg b/wp-content/themes/bliss/screenshot.jpg new file mode 100644 index 0000000000000000000000000000000000000000..42984acc6fd677e20a9575a6be3778ce66233eba Binary files /dev/null and b/wp-content/themes/bliss/screenshot.jpg differ diff --git a/wp-content/themes/bliss/search.php b/wp-content/themes/bliss/search.php new file mode 100644 index 0000000000000000000000000000000000000000..3a27f56827b57c022575b718223bfa55f8b37a73 --- /dev/null +++ b/wp-content/themes/bliss/search.php @@ -0,0 +1,57 @@ +<?php get_header(); ?> + +<div class="post search-header"> + <h1 class="post-title"> + <?php the_search_query(); ?> + </h1> + <div class="entry"> + <p> + <?php _e('You are browsing the search results for','bliss'); ?> <?php the_search_query(); ?> + </p> + </div> +</div> + +<?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(); ?>"><?php the_title(); ?></a> + </h2> + + <p class="byline"> + <span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span> + <span class="author"><?php the_author_posts_link(); ?></span> + <?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?> + <?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?> + </p> + + <div class="entry"> + <?php + if($settings['archives'] == __('Excerpts','bliss')) the_excerpt(); + else the_content(__('Read more »','bliss')); + ?> + </div> + + <div class="post-meta-data"> + <span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span> + <span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span> + </div> + </div> + + <?php endwhile; ?> + + <div class="navigation-links section"> + <?php posts_nav_link('', + '<span class="previous">« '.__('Previous Page','bliss').'</span>', + '<span class="next">'.__('Next Page','bliss').' »</span>' + ); ?> + </div> + +<?php else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/single.php b/wp-content/themes/bliss/single.php new file mode 100644 index 0000000000000000000000000000000000000000..6b2f50a3a7b6305f885b3b4e0be6f513846fbe2d --- /dev/null +++ b/wp-content/themes/bliss/single.php @@ -0,0 +1,39 @@ +<?php get_header(); ?> + +<?php if(have_posts()) : while(have_posts()) : the_post(); ?> + + <div id="post-<?php the_ID(); ?>" class="post"> + + <h1 class="post-title"> + <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> + </h1> + + <p class="byline"> + <span class="time"><?php the_time(__('F jS, Y','bliss')); ?></span> + <span class="author"><?php the_author_posts_link(); ?></span> + <?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?> + </p> + + <div class="entry"> + <?php the_content(); ?> + <?php wp_link_pages("before=<p>".__('Pages:','bliss')."&after=</p>"); ?> + </div> + + <p class="post-meta-data"> + <span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', ') ?></span> + <span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span> + </p> + </div> + + <?php endwhile; ?> + + <?php comments_template(); ?> + + <div class="navigation-links"> + <span class="previous"><?php previous_post_link('« %link'); ?></span> + <span class="next"><?php next_post_link(' %link »'); ?></span> + </div> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/bliss/style.css b/wp-content/themes/bliss/style.css new file mode 100644 index 0000000000000000000000000000000000000000..c81f41458958d09c546420bc338a9425ab4b37c6 --- /dev/null +++ b/wp-content/themes/bliss/style.css @@ -0,0 +1,476 @@ +/* +Theme Name: Bliss +Theme URI: http://themehybrid.com/themes/bliss +Description: Bliss is a theme designed to accentuate your content. It was made to get rid of all the <em> mess</em> normally involved with running a blog. It's a blogger's theme, pure and simple. It allows your content to shine. +Version: 0.1 +Author: Justin Tadlock +Author URI: http://justintadlock.com +Copyright (c) 2007 - 2008 Justin Tadlock +* +* Keep the information above intact. +* +*/ + +/* Base stylesheet */ +@import url('library/css/base.css'); + +/************************************************ + Elements +************************************************/ +/* Links */ +a:link, a:visited { color: #0C386E; text-decoration: none; } +a:hover, a:active { color: #000; text-decoration: underline; } + +/* Code */ +pre { + overflow: auto; + width: 98%; + padding: 8px; + font-size: .95em; + color: #0E2F69; + background: url(images/code-bg.png) repeat 0 0; + } +code { color: #0E2F69; } + +/* Blockquotes */ +blockquote { + padding-left: 10px; + border-left: 3px solid #0C386E; + } +blockquote blockquote { + color: #555; + } + +/* Tables */ +table { + width: 100%; + margin: 0 0 18px 0; + } +caption { + font-weight: bold; + margin-bottom: 5px; + } +th, td { + padding: 3px; + } +th { + font-weight: bold; + border: 1px solid #ccc; + } +td { + text-align: left; + border: 1px solid #ccc; + vertical-align: top; + } + +/* Alignment */ +.left, .alignleft { + float: left; + margin: 0 18px 0 0; + } +.right, .alignright { + float: right; + margin: 0 0 0 18px; + } +.center, .aligncenter { + margin: 0 auto 18px auto; + display: block; + } + +/* Images */ +img { + max-width: 98.5%; + padding: 3px; + background: #f9f9f9; + border: 1px solid #eee; + } +.gallery { + width: 100%; + } +.gallery-item { + margin: 0; + } +.gallery-icon { + margin: 0 0 18px 0; + } + +/* Captions */ +.wp-caption { + padding: 3px 0 0 0; + background: #f9f9f9; + border: 1px solid #eee; + text-align: center; + } +.wp-caption p.wp-caption-text { + margin: 0; padding: 0 5px; + text-align: right; + font-size: .8em; + color: #666; + } +.wp-caption img { + margin: 0; padding: 0; + border: 1px solid #666; + } + +/* Headers */ +h1, h2, h3, h4, h5, h6 { + font: 90% Georgia, "Times New Roman", Times, serif; + color: #0c386e; + } +h1 { font-size: 1.65em; } +h2 { font-size: 1.5em; } +h3 { font-size: 1.4em; } +h4 { font-size: 1.25em; } +h5 { font-size: 1.2em; } +h6 { font-size: 1.1em; } +h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { + font-weight: normal; + text-decoration: none; + color: #0C386E; + } + +/************************************************ + Body +************************************************/ +body { + color: #333; + background: #fff; + font: 90% Arial, Helvetica, "Trebuchet Ms", Tahoma, Verdana, sans-serif; + } + +#body-container { + overflow: hidden; + border-top: 15px solid #0e2f69; + } + +/************************************************ + Header +************************************************/ +#header { + width: 825px; + margin: 0 auto; + padding: 40px 0; + } + +#site-title { + margin: 0; + font: italic 2.3em Georgia, "Times New Roman", Times, serif; + } +#site-title a:hover { + text-decoration: none; + } + +#site-description { + font: 1em Georgia, "Times New Roman", Times, serif; + margin: 0; + color: #999; + } +/* Feed */ +#feed { + width: 825px; + margin: 0 auto; + } +#feed ul { + list-style: none; + width: 150px; + float: right; + margin: 0; + padding: 6px 15px; + background: #0C386E; + border: 5px solid #0E2F69; + border-top: none; + } +#feed li { + height: 16px; + } +#feed li a { + padding-left: 20px; + background: url(images/feed.png) no-repeat 0 0; + color: #eee; + font-size: .9em; + font-weight: bold; + } + +/************************************************ + Containers +************************************************/ +#content, #home { + margin: 30px auto 0 auto; + width: 825px; + float: none; + } + +/************************************************ + Posts +************************************************/ +.post { + clear: left; + margin: 30px 0 50px 0; + } + +/* Post title */ +.post-title { + float: right; + width: 675px; + } + +/* Byline */ +.byline { + float: left; + width: 120px; + margin: 45px 20px 0 0; + /* text-align: right; */ + } +.byline .time { + display: block; + padding: 0 5px 5px 5px; + color: #666; + font-size: .9em; + border-bottom: 1px solid #eee; + } +.byline .author, .byline .edit { + } +.byline .author a, .byline .edit a { + display: block; + padding: 5px; + border-bottom: 1px solid #eee; + color: #03658C; + font-style: italic; + font-size: .9em; + } +.byline .comments-link { + display: block; + padding: 5px; + color: #03658C; + font-style: italic; + font-size: .9em; + border-bottom: 1px solid #eee; + } +.byline .comments-link a { + } + +/* Entry */ +.entry { + float: right; + width: 675px; + line-height: 1.5em; + font-size: 1.05em; + letter-spacing: 0.02em; + } + +/* Post meta data */ +.post-meta-data { + margin-left: 150px; + padding: 5px; + text-align: right; + font-size: .95em; + color: #666; + } +.post-meta-data .categories { + margin-right: 12px; + } +.post-meta-data .categories, .post-meta-data .tags { + font-style: italic; + } +.post-meta-data .categories a, .post-meta-data .tags a { + font-style: normal; + } + +/* Archive pages */ +.category-header .post-title, .tag-header .post-title, author-header .post-title, .archive-header .post-title, .search-header .post-title { + margin-bottom: 6px; + } +.category-header .entry, .tag-header .entry, .author-header .entry, .archive-header .entry, .search-header .entry { + font-style: italic; + color: #666; + } +.category-header, .tag-header, .author-header, .archive-header, .search-header { + overflow: hidden; + } +.author-header .avatar { + float: left; + width: 60px; + height: 60px; + margin-right: 18px; + } + +/* Navigation links */ +.navigation-links { + float: right; + width: 675px; + padding: 15px 0; + font-style: italic; + } +.navigation-links .previous { + float: left; + max-width: 50%; + } +.navigation-links .next { + float: right; + max-width: 50%; + text-align: right; + } + +/* Home inserts */ +#home-insert-1, #home-insert-2 { + overflow: hidden; + clear: both; + float: right; + width: 675px; + margin-bottom: 18px; + } +#home-insert-2 { + margin-top: 9px; + } + +/************************************************ + Comments template +************************************************/ +#comments-template h3#comments { + margin: 0 0 28px 140px; + } + +/* Comments list */ +#comments-template ol { + margin: 0; + list-style: none; + } +#comments-template li { + overflow: hidden; + clear: left; + margin: 0 0 18px 0; + border-bottom: 1px solid #eee; + } +#comments-template img { + padding: 0; + border: none; + } +#comments-template .comment-meta-data { + float: left; + clear: left; + display: inline; + width: 90px; + margin: 0 20px 18px 0; + } + +/* Avatars */ +#comments-template .avatar { + margin: 0 20px 0 0; + padding: 3px; + border: 1px solid #eee; + } +#comments-template li.author .avatar { + background: #03658C; + } + +.comment-meta-data .edit a, .comment-meta-data .permalink a { + display: block; + padding: 5px; + border-bottom: 1px solid #eee; + color: #03658C; + font-style: italic; + font-size: .9em; + } +#comments-template .comment-author { + margin-left: 30px; + } +#comments-template .comment-text { + clear: none; + float: right; + width: 675px; + line-height: 1.5em; + font-size: 1.05em; + letter-spacing: 0.02em; + } +#comments-template h3#respond { + margin-left: 140px; + } +#comments-template form { + margin-left: 140px; + } +#comments-template .comment-input { + font-size: .9em; + } +#comments-template input { + padding: 5px; + border: 1px solid #ccc; + } +#comments-template input#submit, #comments-template input#reset { + margin-right: 10px; + padding: 7px 12px; + } +#comments-template input#submit:hover, #comments-template input#reset:hover { + cursor: pointer; + background: #fff; + } +#comments-template textarea { + width: 635px; + padding: 5px; + border: 1px solid #ccc; + } +#comments-template .comment-footer { + color: #666; + } + +/************************************************ + Widget Insert +************************************************/ +#widget-insert-container { + overflow: hidden; + clear: both; + padding: 15px 0 0 0; + color: #eee; + background: #0C2450; + } +#widget-insert { + width: 850px; + margin: 0 auto; + } +#widget-insert .menu { + float: left; + margin: 10px 15px 0 15px; + padding: 0; + width: 248px; + } +#widget-insert .section-header { + color: #eee; + } +#widget-insert ul { + list-style: none; + margin: 0 0 18px 0; + } +#widget-insert ul ul { + margin: 0; + } +#widget-insert li { + padding: 5px 5px; + border-bottom: 1px dotted #0c386e; + } +#widget-insert li li { + margin-left: 9px; + border: none; + } +#widget-insert a { + color: #eee; + font-style: italic; + } + +/************************************************ + Footer +************************************************/ +#footer-container { + clear: both; + padding: 35px 0; + color: #eee; + background: #0C2450; + } + +#footer { + width: 825px; + margin: 0 auto; + } + +#footer a { + color: #eee; + font-style: italic; + } \ No newline at end of file diff --git a/wp-content/themes/bliss/tag.php b/wp-content/themes/bliss/tag.php new file mode 100644 index 0000000000000000000000000000000000000000..63885b1f0ece0e798eb5f7d5e1e0e1d7a59c3c4c --- /dev/null +++ b/wp-content/themes/bliss/tag.php @@ -0,0 +1,56 @@ +<?php get_header(); ?> + +<div class="post tag-header"> + <h1 class="post-title"> + <?php single_tag_title(); ?> + </h1> + <div class="entry"> + <p><?php _e('You are browsing the archives of','bliss'); wp_title(''); ?>.</p> + </div> +</div> + +<?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(); ?>"><?php the_title(); ?></a> + </h2> + + <p class="byline"> + <span class="time"><?php the_time(__('M jS, Y','bliss')); ?></span> + <span class="author"><?php the_author_posts_link(); ?></span> + <?php comments_popup_link(__('No Comments','bliss'), __('1 Comment','bliss'), __('% Comments','bliss'), 'comments-link'); ?> + <?php edit_post_link(__('Edit','bliss'), '<span class="edit">', '</span>'); ?> + </p> + + <div class="entry"> + <?php + if($settings['archives'] == __('Excerpts','bliss')) the_excerpt(); + else the_content(__('Read more »','bliss')); + ?> + </div> + + <div class="post-meta-data"> + <span class="categories"><?php _e('Categories:','bliss'); ?> <?php the_category(', '); ?></span> + <span class="tags"><?php _e('Tags:','bliss'); ?> <?php the_tags('', ', ', ''); ?></span> + </div> + + </div> + + <?php endwhile; ?> + + <div class="navigation-links section"> + <?php posts_nav_link('', + '<span class="previous">« '.__('Previous Page','bliss').'</span>', + '<span class="next">'.__('Next Page','bliss').' »</span>' + ); ?> + </div> + +<?php else: ?> + + <p><?php _e('Sorry, no posts matched your criteria.','bliss'); ?></p> + +<?php endif; ?> + +<?php get_footer(); ?> \ No newline at end of file