From 8e2064bbd878ac93438a6616cbf4af21a0f41edd Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Nov 2011 12:23:12 -0500 Subject: The North Star 2010-2011 theme, a fork of Twenty Ten I'm not planning on maintaining this, I just figured I'd put it in git in case I ever want it. This has already been cleaned up a lot. I might one day do the work to make it a proper child theme (it was forked too many versions ago for it to be clean), but probably not. --- 404.php | 29 +++ archive.php | 59 +++++ attachment.php | 117 ++++++++++ author.php | 54 +++++ category.php | 33 +++ comments.php | 57 +++++ editor-style-rtl.css | 56 +++++ editor-style.css | 289 +++++++++++++++++++++++ footer.php | 22 ++ functions.bak.php | 575 +++++++++++++++++++++++++++++++++++++++++++++ functions.php | 593 +++++++++++++++++++++++++++++++++++++++++++++++ hacks.css | 19 ++ header.php | 88 +++++++ ie.css | 26 +++ images/northstar.old.png | Bin 0 -> 50225 bytes images/northstar.png | Bin 0 -> 18480 bytes images/search.png | Bin 0 -> 620 bytes images/wordpress.png | Bin 0 -> 849 bytes index.php | 48 ++++ license.txt | 281 ++++++++++++++++++++++ loop.php | 213 +++++++++++++++++ onecolumn-page.php | 39 ++++ page.php | 51 ++++ rtl.css | 282 ++++++++++++++++++++++ screenshot.png | Bin 0 -> 38402 bytes search.php | 42 ++++ searchform.php | 5 + sidebar-footer.php | 60 +++++ sidebar.php | 35 +++ single.php | 79 +++++++ style.css | 334 ++++++++++++++++++++++++++ tag.php | 27 +++ widgets.css | 26 +++ 33 files changed, 3539 insertions(+) create mode 100644 404.php create mode 100644 archive.php create mode 100644 attachment.php create mode 100644 author.php create mode 100644 category.php create mode 100644 comments.php create mode 100644 editor-style-rtl.css create mode 100644 editor-style.css create mode 100644 footer.php create mode 100644 functions.bak.php create mode 100644 functions.php create mode 100644 hacks.css create mode 100644 header.php create mode 100644 ie.css create mode 100644 images/northstar.old.png create mode 100644 images/northstar.png create mode 100644 images/search.png create mode 100644 images/wordpress.png create mode 100644 index.php create mode 100644 license.txt create mode 100644 loop.php create mode 100644 onecolumn-page.php create mode 100644 page.php create mode 100644 rtl.css create mode 100644 screenshot.png create mode 100644 search.php create mode 100644 searchform.php create mode 100644 sidebar-footer.php create mode 100644 sidebar.php create mode 100644 single.php create mode 100644 style.css create mode 100644 tag.php create mode 100644 widgets.css diff --git a/404.php b/404.php new file mode 100644 index 0000000..77555a2 --- /dev/null +++ b/404.php @@ -0,0 +1,29 @@ + + + + + + + + +

Oh Sn*p!

+ +
+

404 — Not Found

+

I'm sure you know what 404 means by now. If you got here by + an internal link, shoot me a email at + +

+

Here's a list of things I think you may have been looking for:

+

~ The Mgmt

+
+ + + + diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..a21245a --- /dev/null +++ b/archive.php @@ -0,0 +1,59 @@ + + + +
+ + + +

%s', 'twentyten' ), get_the_date() ); + } elseif ( is_month() ) { + printf( __( 'Monthly Archives: %s', 'twentyten' ), get_the_date('F Y') ); + } elseif ( is_year() ) { + printf( __( 'Yearly Archives: %s', 'twentyten' ), get_the_date('Y') ); + } else { + _e( 'Blog Archives', 'twentyten' ); + } ?>

+ + + +
+ + + \ No newline at end of file diff --git a/attachment.php b/attachment.php new file mode 100644 index 0000000..92b8afd --- /dev/null +++ b/attachment.php @@ -0,0 +1,117 @@ + + +
+ + + + post_parent ) ) : ?> +

← %s', 'twentyten' ), get_the_title( $post->post_parent ) ); + ?>

+ + +
> +

+ + + +
+
+ $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); + foreach ( $attachments as $k => $attachment ) { + if ( $attachment->ID == $post->ID ) + break; + } + $k++; + // If there is more than 1 image attachment in a gallery + if ( count( $attachments ) > 1 ) { + if ( isset( $attachments[ $k ] ) ) + // get the URL of the next image attachment + $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); + else + // or get the URL of the first image attachment + $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); + } else { + // or, if there's only 1 image attachment, get the URL of the image + $next_attachment_url = wp_get_attachment_url(); + } +?> +

ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. + ?>

+ + + + + +
+
post_excerpt ) ) the_excerpt(); ?>
+ +→', 'twentyten' ) ); ?> + '' ) ); ?> + +
+ +
+ + ', '' ); ?> +
+
+ + + + + +
+ + + diff --git a/author.php b/author.php new file mode 100644 index 0000000..6b1c4d1 --- /dev/null +++ b/author.php @@ -0,0 +1,54 @@ + + +
+ '; + printf( __( 'Author Archives: %s', 'twentyten' ), "" . get_the_author() . "" ); + echo ""; $head++; + +// If a user has filled out their description, show a bio on their entries. + if ( get_the_author_meta( 'description' ) ) { ?> +
+ "; printf( __( 'About %s', 'twentyten' ), get_the_author() ); echo ""; $head++; ?> +
+ +
+ + +
+ +
+ + diff --git a/category.php b/category.php new file mode 100644 index 0000000..9eae622 --- /dev/null +++ b/category.php @@ -0,0 +1,33 @@ + + + +
+ +

' . single_cat_title( '', false ) . '' ); + ?>

+ ' . $category_description . '
'; + + /* Run the loop for the category page to output the posts. + * If you want to overload this in a child theme then include a file + * called loop-category.php and that will be used instead. + */ + get_template_part( 'loop', 'category' ); + ?> + + + + + diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..8645cd3 --- /dev/null +++ b/comments.php @@ -0,0 +1,57 @@ + + +
+ +

+ +

' . get_the_title() . '' ); + ?>

+ 1 && get_option( 'page_comments' ) ) { ?> + + +
    + 'lts_comment' ) ); + ?> +
