diff --git a/wp-content/themes/tanzaku/comments.php b/wp-content/themes/tanzaku/comments.php new file mode 100644 index 0000000000000000000000000000000000000000..e67ecabc8573639b804fb2564ea6a613abbe493d --- /dev/null +++ b/wp-content/themes/tanzaku/comments.php @@ -0,0 +1,104 @@ +<?php +// Do not delete these lines + if (isset($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) + die ('Please do not load this page directly. Thanks!'); +?> + +<?php if ( post_password_required() ) : ?> + +<div class="single-item"> + <div class="comment-content"> + <p><?php _e('Enter your password to view comments.'); ?></p> + </div> +</div><!-- /single-item --> + +<?php return; endif; ?> + +<div class="single-item"> + + <h2 class="comment-title" id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?> + <?php if ( comments_open() ) : ?> + <a href="#respond" title="<?php _e("Leave a comment"); ?>">»</a> + <?php endif; ?> + </h2> + <div class="comment-list"> + + <?php if ( have_comments() ) : ?> + + <div class="navigation"> + <?php previous_comments_link() ?> <?php next_comments_link() ?> + </div> + <ol> + <?php wp_list_comments();?> + </ol> + <div class="navigation"> + <?php previous_comments_link() ?> <?php next_comments_link() ?> + </div> + + <?php endif; ?> + + <p class="comment-meta"> + <?php if ( comments_open() ) : ?> + <?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?> / + <?php endif; ?> + <?php if ( pings_open() ) : ?> + <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a> + <?php endif; ?> + </p> + </div><!-- /comment-list --> + +</div><!-- /single-item --> + +<div class="single-item" id="respond"> + +<?php if ( comments_open() ) : ?> + + <h2 class="comment-title"><?php comment_form_title(); ?></h2> + <div id="cancel-comment-reply"> + <?php cancel_comment_reply_link() ?> + </div> + + <div class="comment-form"> + + <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?> + <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() )); ?></p> + <?php else : ?> + + <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> + + <?php if ( is_user_logged_in() ) : ?> + <p> + <?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> + <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account'); ?>"><?php _e('Log out »'); ?></a> + </p> + <?php else : ?> + <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> + <label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e("(required)"); ?></small></label></p> + + <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> + <label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e("(required)"); ?></small></label></p> + + <p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" /> + <label for="url"><small><?php _e('Website'); ?></small></label></p> + <?php endif; ?> + + <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>'), allowed_tags()); ?></small></p>--> + <p><textarea name="comment" id="comment" rows="10" tabindex="4"></textarea></p> + <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" /> + <?php comment_id_fields(); ?></p> + <?php do_action('comment_form', $post->ID); ?> + </form> + + <?php endif; ?> + + </div><!-- /comment-form --> + +<?php else : /* Comments are closed */ ?> + + <div class="comment-content"> + <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> + </div> + +<?php endif; ?> + +</div><!-- /single-item --> diff --git a/wp-content/themes/tanzaku/footer.php b/wp-content/themes/tanzaku/footer.php new file mode 100644 index 0000000000000000000000000000000000000000..dd2743c0a827570a9e8f5fff83041c9a1f8ac311 --- /dev/null +++ b/wp-content/themes/tanzaku/footer.php @@ -0,0 +1,16 @@ +<div id="bottom-container"> + <div id="footer-wrapper"> + <div id="footer"> + <p> + © <?php echo date('Y'); ?> <?php bloginfo('name'); ?> + <?php wp_register(' | ',''); ?> | <?php wp_loginout(); ?><br/> + Powered by <a href="http://wordpress.org/">WordPress</a> + with "tanzaku" WordPress theme by <a href="http://www.tripleships.com/">TRIPLESHIPS.Inc</a> + </p> + </div> + </div> +</div><!-- /bottom-container --> + +<?php wp_footer(); ?> +</body> +</html> \ No newline at end of file diff --git a/wp-content/themes/tanzaku/functions.php b/wp-content/themes/tanzaku/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..eb2403537ea7fa074082649ae9119f3dd7035773 --- /dev/null +++ b/wp-content/themes/tanzaku/functions.php @@ -0,0 +1,215 @@ +<?php + +if ( function_exists('register_sidebar') ) { + register_sidebars(2); +} + + +/* + * return content which is arranged top thumbnail link to img tag. + */ +function adjust_single_image($content) { + $matches1 = $matches2 = $matches3 = array(); + + // search *first* img/object tag + preg_match('/<(img|object)(?:[^>]+?)>/', $content, $matches1); + + if ($matches1[1] != 'img') { + return $content; // do nothing. + } + + // retrieve first img tag + preg_match('/<img(?:[^>]+?)>/', $content, $matches2); + $target = $matches2[0]; + + // check image link and arrange it. + $chk_imglink = '/<a(?:.+?)href="(.+?\.(?:jpe?g|png|gif))"(?:[^>]*?)>'. preg_quote($target, '/') .'<\/a>/'; + $content = preg_replace($chk_imglink, '<img src="$1" />', $content); + + return $content; +} + + +/* + * return class name and image tag (resized w/h attributes) to fit a grid. + */ +function adjust_grid_image($content, $col_w, $gap_w, $max_col, $flg_img_forcelink, $flg_obj_fit) { + global $post; + + $col_class_base = 'x'; + $col_class = $col_class_base . '1'; // default column-width class + $arr_w = array(); + for ($i=0; $i<$max_col; $i++) { + $arr_w[] = ($col_w * ($i+1)) + ($gap_w * $i); + } + + $grid_img = ''; + $w = $h = 0; + $matches1 = $matches2 = $matches3 = array(); + + // search *first* img/object tag + preg_match('/<(img|object)(?:[^>]+?)>/', $content, $matches1); + + if ($matches1[1] == 'img') { + preg_match('/<img(?:.+?)src="(.+?)"(?:[^>]+?)>/', $content, $matches2); + $img_url = ($matches2[1]) ? $matches2[1] : ''; + if ($img_url) { + // first, try to get attributes + $matches_w = $matches_h = array(); + preg_match('/width="([0-9]+)"/', $matches2[0], $matches_w); + preg_match('/height="([0-9]+)"/', $matches2[0], $matches_h); + if ($matches_w[1] and $matches_h[1]) { + $w = $matches_w[1]; + $h = $matches_h[1]; + } + else { + // ... or get original size info. + $upload_path = trim( get_option('upload_path') ); + $mark = substr(strrchr($upload_path, "/"), 1); // default mark is 'uploads' + $split_url = split($mark, $img_url); + if ($split_url[1] != null) { + $img_path = $upload_path . $split_url[1]; + list($w, $h) = @getimagesize($img_path); + } + } + } + + for ($i=0; $i<$max_col; $i++) { // set new width and col_class + if ( ($i >= $max_col - 1) or ($w < $arr_w[$i+1]) ) { + $nw = $arr_w[$i]; + $col_class = $col_class_base . ($i+1); + break; + } + } + $nh = (!$w or !$h) ? $nw : intval( ($h * $nw) / $w ); // set new height + + $grid_img = $matches2[0]; + // add width/height properties if nothing + $flg_no_w = (strpos($grid_img_edit, 'width=') === false); + $flg_no_h = (strpos($grid_img_edit, 'height=') === false); + if ($flg_no_w or $flg_no_h) { + $grid_img_close = (substr($grid_img, -2) == '/>') ? '/>' : '>'; + $grid_img_edit = substr( $grid_img, 0, -(strlen($grid_img_close)) ); + $grid_img_edit .= ($flg_no_w) ? ' width="0"' : ''; + $grid_img_edit .= ($flg_no_h) ? ' height="0"' : ''; + $grid_img = $grid_img_edit . $grid_img_close; + } + // replace new width/height properties + $grid_img = preg_replace('/width="(\d+)"/', 'width="'. $nw .'"', $grid_img); + $grid_img = preg_replace('/height="(\d+)"/', 'height="'. $nh .'"', $grid_img); + + // check image link + //$chk_imglink = '/(<a(?:.+?)rel="(?:lightbox[^"]*?)"(?:[^>]*?)>)'. preg_quote($matches2[0], '/') .'/'; + $chk_imglink = '/(<a(?:.+?)href="(?:.+?\.(?:jpe?g|png|gif))"(?:[^>]*?)>)'. preg_quote($matches2[0], '/') .'/'; + if ($flg_img_forcelink) { + $grid_img = '<a href="'. get_permalink() .'" title="' . esc_attr($post->post_title) . '">' . $grid_img . '</a>'; + } + else if ( preg_match($chk_imglink, $content, $matches3) ) { + $grid_img = $matches3[1] . $grid_img . '</a>'; + } + } + else if ($matches1[1] == 'object') { + preg_match('/<object(.+?)<\/object>/', $content, $matches2); + + $matches_w = $matches_h = array(); + preg_match('/width="([0-9]+)"/', $matches2[0], $matches_w); + preg_match('/height="([0-9]+)"/', $matches2[0], $matches_h); + if ($matches_w[1] and $matches_h[1]) { + $w = $matches_w[1]; + $h = $matches_h[1]; + } + else { + $flg_obj_fit = 'none'; + } + + //set col_class (and new width if in '*-fit' condition) + if ($flg_obj_fit == 'small-fit') { + for ($i=0; $i<$max_col; $i++) { + if ($i >= $max_col -1) { + $nw = $arr_w[$i]; + $col_class = $col_class_base . ($i+1); + break; + } + else if ( $w < $arr_w[$i+1] ) { + $nw = $arr_w[$i]; + $col_class = $col_class_base . ($i+1); + break; + } + } + } + else if ($flg_obj_fit == 'large-fit') { + for ($i=$max_col -1; $i>=0; $i--) { + if ( $w > $arr_w[$i] ) { + if ($i >= $max_col -1) { + $nw = $arr_w[$i]; + $col_class = $col_class_base . ($i+1); + } + else { + $nw = $arr_w[$i+1]; + $col_class = $col_class_base . ($i+2); + } + break; + } + if ($i == 0) { + $nw = $arr_w[$i]; + $col_class = $col_class_base . ($i+1); + } + } + } + else { + for ($i=0; $i<$max_col; $i++) { + if ($i >= $max_col -1) { + $col_class = $col_class_base . ($i+1); + break; + } + else if ( $w < $arr_w[$i] ) { + $col_class = $col_class_base . ($i+1); + break; + } + } + } + $nh = (!$w or !$h) ? $nw : intval( ($h * $nw) / $w ); // set new height + + $grid_img = $matches2[0]; + if ($flg_obj_fit == 'small-fit' or $flg_obj_fit == 'large-fit') { + // replace new width/height properties + $grid_img = preg_replace('/width="(\d+)"/', 'width="'. $nw .'"', $grid_img); + $grid_img = preg_replace('/height="(\d+)"/', 'height="'. $nh .'"', $grid_img); + } + } + + return array($col_class, $grid_img); +} + + +/* + * echo paginate links using internal function "paginate_links()". + * + * see: http://www.yuriko.net/arc/2008/07/26/navigation/ + */ +function paginate_links2($is_top_single=false) { + global $wp_rewrite; + global $wp_query; + global $paged; + $paginate_base = ($is_top_single) ? trailingslashit( get_option('siteurl') ) : get_pagenum_link(1); /* mod */ + if (strpos($paginate_base, '?') || ! $wp_rewrite->using_permalinks()) { + $paginate_format = ''; + $paginate_base = add_query_arg('paged', '%#%', $paginate_base); /* mod */ + } else { + $paginate_format = (substr($paginate_base, -1 ,1) == '/' ? '' : '/') . + user_trailingslashit('page/%#%/', 'paged'); + $paginate_base .= '%_%'; + } + echo paginate_links( array( + 'base' => $paginate_base, + 'format' => $paginate_format, + 'total' => $wp_query->max_num_pages, + 'mid_size' => 5, + 'current' => ($paged ? $paged : 1), + 'prev_text' => '«', + 'next_text' => '»', + )); +} + + +?> \ No newline at end of file diff --git a/wp-content/themes/tanzaku/header.php b/wp-content/themes/tanzaku/header.php new file mode 100644 index 0000000000000000000000000000000000000000..5558194ebd6ac6857018f6feca0a15038adfeadf --- /dev/null +++ b/wp-content/themes/tanzaku/header.php @@ -0,0 +1,88 @@ +<!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> +<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> +<meta http-equiv="Content-Style-Type" content="text/css" /> +<meta http-equiv="Content-Script-Type" content="text/javascript" /> +<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title> +<!--meta name="keywords" content="" /--> +<!--meta name="description" content="" /--> + +<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'); ?>" /> +<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> +<link rel="Shortcut Icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" type="image/x-icon" /> + +<?php +wp_enqueue_script('jquery'); +if (is_singular()) wp_enqueue_script('comment-reply'); +wp_head(); +?> + +<script src="<?php bloginfo('template_directory'); ?>/js/jquery.easing.1.3.js" type="text/javascript" charset="UTF-8"></script> +<script src="<?php bloginfo('template_directory'); ?>/js/jquery.vgrid.0.1.4-mod.js" type="text/javascript" charset="UTF-8"></script> +<script type="text/javascript"> +//<![CDATA[ + +function debug(text) { + ((window.console && console.log) || + (window.opera && opera.postError) || + window.alert).call(this, text); +} +jQuery.noConflict(); + +(function($){ + $(function(){ + + $('#header').css("visibility", "hidden"); + var setGrid = function () { + return $("#grid-wrapper").vgrid({ + easeing: "easeOutQuint", + time: 800, + delay: 60, + selRefGrid: "#grid-wrapper div.x1", + selFitWidth: ["#container", "#footer"], + gridDefWidth: 290 + 15 + 15 + 5, + forceAnim: <?php echo (is_singular()) ? 0 : 1; ?> + }); + }; + + setTimeout(setGrid, 300); + setTimeout(function() { + $('#header').hide().css("visibility", "visible").fadeIn(500); + }, 500); + + $(window).load(function(e){ + setTimeout(function(){ + // prevent flicker in grid area - see also style.css + $("#grid-wrapper").css("paddingTop", "0px"); +<?php if (is_singular()) : ?> + var anim_msec = $("#single-wrapper").height(); + if (anim_msec < 1000) anim_msec = 1000; + if (anim_msec > 3000) anim_msec = 3000; + $("#single-wrapper").css("paddingTop", "0px").hide().slideDown(anim_msec); +<?php endif; ?> + }, 1000); + }); + + }); // end of document ready +})(jQuery); // end of jQuery name space + +//]]> +</script> + +</head> + +<body <?php body_class();?>> + +<noscript><p class="caution aligncenter">Enable Javascript to browse this site, please.</p></noscript> + + +<div id="container"> + <div id="header"> + <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1> + <p><?php bloginfo('description'); ?></p> + </div> diff --git a/wp-content/themes/tanzaku/images/search-ico.gif b/wp-content/themes/tanzaku/images/search-ico.gif new file mode 100644 index 0000000000000000000000000000000000000000..6b0b1707b76c48cc16ffab5cd3980de1899b4a33 Binary files /dev/null and b/wp-content/themes/tanzaku/images/search-ico.gif differ diff --git a/wp-content/themes/tanzaku/index.php b/wp-content/themes/tanzaku/index.php new file mode 100644 index 0000000000000000000000000000000000000000..162b9dc10c0ec5e0e75a1796853353afe658a98b --- /dev/null +++ b/wp-content/themes/tanzaku/index.php @@ -0,0 +1,147 @@ +<?php get_header(); + + // [grid column setting] + $col_w = 290; // width of grid column + $gap_w = 35; // padding + margin-right (15+15+5) + $max_col = 2; // max column size (style div.x1 ~ xN) + + // * additional info * + // check also "style.css" and "header.php" if you change $col_w and $gap_w. + // - style.css: + // div.x1 ~ xN + // div.grid-item + // div.single-item + // ... and maybe #sidebar2 li.widget. + // - header.php: + // gridDefWidth in javascript code. + // + // if you want to show small images in main page always, set $max_col = 1. + + // [grid image link setting] + $flg_img_forcelink = true; // add/overwrite a link which links to a single post (permalink). + $flg_img_extract = false; // in single post page, extract thumbnail link to an original image. + $flg_obj_fit = 'large-fit'; // none | small-fit | large-fit ... how to fit size of object tag. + + // * additional info * + // if you use image popup utility (like Lightbox) on main index, set $flg_img_forcelink = false; +?> + +<?php if (is_singular()) : $is_top_single = true; /* wide column for single post */ ?> + + <div id="single-wrapper"> + +<?php if (have_posts()) : while (have_posts()) : the_post(); ?> + + <div <?php post_class('single-item'); ?> id="post-<?php the_ID(); ?>"> + <h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> + <div class="post-body"> + <?php + if ($flg_img_extract) { + $content = get_the_content(); + $content = apply_filters('the_content', $content); + $content = adjust_single_image($content); + echo $content; + } + else { + the_content(); + } + ?> + </div> + <?php wp_link_pages('before=<p class="pagination" id="post-pagination"><span class="prefix">' . __('Pages:') . '</span>'); ?> + <p class="post-meta"> + Published on <?php the_time( get_option('date_format') ); ?> <?php the_time(); ?>.<br /> + Filed under: <?php the_category(', ') ?> <?php the_tags('Tags: ', ', '); ?> + <?php edit_post_link(__("Edit This"), '(', ')'); ?> + </p> + </div> + +<?php comments_template(); ?> + +<?php endwhile; else : ?> + + <div class="single-item"> + <h2>Not Found</h2> + <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> + </div> + +<?php endif; ?> + + </div><!-- /single-wrapper --> + +<?php /* make a new query for grid items (in single page) */ + $new_query_arg = 'paged='.$paged; + + // use this code if you want filter items by category. + /* $arr_catID = array(); + foreach( get_the_category() as $cat) $arr_catID[] = $cat->cat_ID; + if ( count($arr_catID) ) $new_query_arg .= '&cat=' . join(',', $arr_catID); + */ + + query_posts($new_query_arg); +?> + +<?php endif; /* end of if is_singular() */ ?> + +<?php get_sidebar(); ?> + + <div id="grid-wrapper"> + +<?php if (have_posts()) : + if ( $is_top_single ) $GLOBALS['more'] = false; //important + while (have_posts()) : the_post(); ?> +<?php + $content = get_the_content('Details »'); + $content = apply_filters('the_content', $content); + list($col_class, $grid_img) = adjust_grid_image( + $content, + $col_w, + $gap_w, + $max_col, + $flg_img_forcelink, + $flg_obj_fit + ); +?> + <div <?php post_class('grid-item ' . $col_class); ?> id="post-<?php the_ID(); ?>"> + <h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> + <?php if ($grid_img) echo '<div class="grid-image">' . $grid_img . '</div>'; ?> + <div class="post-body"> +<?php + $content = preg_replace('/<img(?:[^>]+?)>/', '', $content); // remove img tags + $content = preg_replace('/<a([^>]+?)><\/a>/', '', $content); // remove empty a tags + $content = preg_replace('/<p([^>]*?)><\/p>/', '', $content); // remove empty p tags + $content = preg_replace('/<object(.+?)<\/object>/', '', $content); // remove object tags + echo $content; +?> + </div> + <p class="post-meta"> + Published on <?php the_time( get_option('date_format') ); ?> <?php the_time(); ?>.<br /> + Filed under: <?php the_category(', ') ?> <?php the_tags('Tags: ', ', '); ?> + <?php edit_post_link(__("Edit This"), '(', ')'); ?><br /> + <?php /*comments_popup_link();*/ ?> + </p> + </div> + +<?php endwhile; else : ?> + + <div class="grid-item x1"> + <h2>Not Found</h2> + <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> + </div> + +<?php endif; ?> + + </div><!-- /grid-wrapper --> + + <div class="pagination" id="grid-pagination"> + <?php paginate_links2($is_top_single); ?> + </div> + +<?php /* reset the query */ + wp_reset_query(); +?> + +<?php get_sidebar('2'); ?> + +</div><!-- /container --> + +<?php get_footer(); ?> diff --git a/wp-content/themes/tanzaku/js/jquery.easing.1.3.js b/wp-content/themes/tanzaku/js/jquery.easing.1.3.js new file mode 100644 index 0000000000000000000000000000000000000000..ef7432107950d6f5706a031f081a188887c128b5 --- /dev/null +++ b/wp-content/themes/tanzaku/js/jquery.easing.1.3.js @@ -0,0 +1,205 @@ +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +jQuery.easing['jswing'] = jQuery.easing['swing']; + +jQuery.extend( jQuery.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert(jQuery.easing.default); + return jQuery.easing[jQuery.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright © 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ \ No newline at end of file diff --git a/wp-content/themes/tanzaku/js/jquery.vgrid.0.1.4-mod.js b/wp-content/themes/tanzaku/js/jquery.vgrid.0.1.4-mod.js new file mode 100644 index 0000000000000000000000000000000000000000..a3b43d165766a682867eb9fd9c6c7609c3929571 --- /dev/null +++ b/wp-content/themes/tanzaku/js/jquery.vgrid.0.1.4-mod.js @@ -0,0 +1,407 @@ +/** + * jQuery VGrid v0.1.4-mod / MIT License. + * Modified by TRIPLESHIPS,Inc. 2010/03/27 + * ---------------------------------------------- + * + * jQuery VGrid v0.1.4 - variable grid layout plugin + * + * Terms of Use - jQuery VGrid + * under the MIT (http://www.opensource.org/licenses/mit-license.php) License. + * + * Copyright 2009-2010 xlune.com All rights reserved. + * (http://blog.xlune.com/2009/09/jqueryvgrid.html) + */ +(function($) +{ + function makePos(self, initpos) //mod (added initpos argument) + { + var _childs = self.data("_vgchild"); + var _width = self.width(); + + /* ----- mod start ----- */ + var _bodyW = $(window).width(); + var _defW = self.data("_vgopt").gridDefWidth || 290 + 15 + 15 + 5; + var _selRefGrid = self.data("_vgopt").selRefGrid || "#grid-wrapper div.x1"; + var _selFitWidth = self.data("_vgopt").selFitWidth || "#container"; + + if ( $(_selRefGrid).get().length ) + { + var _colW = getSize($(_selRefGrid).eq(0))[0]; //use _w only + } + else + { + var _colW = _defW; + } + var _colWSum = Math.floor(_bodyW / _colW) * _colW; + if ( $.isArray(_selFitWidth) ) + { + for (var i=0; i<_selFitWidth.length; i++) + { + $(_selFitWidth[i]).width( _colWSum ); + } + } + else + { + $(_selFitWidth).width( _colWSum ); + } + + var _ofsL = 0; + var _ofsT = (initpos) ? 2000 : 0; + var _adjL = (initpos) ? 0.5 : 1; + var _adjT = (initpos) ? 0.5 : 1; + /* ----- mod end ----- */ + + var _matrix = [[0,_width,0]]; + var _hmax=0; + _childs.each(function(i) + { + var _c = $(this); + var _size = getSize(_c); + var _point = getAttachPoint(_matrix, _size[0]); + _matrix = updateAttachArea(_matrix, _point, _size); + _hmax = Math.max(_hmax, _point[1] + _size[1]); + //_c.data("_vgleft", _point[0]); + //_c.data("_vgtop", _point[1]); + /* ----- mod start ----- */ + _c.data("_vgleft", Math.floor( (_point[0] + _ofsL) * _adjL) ); + _c.data("_vgtop", Math.floor( (_point[1] + _ofsT) * _adjT) ); + /* ----- mod end ----- */ + }); + self.data("_vgwrapheight", _hmax); + heightTo(self); + }; + function getAttachPoint(mtx, width) + { + var _mtx = mtx.concat([]).sort(matrixSortDepth); + var _max = _mtx[_mtx.length-1][2]; + for(var i=0,imax=_mtx.length; i<imax; i++) + { + if(_mtx[i][2] >= _max) break; + if(_mtx[i][1]-_mtx[i][0] >= width) + { + return [_mtx[i][0], _mtx[i][2]]; + } + } + return [0, _max]; + }; + function updateAttachArea(mtx, point, size) + { + var _mtx = mtx.concat().sort(matrixSortDepth); + var _cell = [point[0], point[0]+size[0], point[1]+size[1]]; + for(var i=0,imax=_mtx.length; i<imax; i++) + { + if(_cell[0] <= _mtx[i][0] && _mtx[i][1] <= _cell[1]) + { + delete _mtx[i]; + } + else + { + _mtx[i] = matrixTrimWidth(_mtx[i], _cell); + } + } + return matrixJoin(_mtx, _cell); + }; + function matrixSortDepth(a, b) + { + return ((a[2] == b[2] && a[0] > b[0]) || a[2] > b[2]) ? 1 : -1; + }; + function matrixSortX(a, b) + { + if (a == null || b == null) return 0; + else return (a[0] > b[0]) ? 1 : -1; + }; + function matrixJoin(mtx, cell) + { + var _mtx = mtx.concat([cell]).sort(matrixSortX); + var _mtx_join = []; + for(var i=0,imax=_mtx.length; i<imax; i++) + { + if(!_mtx[i]) continue; + if(_mtx_join.length > 0 + && _mtx_join[_mtx_join.length-1][1] == _mtx[i][0] + && _mtx_join[_mtx_join.length-1][2] == _mtx[i][2]) + { + _mtx_join[_mtx_join.length-1][1] = _mtx[i][1]; + } + else + { + _mtx_join.push(_mtx[i]); + } + } + return _mtx_join; + }; + function matrixTrimWidth(a, b) + { + if(a[0] >= b[0] && a[0] < b[1] || a[1] >= b[0] && a[1] < b[1]) + { + if(a[0] >= b[0] && a[0] < b[1]) + { + a[0] = b[1]; + } + else + { + a[1] = b[0]; + } + } + return a; + }; + function getSize(child) + { + var _w = child.width(); + var _h = child.height(); + _w += Number(child.css("margin-left").replace('px', '')) + +Number(child.css("padding-left").replace('px', '')) + //+Number(child.get(0).style.borderLeftWidth.replace('px', '')) + +Number(child.css("border-left-width").replace('px', '')) //mod + +Number(child.css("margin-right").replace('px', '')) + +Number(child.css("padding-right").replace('px', '')) + //+Number(child.get(0).style.borderRightWidth.replace('px', '')); + +Number(child.css("border-right-width").replace('px', '')) //mod + _h += Number(child.css("margin-top").replace('px', '')) + +Number(child.css("padding-top").replace('px', '')) + //+Number(child.get(0).style.borderTopWidth.replace('px', '')) + +Number(child.css("border-top-width").replace('px', '')) //mod + +Number(child.css("margin-bottom").replace('px', '')) + +Number(child.css("padding-bottom").replace('px', '')) + //+Number(child.get(0).style.borderBottomWidth.replace('px', '')); + +Number(child.css("border-bottom-width").replace('px', '')); //mod + return [_w, _h]; + }; + function heightTo(self) + { + var _self = self; + var _delay = _self.data("_vgchild").length + * (_self.data("_vgopt").delay || 0) + + _self.data("_vgopt").time || 500; + _self.stop(); + if(_self.height() < _self.data("_vgwrapheight")) + { + if($.browser.msie) + { + _self.height(_self.data("_vgwrapheight")); + } + else + { + _self.animate( + { + height: _self.data("_vgwrapheight")+"px" + }, + (_self.data("_vgopt").time || 500), + "easeOutQuart" + ); + } + } + else + { + clearTimeout(_self.data("_vgwraptimeout")); + _self.data("_vgwraptimeout", setTimeout(function(){ + if($.browser.msie) + { + _self.height(_self.data("_vgwrapheight")); + } + else + { + _self.animate( + { + height: _self.data("_vgwrapheight")+"px" + }, + (_self.data("_vgopt").time || 500), + "easeOutQuart" + ); + } + }, _delay)); + } + }; + function moveTo(childs) + { + childs.each(function(i) + { + var _c = $(this); + _c.css("left", _c.data("_vgleft")+"px"); + _c.css("top", _c.data("_vgtop")+"px"); + }); + }; + /*function animateTo(childs, easing, time, delay) + { + var _self = $(childs).parent(); + var isMove = false; + var imax = childs.length; + var i,_c,_pos; + for(i=0; i<imax; i++) + { + _c = $(childs[i]); + _pos = _c.position(); + if(_pos.left != _c.data("_vgleft") && _pos.top != _c.data("_vgtop")) + { + isMove = true; + } + } + if(isMove) + { + if(typeof(_self.data("_vgopt").onStart) == "function") _self.data("_vgopt").onStart(); + childs.each(function(i) + { + var _c = $(this); + var _opt = { + duration: time, + easing: easing + }; + if(childs.size()-1 == i) + { + _opt.complete = _self.data("_vgopt").onFinish || null; + } + clearTimeout(_c.data("_vgtimeout")); + _c.data("_vgtimeout", setTimeout(function(){ + _c.animate( + { + left: _c.data("_vgleft")+"px", + top: _c.data("_vgtop")+"px" + }, + _opt + ); + }, i*delay)); + }); + } + };*/ + function animateTo(childs, easeing, time, delay) //rollback (v0.1.2) + { + childs.each(function(i) + { + var _c = $(this); + clearTimeout(_c.data("_vgtimeout")); + _c.data("_vgtimeout", setTimeout(function(){ + _c.animate({ + left: _c.data("_vgleft")+"px", + top: _c.data("_vgtop")+"px" + }, time, easeing); + }, i * delay)); + }); + }; + function refleshHandler(tg) + { + var _self = tg; + clearTimeout(_self.data("_vgtimeout")); + makePos(_self); + _self.data("_vgtimeout", setTimeout(function(){ + animateTo( + _self.data("_vgchild"), + _self.data("_vgopt").easeing || "linear", + _self.data("_vgopt").time || 500, + _self.data("_vgopt").delay || 0 + ); + }, 250)); + }; + function setFontSizeListener() + { + var s = $("<span />") + .text(" ") + .attr("id", "_vgridspan") + .hide() + .appendTo("body"); + s.data("size", s.css("font-size")); + s.data("timer", setInterval(function(){ + if(s.css("font-size") != s.data("size")) + { + s.data("size", s.css("font-size")); + $(window).resize(); + } + }, 500)); + }; + $.fn.extend({ + vgrid: function(option) + { + var _self = $(this); + var _opt = option || {}; + _self.data("_vgopt", _opt); + _self.data("_vgchild", _self.find("> *")); + _self.data("_vgdefchild", _self.data("_vgchild")); + _self.css({ + "position": "relative", + "width": "auto" + }); + _self.data("_vgchild").css("position", "absolute"); + + //makePos(_self); + //moveTo(_self.data("_vgchild")); + /* ----- mod start ----- */ + if(_self.data("_vgopt").forceAnim) + { + makePos(_self, true); // make init position + moveTo(_self.data("_vgchild")); + refleshHandler(_self); // animation + } + else { + makePos(_self); + moveTo(_self.data("_vgchild")); // no animation + } + /* ----- mod end ----- */ + + if(_self.data("_vgopt").fadeIn) + { + var _prop = (typeof(_self.data("_vgopt").fadeIn)=='object') + ? _self.data("_vgopt").fadeIn + : {time: _self.data("_vgopt").fadeIn} ; + _self.data("_vgchild").each(function(i) + { + var _c = $(this); + _c.css('display', 'none'); + setTimeout(function(){ + _c.fadeIn(_prop.time || 250); + }, i * (_prop.delay || 0)); + }); + } + $(window).resize(function(e) + { + refleshHandler(_self); + setTimeout(function(){ refleshHandler(_self) }, 250); //refresh twice for IE, Fx + }); + setFontSizeListener(); + return _self; + }, + vgrefresh: function(easeing, time, delay, func) + { + var _obj = $(this); + if(_obj.data("_vgchild")) + { + _obj.data("_vgchild", _obj.find("> *")); + _obj.data("_vgchild").css("position", "absolute"); + makePos(_obj); + time = typeof(time)=="number" ? time : _obj.data("_vgopt").time || 500; + delay = typeof(delay)=="number" ? delay : _obj.data("_vgopt").delay || 0; + animateTo( + _obj.data("_vgchild"), + easeing || _obj.data("_vgopt").easeing || "linear", + time, + delay + ); + if(typeof(func)=='function') + { + setTimeout( + func, + _obj.data("_vgchild").length * delay + time + ); + } + } + return _obj; + }, + vgsort: function(func, easeing, time, delay) + { + var _obj = $(this); + if(_obj.data("_vgchild")) + { + _obj.data("_vgchild", _obj.data("_vgchild").sort(func)); + _obj.data("_vgchild").each(function(num){ + $(this).appendTo(_obj); + }); + makePos(_obj); + animateTo( + _obj.data("_vgchild"), + easeing || _obj.data("_vgopt").easeing || "linear", + typeof(time)=="number" ? time : _obj.data("_vgopt").time || 500, + typeof(delay)=="number" ? delay : _obj.data("_vgopt").delay || 0 + ); + } + return _obj; + } + }); +})(jQuery); diff --git a/wp-content/themes/tanzaku/license.txt b/wp-content/themes/tanzaku/license.txt new file mode 100644 index 0000000000000000000000000000000000000000..da70b030c131bf8137ca2929fe617d70313e9bda --- /dev/null +++ b/wp-content/themes/tanzaku/license.txt @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. + diff --git a/wp-content/themes/tanzaku/readme.txt b/wp-content/themes/tanzaku/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..59e4a8b2a59cb6e76118b15b292d1d162441a1bb --- /dev/null +++ b/wp-content/themes/tanzaku/readme.txt @@ -0,0 +1,16 @@ +Thank you for downloading my theme. + +The name of the theme is [tanzaku]. Variable grid layout, easing effect on window resizing. +Copyright (C) 2010 TRIPLESHIPS Inc. + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +It is a preview in the management of the theme as for this theme. It seems that it collapses due to trouble. When the cause for that is pursued, and clarified, I will report. It asks suitably. \ No newline at end of file diff --git a/wp-content/themes/tanzaku/screenshot.png b/wp-content/themes/tanzaku/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..06bf359de196efb23ea1a0562f01f2dc3d04ad13 Binary files /dev/null and b/wp-content/themes/tanzaku/screenshot.png differ diff --git a/wp-content/themes/tanzaku/sidebar-2.php b/wp-content/themes/tanzaku/sidebar-2.php new file mode 100644 index 0000000000000000000000000000000000000000..eb70513f7ebaa8e019fcaa9e4d10a581c30cb167 --- /dev/null +++ b/wp-content/themes/tanzaku/sidebar-2.php @@ -0,0 +1,24 @@ + <ul id="sidebar2"> + +<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?> + + <li class="widget"> + <h2 class="widgettitle">Category</h2> + <ul> + <?php wp_list_categories('show_count=1&hierarchical=1&title_li='); ?> + </ul> + </li> + <li class="widget"> + <h2 class="widgettitle">Pages</h2> + <ul> + <?php wp_list_pages('sort_column=menu_order&title_li='); ?> + </ul> + </li> + <li class="widget"> + <h2 class="widgettitle">Search</h2> + <?php get_search_form(); ?> + </li> + +<?php endif; ?> + + </ul><!-- /sidebar2 --> diff --git a/wp-content/themes/tanzaku/sidebar.php b/wp-content/themes/tanzaku/sidebar.php new file mode 100644 index 0000000000000000000000000000000000000000..4506cc9e0a970cae469b2cde9cef976b5b64a5aa --- /dev/null +++ b/wp-content/themes/tanzaku/sidebar.php @@ -0,0 +1,18 @@ + <ul id="sidebar"> + +<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?> +<?php if (false) : /* default sidebar contents are off now. */ ?> + + <li class="widget"> + <ul> + <?php wp_list_categories('show_count=1&hierarchical=0&title_li='); ?> + </ul> + </li> + <li class="widget"> + <?php get_search_form(); ?> + </li> + +<?php endif; ?> +<?php endif; ?> + + </ul><!-- /sidebar --> diff --git a/wp-content/themes/tanzaku/style.css b/wp-content/themes/tanzaku/style.css new file mode 100644 index 0000000000000000000000000000000000000000..02c02caabf35f41453c6d38b1cc0301905c61e1a --- /dev/null +++ b/wp-content/themes/tanzaku/style.css @@ -0,0 +1,489 @@ +@charset "utf-8"; +/* +Theme Name: tanzaku +Theme URI: http://www.tripleships.com/sample/ +Description: Variable grid layout, easing effect on window resizing. +Version: 1.1.1 +Author: TRIPLESHIPS Inc. +Author URI: http://www.tripleships.com/ +Tags: silver, light, flexible-width, threaded-comments + + +Index: + - Basic Elements + - Basic Styling + - Layout + - Grid Items, Single Item and Comments + - Navigation and Sidebar Widget + - Form Elements + +*/ + + + +/* ---------- Basic Elements ---------- */ + +body { + background-color: #c4c4c4; + margin: 0; + padding: 0; + color: #000000; + font-family: Georgia,Baskerville,Palatino,Times; + font-size: 10px; + line-height: 1.5; +} + +a { + text-decoration: none; + color: #3f3f3f; +} +a:hover { + color: #000000; +} +a img { + border: none; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 1em 0; +} +h1 { + font-size: 28px; + font-weight: normal; +} +h2, +h3, +h4, +h5, +h6 { + font-size: 12px; + margin-top: 2em; + padding-left: 5px; + border-left: 5px solid #c4c4c4; +} + +blockquote { + margin: 0; + padding: 10px; + border-left: 5px solid #e9e9e9; + background-color: #f9f9f9; + color: #666666; +} + +pre { + overflow: auto; + margin: 0; + padding: 10px; + background-color: #f9f9f9; + color: #666666; +} + +fieldset { + border: 1px solid #cccccc; + padding: 10px; +} + +table { + margin: 1em 0; + border: 1px solid #999999; +} +th, td { + padding: 2px 4px; + /*border: 1px solid #e9e9e9;*/ +} +th { + background-color: #d9d9d9; + font-weight: normal; +} +td { + background-color: #d9d9d9; +} + +/* ---------- Basic Styling ---------- */ + +.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; +} + +.alignright { + float: right; + margin: 0 0 2px 10px; +} + +.alignleft { + float: left; + margin: 0 10px 2px 0; +} + +img.centered { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.alignright { + padding: 5px; + display: inline; +} + +img.alignleft { + padding: 5px; + display: inline; +} + +.caution { + padding: 10px; + color: #e9e9e9; + text-align: center; + background-color: #cc0000; +} +noscript .caution { + margin: 0; +} + +.wp-caption { + width: 100%; + border: 1px solid #e3e3e3; + border-radius: 4px; + -moz-border-radius: 4px; + -khtml-border-radius: 4px; + -webkit-border-radius: 4px; + background-color: #ffffff; + text-align: center; +} +.wp-caption img { + padding-top: 5px; +} + +.wp-caption-text { + margin: 5px 0; + text-align: center; + font-size: smaller; + color: #666666; +} + +code strong { + color: #cc3366; + font-weight: normal; +} + + +/* ---------- Layout ---------- */ + +#top-container { + margin: 0 auto; + padding: 5px; + background: white; +} + +#container { + margin: 0 auto; + padding: 0; +} + + #header { + margin: 50px 0 50px 16px; + } + #header h1 { + margin: 0; + color: #000000; + } + #header h1 a{ + margin: 0; + color: #000000; + } + #header p { + margin: 0; + } + + #grid-wrapper { + margin: 0; + padding: 0; + padding-top: 1000px; /* Prevent flicker in grid area. Check header.php. */ + } + + #single-wrapper { + margin: 0; + padding: 0; + padding-top: 1000px; /* for single-page effect */ + } + +#bottom-container { + clear: both; + width: 100%; + margin: 0; + padding: 30px 0 0; +} + + #footer-wrapper { + background: none; + } + + #footer { + margin: 0 auto; + } + #footer p { + margin: 0; + padding: 10px; + } + + + + +/* ---------- Grid Items, Single Item and Comments ---------- */ + +/* value = (width * n) + (15+15+5) * (n-1). + * ex. + * width=200 : 200, 425, 650, 875 + * width=250 : 250, 525, 800, 1075 + * width=290 : 290, 615, 940, 1265 + */ +div.x1 { width: 290px; } +div.x2 { width: 615px; } +div.x3 { width: 940px; } +div.x4 { width: 1265px; } + +div.grid-item, +div.single-item { + overflow: hidden; + margin: 0 5px 5px 0; + padding: 15px 15px 30px 15px; + border: 0; + background-color: #d9d9d9; +} + +div.grid-item h2.post-title, +div.single-item h2.post-title { + margin: 0; + padding-left: 0; + border-left: 0; + font-weight: normal; +} + +div.grid-item div.grid-image { + margin-bottom: 1em; +} + +div.grid-item div.wp-caption { + display: none; +} + +div.post-body p, +div.comment-body p { + font-size: 12px; +} + +div.post-body p img, +div.post-body p object { + max-width: 100%; + padding: 0; +} + +p.post-meta, +p.comment-meta { + margin-bottom: 0; +} + +.comment-list .navigation { + margin: 10px 0; +} +.comment-list .navigation a { + margin-right: 10px; +} + +.comment-list ol li { + margin: 10px 0; +} + +.comment-list ol li.trackback { + padding: 5px; + border: 1px solid #c4c4c4; +} + +.comment-list ul.children { + list-style: none; +} +.comment-list ul.children li { + border-left: 5px solid #c4c4c4; + padding-left: 5px; +} + +.comment-list li.bypostauthor { +} +.comment-list li.bypostauthor cite.fn { + text-decoration: underline; +} + +.comment-list li.comment .reply { + margin: 10px 0 20px; +} + + + + +/* ---------- Navigation and Sidebar Widget ---------- */ + +/* Pagination for grid items and paginated posts */ +.pagination { + margin: 50px 0 0; + font-size: 12px; +} +.pagination .current { + color: #333333; + font-weight: bold: +} +.pagination .next, +.pagination .prev { +} + +.pagination .page-numbers, +.pagination .current { + margin: 0 10px 0 0; + padding: 10px 15px; + text-decoration: none; + background: #d9d9d9; +} +/* page-numbers hover color */ +a.page-numbers:hover { + color: #333333; + background-color: #eeeeee; +} +#post-pagination { + margin: 1em 0; + color: #c4c4c4; +} +#post-pagination .prefix { + color: #eaeaea; +} + +/* Sidebar + * In this theme, sidebar is a horizontal line. + * Sidebar2 is a block on the bottom. + * See also "Form Elements" section. + */ +#sidebar{ + list-style: none; + list-style-type: none; + margin: 50px 0 50px 16px; + padding-left: 0; +} +#sidebar2 { + list-style: none; + list-style-type: none; + margin: 50px 0; + padding-left: 0; +} +#sidebar li { + margin: 2px 0; +} +#sidebar li.widget h2.widgettitle { + display: none; +} + +#sidebar li.widget ul { + list-style: none; + margin: 0; + padding: 0; +} + +#sidebar li.widget ul li { + display: inline; + padding-right: 5px; +} + +li.current-cat { + text-decoration: underline; +} + +#sidebar2 li.widget { + display: block; + overflow: hidden; + float: left; + margin: 0 5px 5px 0; + width: 320px; + padding: 5px 0 0 0; + border: 0; +} + +#sidebar2 h2.widgettitle { + margin-top: 0; + padding: 5px 10px; + color: #333333; + background-color: #d9d9d9; +} + +#sidebar2 li.widget div { + padding: 0 10px; + font-size: 12px; +} + +#sidebar2 li.widget ul { + margin: 0; + padding: 0 10px; + font-size: 12px; +} + +#sidebar2 li.widget ul li { + list-style: none; +} +#sidebar2 ul.children ul li { + list-style: none; +} + +#wp-calendar { + margin: 1em 0; + border: none; +} +#wp-calendar caption{ + text-align: left; + margin: 2px 0 0 0; + padding: 0; +} +#wp-calendar td { + text-align: center; +} + +/* ---------- Form Elements ---------- */ + +div.comment-form { + margin: 0; + padding: 0; +} + +#commentform { + margin: 0; + padding: 0; +} +#commentform textarea { + width: 99%; + max-width: 640px; +} + +/* for sidebar widget */ + +#searchform { + width: 300px; +} +#searchform div { + padding: 0; + font-size: 12px; +} +#searchform label.screen-reader-text { + display: none; +} +#searchsubmit { + display: inline; +} + +#s { /* #searchform input#s */ + width: 170px; + margin: 0; +} +