diff --git a/wp-content/themes/the-scenery/11670011000.jpg b/wp-content/themes/the-scenery/11670011000.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d04b28a5f68f5684ff8eec0f3572bbf9b9d468af Binary files /dev/null and b/wp-content/themes/the-scenery/11670011000.jpg differ diff --git a/wp-content/themes/the-scenery/comments-popup.php b/wp-content/themes/the-scenery/comments-popup.php new file mode 100644 index 0000000000000000000000000000000000000000..6d4e593bb44ddd4f7f920165a95b4df6b49b5f9f --- /dev/null +++ b/wp-content/themes/the-scenery/comments-popup.php @@ -0,0 +1,116 @@ +<?php +/* Don't remove these lines. */ +add_filter('comment_text', 'popuplinks'); +while( have_posts()) : the_post(); +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title><?php echo get_option('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title> + + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> + <style type="text/css" media="screen"> + @import url( <?php bloginfo('stylesheet_url'); ?> ); + body { margin: 3px; } + </style> + +</head> +<body id="commentspopup"> + +<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> + +<h2 id="comments"><?php _e("Comments"); ?></h2> + +<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> + +<?php if ('open' == $post->ping_status) { ?> +<p><?php _e("The <abbr title=\"Universal Resource Locator\">URL</abbr> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p> +<?php } ?> + +<?php +// this line is WordPress' motor, do not delete it. +$commenter = wp_get_current_commenter(); +extract($commenter); +$comments = get_approved_comments($id); +$commentstatus = get_post($id); +if (!empty($commentstatus->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $commentstatus->post_password) { // and it doesn't match the cookie + echo(get_the_password_form()); +} else { ?> + +<?php if ($comments) { ?> +<ol id="commentlist"> +<?php foreach ($comments as $comment) { ?> + <li id="comment-<?php comment_ID() ?>"> + <?php comment_text() ?> + <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e("by"); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p> + </li> + +<?php } // end for each comment ?> +</ol> +<?php } else { // this is displayed if there are no comments so far ?> + <p><?php _e("No comments yet."); ?></p> +<?php } ?> + +<?php if ('open' == $commentstatus->comment_status) { ?> +<h2><?php _e("Leave a comment"); ?></h2> +<p><?php _e("Line and paragraph breaks automatic, e-mail address never displayed, <acronym title=\"Hypertext Markup Language\">HTML</acronym> allowed:"); ?> <code><?php echo allowed_tags(); ?></code></p> + +<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> +<?php if ( $user_ID ) : ?> +<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php echo attribute_escape(__('Log out of this account')); ?>"><?php _e('Log out »'); ?></a></p> +<?php else : ?> + <p> + <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> + <label for="author"><?php _e("Name"); ?></label> + <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> + <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> + </p> + + <p> + <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /> + <label for="email"><?php _e("E-mail"); ?></label> + </p> + + <p> + <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> + <label for="url"><?php _e("<abbr title=\"Universal Resource Locator\">URL</abbr>"); ?></label> + </p> +<?php endif; ?> + + <p> + <label for="comment"><?php _e("Your Comment"); ?></label> + <br /> + <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> + </p> + + <p> + <input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" /> + </p> + <?php do_action('comment_form', $post->ID); ?> +</form> +<?php } else { // comments are closed ?> +<p><?php _e("Sorry, the comment form is closed at this time."); ?></p> +<?php } +} // end password check +?> + +<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div> + +<?php // if you delete this the sky will fall on your head +endwhile; +?> + +<!-- // this is just the end of the motor - don't touch that line either :) --> +<?php //} ?> +<p class="credit"><?php timer_stop(1); ?> <?php echo sprintf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>WordPress</strong></a></cite>"),__("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></p> +<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> +<script type="text/javascript"> +<!-- +document.onkeypress = function esc(e) { + if(typeof(e) == "undefined") { e=event; } + if (e.keyCode == 27) { self.close(); } +} +// --> +</script> +</body> +</html> diff --git a/wp-content/themes/the-scenery/comments.php b/wp-content/themes/the-scenery/comments.php new file mode 100644 index 0000000000000000000000000000000000000000..3a84ffcd8a54807123d2070e10ab546e98959372 --- /dev/null +++ b/wp-content/themes/the-scenery/comments.php @@ -0,0 +1,83 @@ +<div id="comments"> +<div id="comment-title"> +<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?> +<p><?php _e('Enter your password to view comments.'); ?></p> +<?php return; endif; ?> + +<h2><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?> +<?php if ( comments_open() ) : ?> + <a href="#postcomment" onclick="jQuery('#comment')[0].focus(); return false;" title="<?php _e("Leave a comment"); ?>">»</a> +<?php endif; ?> +</h2> +<div class="rss" id="comment-rss"><?php post_comments_feed_link(__('<abbr title="Really Simple Syndication">RSS</abbr>')); ?> +<?php if ( pings_open() ) : ?> + <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a> +<?php endif; ?> +</div> +</div> + +<div id="comment-list"> +<?php if ( $comments ) : ?> +<?php $comment_number = 0?> +<?php foreach ($comments as $comment) : ?> + <div class="comment-container <?php echo ++$comment_number % 2 ? "comment-odd" : "comment-even"; ?>"> + <h3 class="comment-number"><?php echo $comment_number;?></h3> + <div id="comment-<?php comment_ID() ?>" class="comment"> + <?php echo get_avatar( $comment, 48 ); ?> + <div class="content"><?php comment_text() ?></div> + <div class="meta"><cite><?php comment_type('<!--'.__('Comment').'-->', __('Trackback').' '.__('by').' ', __('Pingback').' '.__('by').' '); ?><?php comment_author_link() ?> @ <?php comment_date() ?> <?php comment_time() ?></cite> <?php edit_comment_link(__("Edit This"), ' | '); ?></div> + </div> + </div> + +<?php endforeach; ?> +<?php else : // If there are no comments yet ?> + <!--we already say 'no comments' in the title--> +<?php endif; ?> +</div> + +<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="comment-form"><div id="comment-form-body"> +<?php if ( comments_open() ) : ?> +<h2 id="postcomment"><?php _e('Leave a comment'); ?></h2> + +<?php if ( get_option('comment_registration') && !$user_ID ) : ?> +<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p> +<?php else : ?> + + +<?php if ( $user_ID ) : ?> + +<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Log out »'); ?></a></p> + +<?php else : ?> + +<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> +<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p> + +<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> +<label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label></p> + +<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> +<label for="url"><small><?php _e('Website'); ?></small></label></p> + +<?php endif; ?> + +<!--<p><small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s'), allowed_tags()); ?></small></p>--> +<div> +<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea><br /> +<input name="submit" type="submit" id="submit" tabindex="5" value="<?php echo attribute_escape(__('Submit Comment')); ?>" /> +</div> +<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> + +<?php do_action('comment_form', $post->ID); ?> + + +<?php endif; // If registration required and not logged in ?> + +<?php else : // Comments are closed ?> +<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> +<?php endif; ?> +</div> +<div id="comment-form-footer"> +</div> +</form> +</div> \ No newline at end of file diff --git a/wp-content/themes/the-scenery/csshover.htc b/wp-content/themes/the-scenery/csshover.htc new file mode 100644 index 0000000000000000000000000000000000000000..3ba936ac34c2b32fd9f6bcd770b4410ecb708f43 --- /dev/null +++ b/wp-content/themes/the-scenery/csshover.htc @@ -0,0 +1,120 @@ +<attach event="ondocumentready" handler="parseStylesheets" /> +<script> +/** + * Whatever:hover - V1.42.060206 - hover & active + * ------------------------------------------------------------ + * (c) 2005 - Peter Nederlof + * Peterned - http://www.xs4all.nl/~peterned/ + * License - http://creativecommons.org/licenses/LGPL/2.1/ + * + * Whatever:hover is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * Whatever:hover is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * Credits and thanks to: + * Arnoud Berendsen, Martin Reurings, Robert Hanson + * + * howto: body { behavior:url("csshover.htc"); } + * ------------------------------------------------------------ + */ + +var csshoverReg = /(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i, +currentSheet, doc = window.document, hoverEvents = [], activators = { + onhover:{on:'onmouseover', off:'onmouseout'}, + onactive:{on:'onmousedown', off:'onmouseup'} +} + +function parseStylesheets() { + if(!/MSIE (5|6)/.test(navigator.userAgent)) return; + window.attachEvent('onunload', unhookHoverEvents); + var sheets = doc.styleSheets, l = sheets.length; + for(var i=0; i<l; i++) + parseStylesheet(sheets[i]); +} + function parseStylesheet(sheet) { + if(sheet.imports) { + try { + var imports = sheet.imports, l = imports.length; + for(var i=0; i<l; i++) parseStylesheet(sheet.imports[i]); + } catch(securityException){} + } + + try { + var rules = (currentSheet = sheet).rules, l = rules.length; + for(var j=0; j<l; j++) parseCSSRule(rules[j]); + } catch(securityException){} + } + + function parseCSSRule(rule) { + var select = rule.selectorText, style = rule.style.cssText; + if(!csshoverReg.test(select) || !style) return; + + var pseudo = select.replace(/[^:]+:([a-z-]+).*/i, 'on$1'); + var newSelect = select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi, '.$2' + pseudo); + var className = (/\.([a-z0-9_-]*on(hover|active))/i).exec(newSelect)[1]; + var affected = select.replace(/:(hover|active).*$/, ''); + var elements = getElementsBySelect(affected); + if(elements.length == 0) return; + + currentSheet.addRule(newSelect, style); + for(var i=0; i<elements.length; i++) + new HoverElement(elements[i], className, activators[pseudo]); + } + +function HoverElement(node, className, events) { + if(!node.hovers) node.hovers = {}; + if(node.hovers[className]) return; + node.hovers[className] = true; + hookHoverEvent(node, events.on, function() { node.className += ' ' + className; }); + hookHoverEvent(node, events.off, function() { node.className = node.className.replace(new RegExp('\\s+'+className, 'g'),''); }); +} + function hookHoverEvent(node, type, handler) { + node.attachEvent(type, handler); + hoverEvents[hoverEvents.length] = { + node:node, type:type, handler:handler + }; + } + + function unhookHoverEvents() { + for(var e,i=0; i<hoverEvents.length; i++) { + e = hoverEvents[i]; + e.node.detachEvent(e.type, e.handler); + } + } + +function getElementsBySelect(rule) { + var parts, nodes = [doc]; + parts = rule.split(' '); + for(var i=0; i<parts.length; i++) { + nodes = getSelectedNodes(parts[i], nodes); + } return nodes; +} + function getSelectedNodes(select, elements) { + var result, node, nodes = []; + var identify = (/\#([a-z0-9_-]+)/i).exec(select); + if(identify) { + var element = doc.getElementById(identify[1]); + return element? [element]:nodes; + } + + var classname = (/\.([a-z0-9_-]+)/i).exec(select); + var tagName = select.replace(/(\.|\#|\:)[a-z0-9_-]+/i, ''); + var classReg = classname? new RegExp('\\b' + classname[1] + '\\b'):false; + for(var i=0; i<elements.length; i++) { + result = tagName? elements[i].all.tags(tagName):elements[i].all; + for(var j=0; j<result.length; j++) { + node = result[j]; + if(classReg && !classReg.test(node.className)) continue; + nodes[nodes.length] = node; + } + } + + return nodes; + } +</script> \ No newline at end of file diff --git a/wp-content/themes/the-scenery/footer.php b/wp-content/themes/the-scenery/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..74923fc22bd29834945af0aca528437e2bbceed0 --- /dev/null +++ b/wp-content/themes/the-scenery/footer.php @@ -0,0 +1,175 @@ +<!-- begin footer --> + </div><!--end of the body div--> + <?php get_sidebar(); ?> + </div><!--end of the content div--> + <?php if(thescenery_getsetting('pageList', 'true') == 'true'){?> + <div id="footer-menu" class="dropdown-menu <?php echo is_search() ? "current_not_selecting" : "current_selecting";?>"> + <ul> + <li id="footer-menu-leftconner"> </li> + <li class="page_item <?php echo is_home() ? "current_page_item" : (!is_page() && !is_search() ? "current_page_ancestor" : "")?>"><a title="<?php _e('Home')?>" href="<?php bloginfo("url")?>"><?php _e('Home')?></a></li> + <?php wp_list_pages(array( + "title_li" => "" + )) ?> + <li id="footer-menu-rightconner"> </li> + </ul> + </div> + <?php }?> + <?php if(thescenery_getsetting('searchBox', 'true') == 'true'){?> + <div id="footer-searchform-left"> + <form id="footer-searchform" method="get" action="<?php bloginfo('url'); ?>" class="<?php if(is_search()){ ?>current_searching current_selecting<?php } else {?>current_not_selecting<?php }?>"> + <div id="footer-searchform-leftconner"> </div> + <div id="footer-searchform-conent"> + <input name="s" id="s" size="15" type="text" <?php if( function_exists("is_search") && is_search()) { echo 'value="';the_search_query(); echo'"'; } ?>><input value="<?php _e("Search")?>" type="submit"> + <?php if(is_search()){ ?><script type="text/javascript">var s=jQuery("#s")[0];s.focus();s.select();</script><?php } ?> + </div> + </form> + </div> + <?php }?> + <div id="body-close"> </div> + <div id="footer"> + <div id="footer-shadow"></div> + <div id="footer-body"> + <div class="credit"><!--<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org/' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?>. <?php _e('Current Theme')?>: <a href="http://leen.name/the-scenery-wp-theme" target="_blank">The Scenery</a>.</cite></div> + <?php wp_footer(); ?> + </div> + </div> +</div><!--end of non-background--> +<script type="text/javascript"> +function replaceFooter(){ + if(document.getElementById('non-background').scrollHeight <= document.documentElement.clientHeight) + jQuery("#footer").prependTo("body").css({position: "absolute",bottom: 0, 'z-index': 3}); + else + jQuery("#footer").appendTo("#non-background").css("position", "relative"); +} +if(jQuery.browser.safari)//there are bugs here for webkit + jQuery(function(){ + setTimeout(replaceFooter, 100); + }); +else + replaceFooter(); +jQuery(window).resize(replaceFooter); +</script> + +<style type="text/css"> +body{ + background-repeat: no-repeat; + background-attachment: fixed; + _behavior: url(<?php bloginfo('template_url'); ?>/csshover.htc);/*damn IE6*/ +} +</style> + +<div id="background"> +<!--flash background--> +<script language="JavaScript" type="text/javascript"> +<!-- +// function to pass settings to flex +function getTheSceneryThemeSettings(){ + return { + <?php + foreach(thescenery_getsettings() as $key => $value){ + ?> + <?php echo $key?>: '<?php echo $value?>', + <?php + } + ?> + _:'' + }; +} +var backgroundImageWidth, backgroundImageHeight; +var backgroundImageLoaded = false; +function onBackgroundImageLoad(){ + // http://stackoverflow.com/questions/318630/get-real-image-width-and-height-with-javascript-in-safari-chrome + if(backgroundImageLoaded) + return; + if (jQuery.browser.safari && document.readyState != "complete"){ + setTimeout( arguments.callee, 100 ); + return; + } + backgroundImageLoaded = true; + backgroundImageWidth = jQuery('#backgroundImage').innerWidth(); + backgroundImageHeight = jQuery('#backgroundImage').innerHeight(); + if(backgroundImageWidth > 0 && backgroundImageHeight > 0){ + updateBackgroundImage(); + jQuery('#backgroundImage').css('visibility', 'visible'); + jQuery(window).resize(updateBackgroundImage); + } +} +function updateBackgroundImage(){ + var settings = getTheSceneryThemeSettings(); + var windowWidth = jQuery(window).width(), windowHeight = jQuery(window).height(); + var width, height; + var top = 0, left = 0; + switch(settings.backgroundType){ + case 'stretch': + width = windowWidth; + height = windowHeight; + break; + case 'keepratio': + if(windowHeight > 0 && windowWidth > 0){ + if(windowWidth / windowHeight > backgroundImageWidth / backgroundImageHeight){ + // do width fit + width = windowWidth; + height = windowWidth * backgroundImageHeight / backgroundImageWidth; + + if(settings.backgroundVerticalAlign == 'top') + top = 0; + else if(settings.backgroundVerticalAlign == 'center') + top = (windowHeight - height) / 2; + else + top = windowHeight - height; + + + }else{ + // do height fit + height = windowHeight; + width = windowHeight * backgroundImageWidth / backgroundImageHeight; + + + if(settings.backgroundHorizontalAlign == 'left') + left = 0; + else if(settings.backgroundHorizontalAlign == 'center') + left = (windowWidth - width) / 2; + else + left = windowWidth - width; + } + } + break; + } + + jQuery('#backgroundImage').css({ + 'width': width + 'px', + 'height': height + 'px', + 'top': top + 'px', + 'left': left + 'px' + }); +} +jQuery(function(){ + var settings = getTheSceneryThemeSettings(); + if(settings.backgroundType == 'original') + jQuery("body").css({ + "background-image": "url(<?php echo thescenery_getsetting('backgroundImage')?>)", + "background-position": settings.backgroundVerticalAlign + " " + settings.backgroundHorizontalAlign + }); + else { + jQuery('<img id="backgroundImage" src="<?php echo htmlspecialchars(thescenery_getsetting('backgroundImage'))?>" onload="onBackgroundImageLoad();" style="position: absolute; visibility: hidden;" />').appendTo("#background"); + if(jQuery.browser.safari) + setTimeout(onBackgroundImageLoad, 100); + } +}); +// --> +</script> + +<noscript> + <!--if there is no javascript, fallback to css background--> + <style type="text/css"> + body{ + background-image:url(<?php echo thescenery_getsetting('backgroundImage')?>); + background-repeat: no-repeat; + background-attachment: fixed; + } + </style> +</noscript> + + </div> +</body> +</html> \ No newline at end of file diff --git a/wp-content/themes/the-scenery/functions.php b/wp-content/themes/the-scenery/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..35e8d03667fb04e7bef26a1f34199fea67180d52 --- /dev/null +++ b/wp-content/themes/the-scenery/functions.php @@ -0,0 +1,61 @@ +<?php +if ( function_exists('register_sidebar') ){ + // sidebar1 + register_sidebar(array( + 'before_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h3>', + 'after_title' => '</h3>', + )); +} + +$thescenery_defaultsettings = array( + backgroundType => 'keepratio', //stretch, keepratio, original + + //backgroundImage => get_bloginfo('template_url') . '/11670011000.jpg', + blur => 'false', + blurRate => '5', + // options for keepratio backgroundType + backgroundHorizontalAlign => 'left', + backgroundVerticalAlign => 'top', + + pageList => 'true', + searchBox => 'false' +); +$thescenery_settings = null; +function thescenery_getsettings($force_reload = false){ + global $thescenery_defaultsettings, $thescenery_settings; + if(!$thescenery_settings || $force_reload){ + if(!get_option('thescenery_settings_initialized')){ + add_option('thescenery_settings_initialized', '1'); + foreach($thescenery_defaultsettings as $k => $v) + add_option("thescenery_$k", $v); + } + $thescenery_settings = array(); + foreach($thescenery_defaultsettings as $k => $default_value){ + $value = get_option("thescenery_$k"); + if(!is_string($value)) + $value = $default_value; + $thescenery_settings[$k] = $value; + } + } + $thescenery_settings['backgroundImage'] = get_bloginfo('template_url') . '/11670011000.jpg'; + return $thescenery_settings; +} +function thescenery_updatesettings($settings){ + global $thescenery_defaultsettings, $thescenery_settings; + foreach($thescenery_defaultsettings as $k => $default_value) + if(is_string($settings[$k])) + update_option("thescenery_$k", $settings[$k]); + thescenery_getsettings(true); +} +function thescenery_getsetting($name, $default=''){ + $settings = thescenery_getsettings($name); + $value = $settings[$name]; + if(!is_string($value)) + return $default; + return $value; +} +include_once 'theme-options.php'; + +?> diff --git a/wp-content/themes/the-scenery/header.php b/wp-content/themes/the-scenery/header.php new file mode 100644 index 0000000000000000000000000000000000000000..614aa65de6d3feabef0987577063244d6177be26 --- /dev/null +++ b/wp-content/themes/the-scenery/header.php @@ -0,0 +1,64 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> +<head profile="http://gmpg.org/xfn/11"> + <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> + <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> + <style type="text/css" media="screen"> + @import url(<?php bloginfo('stylesheet_url'); ?>); + </style> + <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> + <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> + <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php bloginfo('atom_url'); ?>" /> + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> + <?php wp_get_archives('type=monthly&format=link'); ?> + <?php //comments_popup_script(); // off by default ?> + <?php wp_enqueue_script('jquery'); ?> + <?php wp_head(); ?> + <style type="text/css"> + <?php + if(is_page()){ + ?> + /*pages has nothing to do with these things*/ + .widget_categories, + .widget_archive, + .widget_tag_cloud, + .widget_calendar + { + display: none; + } + <?php + }?> + </style> + <script type="text/javascript"> +<!-- +<?php + $blog_url = preg_replace('/\/^/', "", get_bloginfo('url')); + $http_refer = $_SERVER['HTTP_REFERER']; + // we don't do opening animation if we are browsing inside wordpress. + $from_wordpress = substr($http_refer, 0, strlen($blog_url)) == $blog_url ? "true" : "false"; +?> + var fromWordpress=<?php echo $from_wordpress;?>; +// --> + </script> +</head> +<body> + <div id="non-background"> + <div id="header"> + <h1 id="header-title"> + <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> + </h1> + <span id="header-description"><?php bloginfo('description'); ?> <a href="<?php bloginfo('rss2_url'); ?>" title="RSS"><img align="absmiddle" alt="RSS" src="<?php bloginfo('template_url'); ?>/images/rss-12px.png" /></a></span> + </div> + <script type="text/javascript"> + if(jQuery.browser.mozilla && jQuery.browser.version >= '1.9.1' + || jQuery.browser.safari && jQuery.browser.version >= '530.0'){ + jQuery("#header-title a").css({'text-shadow': '2px 2px 2px #333333', 'color': '#eeeeee'}); + jQuery("#header-description").css({'text-shadow': '1px 1px 1px #333333'}); + } else{ + jQuery("#header-title").clone().hide().prependTo("#header").attr("id", "header-title-shadow").css("width", "100%").show(); + jQuery("#header-title").css({opacity: 0.4}); + } + </script> + <div id="body"> + <div id="content"> +<!-- end header --> \ No newline at end of file diff --git a/wp-content/themes/the-scenery/images/background-#000-1px-o70.png b/wp-content/themes/the-scenery/images/background-#000-1px-o70.png new file mode 100644 index 0000000000000000000000000000000000000000..ad78d9a509529411980427317d5be4fba4972c08 Binary files /dev/null and b/wp-content/themes/the-scenery/images/background-#000-1px-o70.png differ diff --git a/wp-content/themes/the-scenery/images/background-#000-1px-o80.png b/wp-content/themes/the-scenery/images/background-#000-1px-o80.png new file mode 100644 index 0000000000000000000000000000000000000000..970b4e3d274cabecb3286f384eece4a7f8fff974 Binary files /dev/null and b/wp-content/themes/the-scenery/images/background-#000-1px-o80.png differ diff --git a/wp-content/themes/the-scenery/images/background-#444-1px-o70.png b/wp-content/themes/the-scenery/images/background-#444-1px-o70.png new file mode 100644 index 0000000000000000000000000000000000000000..a1f9ac74be37aeba8b0b0ad15134486a59e80df1 Binary files /dev/null and b/wp-content/themes/the-scenery/images/background-#444-1px-o70.png differ diff --git a/wp-content/themes/the-scenery/images/background-#777-1px-o80.png b/wp-content/themes/the-scenery/images/background-#777-1px-o80.png new file mode 100644 index 0000000000000000000000000000000000000000..e99474194330cb5f83bff19aa3700d3f3cad36d1 Binary files /dev/null and b/wp-content/themes/the-scenery/images/background-#777-1px-o80.png differ diff --git a/wp-content/themes/the-scenery/images/conner-#000-10px-o30.png b/wp-content/themes/the-scenery/images/conner-#000-10px-o30.png new file mode 100644 index 0000000000000000000000000000000000000000..3d7b6b2a1199e7b8666429dfd1633812a0c84031 Binary files /dev/null and b/wp-content/themes/the-scenery/images/conner-#000-10px-o30.png differ diff --git a/wp-content/themes/the-scenery/images/conner-#000-10px-o70.png b/wp-content/themes/the-scenery/images/conner-#000-10px-o70.png new file mode 100644 index 0000000000000000000000000000000000000000..f30eaba2ab38b1e791b1b0be7578401378ba9c17 Binary files /dev/null and b/wp-content/themes/the-scenery/images/conner-#000-10px-o70.png differ diff --git a/wp-content/themes/the-scenery/images/conner-#000-10px-o80.png b/wp-content/themes/the-scenery/images/conner-#000-10px-o80.png new file mode 100644 index 0000000000000000000000000000000000000000..3052cb130ecbcedaadab452dc955f51ea553e938 Binary files /dev/null and b/wp-content/themes/the-scenery/images/conner-#000-10px-o80.png differ diff --git a/wp-content/themes/the-scenery/images/conner-#444-10px-o50.png b/wp-content/themes/the-scenery/images/conner-#444-10px-o50.png new file mode 100644 index 0000000000000000000000000000000000000000..27be6280d4015ae9d23ef1ba481aa5d95bb609db Binary files /dev/null and b/wp-content/themes/the-scenery/images/conner-#444-10px-o50.png differ diff --git a/wp-content/themes/the-scenery/images/conner-#444-10px-o70.png b/wp-content/themes/the-scenery/images/conner-#444-10px-o70.png new file mode 100644 index 0000000000000000000000000000000000000000..cde666bad0c6fc45326e17da7bb6befdeef3ee36 Binary files /dev/null and b/wp-content/themes/the-scenery/images/conner-#444-10px-o70.png differ diff --git a/wp-content/themes/the-scenery/images/conner-#666-10px.png b/wp-content/themes/the-scenery/images/conner-#666-10px.png new file mode 100644 index 0000000000000000000000000000000000000000..e36e6047609a5885ea056fc2c921eb20831b020f Binary files /dev/null and b/wp-content/themes/the-scenery/images/conner-#666-10px.png differ diff --git a/wp-content/themes/the-scenery/images/date-background.png b/wp-content/themes/the-scenery/images/date-background.png new file mode 100644 index 0000000000000000000000000000000000000000..6b1c54958f5fc4776a796b78f86f0f80d399c5a1 Binary files /dev/null and b/wp-content/themes/the-scenery/images/date-background.png differ diff --git a/wp-content/themes/the-scenery/images/gradient-black-25pt.png b/wp-content/themes/the-scenery/images/gradient-black-25pt.png new file mode 100644 index 0000000000000000000000000000000000000000..196c7acd9bf39f27d21b13a8bc39047fe77d9096 Binary files /dev/null and b/wp-content/themes/the-scenery/images/gradient-black-25pt.png differ diff --git a/wp-content/themes/the-scenery/images/item-number-even.png b/wp-content/themes/the-scenery/images/item-number-even.png new file mode 100644 index 0000000000000000000000000000000000000000..8c375d2824d49c0304d05211428f003217cc0bad Binary files /dev/null and b/wp-content/themes/the-scenery/images/item-number-even.png differ diff --git a/wp-content/themes/the-scenery/images/item-number-odd.png b/wp-content/themes/the-scenery/images/item-number-odd.png new file mode 100644 index 0000000000000000000000000000000000000000..06624658c93b8a788396d59d33e73e7496dc4d94 Binary files /dev/null and b/wp-content/themes/the-scenery/images/item-number-odd.png differ diff --git a/wp-content/themes/the-scenery/images/post-title-spliter.png b/wp-content/themes/the-scenery/images/post-title-spliter.png new file mode 100644 index 0000000000000000000000000000000000000000..ee60e333b8c41ecd57972148f9209fcf09afcc7b Binary files /dev/null and b/wp-content/themes/the-scenery/images/post-title-spliter.png differ diff --git a/wp-content/themes/the-scenery/images/rss-12px.png b/wp-content/themes/the-scenery/images/rss-12px.png new file mode 100644 index 0000000000000000000000000000000000000000..c8bbb5839bed71f2f04f3ee731cc8979e7d8f1b0 Binary files /dev/null and b/wp-content/themes/the-scenery/images/rss-12px.png differ diff --git a/wp-content/themes/the-scenery/index.php b/wp-content/themes/the-scenery/index.php new file mode 100644 index 0000000000000000000000000000000000000000..a4532b79f235cf7a4b82240c7aee9c658d0fddd7 --- /dev/null +++ b/wp-content/themes/the-scenery/index.php @@ -0,0 +1,64 @@ +<?php +get_header(); +?> + +<?php +$previsou_day = null; +if (have_posts()) : while (have_posts()) : the_post(); +$the_time = strtotime(get_the_time("Y-m-d H:i:s")); +$the_day = date('Y-M-j', $the_time); +if(!$previsou_day || $previsou_day != $the_day): + $previsou_day = $the_day;?> + <div class="date-container"><div class="date"> + <div class="year"><?php $the_year = date('Y', $the_time); if($the_year != date('Y')) echo $the_year; ?></div> + <div class="month"><?php echo date('M', $the_time); ?> </div> + <div class="day"><?php echo date('j', $the_time); ?></div> + </div></div> +<?php endif;?> +<div class="post" id="post-<?php the_ID(); ?>"> + <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> + <div class="meta"><?php + if(!is_page() || $wp_query->post->post_parent){ + _e("Filed under:"); ?> + <?php + } + if(is_page()){ + if(empty($wp_query->post->post_parent)){ + ?><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a><?php + }else{ + $parent_id = $wp_query->post->post_parent; + wp_list_pages("include=$parent_id&title_li="); + } + }else{ + the_category(','); + } + ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?> </div> + + <div class="content"> + <?php the_content(__('(more...)')); ?> + </div> + <div class="footer"> + <div class="feedback"> + <?php wp_link_pages(); ?> + <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> + </div> + + <?php if (is_single()) :?> + <div id="otherposts"><div id="previouspost"><?php previous_post_link(); ?></div> <div id="nextpost"><?php next_post_link(); ?></div></div> + <?php endif;?> + </div> +</div> +<?php comments_template(); // Get wp-comments.php template ?> + +<?php endwhile; else: ?> +<div class="post"><p><?php _e('Sorry, no posts matched your criteria.'); ?></p></div> +<?php endif; ?> +<?php if (!is_single() && !is_page() && have_posts()) :?> +<div id="postpager"> + <div class="content"><?php posts_nav_link('', __('« Newer Posts'), __('Older Posts »')); ?></div> + <div class="top"></div> + <div class="bottom"></div> +</div> +<script type="text/javascript">jQuery("#postpager .content:empty").parents("#postpager").remove();</script> +<?php endif;?> +<?php get_footer(); ?> diff --git a/wp-content/themes/the-scenery/rtl.css b/wp-content/themes/the-scenery/rtl.css new file mode 100644 index 0000000000000000000000000000000000000000..a272822f374057a771e29f31690f9c718bf6a289 --- /dev/null +++ b/wp-content/themes/the-scenery/rtl.css @@ -0,0 +1 @@ +/* but we don't support RTL */ \ No newline at end of file diff --git a/wp-content/themes/the-scenery/screenshot.png b/wp-content/themes/the-scenery/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..013562d2439f72a48419940b88b07fc90aa92aa7 Binary files /dev/null and b/wp-content/themes/the-scenery/screenshot.png differ diff --git a/wp-content/themes/the-scenery/sidebar.php b/wp-content/themes/the-scenery/sidebar.php new file mode 100644 index 0000000000000000000000000000000000000000..22cc755a7c53d7e27512a372a4d9385e543faa96 --- /dev/null +++ b/wp-content/themes/the-scenery/sidebar.php @@ -0,0 +1,151 @@ + +<!-- begin sidebar --> +<ul id="sidebar1"> +<?php /* Widgetized sidebar, if you have the plugin installed. */ +if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> + +<?php wp_list_categories('show_count=1&title_li=<h3>' . __('Categories') . '</h3>'); ?> + +<li id="archives"><h3><?php _e('Archives')?></h3> + <ul> + <?php wp_get_archives('type=monthly'); ?> + </ul> +</li> + +<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> + <?php wp_list_bookmarks('title_before=<h3>&title_after=</h3>'); ?> + + <li id="meta"><h3>Meta</h3> + <ul> + <?php wp_register(); ?> + <li><?php wp_loginout(); ?></li> + <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li> + <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> + <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li> + <?php wp_meta(); ?> + </ul> + </li> +<?php } ?> + + <script type="text/javascript"> + jQuery('#sidebar1>li').each(function(){ + jQuery(this).addClass('widget_' + jQuery(this).attr('id') + ' ' + 'widget_' + this.className + ' ' + 'widget'); + }); + </script> +<?php endif; ?> +</ul> +<script type="text/javascript"> +if(!jQuery.browser.msie || jQuery.browser.version >= 7){ + function trimSlashes(s){ + while(s[s.length-1] == '/')s=s.substring(0,s.length-1); + return s; + } + var currentUrl = trimSlashes(window.location.href); + jQuery("#archives a[href]").each(function(){ + if(trimSlashes(jQuery(this).attr("href")) == currentUrl) + jQuery(this).parent("li").addClass("current-archive"); + }); + jQuery("#calendar a[href]").each(function(){ + if(trimSlashes(jQuery(this).attr("href")) == currentUrl) + jQuery(this).parent("td").addClass("current-archive"); + }); +} +</script> +<script type="text/javascript"> +var pageType = '_unknown'; +<?php +$page_types = array("category", "search", "author", "tag", "day", "month", "archive", "page"); +$page_classes = array( + "archive" => "widget_archive", + "search" => "widget_search", + "author" => "widget_authors", + "tag" => "widget_tag_cloud", + "category" => "widget_categories", + "page" => "widget_pages", + "day" => "widget_calendar", + "month" => "widget_calendar|widget_archive" +); +foreach($page_types as $page_type) + if(function_exists("is_$page_type") && call_user_func("is_$page_type")):?> + pageType = "<?php echo $page_classes[$page_type];?>"; +<?php + break; + endif; +?> +// jQuery.animate runs very slow on IE, we use jQuery.css as a replacement +jQuery.prototype.slidebarAnimate = jQuery.browser.msie ? jQuery.prototype.css : jQuery.prototype.animate; +var hideFunction = function(){ + jQuery(">*:not(h3:first)", this).stop().slidebarAnimate({"opacity": 0}); + jQuery(this).stop().slidebarAnimate({"opacity": 0.4}).removeClass("widget-hover"); +}; +var faseHideFunction = function(){ + jQuery(">*:not(h3:first)", this).css("opacity", 0); + jQuery(this).css("opacity", 0.4).removeClass("widget-hover"); +}; +var showFunction = function(){ + jQuery(">*:not(h3:first)", this).stop().slidebarAnimate({"opacity": 1}); + jQuery(this).stop().slidebarAnimate({"opacity": 0.6}).addClass("widget-hover"); +}; +var initialShowFunction = function(){ + jQuery(">*:not(h3:first)", this).css("opacity", 1); + jQuery(this).css("opacity", 0.6).addClass("widget-hover"); +}; +var jqWidgets = jQuery("#sidebar1>.widget"); +var i=jqWidgets.length; +if(!jQuery.browser.msie || jQuery.browser.version >= 7) + jqWidgets.each(function(){ + if(!jQuery(this).attr("class").match("(" + pageType + ")")){ + if(fromWordpress) + faseHideFunction.apply(this); + else{ + var me=this; + setTimeout(function(){ + hideFunction.apply(me); + }, 200 * (i--)); + } + jQuery(this).hover(showFunction, hideFunction); + jQuery("a,input,button",this).focus(function(){ + showFunction.apply(jQuery(this).parents(".widget")[0]); + }).blur(function(){ + hideFunction.apply(jQuery(this).parents(".widget")[0]); + }); + }else + initialShowFunction.apply(this); + }); +</script> + + +<script type="text/javascript"> +var removeHandle4IE = undefined; +var addHandle4IE = undefined; +if(!jQuery.browser.msie || jQuery.browser.version >= 7) + jQuery("#sidebar1 ul li").each(function(){ + var me = this; + if(jQuery("a", this).length == 1 && jQuery("a", this).attr("href") && !jQuery("a", this).attr("onclick")) + jQuery(this).addClass("li-with-link").click(function(e){ + if((e.target || e.srcElement) != me) return ; + window.location.href = jQuery("a", this).attr("href"); + }).mouseover(function(e){ + if(jQuery.browser.msie && !addHandle4IE){ + addHandle4IE = setTimeout(function(){ + if(!jQuery(me).hasClass("li-hover-4ie")) + jQuery(me).addClass("li-hover-4ie"); + addHandle4IE = undefined; + }, 100); + removeHandle4IE = undefined; + } + window.status = jQuery("a", this).attr("href"); + }).mouseout(function(e){ + if(jQuery.browser.msie && !removeHandle4IE){ + removeHandle4IE = setTimeout(function(){ + if(jQuery(me).hasClass("li-hover-4ie")) + jQuery(me).removeClass("li-hover-4ie"); + removeHandle4IE = undefined; + }, 100); + addHandle4IE = undefined; + } + window.status = ''; + }); + }); +</script> +<!-- end sidebar --> diff --git a/wp-content/themes/the-scenery/style.css b/wp-content/themes/the-scenery/style.css new file mode 100644 index 0000000000000000000000000000000000000000..08d28a38cb864d879500bcd8c489f94611d28ee5 --- /dev/null +++ b/wp-content/themes/the-scenery/style.css @@ -0,0 +1,823 @@ +/* +Theme Name: The Scenery +Theme URI: http://leen.name/the-scenery-wp-theme +Description: A slightly different dark theme with some animation effects. You can replace the big-background-image to any pictures you like, and config how to display the background image under the Appearance(Design) page of admin console. Theme by <a href="http://leen.name/" target="_blank">leen.name</a>. +Version: 0.93 +Author: leen.name +Tags: theme-options, flexible-width, two-columns, black + +*/ +#background{ + position: fixed; + _position: absolute; + _top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop : document.body.scrollTop); + _left:expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollLeft : document.body.scrollLeft); + z-index: 1; + width: 100%; + height: 100%; +} +#non-background{ + position: absolute; + z-index: 2; + width: 100%; + min-width: 776px; +}body{ + font-family: Tahoma, Arial, 'Bitstream Vera Sans', sans; + margin: 0; + padding: 0; + background-color: #000; + color: #fff; + font-size: 10pt; + line-height: 110%; +} +html:lang(zh) body{ + font-family: '微软雅黑', '新宋体', '宋体', Tahoma, Arial, 'Bitstream Vera Sans', sans; + font-size: 10pt; +} +a, +a:visited, +a:link, +a:active{ + color: #fee; + +} +a:hover{ + color: #6f6868; +} +img{ + padding: 0px; + margin: 0px; + border: none; +} + +p{ + margin-top: 10px; + margin-bottom: 10px; +}.dropdown-menu ul { + line-height:1.5em; + list-style-position:outside; + list-style-type:none; + margin:0pt; + padding:0pt; + position:relative; +} +.dropdown-menu a { + border: none; + color:#eee; + font-weight: bold; + display:block; + padding: 0.5em 1em 0.4em 1em; + text-decoration:none; +} +.dropdown-menu ul a{ + _display: inline; +} +.dropdown-menu ul ul a{ + _display: block; +} +/*.current_page_ancestor*/ +.dropdown-menu a { + background:#777; + color:#eee; +} +.dropdown-menu .current_page_ancestor a{ + background:#bbb; + color:#333; +} +.dropdown-menu .current_page_ancestor .page_item a{ + background:#777; + color:#eee; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor a{ + background:#bbb; + color:#333; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor .page_item a{ + background:#777; + color:#eee; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor a{ + background:#bbb; + color:#333; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .page_item a{ + background:#777; + color:#eee; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor a{ + background:#bbb; + color:#333; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .page_item a{ + background:#777; + color:#eee; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor a{ + background:#bbb; + color:#333; +} +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .page_item a{ + background:#777; + color:#eee; +} +.dropdown-menu .current_page_item a, +.dropdown-menu .current_page_ancestor .current_page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_item a{ + background:#eee; + color:#333; +} +.dropdown-menu .current_page_item .page_item a, +.dropdown-menu .current_page_ancestor .current_page_item .page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_item .page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_item .page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_item .page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_item .page_item a, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_item .page_item a{ + background:#777; + color:#eee; +} +.dropdown-menu a:hover, +.dropdown-menu .current_page_item .page_item a:hover, +.dropdown-menu .current_page_ancestor .page_item a:hover, +.dropdown-menu .current_page_ancestor .current_page_ancestor a:hover, +.dropdown-menu .current_page_ancestor .current_page_ancestor .page_item a:hover, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .page_item a:hover, +.dropdown-menu .current_page_ancestor .current_page_ancestor .current_page_ancestor .current_page_ancestor .page_item a:hover{ +background:#FFFFFF; +color:#333333; +opacity: 1;filter:alpha(opacity=100);zoom:1; +} +.dropdown-menu ul li { +float:left; +position:relative; +border-left: 1px solid black; +} +.dropdown-menu ul li:first-child { +border-left: none; +} +.dropdown-menu ul ul li, +.dropdown-menu ul ul li:first-child, +.dropdown-menu ul ul li:last-child{ +border-left: 1px solid black; +} + +.dropdown-menu ul ul { +position:absolute; +top:2.39em; +left: -1px; +width:12em; +} +.dropdown-menu ul li ul a { +float:left; +height:auto; +width:12em; +} +.dropdown-menu ul ul ul { +top:auto; +} +.dropdown-menu ul li ul ul { +left:12em; +margin:0px 0pt 0pt 1.9em; +} +.dropdown-menu ul ul{ + z-index: 1000; +} +.dropdown-menu ul ul ul{ + z-index: 1001; +} +.dropdown-menu ul ul ul ul{ + z-index: 1002; +} +.dropdown-menu ul ul ul ul ul{ + z-index: 1003; +} +.dropdown-menu ul ul ul ul ul ul{ + z-index: 1004; +} +.dropdown-menu ul ul ul ul ul ul ul{ + z-index: 1005; +} +.dropdown-menu ul ul, +.dropdown-menu ul li:hover ul ul, +.dropdown-menu ul li:hover ul ul ul, +.dropdown-menu ul li:hover ul ul ul ul, +.dropdown-menu ul li:hover ul ul ul ul ul{ +display:none; +} +.dropdown-menu ul li:hover ul, +.dropdown-menu ul li li:hover ul, +.dropdown-menu ul li li li:hover ul, +.dropdown-menu ul li li li li:hover ul, +.dropdown-menu ul li li li li li:hover ul { +display:block; +}#header{ + margin: 0px 0 0 0; + float: right; + text-align: right; + position: relative; +} +/* pages */ + +#search-form{ + float: right; + height: 2.4em; + vertical-align: middle; +} + + + +#header-title, +#header-title-shadow{ + font-family: 'Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif; + font-size: 26pt; + font-size-adjust:none; + font-variant:normal; + font-weight: bold; + line-height:normal; + margin: 2px 4px 5px 0; +} +#header-title a{ + color: black; +} +#header-title a, +#header-title-shadow a{ + text-decoration: none; +} +#header-title-shadow{ + position: absolute; + top: -2px; + right: 2px; + z-index: 2; +} +#header-title-shadow a{ + color: #eee; +} +#header-description{ + color: #eee; + font-size: 10.5pt; + letter-spacing: 0; + font-family:Tahoma,Verdana,Arial, 'Bitstream Vera Sans', Sans; + margin: 0 3px; +} +#body{ + position: relative; + margin: 0; + padding: 0; +} +#body-close{ + font-size: 0px; + height: 20pt; + clear: both; +} +#content{ + float: left; + margin: 30pt 0 0 0; + _margin: 0;/*damn IE6*/ + width: 55%; + min-width: 540px; + padding: 0; + text-align: left; + vertical-align: top; + display: static; + overflow: hidden; +} +.date-container{ + float: left; + height: 47px; +} +.date{ + background: transparent url(images/date-background.png) bottom right no-repeat; + padding: 2px 10px 6px 2px; + width: 25px; + height: 39px; + text-align: center; +} + + +.date .day{ + font-family:Tahoma, Arial, 'Bitstream Vera Sans', sans; + font-weight: bold; + font-size: 21px; + margin: 4px 4px 2px 0; + *margin-top: 0px; +} +.date .month, .date .year{ + font-family:'Lucida Grande','Lucida Sans Unicode',Verdana,sans-serif; + font-size: 9px; + line-height: 9px; +} +/* vertical-align-center */ +.date-container{ + display: table; +} +.date{ + vertical-align: middle; + display: table-cell; +} +.date .year{ + margin-bottom: -5px; +} +.date .month{ + margin-top: 5px; +} + + +.post{ + margin: 0 0 15px 40pt; +} +#postpager{ + position: relative; + margin: 0 0 15px 40pt; +} +#postpager .content{ + padding: 5px; +} +#postpager .top, #postpager .bottom{ + position: absolute; + left: 0px; + z-index: -1; + width: 100%; + background: transparent url(images/conner-%23000-10px-o70.png); +} +#postpager .top{ + top: 0px; + height: 10px; + background-position: left top; +} +#postpager .bottom{ + bottom: 0px; + top: 10px; + background-position: left bottom; +} + +#postpager a{ + padding-left: 5px; + line-height: 125%; + margin: 0 5px 0 0; +} + + + + +#otherposts{ + position: relative; + _position: static; +} +#previouspost{ + position: absolute; + _position: static; + _float: left; + _margin-top: 1em; + top: 0; + left: 0; +} +#nextpost{ + text-align: right; + float: right; + position: absolute; + _position: static; + top: 0; + right: 0; +} +.post .meta, +.post .meta a, +.post .meta a:link, +.post .meta a:visited, +.post .meta a:active{ + color: #000; +} +.post .meta{ + font-family:'Lucida Grande','Lucida Sans Unicode',Verdana,sans-serif; + background: transparent url(images/post-title-spliter.png) left top repeat-y; + padding: 1px 0 1px 8px; +} +.post .meta li, +.post .meta a{ + display: inline; + list-style: none; +} +.post .title{ + background: transparent url(images/conner-%23000-10px-o80.png) left top no-repeat; + margin: 0; + line-height: 120%; + padding: 2px 0 2px 7px; + font-family: 'Cambria Bold','Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif; + font-size-adjust:none; + font-variant:normal; + font-weight: bold; + letter-spacing: 1px; + line-height:normal; +} +:lang(zh) .post .title{ + font-family: '微软雅黑', '黑体'; +} +.post .content{ + background: transparent url(images/background-%23000-1px-o80.png) left top; + padding: 1px 0 5px 7px; +} +.post .footer{ + background: transparent url(images/conner-%23000-10px-o80.png) left bottom no-repeat; + font-family:'Lucida Grande','Lucida Sans Unicode',Verdana,sans-serif; + text-align: right; + color: #aaa; + padding: 0 5px 8px 5px; +} +.post .content a img{ + padding: 0px; + margin: 2px; + border: 3px double #fff; +} +.post .content pre{ + overflow: auto; + max-width: 100%; +} +.post .content h1, +.post .content h2, +.post .content h3, +.post .content h4, +.post .content h5 +{ + line-height: 100%; +}#comments{ +} +#comments .rss{ + text-align: center; +} +#comment-title{ + padding: 10px; + margin: 0 0 0 40pt; + line-height: 150%; + background-color: #000; + background: transparent url(images/conner-%23000-10px-o70.png) left top no-repeat; + position: relative; + _position: ;/*damn IE6*/ + border-bottom: 1px solid #555; +} +#comment-rss{ + position: absolute; + right: 10px; + top: 10px; + text-align: right; +} +#comment-list{ + padding: 0; + margin: 0; +} +#comment-form{ + clear: both; + border-top: 1px solid #000; + margin: 0 0 0 40pt; +} +#comment-form-body{ + padding: 2px 0 0 10px; + margin: 0; + background: transparent url(images/background-%23000-1px-o70.png) left top; +} +#comment-form-footer{ + height: 10px; + background: transparent url(images/conner-%23000-10px-o70.png) left bottom no-repeat; +} +#comment-form p{ + margin: 0; +} +#comment-form h2{ + line-height: 150%; +} +.comment-container{ + padding: 0; + margin: 0 0 0 40pt; + position: relative; + clear: both; +} +#comments .comment{ /*odd*/ + padding: 2px 10px 3px 10px; + margin: 0; + vertical-align: middle; + font-size: 20pt; + z-index: 2; + color: #fff; + background: transparent url(images/background-%23000-1px-o70.png) left top; + border-top: 1px solid #222; + border-bottom: 1px solid #555; + *float: left; /*for the famous IE browser*/ + *right: 0; /*for the famous IE browser*/ +} +#comments .comment-number{/*odd*/ + color: #eee; + position: absolute; + padding: 12px 0 10px 3px; + margin: 0; + line-height: 100%; + width: 30px; + height: 23px; + left: -30.5px; + z-index: 0; + text-align: center; + font-weight: bold; + font-size: 18px; + background: transparent url(images/item-number-odd.png) left bottom no-repeat; +} + +#comments .comment-even .comment{ + border-top: 1px solid #000; + background: transparent url(images/background-%23000-1px-o80.png) left top; +} + +#comments .comment-even .comment-number{ + color: #ccc; + background: transparent url(images/item-number-even.png) left bottom no-repeat; +} + +.comment .avatar{ + float: right; + margin: 5px 0 5px 5px; + _margin-top: 40px; /* for IE6 bug*/ + color: #fff; +} + +.comment .content{ + font-size: 10pt; + color: #fff; + +} +.comment .content p{ + margin: 0; +} +.comment .meta{ + text-align: right; + font-size: 9pt; + clear: both; +} +.comment .meta{ + color: #aaa; +} +.comment .meta a, +.comment .meta a:visited, +.comment .meta a:link, +.comment .meta a:active{ + color: #ccc; +} +.comment .meta a:hover{ + color: #999; +} + + + +#comments h2{ + margin: 0; +} +#comment{/*text box*/ + width: 96%; + _display: block; +}#sidebar1{ + float: right; + margin: 0; + padding: 5px 0 0 0; + list-style: none; + overflow-x: hidden; + clear: right; + _filter:alpha(opacity=60);zoom:1; +} + +#sidebar1 .widget{ + width: 200px; + margin: 0 -6px 10px 0; + *margin: 0 0 10px 0; + padding: 0 0 5px 0; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + border-radius: 6px; + _background-color: #000; +} +.widget-hover{ + background-color: #000; +} +#sidebar1 .widget h3{ + overflow: hidden; + padding: 3px 9px 3px 7px; + margin: 0 0px 3px; + color: #ccc; + font-weight: bold; + font-size: 15pt; + line-height: 16pt; + background-color: #000; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + border-radius: 6px; + font-family: 'Cambria Bold','Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif; +} +:lang(zh) #sidebar1 .widget h3{ + font-family: '微软雅黑', '黑体'; +} +#sidebar1 .widget select{ + margin: 0 0 0 6px; +} +#sidebar1 .widget a{ + margin: 0 0 0 6px; +} +#sidebar1 .widget div{ + margin: 0 0 0 6px; +} +#sidebar1 .widget ul{ + margin: 3px 9px 0 3px; + list-style: none; + padding: 0 5px 0 5px; + position: relative; + _position: ; /*damn IE6*/ +} +#sidebar1 ul li{ + display: block; + line-height: 120%; + padding: 1px; + margin: 0px -10px 0px 0px; +} +#sidebar1 ul li:hover { + background-color: #ccc; + color: #000; +} +#sidebar1 ul li:hover a, +#sidebar1 ul li:hover a:visited, +#sidebar1 ul li:hover a:link, +#sidebar1 ul li:hover a:hover{ + color: #000; +} +.li-with-link{ + cursor: pointer; + *cursor: hand; +} +#wp-calendar{ + width: 100%; + padding: 5px 10px 0 0; + *padding: 0;/*damn IE ALL*/ + *border-right: 10px solid black;/*damn IE ALL*/ + _border-right: 10px none;/*damn IE ALL*/ +} +#wp-calendar td{ + text-align: center; +} +#wp-calendar #next{ + text-align: right; +} +#wp-calendar #prev{ + text-align: left; +} + +.current-cat{ + background-color: #fff; + _background-color: ;/*damn IE6*/ +} + +.current-cat, +.current-cat a, +.current-cat a:active, +.current-cat a:link, +.current-cat a:hover{ + color: #000; + text-decoration: none; + _color: ;/*damn IE6*/ + _text-decoration: ;/*damn IE6*/ +} + + + +.current-archive{ + background-color: #fff; + _background-color: ;/*damn IE6*/ +} + +.current-archive, +.current-archive a, +.current-archive a:active, +.current-archive a:link, +.current-archive a:hover{ + color: #000; + text-decoration: none; + _color: ;/*damn IE6*/ + _text-decoration: ;/*damn IE6*/ +}#footer{ + width: 100%; +} +#footer-body{ + padding: 1px 45% 2px 0; + text-align: right; + vertical-align: center; + background: transparent url(images/background-%23000-1px-o70.png) left top; +} +#footer-shadow{ + font-size: 0px; + height: 2px; + background: #000; + opacity: 0.5;filter:alpha(opacity=50);zoom:1; +} + +#footer-menu{ + position: absolute; + top: 0; + left: 40pt; + z-index: 100; + +} +#footer-menu-leftconner, +#footer-menu-rightconner{ + padding:0.5em 0 0.4em 0; + background-repeat: no-repeat; + width: 10px; +} + +.current_not_selecting{ + opacity: 0.7; filter:alpha(opacity=70);zoom:1; +} +.dropdown-menu li a{ + background: transparent url(images/background-%23777-1px-o80.png); +} +#footer-menu-leftconner, +#footer-menu-rightconner{ + background: url(images/conner-%23444-10px-o70.png); + _background: transparent none; +} +#footer-menu-leftconner{ + background-position: 0% 100% ; + border: 0 none; + _width: 3px; + _font-size: 0; +} +#footer-menu-rightconner{ + background-position: 100% 100% ; +} + +#footer-searchform-left{ + width: 55%; + min-width: 540px; + position: absolute; + top: 0; +} +#footer-searchform{ + float: right; + z-index: 999; + margin: 0; + padding: 0; +} +#footer-searchform-conent, +#footer-searchform-leftconner{ + float: left; + height: 23pt; + padding-top: 2pt; + margin: 0; +} +#footer-searchform-conent{ + background: transparent url(images/background-%23444-1px-o70.png); + padding-right: 2pt; + vertical-align: middle; +} +#footer-searchform-leftconner{ + background: transparent url(images/conner-%23444-10px-o70.png) no-repeat 0% 100%; + width: 10px; +}.aligncenter, +div.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; +} + +.alignleft { + float: left; +} + +.alignright { + float: right; +} + +.wp-caption { + border: 1px solid #ddd; + text-align: center; + background-color: #f3f3f3; + padding-top: 4px; + margin: 10px; + /* optional rounded corners for browsers that support it */ + -moz-border-radius: 3px; + -khtml-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.wp-caption img { + margin: 0; + padding: 0; + border: 0 none; +} + +.wp-caption p.wp-caption-text { + font-size: 11px; + line-height: 17px; + padding: 0 4px 5px; + margin: 0; +}.shashin_caption{ + color: black; +} + +.highslide-caption{ + color: black; +} \ No newline at end of file diff --git a/wp-content/themes/the-scenery/theme-options.php b/wp-content/themes/the-scenery/theme-options.php new file mode 100644 index 0000000000000000000000000000000000000000..9cd9d54040d718d22b8b289d2794d0a8608ebfb7 --- /dev/null +++ b/wp-content/themes/the-scenery/theme-options.php @@ -0,0 +1,116 @@ +<?php + +// Hook for adding admin menus +add_action('admin_menu', 'the_scenery_add_admin_page'); + +// action function for above hook +function the_scenery_add_admin_page() { + define('FORM_SUBMIT', $_SERVER['REQUEST_METHOD'] == 'POST'); + function show_form(){ + $settings = thescenery_getsettings(); + function the_scenery_yesno_radio_buttons($settings, $name, $default = 'false'){ + $value = $settings[$name]; + if(!is_string($value)) + $value = $default; + ?> + <input type="radio" id="<?php echo $name?>_true" name="<?php echo $name?>" value="true" <?php echo $settings[$name] === "true" ? "checked" : "" ?> /> + <label for="<?php echo $name?>_true"><b>Yes</b></label> + <br /> + <input type="radio" id="<?php echo $name?>_false" name="<?php echo $name?>" value="false" <?php echo $settings[$name] === "true" ? "" : "checked" ?> /> + <label for="<?php echo $name?>_false"><b>No</b></label> + <br /> + <?php + } + ?> + <div class="wrap"> + <?php if(FORM_SUBMIT){?><div class="updated fade" id="message"><p><strong>Settings saved.</strong></p></div><?php }?> + <form method="post"> + <h2>"The Scenery" theme options</h2> + <h3>Component visibility:</h3> + + <table class="form-table"> + <tr valign="top"> + <th scope="row">Page list</th> + <td> + <?php the_scenery_yesno_radio_buttons($settings, "pageList", 'true');?> + </td> + </tr> + <tr valign="top"> + <th scope="row">Search box</th> + <td> + <?php the_scenery_yesno_radio_buttons($settings, "searchBox", 'true');?> + </td> + </tr> + </table> + + <h3>Background image settings:</h3> + <table class="form-table"> + <tr valign="top"> + <th scope="row">Zoom</th> + <td> + <input type="radio" id="backgroundType_original" name="backgroundType" value="original" <?php echo $settings['backgroundType'] == "original" ? "checked" : "" ?> /> + <label for="backgroundType_original"><b>No zoom</b></label> + <br /> + <input type="radio" id="backgroundType_keepratio" name="backgroundType" value="keepratio" <?php echo $settings['backgroundType'] == "keepratio" ? "checked" : "" ?> /> + <label for="backgroundType_keepratio"><b>Keep Ratio</b></label> + <br /> + <input type="radio" id="backgroundType_stretch" name="backgroundType" value="stretch" <?php echo $settings['backgroundType'] == "stretch" ? "checked" : "" ?> /> + <label for="backgroundType_stretch"><b>Stretch</b></label> + <br /> + </td> + </tr> + <!-- + <tr valign="top" id="blur_options"> + <th scope="row">Blur</th> + <td> + <?php the_scenery_yesno_radio_buttons($settings, "blur");?> + </td> + </tr> + --> + <tr valign="top" id="alignment_options"> + <th scope="row">Alignment</th> + <td> + <select name="backgroundVerticalAlign"> + <option value="top" <?php echo $settings['backgroundVerticalAlign'] == "top" ? "selected" : "" ?>>Top</option> + <option value="center" <?php echo $settings['backgroundVerticalAlign'] == "center" ? "selected" : "" ?>>Center</option> + <option value="bottom" <?php echo $settings['backgroundVerticalAlign'] == "bottom" ? "selected" : "" ?>>Bottom</option> + </select> + <select name="backgroundHorizontalAlign"> + <option value="left" <?php echo $settings['backgroundHorizontalAlign'] == "left" ? "selected" : "" ?>>Left</option> + <option value="center" <?php echo $settings['backgroundHorizontalAlign'] == "center" ? "selected" : "" ?>>Center</option> + <option value="right" <?php echo $settings['backgroundHorizontalAlign'] == "right" ? "selected" : "" ?>>Right</option> + </select> + </td> + </tr> + </table> + <p class="submit"> + <input type="submit" value="Save Changes" name="Submit" /> + </p> + + </form> + <script type="text/javascript"> + function showHideOptions(o){ + var settings = {}; + jQuery(document) + .find("input[@checked], input[@type='text'], input[@type='hidden'], input[@type='password'], input[@type='submit'], option[@selected], textarea") + .filter(":enabled") + .each(function() { + settings[ this.name || this.id || this.parentNode.name || this.parentNode.id ] = this.value; + }); + jQuery("#blur_options *").css("visibility", settings.backgroundType == "original" ? "hidden" : "visible"); + jQuery("#alignment_options *").css("visibility", settings.backgroundType == "stretch" ? "hidden" : "visible"); + } + jQuery(showHideOptions); + jQuery("input, select").focus(showHideOptions).blur(showHideOptions).click(showHideOptions);; + </script> + </div> + <?php + } + function the_scenery_show_options(){ + if(FORM_SUBMIT) + thescenery_updatesettings($_POST); + show_form(); + } + add_theme_page('"The Scenery" theme options', '"The Scenery" theme options', 8, 'the_scenery_show_options', 'the_scenery_show_options'); +} +?> \ No newline at end of file