Changeset 1902
- Timestamp:
- 03/22/2011 11:23:33 AM (14 months ago)
- Location:
- trunk/blogs/wp-content
- Files:
-
- 3 added
- 16 edited
-
plugins/hello.php (modified) (4 diffs)
-
themes/twentyten/archive.php (modified) (2 diffs)
-
themes/twentyten/attachment.php (modified) (1 diff)
-
themes/twentyten/editor-style.css (modified) (15 diffs)
-
themes/twentyten/footer.php (modified) (2 diffs)
-
themes/twentyten/functions.php (modified) (9 diffs)
-
themes/twentyten/header.php (modified) (1 diff)
-
themes/twentyten/index.php (modified) (1 diff)
-
themes/twentyten/languages/twentyten.pot (modified) (12 diffs)
-
themes/twentyten/loop-attachment.php (added)
-
themes/twentyten/loop-page.php (added)
-
themes/twentyten/loop-single.php (added)
-
themes/twentyten/loop.php (modified) (5 diffs)
-
themes/twentyten/onecolumn-page.php (modified) (1 diff)
-
themes/twentyten/page.php (modified) (1 diff)
-
themes/twentyten/rtl.css (modified) (2 diffs)
-
themes/twentyten/sidebar.php (modified) (1 diff)
-
themes/twentyten/single.php (modified) (1 diff)
-
themes/twentyten/style.css (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/blogs/wp-content/plugins/hello.php
r1874 r1902 2 2 /** 3 3 * @package Hello_Dolly 4 * @version 1. 5.14 * @version 1.6 5 5 */ 6 6 /* 7 7 Plugin Name: Hello Dolly 8 Plugin URI: http://wordpress.org/ #8 Plugin URI: http://wordpress.org/extend/plugins/hello-dolly/ 9 9 Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page. 10 10 Author: Matt Mullenweg 11 Version: 1. 5.111 Version: 1.6 12 12 Author URI: http://ma.tt/ 13 13 */ … … 45 45 46 46 // Here we split it into lines 47 $lyrics = explode( "\n", $lyrics);47 $lyrics = explode( "\n", $lyrics ); 48 48 49 49 // And then randomly choose a line 50 return wptexturize( $lyrics[ mt_rand( 0, count($lyrics) - 1) ] );50 return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] ); 51 51 } 52 52 … … 57 57 } 58 58 59 // Now we set that function up to execute when the admin_ footeraction is called60 add_action( 'admin_footer', 'hello_dolly');59 // Now we set that function up to execute when the admin_notices action is called 60 add_action( 'admin_notices', 'hello_dolly' ); 61 61 62 62 // We need some CSS to position the paragraph 63 63 function dolly_css() { 64 // This makes sure that the posi nioning is also good for right-to-left languages65 $x = ( is_rtl()) ? 'left' : 'right';64 // This makes sure that the positioning is also good for right-to-left languages 65 $x = is_rtl() ? 'left' : 'right'; 66 66 67 67 echo " 68 68 <style type='text/css'> 69 69 #dolly { 70 position: absolute; 71 top: 4.5em; 70 float: $x; 71 padding-$x: 15px; 72 padding-top: 5px; 72 73 margin: 0; 73 padding: 0;74 $x: 215px;75 74 font-size: 11px; 76 75 } … … 79 78 } 80 79 81 add_action( 'admin_head', 'dolly_css');80 add_action( 'admin_head', 'dolly_css' ); 82 81 83 82 ?> -
trunk/blogs/wp-content/themes/twentyten/archive.php
r1874 r1902 33 33 <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?> 34 34 <?php elseif ( is_month() ) : ?> 35 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y') ); ?>35 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y' ) ); ?> 36 36 <?php elseif ( is_year() ) : ?> 37 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y') ); ?>37 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y' ) ); ?> 38 38 <?php else : ?> 39 39 <?php _e( 'Blog Archives', 'twentyten' ); ?> … … 50 50 /* Run the loop for the archives page to output the posts. 51 51 * If you want to overload this in a child theme then include a file 52 * called loop-archive s.php and that will be used instead.52 * called loop-archive.php and that will be used instead. 53 53 */ 54 54 get_template_part( 'loop', 'archive' ); -
trunk/blogs/wp-content/themes/twentyten/attachment.php
r1874 r1902 13 13 <div id="content" role="main"> 14 14 15 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 16 17 <?php if ( ! empty( $post->post_parent ) ) : ?> 18 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php 19 /* translators: %s - title of parent post */ 20 printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) ); 21 ?></a></p> 22 <?php endif; ?> 23 24 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 25 <h2 class="entry-title"><?php the_title(); ?></h2> 26 27 <div class="entry-meta"> 28 <?php 29 printf(__('<span class="%1$s">By</span> %2$s', 'twentyten'), 30 'meta-prep meta-prep-author', 31 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 32 get_author_posts_url( get_the_author_meta( 'ID' ) ), 33 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 34 get_the_author() 35 ) 36 ); 37 ?> 38 <span class="meta-sep">|</span> 39 <?php 40 printf( __('<span class="%1$s">Published</span> %2$s', 'twentyten'), 41 'meta-prep meta-prep-entry-date', 42 sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>', 43 esc_attr( get_the_time() ), 44 get_the_date() 45 ) 46 ); 47 if ( wp_attachment_is_image() ) { 48 echo ' <span class="meta-sep">|</span> '; 49 $metadata = wp_get_attachment_metadata(); 50 printf( __( 'Full size is %s pixels', 'twentyten'), 51 sprintf( '<a href="%1$s" title="%2$s">%3$s × %4$s</a>', 52 wp_get_attachment_url(), 53 esc_attr( __('Link to full-size image', 'twentyten') ), 54 $metadata['width'], 55 $metadata['height'] 56 ) 57 ); 58 } 59 ?> 60 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 61 </div><!-- .entry-meta --> 62 63 <div class="entry-content"> 64 <div class="entry-attachment"> 65 <?php if ( wp_attachment_is_image() ) : 66 $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); 67 foreach ( $attachments as $k => $attachment ) { 68 if ( $attachment->ID == $post->ID ) 69 break; 70 } 71 $k++; 72 // If there is more than 1 image attachment in a gallery 73 if ( count( $attachments ) > 1 ) { 74 if ( isset( $attachments[ $k ] ) ) 75 // get the URL of the next image attachment 76 $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); 77 else 78 // or get the URL of the first image attachment 79 $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); 80 } else { 81 // or, if there's only 1 image attachment, get the URL of the image 82 $next_attachment_url = wp_get_attachment_url(); 83 } 84 ?> 85 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 86 $attachment_size = apply_filters( 'twentyten_attachment_size', 900 ); 87 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. 88 ?></a></p> 89 90 <div id="nav-below" class="navigation"> 91 <div class="nav-previous"><?php previous_image_link( false ); ?></div> 92 <div class="nav-next"><?php next_image_link( false ); ?></div> 93 </div><!-- #nav-below --> 94 <?php else : ?> 95 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> 96 <?php endif; ?> 97 </div><!-- .entry-attachment --> 98 <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div> 99 100 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 101 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 102 103 </div><!-- .entry-content --> 104 105 <div class="entry-utility"> 106 <?php twentyten_posted_in(); ?> 107 <?php edit_post_link( __( 'Edit', 'twentyten' ), ' <span class="edit-link">', '</span>' ); ?> 108 </div><!-- .entry-utility --> 109 </div><!-- #post-## --> 110 111 <?php comments_template(); ?> 112 113 <?php endwhile; ?> 15 <?php 16 /* Run the loop to output the attachment. 17 * If you want to overload this in a child theme then include a file 18 * called loop-attachment.php and that will be used instead. 19 */ 20 get_template_part( 'loop', 'attachment' ); 21 ?> 114 22 115 23 </div><!-- #content --> -
trunk/blogs/wp-content/themes/twentyten/editor-style.css
r1874 r1902 1 1 /* 2 2 Theme Name: Twenty Ten 3 */ 4 /* 5 Used to style the TinyMCE editor. 3 Description: Used to style the TinyMCE editor. 6 4 */ 7 5 html .mceContentBody { 8 max-width: 640px;6 max-width: 640px; 9 7 } 10 8 * { 9 color: #444; 11 10 font-family: Georgia, "Bitstream Charter", serif; 12 color: #444;13 11 line-height: 1.5; 14 12 } … … 41 39 hr { 42 40 background-color: #e7e7e7; 43 border:0; 41 border: 0; 42 clear: both; 44 43 height: 1px; 45 44 margin-bottom: 18px; 46 clear:both;47 45 } 48 46 /* Text elements */ … … 59 57 } 60 58 ol ol { 61 list-style: upper-alpha;59 list-style: upper-alpha; 62 60 } 63 61 ol ol ol { 64 list-style: lower-roman;62 list-style: lower-roman; 65 63 } 66 64 ol ol ol ol { 67 list-style: lower-alpha;65 list-style: lower-alpha; 68 66 } 69 67 ul ul, … … 71 69 ul ol, 72 70 ol ul { 73 margin-bottom: 0;71 margin-bottom: 0; 74 72 } 75 73 dl { 76 margin: 0 0 24px 0;74 margin: 0 0 24px 0; 77 75 } 78 76 dt { … … 83 81 } 84 82 strong { 83 color: #000; 85 84 font-weight: bold; 86 color: #000;87 85 } 88 86 cite, 89 87 em, 90 88 i { 89 border: none; 91 90 font-style: italic; 92 border: none;93 91 } 94 92 big { … … 96 94 } 97 95 ins { 98 background: #ff ffcc;96 background: #ffc; 99 97 border: none; 100 98 color: #333; … … 130 128 sup, 131 129 sub { 130 font-size: 10px; 132 131 height: 0; 133 132 line-height: 1; 133 position: relative; 134 134 vertical-align: baseline; 135 position: relative;136 font-size: 10px;137 135 } 138 136 sup { … … 143 141 } 144 142 a:link { 145 color: #0066cc;143 color: #06c; 146 144 } 147 145 a:visited { 148 color: #743399;146 color: #743399; 149 147 } 150 148 a:active, … … 158 156 pre, 159 157 hr { 160 margin-bottom: 24px;158 margin-bottom: 24px; 161 159 } 162 160 ul ul, … … 164 162 ul ol, 165 163 ol ul { 166 margin-bottom: 0;164 margin-bottom: 0; 167 165 } 168 166 pre, … … 189 187 h6 { 190 188 color: #000; 189 font-weight: normal; 190 line-height: 1.5em; 191 191 margin: 0 0 20px 0; 192 line-height: 1.5em;193 font-weight: normal;194 192 } 195 193 h1 { … … 213 211 table { 214 212 border: 1px solid #e7e7e7 !important; 215 text-align: left;216 margin: 0 -1px 24px 0;217 width: 100%;218 213 border-collapse: collapse; 219 214 border-spacing: 0; 215 margin: 0 -1px 24px 0; 216 text-align: left; 217 width: 100%; 220 218 } 221 219 tr th, … … 233 231 padding: 6px 24px; 234 232 } 235 236 237 233 img { 238 234 margin: 0; 239 max-width: 640px; 235 } 236 img.size-auto, 237 img.size-large, 238 img.size-full, 239 img.size-medium { 240 max-width: 100%; 241 height: auto; 240 242 } 241 243 .alignleft, … … 266 268 } 267 269 .wp-caption { 270 background: #f1f1f1; 268 271 border: none; 269 background: #f1f1f1; 272 -khtml-border-radius: 0; 273 -moz-border-radius: 0; 274 -webkit-border-radius: 0; 275 border-radius: 0; 270 276 color: #888; 271 277 font-size: 12px; 272 278 line-height: 18px; 279 margin-bottom: 20px; 280 max-width: 632px !important; /* prevent too-wide images from breaking layout */ 281 padding: 4px; 273 282 text-align: center; 274 margin-bottom: 20px;275 padding: 4px;276 -moz-border-radius: 0;277 -khtml-border-radius: 0;278 -webkit-border-radius: 0;279 border-radius: 0;280 283 } 281 284 .wp-caption img { … … 286 289 } 287 290 .wp-smiley { 288 margin: 0;289 } 291 margin: 0; 292 } -
trunk/blogs/wp-content/themes/twentyten/footer.php
r1874 r1902 24 24 25 25 <div id="site-info"> 26 <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">26 <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 27 27 <?php bloginfo( 'name' ); ?> 28 28 </a> … … 31 31 <div id="site-generator"> 32 32 <?php do_action( 'twentyten_credits' ); ?> 33 <a href="<?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?>" 34 title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator"> 35 <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?> 36 </a> 33 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a> 37 34 </div><!-- #site-generator --> 38 35 -
trunk/blogs/wp-content/themes/twentyten/functions.php
r1874 r1902 78 78 add_editor_style(); 79 79 80 // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. 81 add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); 82 80 83 // This theme uses post thumbnails 81 84 add_theme_support( 'post-thumbnails' ); … … 102 105 103 106 // Your changeable header business starts here 104 define( 'HEADER_TEXTCOLOR', '' ); 107 if ( ! defined( 'HEADER_TEXTCOLOR' ) ) 108 define( 'HEADER_TEXTCOLOR', '' ); 109 105 110 // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. 106 define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); 111 if ( ! defined( 'HEADER_IMAGE' ) ) 112 define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); 107 113 108 114 // The height and width of your custom header. You can hook into the theme's own filters to change these values. … … 117 123 118 124 // Don't support text inside the header image. 119 define( 'NO_HEADER_TEXT', true ); 125 if ( ! defined( 'NO_HEADER_TEXT' ) ) 126 define( 'NO_HEADER_TEXT', true ); 120 127 121 128 // Add a way for the custom header to be styled in the admin panel that controls … … 276 283 * Remove inline styles printed when the gallery shortcode is used. 277 284 * 278 * Galleries are styled by the theme in Twenty Ten's style.css. 279 * 280 * @since Twenty Ten 1.0 285 * Galleries are styled by the theme in Twenty Ten's style.css. This is just 286 * a simple filter call that tells WordPress to not use the default styles. 287 * 288 * @since Twenty Ten 1.2 289 */ 290 add_filter( 'use_default_gallery_style', '__return_false' ); 291 292 /** 293 * Deprecated way to remove inline styles printed when the gallery shortcode is used. 294 * 295 * This function is no longer needed or used. Use the use_default_gallery_style 296 * filter instead, as seen above. 297 * 298 * @since Twenty Ten 1.0 299 * @deprecated Deprecated in Twenty Ten 1.2 for WordPress 3.1 300 * 281 301 * @return string The gallery style filter, with the styles themselves removed. 282 302 */ … … 284 304 return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css ); 285 305 } 286 add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); 306 // Backwards compatibility with WordPress 3.0. 307 if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) 308 add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); 287 309 288 310 if ( ! function_exists( 'twentyten_comment' ) ) : … … 309 331 </div><!-- .comment-author .vcard --> 310 332 <?php if ( $comment->comment_approved == '0' ) : ?> 311 <em ><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>333 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 312 334 <br /> 313 335 <?php endif; ?> … … 333 355 ?> 334 356 <li class="post pingback"> 335 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten'), ' ' ); ?></p>357 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p> 336 358 <?php 337 359 break; … … 425 447 * function tied to the widgets_init action hook. 426 448 * 449 * This function uses a filter (show_recent_comments_widget_style) new in WordPress 3.1 450 * to remove the default style. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles, 451 * but they won't have any effect on the widget in default Twenty Ten styling. 452 * 427 453 * @since Twenty Ten 1.0 428 454 */ 429 455 function twentyten_remove_recent_comments_style() { 430 global $wp_widget_factory; 431 remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 456 add_filter( 'show_recent_comments_widget_style', '__return_false' ); 432 457 } 433 458 add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); … … 435 460 if ( ! function_exists( 'twentyten_posted_on' ) ) : 436 461 /** 437 * Prints HTML with meta information for the current post âdate/time and author.462 * Prints HTML with meta information for the current post-date/time and author. 438 463 * 439 464 * @since Twenty Ten 1.0 -
trunk/blogs/wp-content/themes/twentyten/header.php
r1874 r1902 68 68 <?php 69 69 // Check if this is a post or page, if it has a thumbnail, and if it's a big one 70 if ( is_singular() && 70 if ( is_singular() && current_theme_supports( 'post-thumbnails' ) && 71 71 has_post_thumbnail( $post->ID ) && 72 72 ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && 73 73 $image[1] >= HEADER_IMAGE_WIDTH ) : 74 74 // Houston, we have a new header image! 75 echo get_the_post_thumbnail( $post->ID , 'post-thumbnail');76 else : ?>75 echo get_the_post_thumbnail( $post->ID ); 76 elseif ( get_header_image() ) : ?> 77 77 <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /> 78 78 <?php endif; ?> -
trunk/blogs/wp-content/themes/twentyten/index.php
r1874 r1902 5 5 * This is the most generic template file in a WordPress theme 6 6 * and one of the two required files for a theme (the other being style.css). 7 * It is used to display a page when nothing more specific matches a query. 7 * It is used to display a page when nothing more specific matches a query. 8 8 * E.g., it puts together the home page when no home.php file exists. 9 9 * Learn more: http://codex.wordpress.org/Template_Hierarchy -
trunk/blogs/wp-content/themes/twentyten/languages/twentyten.pot
r1877 r1902 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Twenty Ten 1. 1\n"5 "Project-Id-Version: Twenty Ten 1.2\n" 6 6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/twentyten\n" 7 "POT-Creation-Date: 2011-0 1-01 21:26:51+00:00\n"7 "POT-Creation-Date: 2011-02-22 08:27:25+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 14 15 #. #-#-#-#-# twentyten.pot (Twenty Ten 1.1) #-#-#-#-# 15 #: loop-attachment.php:21 16 msgid "Return to %s" 17 msgstr "" 18 19 #: loop-attachment.php:23 20 msgid "<span class=\"meta-nav\">←</span> %s" 21 msgstr "" 22 23 #: loop-attachment.php:32 24 msgid "<span class=\"%1$s\">By</span> %2$s" 25 msgstr "" 26 27 #: loop-attachment.php:36 functions.php:476 28 msgid "View all posts by %s" 29 msgstr "" 30 31 #: loop-attachment.php:43 32 msgid "<span class=\"%1$s\">Published</span> %2$s" 33 msgstr "" 34 35 #: loop-attachment.php:53 36 msgid "Full size is %s pixels" 37 msgstr "" 38 39 #: loop-attachment.php:56 40 msgid "Link to full-size image" 41 msgstr "" 42 43 #: loop-attachment.php:63 loop-attachment.php:111 loop.php:100 loop.php:123 44 #: loop.php:165 loop-page.php:30 loop-single.php:56 45 msgid "Edit" 46 msgstr "" 47 48 #: loop-attachment.php:104 loop.php:115 loop.php:143 functions.php:248 49 msgid "Continue reading <span class=\"meta-nav\">→</span>" 50 msgstr "" 51 52 #: loop-attachment.php:105 loop.php:144 loop-page.php:29 loop-single.php:34 53 msgid "Pages:" 54 msgstr "" 55 56 #. #-#-#-#-# twentyten.pot (Twenty Ten 1.2) #-#-#-#-# 16 57 #. Theme URI of the plugin/theme 17 58 #: footer.php:33 … … 19 60 msgstr "" 20 61 21 #: footer.php:3 462 #: footer.php:33 22 63 msgid "Semantic Personal Publishing Platform" 23 64 msgstr "" 24 65 25 #: footer.php:3 566 #: footer.php:33 26 67 msgid "Proudly powered by %s." 27 68 msgstr "" … … 76 117 msgstr "" 77 118 78 #: loop.php:25 loop.php:17 3119 #: loop.php:25 loop.php:178 79 120 msgid "<span class=\"meta-nav\">←</span> Older posts" 80 121 msgstr "" 81 122 82 #: loop.php:26 loop.php:17 4123 #: loop.php:26 loop.php:179 83 124 msgid "Newer posts <span class=\"meta-nav\">→</span>" 84 125 msgstr "" … … 90 131 msgstr "" 91 132 92 #: loop.php:60 loop.php:9 2133 #: loop.php:60 loop.php:95 loop.php:96 93 134 msgctxt "gallery category slug" 94 135 msgid "gallery" 95 136 msgstr "" 96 137 97 #: loop.php:62 loop.php:83 loop.php:1 26138 #: loop.php:62 loop.php:83 loop.php:131 98 139 msgid "Permalink to %s" 99 140 msgstr "" 100 141 101 142 #: loop.php:82 102 msgid "This gallery contains <a %1$s>%2$s photos</a>." 103 msgstr "" 104 105 #: loop.php:92 143 msgid "This gallery contains <a %1$s>%2$s photo</a>." 144 msgid_plural "This gallery contains <a %1$s>%2$s photos</a>." 145 msgstr[0] "" 146 msgstr[1] "" 147 148 #: loop.php:93 149 msgid "View Galleries" 150 msgstr "" 151 152 #: loop.php:93 loop.php:96 153 msgid "More Galleries" 154 msgstr "" 155 156 #: loop.php:96 106 157 msgid "View posts in the Gallery category" 107 158 msgstr "" 108 159 109 #: loop.php:92 110 msgid "More Galleries" 111 msgstr "" 112 113 #: loop.php:94 loop.php:117 loop.php:159 160 #: loop.php:99 loop.php:122 loop.php:164 114 161 msgid "Leave a comment" 115 162 msgstr "" 116 163 117 #: loop.php:9 4 loop.php:117 loop.php:159164 #: loop.php:99 loop.php:122 loop.php:164 118 165 msgid "1 Comment" 119 166 msgstr "" 120 167 121 #: loop.php:9 4 loop.php:117 loop.php:159168 #: loop.php:99 loop.php:122 loop.php:164 122 169 msgid "% Comments" 123 170 msgstr "" 124 171 125 #: loop.php:95 loop.php:118 loop.php:160 page.php:32 attachment.php:60 126 #: attachment.php:107 onecolumn-page.php:27 single.php:53 127 msgid "Edit" 128 msgstr "" 129 130 #: loop.php:101 172 #: loop.php:106 131 173 msgctxt "asides category slug" 132 174 msgid "asides" 133 175 msgstr "" 134 176 135 #: loop.php:110 loop.php:138 functions.php:241 attachment.php:100 136 msgid "Continue reading <span class=\"meta-nav\">→</span>" 137 msgstr "" 138 139 #: loop.php:139 page.php:31 attachment.php:101 onecolumn-page.php:26 140 #: single.php:31 141 msgid "Pages:" 142 msgstr "" 143 144 #: loop.php:146 177 #: loop.php:151 145 178 msgid "<span class=\"%1$s\">Posted in</span> %2$s" 146 179 msgstr "" 147 180 148 #: loop.php:1 55181 #: loop.php:160 149 182 msgid "<span class=\"%1$s\">Tagged</span> %2$s" 150 183 msgstr "" 151 184 152 #: functions.php: 97185 #: functions.php:100 153 186 msgid "Primary Navigation" 154 187 msgstr "" 155 188 156 #: functions.php:1 33189 #: functions.php:140 157 190 msgid "Berries" 158 191 msgstr "" 159 192 160 #: functions.php:1 39193 #: functions.php:146 161 194 msgid "Cherry Blossoms" 162 195 msgstr "" 163 196 164 #: functions.php:1 45197 #: functions.php:152 165 198 msgid "Concave" 166 199 msgstr "" 167 200 168 #: functions.php:15 1201 #: functions.php:158 169 202 msgid "Fern" 170 203 msgstr "" 171 204 172 #: functions.php:1 57205 #: functions.php:164 173 206 msgid "Forest Floor" 174 207 msgstr "" 175 208 176 #: functions.php:1 63209 #: functions.php:170 177 210 msgid "Inkwell" 178 211 msgstr "" 179 212 180 #: functions.php:1 69213 #: functions.php:176 181 214 msgid "Path" 182 215 msgstr "" 183 216 184 #: functions.php:1 75217 #: functions.php:182 185 218 msgid "Sunset" 186 219 msgstr "" 187 220 188 #: functions.php:3 08221 #: functions.php:330 189 222 msgid "%s <span class=\"says\">says:</span>" 190 223 msgstr "" 191 224 192 #: functions.php:3 11225 #: functions.php:333 193 226 msgid "Your comment is awaiting moderation." 194 227 msgstr "" 195 228 196 #: functions.php:3 18229 #: functions.php:340 197 230 msgid "%1$s at %2$s" 198 231 msgstr "" 199 232 200 #: functions.php:3 18 functions.php:335233 #: functions.php:340 functions.php:357 201 234 msgid "(Edit)" 202 235 msgstr "" 203 236 204 #: functions.php:3 35237 #: functions.php:357 205 238 msgid "Pingback:" 206 239 msgstr "" 207 240 208 #: functions.php:3 54241 #: functions.php:376 209 242 msgid "Primary Widget Area" 210 243 msgstr "" 211 244 212 #: functions.php:3 56245 #: functions.php:378 213 246 msgid "The primary widget area" 214 247 msgstr "" 215 248 216 #: functions.php:3 65249 #: functions.php:387 217 250 msgid "Secondary Widget Area" 218 251 msgstr "" 219 252 220 #: functions.php:3 67253 #: functions.php:389 221 254 msgid "The secondary widget area" 222 255 msgstr "" 223 256 224 #: functions.php:3 76257 #: functions.php:398 225 258 msgid "First Footer Widget Area" 226 259 msgstr "" 227 260 228 #: functions.php: 378261 #: functions.php:400 229 262 msgid "The first footer widget area" 230 263 msgstr "" 231 264 232 #: functions.php: 387265 #: functions.php:409 233 266 msgid "Second Footer Widget Area" 234 267 msgstr "" 235 268 236 #: functions.php: 389269 #: functions.php:411 237 270 msgid "The second footer widget area" 238 271 msgstr "" 239 272 240 #: functions.php: 398273 #: functions.php:420 241 274 msgid "Third Footer Widget Area" 242 275 msgstr "" 243 276 244 #: functions.php:4 00277 #: functions.php:422 245 278 msgid "The third footer widget area" 246 279 msgstr "" 247 280 248 #: functions.php:4 09281 #: functions.php:431 249 282 msgid "Fourth Footer Widget Area" 250 283 msgstr "" 251 284 252 #: functions.php:4 11285 #: functions.php:433 253 286 msgid "The fourth footer widget area" 254 287 msgstr "" 255 288 256 #: functions.php:4 42289 #: functions.php:467 257 290 msgid "" 258 291 "<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</" … … 260 293 msgstr "" 261 294 262 #: functions.php:451 attachment.php:33 263 msgid "View all posts by %s" 264 msgstr "" 265 266 #: functions.php:468 295 #: functions.php:493 267 296 msgid "" 268 297 "This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" " … … 270 299 msgstr "" 271 300 272 #: functions.php:4 70301 #: functions.php:495 273 302 msgid "" 274 303 "This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title=" … … 276 305 msgstr "" 277 306 278 #: functions.php:4 72307 #: functions.php:497 279 308 msgid "" 280 309 "Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark" … … 294 323 msgstr "" 295 324 296 #: author.php:37 single.php:40325 #: author.php:37 loop-single.php:43 297 326 msgid "About %s" 298 msgstr ""299 300 #: attachment.php:18301 msgid "Return to %s"302 msgstr ""303 304 #: attachment.php:20305 msgid "<span class=\"meta-nav\">←</span> %s"306 msgstr ""307 308 #: attachment.php:29309 msgid "<span class=\"%1$s\">By</span> %2$s"310 msgstr ""311 312 #: attachment.php:40313 msgid "<span class=\"%1$s\">Published</span> %2$s"314 msgstr ""315 316 #: attachment.php:50317 msgid "Full size is %s pixels"318 msgstr ""319 320 #: attachment.php:53321 msgid "Link to full-size image"322 327 msgstr "" 323 328 … … 336 341 msgstr "" 337 342 343 #: loop-single.php:21 loop-single.php:61 344 msgctxt "Previous post link" 345 msgid "←" 346 msgstr "" 347 348 #: loop-single.php:22 loop-single.php:62 349 msgctxt "Next post link" 350 msgid "→" 351 msgstr "" 352 353 #: loop-single.php:47 354 msgid "View all posts by %s <span class=\"meta-nav\">→</span>" 355 msgstr "" 356 338 357 #: archive.php:33 339 358 msgid "Daily Archives: <span>%s</span>" … … 350 369 #: archive.php:39 351 370 msgid "Blog Archives" 352 msgstr ""353 354 #: single.php:18 single.php:58355 msgctxt "Previous post link"356 msgid "←"357 msgstr ""358 359 #: single.php:19 single.php:59360 msgctxt "Next post link"361 msgid "→"362 msgstr ""363 364 #: single.php:44365 msgid "View all posts by %s <span class=\"meta-nav\">→</span>"366 371 msgstr "" 367 372 … … 390 395 "black, blue, white, two-columns, fixed-width, custom-header, custom-" 391 396 "background, threaded-comments, sticky-post, translation-ready, microformats, " 392 "rtl-language-support, editor-style "393 msgstr "" 397 "rtl-language-support, editor-style, custom-menu" 398 msgstr "" -
trunk/blogs/wp-content/themes/twentyten/loop.php
r1874 r1902 56 56 <?php while ( have_posts() ) : the_post(); ?> 57 57 58 <?php /* How to display posts in the Gallery category. */ ?>58 <?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?> 59 59 60 <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?>60 <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 61 61 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 62 62 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> … … 69 69 <?php if ( post_password_required() ) : ?> 70 70 <?php the_content(); ?> 71 <?php else : ?> 72 <?php 71 <?php else : ?> 72 <?php 73 73 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); 74 74 if ( $images ) : … … 80 80 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> 81 81 </div><!-- .gallery-thumb --> 82 <p><em><?php printf( _ _( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),82 <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ), 83 83 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 84 $total_images84 number_format_i18n( $total_images ) 85 85 ); ?></em></p> 86 86 <?php endif; ?> … … 90 90 91 91 <div class="entry-utility"> 92 <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 92 <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?> 93 <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 93 94 <span class="meta-sep">|</span> 95 <?php elseif ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 96 <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 97 <span class="meta-sep">|</span> 98 <?php endif; ?> 94 99 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 95 100 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> … … 97 102 </div><!-- #post-## --> 98 103 99 <?php /* How to display posts in the asides category*/ ?>104 <?php /* How to display posts of the Aside format. The asides category is the old way. */ ?> 100 105 101 <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') )) : ?>106 <?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?> 102 107 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 103 108 -
trunk/blogs/wp-content/themes/twentyten/onecolumn-page.php
r1874 r1902 18 18 <div id="content" role="main"> 19 19 20 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 21 22 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 23 <h1 class="entry-title"><?php the_title(); ?></h1> 24 <div class="entry-content"> 25 <?php the_content(); ?> 26 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 27 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 28 </div><!-- .entry-content --> 29 </div><!-- #post-## --> 30 31 <?php comments_template( '', true ); ?> 32 33 <?php endwhile; ?> 20 <?php 21 /* Run the loop to output the page. 22 * If you want to overload this in a child theme then include a file 23 * called loop-page.php and that will be used instead. 24 */ 25 get_template_part( 'loop', 'page' ); 26 ?> 34 27 35 28 </div><!-- #content --> -
trunk/blogs/wp-content/themes/twentyten/page.php
r1874 r1902 18 18 <div id="content" role="main"> 19 19 20 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 21 22 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 23 <?php if ( is_front_page() ) { ?> 24 <h2 class="entry-title"><?php the_title(); ?></h2> 25 <?php } else { ?> 26 <h1 class="entry-title"><?php the_title(); ?></h1> 27 <?php } ?> 28 29 <div class="entry-content"> 30 <?php the_content(); ?> 31 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 32 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 33 </div><!-- .entry-content --> 34 </div><!-- #post-## --> 35 36 <?php comments_template( '', true ); ?> 37 38 <?php endwhile; ?> 20 <?php 21 /* Run the loop to output the page. 22 * If you want to overload this in a child theme then include a file 23 * called loop-page.php and that will be used instead. 24 */ 25 get_template_part( 'loop', 'page' ); 26 ?> 39 27 40 28 </div><!-- #content --> -
trunk/blogs/wp-content/themes/twentyten/rtl.css
r1874 r1902 95 95 96 96 /* Text elements */ 97 ul {97 ul, ol { 98 98 margin: 0 1.5em 18px 0; 99 99 } … … 121 121 font-style: normal; 122 122 } 123 #branding img { 124 float: right; 125 } 123 126 124 127 /* =Menu -
trunk/blogs/wp-content/themes/twentyten/sidebar.php
r1874 r1902 19 19 */ 20 20 if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?> 21 21 22 22 <li id="search" class="widget-container widget_search"> 23 23 <?php get_search_form(); ?> -
trunk/blogs/wp-content/themes/twentyten/single.php
r1874 r1902 13 13 <div id="content" role="main"> 14 14 15 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 16 17 <div id="nav-above" class="navigation"> 18 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> 19 <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div> 20 </div><!-- #nav-above --> 21 22 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 23 <h1 class="entry-title"><?php the_title(); ?></h1> 24 25 <div class="entry-meta"> 26 <?php twentyten_posted_on(); ?> 27 </div><!-- .entry-meta --> 28 29 <div class="entry-content"> 30 <?php the_content(); ?> 31 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 32 </div><!-- .entry-content --> 33 34 <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?> 35 <div id="entry-author-info"> 36 <div id="author-avatar"> 37 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> 38 </div><!-- #author-avatar --> 39 <div id="author-description"> 40 <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> 41 <?php the_author_meta( 'description' ); ?> 42 <div id="author-link"> 43 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> 44 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?> 45 </a> 46 </div><!-- #author-link --> 47 </div><!-- #author-description --> 48 </div><!-- #entry-author-info --> 49 <?php endif; ?> 50 51 <div class="entry-utility"> 52 <?php twentyten_posted_in(); ?> 53 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 54 </div><!-- .entry-utility --> 55 </div><!-- #post-## --> 56 57 <div id="nav-below" class="navigation"> 58 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> 59 <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div> 60 </div><!-- #nav-below --> 61 62 <?php comments_template( '', true ); ?> 63 64 <?php endwhile; // end of the loop. ?> 15 <?php 16 /* Run the loop to output the post. 17 * If you want to overload this in a child theme then include a file 18 * called loop-single.php and that will be used instead. 19 */ 20 get_template_part( 'loop', 'single' ); 21 ?> 65 22 66 23 </div><!-- #content --> -
trunk/blogs/wp-content/themes/twentyten/style.css
r1874 r1902 4 4 Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. 5 5 Author: the WordPress team 6 Version: 1.1 7 Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style 6 Version: 1.2 7 License: GNU General Public License 8 License URI: license.txt 9 Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu 8 10 */ 9 11 … … 140 142 .reply, 141 143 .widget-title, 142 .wp-caption-text, 144 .wp-caption-text { 145 font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; 146 } 143 147 input[type=submit] { 144 148 font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; … … 351 355 float: right; 352 356 font-style: italic; 353 margin: 1 4px 0 18px 0;357 margin: 15px 0 18px 0; 354 358 width: 220px; 355 359 } … … 359 363 border-top: 4px solid #000; 360 364 border-bottom: 1px solid #000; 361 clear: both;362 365 display: block; 366 float: left; 363 367 } 364 368 … … 637 641 } 638 642 .page-link { 643 clear: both; 639 644 color: #000; 640 645 font-weight: bold; … … 711 716 -------------------------------------------------------------- */ 712 717 718 .home #content .format-aside p, 713 719 .home #content .category-asides p { 714 720 font-size: 14px; … … 717 723 margin-top: 0; 718 724 } 725 .home .hentry.format-aside, 719 726 .home .hentry.category-asides { 720 727 padding: 0; 721 728 } 729 .home #content .format-aside .entry-content, 722 730 .home #content .category-asides .entry-content { 723 731 padding-top: 0; … … 728 736 -------------------------------------------------------------- */ 729 737 738 .format-gallery .size-thumbnail img, 730 739 .category-gallery .size-thumbnail img { 731 740 border: 10px solid #f1f1f1; 732 741 margin-bottom: 0; 733 742 } 743 .format-gallery .gallery-thumb, 734 744 .category-gallery .gallery-thumb { 735 745 float: left; … … 737 747 margin-top: -4px; 738 748 } 749 .home #content .format-gallery .entry-utility, 739 750 .home #content .category-gallery .entry-utility { 740 751 padding-top: 4px; … … 760 771 -------------------------------------------------------------- */ 761 772 762 #content img { 763 margin: 0; 764 height: auto; 765 max-width: 640px; 766 width: auto; 767 } 768 #content .attachment img { 769 max-width: 900px; 770 } 771 #content .alignleft, 772 #content img.alignleft { 773 /* 774 Resize images to fit the main content area. 775 - Applies only to images uploaded via WordPress by targeting size-* classes. 776 - Other images will be left alone. Use "size-auto" class to apply to other images. 777 */ 778 img.size-auto, 779 img.size-full, 780 img.size-large, 781 img.size-medium, 782 .attachment img { 783 max-width: 100%; /* When images are too wide for containing element, force them to fit. */ 784 height: auto; /* Override height to match resized width for correct aspect ratio. */ 785 } 786 .alignleft, 787 img.alignleft { 773 788 display: inline; 774 789 float: left; … … 776 791 margin-top: 4px; 777 792 } 778 #content.alignright,779 #contentimg.alignright {793 .alignright, 794 img.alignright { 780 795 display: inline; 781 796 float: right; … … 783 798 margin-top: 4px; 784 799 } 785 #content.aligncenter,786 #contentimg.aligncenter {800 .aligncenter, 801 img.aligncenter { 787 802 clear: both; 788 803 display: block; … … 790 805 margin-right: auto; 791 806 } 792 #contentimg.alignleft,793 #contentimg.alignright,794 #contentimg.aligncenter {807 img.alignleft, 808 img.alignright, 809 img.aligncenter { 795 810 margin-bottom: 12px; 796 811 } 797 #content.wp-caption {812 .wp-caption { 798 813 background: #f1f1f1; 799 814 line-height: 18px; 800 815 margin-bottom: 20px; 816 max-width: 632px !important; /* prevent too-wide images from breaking layout */ 801 817 padding: 4px; 802 818 text-align: center; 803 819 } 804 #content.wp-caption img {820 .wp-caption img { 805 821 margin: 5px 5px 0; 806 822 } 807 #content.wp-caption p.wp-caption-text {823 .wp-caption p.wp-caption-text { 808 824 color: #888; 809 825 font-size: 12px; 810 826 margin: 5px; 811 827 } 812 #content.wp-smiley {828 .wp-smiley { 813 829 margin: 0; 814 830 } 815 #content.gallery {831 .gallery { 816 832 margin: 0 auto 18px; 817 833 } 818 #content.gallery .gallery-item {834 .gallery .gallery-item { 819 835 float: left; 820 836 margin-top: 0; … … 822 838 width: 33%; 823 839 } 824 #content .gallery img { 840 .gallery-columns-2 .gallery-item { 841 width: 50%; 842 } 843 .gallery-columns-4 .gallery-item { 844 width: 25%; 845 } 846 .gallery img { 825 847 border: 2px solid #cfcfcf; 826 848 } 827 #content .gallery .gallery-caption { 849 .gallery-columns-2 .attachment-medium { 850 max-width: 92%; 851 height: auto; 852 } 853 .gallery-columns-4 .attachment-thumbnail { 854 max-width: 84%; 855 height: auto; 856 } 857 .gallery .gallery-caption { 828 858 color: #888; 829 859 font-size: 12px; 830 860 margin: 0 0 12px; 831 861 } 832 #content.gallery dl {862 .gallery dl { 833 863 margin: 0; 834 864 } 835 #content.gallery img {865 .gallery img { 836 866 border: 10px solid #f1f1f1; 837 867 } 838 #content.gallery br+br {868 .gallery br+br { 839 869 display: none; 840 870 } 841 #content .attachment img { /* single attachment images should be centered */871 #content .attachment img {/* single attachment images should be centered */ 842 872 display: block; 843 873 margin: 0 auto; … … 1087 1117 list-style: square; 1088 1118 margin-left: 1.3em; 1119 } 1120 .widget-area select { 1121 max-width: 100%; 1089 1122 } 1090 1123 .widget_search #s {/* This keeps the search inputs in line */
Note: See TracChangeset
for help on using the changeset viewer.