+ 1 && get_option( 'page_comments' ) ) { ?> + + +

+ +
+ diff --git a/editor-style-rtl.css b/editor-style-rtl.css new file mode 100644 index 0000000..33e0dee --- /dev/null +++ b/editor-style-rtl.css @@ -0,0 +1,56 @@ +/* +Theme Name: Twenty Ten +*/ +/* +Used to style the TinyMCE editor. +*/ +html .mceContentBody{ + direction:rtl; + unicode-bidi:embed; + float:right; +} +* { + font-family: Arial, Tahoma, sans-serif; +} +/* Text elements */ +ul { + margin: 0 -18px 18px 0; +} +ol { + margin: 0 -18px 18px 0; +} +dd { + margin-right: 0; +} +blockquote { + font-style: normal; +} +table { + text-align: right; + margin: 0 0 24px -1px; +} +html .mceContentBody{ + direction:rtl; + unicode-bidi:embed; + float:right; +} +* { + font-family: Arial, Tahoma, sans-serif; +} +/* Text elements */ +ul { + margin: 0 -18px 18px 0; +} +ol { + margin: 0 -18px 18px 0; +} +dd { + margin-right: 0; +} +blockquote { + font-style: normal; +} +table { + text-align: right; + margin: 0 0 24px -1px; +} \ No newline at end of file diff --git a/editor-style.css b/editor-style.css new file mode 100644 index 0000000..07c1823 --- /dev/null +++ b/editor-style.css @@ -0,0 +1,289 @@ +/* +Theme Name: Twenty Ten +*/ +/* +Used to style the TinyMCE editor. +*/ +html .mceContentBody { + max-width:640px; +} +* { + font-family: Georgia, "Bitstream Charter", serif; + color: #444; + line-height: 1.5; +} +p, +dl, +td, +th, +ul, +ol, +blockquote { + font-size: 16px; +} +tr th, +thead th, +label, +tr th, +thead th { + font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; +} +pre { + font-family: "Courier 10 Pitch", Courier, monospace; +} +code, code var { + font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} +body, input, textarea { + font-size: 12px; + line-height: 18px; +} +hr { + background-color: #e7e7e7; + border:0; + height: 1px; + margin-bottom: 18px; + clear:both; +} +/* Text elements */ +p { + margin-bottom: 18px; +} +ul { + list-style: square; + margin: 0 0 18px 1.5em; +} +ol { + list-style: decimal; + margin: 0 0 18px 1.5em; +} +ol ol { + list-style:upper-alpha; +} +ol ol ol { + list-style:lower-roman; +} +ol ol ol ol { + list-style:lower-alpha; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +dl { + margin:0 0 24px 0; +} +dt { + font-weight: bold; +} +dd { + margin-bottom: 18px; +} +strong { + font-weight: bold; + color: #000; +} +cite, +em, +i { + font-style: italic; + border: none; +} +big { + font-size: 131.25%; +} +ins { + background: #ffffcc; + border: none; + color: #333; +} +del { + text-decoration: line-through; + color: #555; +} +blockquote { + font-style: italic; + padding: 0 3em; +} +blockquote cite, +blockquote em, +blockquote i { + font-style: normal; +} +pre { + background: #f7f7f7; + color: #222; + line-height: 18px; + margin-bottom: 18px; + padding: 1.5em; +} +abbr, +acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +ins { + text-decoration: none; +} +sup, +sub { + height: 0; + line-height: 1; + vertical-align: baseline; + position: relative; + font-size: 10px; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +a:link { + color:#0066cc; +} +a:visited { + color:#743399; +} +a:active, +a:hover { + color: #ff4b33; +} +p, +ul, +ol, +dd, +pre, +hr { + margin-bottom:24px; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +pre, +kbd, +tt, +var { + font-size: 15px; + line-height: 21px; +} +code { + font-size: 13px; +} +strong, +b, +dt, +th { + color: #000; +} +h1, +h2, +h3, +h4, +h5, +h6 { + color: #000; + margin: 0 0 20px 0; + line-height: 1.5em; + font-weight: normal; +} +h1 { + font-size: 2.4em; +} +h2 { + font-size: 1.8em; +} +h3 { + font-size: 1.4em; +} +h4 { + font-size: 1.2em; +} +h5 { + font-size: 1em; +} +h6 { + font-size: 0.9em; +} +table { + border: 1px solid #e7e7e7 !important; + text-align: left; + margin: 0 -1px 24px 0; + width: 100%; + border-collapse: collapse; + border-spacing: 0; +} +tr th, +thead th { + border: none !important; + color: #888; + font-size: 12px; + font-weight: bold; + line-height: 18px; + padding: 9px 24px; +} +tr td { + border: none !important; + border-top: 1px solid #e7e7e7 !important; + padding: 6px 24px; +} + + +img { + margin: 0; + max-width: 640px; +} +.alignleft, +img.alignleft { + display: inline; + float: left; + margin-right: 24px; + margin-top: 4px; +} +.alignright, +img.alignright { + display: inline; + float: right; + margin-left: 24px; + margin-top: 4px; +} +.aligncenter, +img.aligncenter { + clear: both; + display: block; + margin-left: auto; + margin-right: auto; +} +img.alignleft, +img.alignright, +img.aligncenter { + margin-bottom: 12px; +} +.wp-caption { + border: none; + background: #f1f1f1; + color: #888; + font-size: 12px; + line-height: 18px; + text-align: center; + margin-bottom: 20px; + padding: 4px; + -moz-border-radius: 0; + -khtml-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; +} +.wp-caption img { + margin: 5px; +} +.wp-caption p.wp-caption-text { + margin: 0 0 4px; +} +.wp-smiley { + margin:0; +} \ No newline at end of file diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..c04b7c3 --- /dev/null +++ b/footer.php @@ -0,0 +1,22 @@ + + + + + diff --git a/functions.bak.php b/functions.bak.php new file mode 100644 index 0000000..f144aee --- /dev/null +++ b/functions.bak.php @@ -0,0 +1,575 @@ + + * add_action( 'after_setup_theme', 'my_child_theme_setup' ); + * function my_child_theme_setup() { + * // We are providing our own filter for excerpt_length (or using the unfiltered value) + * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' ); + * ... + * } + * + * + * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API. + * + * @package WordPress + * @subpackage Twenty_Ten + * @since Twenty Ten 1.0 + */ + +/** + * Set the content width based on the theme's design and stylesheet. + * + * Used to set the width of images and content. Should be equal to the width the theme + * is designed for, generally via the style.css stylesheet. + */ + +global $head; + +if ( ! isset( $content_width ) ) + $content_width = 640; + +/** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */ +add_action( 'after_setup_theme', 'twentyten_setup' ); + +if ( ! function_exists( 'twentyten_setup' ) ): +/** + * Sets up theme defaults and registers support for various WordPress features. + * + * Note that this function is hooked into the after_setup_theme hook, which runs + * before the init hook. The init hook is too late for some features, such as indicating + * support post thumbnails. + * + * To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's + * functions.php file. + * + * @uses add_theme_support() To add support for post thumbnails and automatic feed links. + * @uses register_nav_menus() To add support for navigation menus. + * @uses add_custom_background() To add support for a custom background. + * @uses add_editor_style() To style the visual editor. + * @uses load_theme_textdomain() For translation/localization support. + * @uses add_custom_image_header() To add support for a custom header. + * @uses register_default_headers() To register the default custom header images provided with the theme. + * @uses set_post_thumbnail_size() To set a custom post thumbnail size. + * + * @since Twenty Ten 1.0 + */ +function twentyten_setup() { + + // This theme styles the visual editor with editor-style.css to match the theme style. + add_editor_style(); + + // This theme uses post thumbnails + add_theme_support( 'post-thumbnails' ); + + // Add default posts and comments RSS feed links to head + add_theme_support( 'automatic-feed-links' ); + + // Make theme available for translation + // Translations can be filed in the /languages/ directory + load_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' ); + + $locale = get_locale(); + $locale_file = TEMPLATEPATH . "/languages/$locale.php"; + if ( is_readable( $locale_file ) ) + require_once( $locale_file ); + + // This theme uses wp_nav_menu() in one location. + register_nav_menus( array( + 'primary' => __( 'Primary Navigation', 'twentyten' ), + ) ); + + // This theme allows users to set a custom background + add_custom_background(); + + // Your changeable header business starts here + define( 'HEADER_TEXTCOLOR', '' ); + // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. + define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); + + // The height and width of your custom header. You can hook into the theme's own filters to change these values. + // Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values. + define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) ); + define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) ); + + // We'll be using post thumbnails for custom header images on posts and pages. + // We want them to be 940 pixels wide by 198 pixels tall. + // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. + set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); + + // Don't support text inside the header image. + define( 'NO_HEADER_TEXT', true ); + + // Add a way for the custom header to be styled in the admin panel that controls + // custom headers. See twentyten_admin_header_style(), below. + add_custom_image_header( '', 'twentyten_admin_header_style' ); + + // ... and thus ends the changeable header business. + + // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. + register_default_headers( array( + 'berries' => array( + 'url' => '%s/images/headers/berries.jpg', + 'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Berries', 'twentyten' ) + ), + 'cherryblossom' => array( + 'url' => '%s/images/headers/cherryblossoms.jpg', + 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Cherry Blossoms', 'twentyten' ) + ), + 'concave' => array( + 'url' => '%s/images/headers/concave.jpg', + 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Concave', 'twentyten' ) + ), + 'fern' => array( + 'url' => '%s/images/headers/fern.jpg', + 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Fern', 'twentyten' ) + ), + 'forestfloor' => array( + 'url' => '%s/images/headers/forestfloor.jpg', + 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Forest Floor', 'twentyten' ) + ), + 'inkwell' => array( + 'url' => '%s/images/headers/inkwell.jpg', + 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Inkwell', 'twentyten' ) + ), + 'path' => array( + 'url' => '%s/images/headers/path.jpg', + 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Path', 'twentyten' ) + ), + 'sunset' => array( + 'url' => '%s/images/headers/sunset.jpg', + 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Sunset', 'twentyten' ) + ) + ) ); +} +endif; + +if ( ! function_exists( 'twentyten_admin_header_style' ) ) : +/** + * Styles the header image displayed on the Appearance > Header admin panel. + * + * Referenced via add_custom_image_header() in twentyten_setup(). + * + * @since Twenty Ten 1.0 + */ +function twentyten_admin_header_style() { +?> + +' . __( 'Continue reading ', 'twentyten' ) . ''; +} + +/** + * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link(). + * + * To override this in a child theme, remove the filter and add your own + * function tied to the excerpt_more filter hook. + * + * @since Twenty Ten 1.0 + * @return string An ellipsis + */ +function twentyten_auto_excerpt_more( $more ) { + return ' …' . twentyten_continue_reading_link(); +} +add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); + +/** + * Adds a pretty "Continue Reading" link to custom post excerpts. + * + * To override this link in a child theme, remove the filter and add your own + * function tied to the get_the_excerpt filter hook. + * + * @since Twenty Ten 1.0 + * @return string Excerpt with a pretty "Continue Reading" link + */ +function twentyten_custom_excerpt_more( $output ) { + if ( has_excerpt() && ! is_attachment() ) { + $output .= twentyten_continue_reading_link(); + } + return $output; +} +add_filter( 'get_the_excerpt', 'twentyten_custom_excerpt_more' ); + +/** + * Remove inline styles printed when the gallery shortcode is used. + * + * Galleries are styled by the theme in Twenty Ten's style.css. + * + * @since Twenty Ten 1.0 + * @return string The gallery style filter, with the styles themselves removed. + */ +function twentyten_remove_gallery_css( $css ) { + return preg_replace( "##s", '', $css ); +} +add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); + +if ( ! function_exists( 'twentyten_comment' ) ) : +/** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentyten_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Ten 1.0 + */ +function lts_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case '' : ?> +
  • id="li-comment-"> +
    +
    + + says:', 'twentyten' ), sprintf( '%s', get_comment_author_link() ) ); ?> +
    + comment_approved == '0' ) { ?> + +
    + + +
    + +
    +
    + $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> +
    +
    + + +
  • +

    + + __( 'BannerNav', 'twentyten' ), + 'id' => 'banner-widget-area', + 'description' => __( 'The banner navigation', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '', + 'after_title' => '', + ) ); + + // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. + register_sidebar( array( + 'name' => __( 'CenterBox', 'twentyten' ), + 'id' => 'centerbox-widget-area', + 'description' => __( 'The box in the middle of the main page', 'twentyten' ), + 'before_widget' => '
    ', + 'after_widget' => '
    ', + 'before_title' => '', + 'after_title' => '', + ) ); + + register_sidebar( array( + 'name' => __( 'RightSide', 'twentyten' ), + 'id' => 'right-widget-area', + 'description' => __( 'The streamer on the right side', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '', + 'after_title' => '', + ) ); +} +/** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */ +add_action( 'widgets_init', 'twentyten_widgets_init' ); + +/** + * Removes the default styles that are packaged with the Recent Comments widget. + * + * To override this in a child theme, remove the filter and optionally add your own + * function tied to the widgets_init action hook. + * + * @since Twenty Ten 1.0 + */ +function twentyten_remove_recent_comments_style() { + global $wp_widget_factory; + remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); +} +add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); + +if ( ! function_exists( 'twentyten_posted_on' ) ) : +/** + * Prints HTML with meta information for the current postâ��date/time and author. + * + * @since Twenty Ten 1.0 + */ +function twentyten_posted_on() { ?> +
    + %2$s', + get_author_posts_url( get_the_author_meta( 'ID' ) ), + get_the_author() + ); + ?> +
    + roles ) && is_array( $user->roles ) ) { + foreach ( $user->roles as $role ) + echo $role; + } + ?> +
    +permalink.', 'twentyten' ); + } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { + $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'twentyten' ); + } else { + $posted_in = __( 'Bookmark the permalink.', 'twentyten' ); + } + // Prints the string, replacing the placeholders. + printf( + $posted_in, + get_the_category_list( ', ' ), + $tag_list, + get_permalink(), + the_title_attribute( 'echo=0' ) + ); +} +endif; + + +if ( ! function_exists( 'lts_post_gallery' ) ) : +function lts_post_gallery() { + global $head; + /* How to display posts in the Gallery category. */ ?> +
    > + class="entry-title">"; $head++ ?> + + + +
    + $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); + if ( $images ) { + $total_images = count( $images ); + $image = array_shift( $images ); + $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); + ?> + +

    %2$s photos.', 'twentyten' ), + 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', + $total_images + ); + ?>

    + +
    + +
    + + | + + | ', '' ); ?> +
    + +
    + +
    > + class="entry-title">"; $head++ ?> + +
    + +
    + +
    + →', 'twentyten' ) ); ?> +
    + +
    + + | + + | ', '' ); ?> +
    + +
    + +
    > + + class="entry-title">"; $head++ ?> + + + + +
    + +
    + +
    + →', 'twentyten' ) ); ?> + '' ) ); ?> +
    + + +
    + + + Posted in %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> + + | + + + + Tagged %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> + + | + + + | ', '' ); ?> +
    + +
    + + * add_action( 'after_setup_theme', 'my_child_theme_setup' ); + * function my_child_theme_setup() { + * // We are providing our own filter for excerpt_length (or using the unfiltered value) + * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' ); + * ... + * } + * + * + * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API. + * + * @package WordPress + * @subpackage Twenty_Ten + * @since Twenty Ten 1.0 + */ + +/** + * Set the content width based on the theme's design and stylesheet. + * + * Used to set the width of images and content. Should be equal to the width the theme + * is designed for, generally via the style.css stylesheet. + */ + +global $head; + +if ( ! isset( $content_width ) ) + $content_width = 640; + +/** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */ +add_action( 'after_setup_theme', 'twentyten_setup' ); + +if ( ! function_exists( 'twentyten_setup' ) ): +/** + * Sets up theme defaults and registers support for various WordPress features. + * + * Note that this function is hooked into the after_setup_theme hook, which runs + * before the init hook. The init hook is too late for some features, such as indicating + * support post thumbnails. + * + * To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's + * functions.php file. + * + * @uses add_theme_support() To add support for post thumbnails and automatic feed links. + * @uses register_nav_menus() To add support for navigation menus. + * @uses add_custom_background() To add support for a custom background. + * @uses add_editor_style() To style the visual editor. + * @uses load_theme_textdomain() For translation/localization support. + * @uses add_custom_image_header() To add support for a custom header. + * @uses register_default_headers() To register the default custom header images provided with the theme. + * @uses set_post_thumbnail_size() To set a custom post thumbnail size. + * + * @since Twenty Ten 1.0 + */ +function twentyten_setup() { + + // This theme styles the visual editor with editor-style.css to match the theme style. + add_editor_style(); + + // This theme uses post thumbnails + add_theme_support( 'post-thumbnails' ); + + // Add default posts and comments RSS feed links to head + add_theme_support( 'automatic-feed-links' ); + + // Make theme available for translation + // Translations can be filed in the /languages/ directory + load_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' ); + + $locale = get_locale(); + $locale_file = TEMPLATEPATH . "/languages/$locale.php"; + if ( is_readable( $locale_file ) ) + require_once( $locale_file ); + + // This theme uses wp_nav_menu() in one location. + register_nav_menus( array( + 'primary' => __( 'Primary Navigation', 'twentyten' ), + ) ); + + // This theme allows users to set a custom background + add_custom_background(); + + // Your changeable header business starts here + define( 'HEADER_TEXTCOLOR', '' ); + // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. + define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); + + // The height and width of your custom header. You can hook into the theme's own filters to change these values. + // Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values. + define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) ); + define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) ); + + // We'll be using post thumbnails for custom header images on posts and pages. + // We want them to be 940 pixels wide by 198 pixels tall. + // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. + set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); + + // Don't support text inside the header image. + define( 'NO_HEADER_TEXT', true ); + + // Add a way for the custom header to be styled in the admin panel that controls + // custom headers. See twentyten_admin_header_style(), below. + add_custom_image_header( '', 'twentyten_admin_header_style' ); + + // ... and thus ends the changeable header business. + + // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. + register_default_headers( array( + 'berries' => array( + 'url' => '%s/images/headers/berries.jpg', + 'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Berries', 'twentyten' ) + ), + 'cherryblossom' => array( + 'url' => '%s/images/headers/cherryblossoms.jpg', + 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Cherry Blossoms', 'twentyten' ) + ), + 'concave' => array( + 'url' => '%s/images/headers/concave.jpg', + 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Concave', 'twentyten' ) + ), + 'fern' => array( + 'url' => '%s/images/headers/fern.jpg', + 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Fern', 'twentyten' ) + ), + 'forestfloor' => array( + 'url' => '%s/images/headers/forestfloor.jpg', + 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Forest Floor', 'twentyten' ) + ), + 'inkwell' => array( + 'url' => '%s/images/headers/inkwell.jpg', + 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Inkwell', 'twentyten' ) + ), + 'path' => array( + 'url' => '%s/images/headers/path.jpg', + 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Path', 'twentyten' ) + ), + 'sunset' => array( + 'url' => '%s/images/headers/sunset.jpg', + 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Sunset', 'twentyten' ) + ) + ) ); +} +endif; + +if ( ! function_exists( 'twentyten_admin_header_style' ) ) : +/** + * Styles the header image displayed on the Appearance > Header admin panel. + * + * Referenced via add_custom_image_header() in twentyten_setup(). + * + * @since Twenty Ten 1.0 + */ +function twentyten_admin_header_style() { +?> + +' . __( 'Continue reading ', 'twentyten' ) . ''; +} + +/** + * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link(). + * + * To override this in a child theme, remove the filter and add your own + * function tied to the excerpt_more filter hook. + * + * @since Twenty Ten 1.0 + * @return string An ellipsis + */ +function twentyten_auto_excerpt_more( $more ) { + return ' …' . twentyten_continue_reading_link(); +} +add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); + +/** + * Adds a pretty "Continue Reading" link to custom post excerpts. + * + * To override this link in a child theme, remove the filter and add your own + * function tied to the get_the_excerpt filter hook. + * + * @since Twenty Ten 1.0 + * @return string Excerpt with a pretty "Continue Reading" link + */ +function twentyten_custom_excerpt_more( $output ) { + if ( has_excerpt() && ! is_attachment() ) { + $output .= twentyten_continue_reading_link(); + } + return $output; +} +add_filter( 'get_the_excerpt', 'twentyten_custom_excerpt_more' ); + +/** + * Remove inline styles printed when the gallery shortcode is used. + * + * Galleries are styled by the theme in Twenty Ten's style.css. + * + * @since Twenty Ten 1.0 + * @return string The gallery style filter, with the styles themselves removed. + */ +function twentyten_remove_gallery_css( $css ) { + return preg_replace( "##s", '', $css ); +} +add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); + +if ( ! function_exists( 'twentyten_comment' ) ) : +/** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentyten_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Ten 1.0 + */ +function lts_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case '' : ?> +
  • id="li-comment-"> +
    +
    + + says:', 'twentyten' ), sprintf( '%s', get_comment_author_link() ) ); ?> +
    + comment_approved == '0' ) { ?> + +
    + + +
    + +
    +
    + $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> +
    +
    + + +
  • +

    + + __( 'BannerNav', 'twentyten' ), + 'id' => 'banner-widget-area', + 'description' => __( 'The banner navigation', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '', + 'after_title' => '', + ) ); + + // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. + register_sidebar( array( + 'name' => __( 'CenterBox', 'twentyten' ), + 'id' => 'centerbox-widget-area', + 'description' => __( 'The box in the middle of the main page', 'twentyten' ), + 'before_widget' => '
    ', + 'after_widget' => '
    ', + 'before_title' => '', + 'after_title' => '', + ) ); + + register_sidebar( array( + 'name' => __( 'RightSide', 'twentyten' ), + 'id' => 'right-widget-area', + 'description' => __( 'The streamer on the right side', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '', + 'after_title' => '', + ) ); +} +/** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */ +add_action( 'widgets_init', 'twentyten_widgets_init' ); + +/** + * Removes the default styles that are packaged with the Recent Comments widget. + * + * To override this in a child theme, remove the filter and optionally add your own + * function tied to the widgets_init action hook. + * + * @since Twenty Ten 1.0 + */ +function twentyten_remove_recent_comments_style() { + global $wp_widget_factory; + remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); +} +add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); + +if ( ! function_exists( 'twentyten_posted_on' ) ) : +/** + * Prints HTML with meta information for the current post-date/time and author. + * + * @since Twenty Ten 1.0 + */ +function twentyten_posted_on() { + $loop = false; + $authors = null; + + if (function_exists('coauthors')) { + $loop = true; + $authors = new CoAuthorsIterator(); + } + ?> +
    + + iterate(); + do { if ($loop && $sep) echo ($authors->is_last()) ? ' and ' : ', '; $sep = true; + echo + '' + .get_the_author() + .''; + } while ($loop && $authors->iterate()); + ?> + +
    + + iterate(); + do { if ($loop && $sep) echo ($authors->is_last()) ? ' and ' : ', '; $sep = true; + $user = new WP_User( get_the_author_meta( 'ID' ) ); + if ( !empty( $user->roles ) && is_array( $user->roles ) ) { + foreach ( $user->roles as $role ) + echo ''.$role.''; + } + } while ($loop && $authors->iterate()); + ?> + +
    + permalink.', 'twentyten' ); + } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { + $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'twentyten' ); + } else { + $posted_in = __( 'Bookmark the permalink.', 'twentyten' ); + } + // Prints the string, replacing the placeholders. + printf( + $posted_in, + get_the_category_list( ', ' ), + $tag_list, + get_permalink(), + the_title_attribute( 'echo=0' ) + ); +} +endif; + + +if ( ! function_exists( 'lts_post_gallery' ) ) : +function lts_post_gallery() { + global $head; + /* How to display posts in the Gallery category. */ ?> +
    > + class="entry-title">"; $head++ ?> + + + +
    + $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); + if ( $images ) { + $total_images = count( $images ); + $image = array_shift( $images ); + $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); + ?> + +

    %2$s photos.', 'twentyten' ), + 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', + $total_images + ); + ?>

    + +
    + +
    + + | + + | ', '' ); ?> +
    + +
    + +
    > + class="entry-title">"; $head++ ?> + +
    + +
    + +
    + →', 'twentyten' ) ); ?> +
    + +
    + + | + + | ', '' ); ?> +
    + +
    + +
    > + + class="entry-title">"; $head++ ?> + + + + +
    + +
    + +
    + →', 'twentyten' ) ); ?> + '' ) ); ?> +
    + + +
    + + + Posted in %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> + + | + + + + Tagged %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> + + | + + + | ', '' ); ?> +
    + +
    + section and everything up till
    + * + * @package NorthStar + * @subpackage lts-theme + * @since 1.0 + */ + +echo ''."\n"; +?> + > + + <?php + /* + * Print the <title> tag based on what is being viewed. + */ + global $page, $paged; + + wp_title( '|', true, 'right' ); + + // Add the blog name. + bloginfo( 'name' ); + + // Add the blog description for the home/front page. + $site_description = get_bloginfo( 'description', 'display' ); + if ( $site_description && ( is_home() || is_front_page() ) ) + echo " | $site_description"; + + // Add a page number if necessary: + if ( $paged >= 2 || $page >= 2 ) + echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); + + ?> + + + + + + + + + + * tag of your theme, or you will break many plugins, which + * generally use this hook to add elements to such + * as styles, scripts, and meta tags. + */ + wp_head(); +?> + + + + + + + "; ?><?php bloginfo('name'); ?>"; $head++; ?> +
    */ ?> +
    + Volume 33 + Issue 10 + +
    + + diff --git a/ie.css b/ie.css new file mode 100644 index 0000000..a92e274 --- /dev/null +++ b/ie.css @@ -0,0 +1,26 @@ +.nav { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#C54444', endColorstr='#BD0000'); +} + +.nav div.menu-bannernav-container { + padding: 0; +} + +.nav ul li form { + float: none; +} + +.nav ul li form #searchsubmit { + padding-left: 24px; + width: auto; + background-position: left; +} + +.ie { + width: 80%; + margin: 1em 10% 1em 0; + float:right; + border: solid 4px #FF0000; + background-color: #ffe5e5; + padding: 0.5em; +} diff --git a/images/northstar.old.png b/images/northstar.old.png new file mode 100644 index 0000000..7c3c959 Binary files /dev/null and b/images/northstar.old.png differ diff --git a/images/northstar.png b/images/northstar.png new file mode 100644 index 0000000..eceb981 Binary files /dev/null and b/images/northstar.png differ diff --git a/images/search.png b/images/search.png new file mode 100644 index 0000000..66915bc Binary files /dev/null and b/images/search.png differ diff --git a/images/wordpress.png b/images/wordpress.png new file mode 100644 index 0000000..224f7c8 Binary files /dev/null and b/images/wordpress.png differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..60c8ac6 --- /dev/null +++ b/index.php @@ -0,0 +1,48 @@ + + + +
    + +
    + query('cat='.get_cat_id('centerbox')); + if ($my_query->have_posts()) { + while ($my_query->have_posts()) { + $my_query->the_post(); + lts_post_generic(true); + } + } else { + // do stuff for no results + } + wp_reset_query(); + ?> +
    + + +
    + + + \ No newline at end of file diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..d31195a --- /dev/null +++ b/license.txt @@ -0,0 +1,281 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110, 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 Library 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 + diff --git a/loop.php b/loop.php new file mode 100644 index 0000000..b5c6c1b --- /dev/null +++ b/loop.php @@ -0,0 +1,213 @@ + +get_template_part( 'loop', 'index' ); + * + * @package WordPress + * @subpackage Twenty_Ten + * @since Twenty Ten 1.0 + */ + +global $head; + +/* Display navigation to next/previous pages when applicable */ +if ( $wp_query->max_num_pages > 1 ) { + ?> + + + + +
    + "; + _e( 'Not Found', 'twentyten' ); + echo ""; + $head++; + ?> +
    +

    + +
    + +
    + +
    > + class="entry-title">"; $head++; ?> + + ID ) ) + || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) + ) { ?> +
    + $post->ID, + 'post_type' => 'attachment', + 'post_mime_type' => 'image', + 'orderby' => 'menu_order', + 'order' => 'ASC', + 'numberposts' => 999 ) ); + if ( $images ) { + $total_images = count( $images ); + $image = array_shift( $images ); + $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); + ?> + +

    %2$s photo.', + 'This gallery contains %2$s photos.', + $total_images, + 'twentyten' + ), + 'href="' . get_permalink() . '" title="' . sprintf( + esc_attr__( 'Permalink to %s', 'twentyten' ), + the_title_attribute( 'echo=0' ) + ) . '" rel="bookmark"', + number_format_i18n( $total_images ) + ); + ?>

    + +
    + +
    + ID ) ) { + ?> + | + + | + + + | ', '' ); ?> +
    + +
    + +
    + +
    + →', 'twentyten' ) ); + wp_link_pages( array( 'before' => '' ) ); + ?> +
    + +
    + + + Posted in %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> + + | + + + Tagged %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> + + | + + + | ', '' ); ?> +
    + +
    + max_num_pages > 1 ) { + ?> + + + \ No newline at end of file diff --git a/onecolumn-page.php b/onecolumn-page.php new file mode 100644 index 0000000..0668cc9 --- /dev/null +++ b/onecolumn-page.php @@ -0,0 +1,39 @@ + + +
    + + + +
    > + class="entry-title">"; $head++; ?> +
    + + '' ) ); ?> + ', '' ); ?> +
    +
    + + + + + +
    + + diff --git a/page.php b/page.php new file mode 100644 index 0000000..789aaf8 --- /dev/null +++ b/page.php @@ -0,0 +1,51 @@ + + + +
    + + + +
    > +

    + ID ) + && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) + && $image[1] >= HEADER_IMAGE_WIDTH + ) { + // Houston, we have a new header image! + echo '
    '; + echo get_the_post_thumbnail( $post->ID , null); + echo '
    '; + } + ?> +
    + + '' ) ); ?> + ', '' ); ?> +
    +
    + + + + + +
    + + + \ No newline at end of file diff --git a/rtl.css b/rtl.css new file mode 100644 index 0000000..594191d --- /dev/null +++ b/rtl.css @@ -0,0 +1,282 @@ +/* +Theme Name: Twenty Ten +*/ + + +/* +RTL Basics +*/ + + +body { + direction:rtl; + unicode-bidi:embed; +} + + +/* +LAYOUT: Two-Column (Right) +DESCRIPTION: Two-column fixed layout with one sidebar right of content +*/ + +#container { + float: right; + margin: 0 0 0 -240px; +} +#content { + margin: 0 20px 36px 280px; +} +#primary, +#secondary { + float: left; +} +#secondary { + clear: left; +} + + +/* =Fonts +-------------------------------------------------------------- */ +body, +input, +textarea, +.page-title span, +.pingback a.url, +h3#comments-title, +h3#reply-title, +#access .menu, +#access div.menu ul, +#cancel-comment-reply-link, +.form-allowed-tags, +#site-info, +#site-title, +#wp-calendar, +.comment-meta, +.comment-body tr th, +.comment-body thead th, +.entry-content label, +.entry-content tr th, +.entry-content thead th, +.entry-meta, +.entry-title, +.entry-utility, +#respond label, +.navigation, +.page-title, +.pingback p, +.reply, +.widget-title, +input[type=submit] { + font-family: Arial, Tahoma, sans-serif; +} + +/* =Structure +-------------------------------------------------------------- */ + +/* The main theme structure */ +#footer-widget-area .widget-area { + float: right; + margin-left: 20px; + margin-right: 0; +} +#footer-widget-area #fourth { + margin-left: 0; +} +#site-info { + float: right; +} +#site-generator { + float: left; +} + + +/* =Global Elements +-------------------------------------------------------------- */ + +/* Text elements */ +ul { + margin: 0 1.5em 18px 0; +} +blockquote { + font-style: normal; +} + +/* Text meant only for screen readers */ +.screen-reader-text { + left: auto; + text-indent:-9000px; + overflow:hidden; +} + + +/* =Header +-------------------------------------------------------------- */ + +#site-title { + float: right; +} +#site-description { + clear: left; + float: left; + font-style: normal; +} + +/* =Menu +-------------------------------------------------------------- */ + +#access { + float:right; +} + +#access .menu-header, +div.menu { + margin-right: 12px; + margin-left: 0; +} + +#access .menu-header li, +div.menu li{ + float:right; +} + +#access ul ul { + left:auto; + right:0; + float:right; +} +#access ul ul ul { + left:auto; + right:100%; +} + +/* =Content +-------------------------------------------------------------- */ + +#content table { + text-align: right; + margin: 0 0 24px -1px; +} +.page-title span { + font-style:normal; +} +.entry-title, +.entry-meta { + clear: right; + float: right; + margin-left: 68px; + margin-right: 0; +} + +.entry-content input.file, +.entry-content input.button { + margin-left: 24px; + margin-right:0; +} +.entry-content blockquote.left { + float: right; + margin-right: 0; + margin-left: 24px; + text-align: left; +} +.entry-content blockquote.right { + float: left; + margin-right: 24px; + margin-left: 0; + text-align: right; +} +#entry-author-info #author-avatar { + float: right; + margin: 0 0 0 -104px; +} +#entry-author-info #author-description { + float: right; + margin: 0 104px 0 0; +} + +/* Gallery listing +-------------------------------------------------------------- */ + +.category-gallery .gallery-thumb { + float: right; + margin-left:20px; + margin-right:0; +} + + +/* Images +-------------------------------------------------------------- */ + +#content .gallery .gallery-caption { + margin-right: 0; +} + +#content .gallery .gallery-item { + float: right; +} + +/* =Navigation +-------------------------------------------------------------- */ +.nav-previous { + float: right; +} +.nav-next { + float: left; + text-align:left; +} + +/* =Comments +-------------------------------------------------------------- */ + +.commentlist li.comment { + padding: 0 56px 0 0; +} +.commentlist .avatar { + right: 0; + left: auto; +} +.comment-author .says, #comments .pingback .url { + font-style: normal; +} + +/* Comments form */ +.children #respond { + margin: 0 0 0 48px; +} + +/* =Widget Areas +-------------------------------------------------------------- */ + +.widget-area ul { + margin-right: 0; +} +.widget-area ul ul { + margin-right: 1.3em; + margin-left: 0; +} +#wp-calendar caption { + text-align: right; +} +#wp-calendar tfoot #next { + text-align: left; +} + +/* Main sidebars */ +#main .widget-area ul { + margin-right: 0; + padding: 0 0 0 20px; +} +#main .widget-area ul ul { + margin-right: 1.3em; + margin-left: 0; +} + +/* =Footer +-------------------------------------------------------------- */ +#site-generator { + font-style:normal; +} +#site-generator a { + background-position: right center; + padding-right: 20px; + padding-left: 0; +} \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..151aaa1 Binary files /dev/null and b/screenshot.png differ diff --git a/search.php b/search.php new file mode 100644 index 0000000..e0b9b7b --- /dev/null +++ b/search.php @@ -0,0 +1,42 @@ + +
    + "; + printf( __( 'Search Results for: "%s"', 'twentyten' ), ''.get_search_query().'' ); + echo ""; + $head++; + if ( have_posts() ) { + get_template_part( 'loop', 'search' ); + } else { + ?> + "; + _e( 'Nothing Found', 'twentyten' ); + echo ""; + $head++ + ?> +
    +

    + +
    + +
    + + + + diff --git a/searchform.php b/searchform.php new file mode 100644 index 0000000..6abd302 --- /dev/null +++ b/searchform.php @@ -0,0 +1,5 @@ +
    +
    + +
    +
    diff --git a/sidebar-footer.php b/sidebar-footer.php new file mode 100644 index 0000000..dcb3ba3 --- /dev/null +++ b/sidebar-footer.php @@ -0,0 +1,60 @@ + + + + + diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..f44aabe --- /dev/null +++ b/sidebar.php @@ -0,0 +1,35 @@ + + + + + + + + + diff --git a/single.php b/single.php new file mode 100644 index 0000000..b9bb225 --- /dev/null +++ b/single.php @@ -0,0 +1,79 @@ + +
    + + + +
    > +

    + ID ) + && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) + && $image[1] >= HEADER_IMAGE_WIDTH + ) { + // Houston, we have a new header image! + echo '
    '; + echo get_the_post_thumbnail( $post->ID , null); + echo '
    '; + echo get_post(get_post_thumbnail_id( $post->ID ))->post_excerpt; + echo '
    '; + echo '
    '; + } + ?> + +
    + +
    +
    + '' ) ); ?> +
    + +
    +
    + +
    + +
    + +
    + + ', '' ); ?> +
    +
    + + + + +
    + + diff --git a/style.css b/style.css new file mode 100644 index 0000000..2963e1e --- /dev/null +++ b/style.css @@ -0,0 +1,334 @@ +/* +Theme Name: North Star - Twenty Ten +Theme URI: http://lnnorthstar.org + +Author: Luke Shumaker, based on work by the WordPress team +Author URI: http://lukeshu.ath.cx + +License: GNU General Public License +License URI: license.txt + +Description: The North Star 2010-2011 theme, a fork of Twenty Ten +Version: 0.2 +Tags: multi-author, significant-rolls +*/ + +/*@import "widgets.css";*/ + +#site-description { + font-family:sans-serif; + margin-left:8em; + margin-top:-3em; +} +.entry-meta, .entry-utility { + font-size: 0.8em; + font-family: sans-serif; + clear: both; +} +.entry-meta .authors { + font-weight:bold; +} +.entry-meta .role { + text-transform: uppercase; +} + +.meta-prep-credit { + font-size: 0.8em; + text-transform: lowercase; + font-family: sans-serif; + margin-bottom: 0.5em; +} +.meta-prep-credit strong { + text-transform: uppercase; +} + +.entry-banner, +.entry-banner img { + width: 100%; + height: auto; +} + +#author-avatar { + float:left; +} + +.widget-title { + font-weight:bold; + font-size:1.1em; + text-shadow: -1px 1px #FFFFFF; +} +.widget_ltshomewidget { + list-style-type:none; +} + ul.lts_sidebar { + padding-top:1em; + border-top:solid 1px #CCCCCC; + margin-top:1em; + } + +div.site-generator { + text-align:center; +} + a.site-generator { + background: url(images/wordpress.png) center left no-repeat; + color: #666; + display: inline-block; + line-height: 16px; + padding-left: 20px; + font-style: italic; + } + a.site-generator:hover, + a.site-generator:active, + a.site-generator:focus { text-decoration: underline; } + a.site-generator { text-decoration: none; } + +body { + padding:0; + margin:0; +} + h1, h2, h3, h4, h5, h6 { + clear:both; + } + h1 { + font-family:sans-serif; + color: #a50400; + font-size:5em; + text-decoration:none; + text-align:center; + margin: 18pt; + } + h1 img { display: inline; border: none; } + h2 { + background-color:#cd8282; + border-top: .25em solid #bd0000; + font-family:sans-serif; + text-align:center; + } + h2 a:hover, + h2 a:active, + h2 a:focus { color: #333333; text-decoration: underline; } + h2 a { color: #333333; text-decoration: none; } + h3 { + background-color:#bd0000; + color:#ffffff; + font-family:sans-serif; + text-align:center; + } + h3 a { + text-decoration:none; + } + h3 a:hover, + h3 a:active, + h3 a:focus { color: #ffff00; } + h3 a { color: #ffffff; } + h4 { + border-bottom:solid 1px black; + } + ul, ol { + list-style-position: outside; + padding-left: 1em; + margin-left: 0; + } + li { + font-family:sans-serif; + } + acronym, abbr { + border-bottom: 1px dotted black; + cursor:help; + } + blockquote { + text-align: center; + width:50%; + float:right; + font-style: italic; + font-size: 1.2em; + font-family: sans-serif; + } + blockquote p:before { content: '“'; } + blockquote p:after { content: '”'; } + a:hover, + a:active, + a:focus { color: red; } + img { border: solid 1px black; } + + +/* Classes and IDs ************************************************************/ + .infobar { + width: 100%; + padding: 0.1em 0; + border: solid black; + border-width: 1px 0; + text-align: center; + font-family: sans-serif; + clear:both; + } + .infobar .volume { + float:left; + margin-left: 10%; + } + .infobar .issue { + float:right; + margin-right:10%; + } + .nav { + margin: 1em 0; + background-color: #bd0000; + background-image: linear-gradient(left top, #C54444, #BD0000); + + line-height: 3.1em; + text-align:left; + padding-left: 10%; + } + .nav ul { + margin: 0; + padding: 0; + font-size: 1em; + display: inline; + } + .nav ul li { + display: inline; + list-style-type: none; + } + .nav ul li form { + display: inline; + float:right; + margin-right: 10%; + } + .nav ul li form #s { + background-color: white; + border: 1px solid #5B0000; + height: 28px; + padding: 0; + padding-left: 14px; + vertical-align: middle; + border-top-left-radius: 14px; + border-bottom-left-radius: 14px; + box-shadow: 2px 3px 6px rgba(0,0,0,.5) inset; + } + .nav ul li form #searchsubmit { + background-color: #034208; + background-image: url('/wp-content/themes/lts/images/search.png'); + background-repeat: no-repeat; + background-position: center; + color: transparent; + height:30px; + width:34px; + padding:0; + border: solid 1px #5b0000; + border-left: none; + background-color: #069312; + vertical-align: middle; + border-top-right-radius: 14px; + border-bottom-right-radius: 14px; + } + .nav ul li div { + margin: 0 2em; + display: inline; + padding: 1em 0; + } + .nav ul li div.menu-bannernav-container { + border-right: solid 1px #e13737; + border-left: solid 1px #5b0000; + } + .nav ul li div ul li a { + display: inline-block; + text-decoration: none; + font-weight: bold; + padding: 0 1.5em; + border-left: solid 1px #e13737; + border-right: solid 1px #5b0000; + } + .nav li a:hover, + .nav li a:active, + .nav li a:focus { text-shadow: -1px -1px #000000; color: white; background-color: maroon; } + .nav li a { text-shadow: -1px -1px #5b0000; color: white; } + + div.main { + position: relative; + width:55%;/* 75-20 */ + float:right; + margin:1em; + } + .sidebar { + position: relative; + display:block; + float:right; + margin:1em 10% 1em 0; + width:20%; + background-color:#ECECEC; + border:1px solid #CCCCCC; + padding:.2em; + font-size:.8em; + vertical-align:top; + } + /*.sidebar ul, + .sidebar ol { + margin: 0; + padding: 0; + }*/ + .sidebar > ol > li, + .sidebar > ul > li { + margin-top:1em; + } +/********************************************************************/ + .open { + font-size:1.7em; + font-family:sans-serif; + } + + .sig { + font-style:italic; + padding-left:1em; + border-left:0.3em solid #3f7448; + } + .aside { + padding-left:1em; + border-left:0.3em solid #3f7448; + } + + .txt { + white-space: pre-wrap; + } + + code { + white-space: pre-wrap; + } + + ul.lts_sidebar { + list-style-type:none; + padding:0; + text-align:center; + } + ul.lts_sidebar img { + border:none; + } + ul.lts_sidebar table { + margin:0 auto; + } + + .footer { + width:100%; + clear:both; + } + .footer p { + margin: 1.5em; + } + + .footer .valid { + display:block; + width:100%; + text-align:center; + background-color:#3465a4; + padding:1em 0; + color: #ffffff; + margin:0; + } + .footer .valid a { + color: #a50400; + } + + .nocss { display:none; } + .u { text-decoration:underline; } + .title { text-decoration:underline; } + .alignleft { float:left; margin: 0 1em; max-width:50%; } + .alignright { float:right; margin: 0 1em; max-width:50%; } \ No newline at end of file diff --git a/tag.php b/tag.php new file mode 100644 index 0000000..fd40978 --- /dev/null +++ b/tag.php @@ -0,0 +1,27 @@ + + +
    + +

    ' . single_tag_title( '', false ) . '' ); + ?>

    + + +
    + + diff --git a/widgets.css b/widgets.css new file mode 100644 index 0000000..ac1dbe3 --- /dev/null +++ b/widgets.css @@ -0,0 +1,26 @@ +.widget_search label { + display:inline-block; + width:100%; +} +.widget_search #s { + width:50%; +} + +.widget_statusnetwidget .widget-title { + background-image:url(widgets/identica.png); + background-repeat:no-repeat; + padding-left:16px; +} +ul.statusnet { + list-style-type:none; + padding-left:0; +} +ul.statusnet li.statusnet-item { + padding: 1em 0; + margin:0 1em -1px 1em; + border-bottom:1px solid #cee1e9; + border-top: 1px solid #cee1e9; +} +ul.statusnet li.statusnet-item:hover { + background:#f5f5f5; +} -- cgit v1.1-4-g5e80