Changeset 19915
- Timestamp:
- 02/14/2012 03:54:46 AM (13 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 5 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/archive.php
r19843 r19915 19 19 20 20 <?php if ( have_posts() ) : ?> 21 22 <header class="page-header"> 23 <h1 class="page-title"><?php 24 if ( is_day() ) { 25 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); 26 } elseif ( is_month() ) { 27 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); 28 } elseif ( is_year() ) { 29 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); 30 } elseif ( is_tag() ) { 31 printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 32 // Show an optional tag description 33 $tag_description = tag_description(); 34 if ( $tag_description ) 35 echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); 36 } elseif ( is_category() ) { 37 printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); 38 // Show an optional category description 39 $category_description = category_description(); 40 if ( $category_description ) 41 echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' ); 42 } else { 43 _e( 'Blog Archives', 'twentytwelve' ); 44 } 45 ?></h1> 46 </header> 21 <h1 class="archive-title all-caps-title"><?php 22 if ( is_day() ) { 23 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); 24 } elseif ( is_month() ) { 25 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); 26 } elseif ( is_year() ) { 27 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); 28 } elseif ( is_tag() ) { 29 printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 30 // Show an optional tag description 31 $tag_description = tag_description(); 32 if ( $tag_description ) 33 echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); 34 } elseif ( is_category() ) { 35 printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); 36 // Show an optional category description 37 $category_description = category_description(); 38 if ( $category_description ) 39 echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' ); 40 } else { 41 _e( 'Blog Archives', 'twentytwelve' ); 42 } 43 ?></h1> 47 44 48 45 <?php 49 twentytwelve_content_nav( 'nav-above' );50 51 46 /* Start the Loop */ 52 47 while ( have_posts() ) : the_post(); -
trunk/wp-content/themes/twentytwelve/content-single.php
r19842 r19915 9 9 ?> 10 10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>12 <header class="entry-header">13 <h1 class="entry-title"><?php the_title(); ?></h1>11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <header class="entry-header"> 13 <h1 class="entry-title"><?php the_title(); ?></h1> 14 14 15 <?php if ( 'post' == get_post_type() ) :?>16 <div class="entry-meta">17 <?php twentytwelve_posted_on(); ?>18 </div><!-- .entry-meta -->19 <?php endif; ?>20 </header><!-- .entry-header -->15 <?php if ( 'post' == get_post_type() ) : // Hide entry meta for pages ?> 16 <div class="entry-meta"> 17 <?php twentytwelve_posted_on(); ?> 18 </div><!-- .entry-meta --> 19 <?php endif; ?> 20 </header><!-- .entry-header --> 21 21 22 <div class="entry-content">23 <?php the_content(); ?>24 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>25 </div><!-- .entry-content -->22 <div class="entry-content"> 23 <?php the_content(); ?> 24 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> 25 </div><!-- .entry-content --> 26 26 27 <footer class="entry-meta">28 <?php29 /* translators: used between list items, there is a space after the comma */30 $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );27 <footer class="entry-meta"> 28 <?php 29 /* translators: used between list items, there is a space after the comma */ 30 $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); 31 31 32 /* translators: used between list items, there is a space after the comma */33 $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );34 if ( '' != $tag_list ) {35 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentytwelve' );36 } elseif ( '' != $categories_list ) {37 $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentytwelve' );38 } else {39 $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentytwelve' );40 }32 /* translators: used between list items, there is a space after the comma */ 33 $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); 34 if ( '' != $tag_list ) { 35 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentytwelve' ); 36 } elseif ( '' != $categories_list ) { 37 $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentytwelve' ); 38 } else { 39 $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentytwelve' ); 40 } 41 41 42 printf(43 $utility_text,44 $categories_list,45 $tag_list,46 esc_url( get_permalink() ),47 the_title_attribute( 'echo=0' ),48 get_the_author(),49 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )50 );51 ?>52 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>42 printf( 43 $utility_text, 44 $categories_list, 45 $tag_list, 46 esc_url( get_permalink() ), 47 the_title_attribute( 'echo=0' ), 48 get_the_author(), 49 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) 50 ); 51 ?> 52 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 53 53 54 <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>55 <div id="author-info">56 <div id="author-avatar">57 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?>58 </div><!-- #author-avatar -->59 <div id="author-description">60 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>61 <?php the_author_meta( 'description' ); ?>62 <div id="author-link">63 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">64 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?>65 </a>66 </div><!-- #author-link -->67 </div><!-- #author-description -->68 </div><!-- #entry-author-info -->69 <?php endif; ?>70 </footer><!-- .entry-meta -->71 </article><!-- #post -->54 <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?> 55 <div id="author-info"> 56 <div id="author-avatar"> 57 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> 58 </div><!-- #author-avatar --> 59 <div id="author-description"> 60 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 61 <?php the_author_meta( 'description' ); ?> 62 <div id="author-link"> 63 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 64 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> 65 </a> 66 </div><!-- #author-link --> 67 </div><!-- #author-description --> 68 </div><!-- #entry-author-info --> 69 <?php endif; ?> 70 </footer><!-- .entry-meta --> 71 </article><!-- #post --> -
trunk/wp-content/themes/twentytwelve/content.php
r19842 r19915 1 1 <?php 2 2 /** 3 * The default template for displaying content 3 * The default template for displaying content on indexed pages (home, archive, search) 4 4 * 5 5 * @package WordPress … … 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 <header class="entry-header"> 13 <?php if ( is_sticky() ) : ?>14 <hgroup>15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>16 <h3 class="entry-format"><?php _e( 'Featured', 'twentytwelve' ); ?></h3>17 </hgroup>18 <?php else : ?>19 13 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 20 <?php endif; ?>21 14 22 <?php if ( 'post' == get_post_type() ) : ?>15 <?php if ( 'post' == get_post_type() ) : // Hide entry meta for pages ?> 23 16 <div class="entry-meta"> 24 17 <?php twentytwelve_posted_on(); ?> … … 27 20 </header><!-- .entry-header --> 28 21 29 <?php if ( is_search() ) : // Only display Excerpts for Search ?>22 <?php if ( is_search() ) : // Only display excerpts for search ?> 30 23 <div class="entry-summary"> 31 24 <?php the_excerpt(); ?> … … 39 32 40 33 <footer class="entry-meta"> 41 <?php $show_sep = false; ?> 42 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> 34 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages ?> 43 35 <?php 44 36 /* translators: used between list items, there is a space after the comma */ 45 37 $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); 46 if ( $categories_list ) :38 if ( $categories_list ) : 47 39 ?> 48 40 <span class="cat-links"> 49 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentytwelve' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); 50 $show_sep = true; ?> 41 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentytwelve' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?> 51 42 </span> 52 43 <?php endif; // End if categories ?> … … 54 45 /* translators: used between list items, there is a space after the comma */ 55 46 $tags_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); 56 if ( $tags_list ): 57 if ( $show_sep ) : ?> 58 <span class="sep"> | </span> 59 <?php endif; // End if $show_sep ?> 47 if ( $tags_list ) : ?> 60 48 <span class="tag-links"> 61 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentytwelve' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); 62 $show_sep = true; ?> 49 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentytwelve' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> 63 50 </span> 64 51 <?php endif; // End if $tags_list ?> … … 66 53 67 54 <?php if ( comments_open() ) : ?> 68 <?php if ( $show_sep ) : ?>69 <span class="sep"> | </span>70 <?php endif; // End if $show_sep ?>71 55 <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '<b>1</b> Reply', 'twentytwelve' ), __( '<b>%</b> Replies', 'twentytwelve' ) ); ?></span> 72 56 <?php endif; // End if comments_open() ?> -
trunk/wp-content/themes/twentytwelve/functions.php
r19845 r19915 37 37 add_action( 'after_setup_theme', 'twentytwelve_setup' ); 38 38 39 if ( ! function_exists( 'twentytwelve_setup' ) ) :39 if ( ! function_exists( 'twentytwelve_setup' ) ) : 40 40 /** 41 41 * Sets up theme defaults and registers support for various WordPress features. … … 60 60 add_theme_support( 'automatic-feed-links' ); 61 61 62 // Add support for a variety of post formats 63 add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote' ) ); 64 62 65 // This theme uses wp_nav_menu() in one location. 63 66 register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); 64 67 65 // Add support for custom background s68 // Add support for custom background. 66 69 add_custom_background(); 67 } 70 71 // Add support for a custom header image. 72 $header_args = array( 73 'random-default' => true, 74 'flex-height' => true, 75 'suggested-height' => apply_filters( 'twentytwelve_header_image_height', 250 ), 76 'flex-width' => true, 77 'max-width' => apply_filters( 'twentytwelve_header_image_max_width', 2000 ), 78 'suggested-width' => apply_filters( 'twentytwelve_header_image_width', 960 ), 79 ); 80 add_theme_support( 'custom-header', $header_args ); 81 add_custom_image_header( 'twentytwelve_header_style', 'twentytwelve_admin_header_style', 'twentytwelve_admin_header_image' ); 82 83 // The default header text color 84 define( 'HEADER_TEXTCOLOR', '444' ); 85 } 86 endif; 87 88 if ( ! function_exists( 'twentytwelve_header_style' ) ) : 89 /** 90 * Styles the header image and text displayed on the blog 91 * 92 * get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank'), or any hex value 93 * 94 * @since Twenty Twelve 1.0 95 */ 96 function twentytwelve_header_style() { 97 // If no custom options for text are set, let's bail 98 if ( HEADER_TEXTCOLOR == get_header_textcolor() ) 99 return; 100 // If we get this far, we have custom styles. 101 ?> 102 <style type="text/css"> 103 <?php 104 // Has the text been hidden? 105 if ( 'blank' == get_header_textcolor() ) : 106 ?> 107 .site-title, 108 .site-description { 109 position: absolute !important; 110 clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 111 clip: rect(1px, 1px, 1px, 1px); 112 } 113 <?php 114 // If the user has set a custom color for the text, use that. 115 else : 116 ?> 117 .site-title a, 118 .site-description { 119 color: #<?php echo get_header_textcolor(); ?> !important; 120 } 121 <?php endif; ?> 122 </style> 123 <?php 124 } 125 endif; 126 127 if ( ! function_exists( 'twentytwelve_admin_header_style' ) ) : 128 /** 129 * Styles the header image displayed on the Appearance > Header admin panel. 130 * 131 * Referenced via add_custom_image_header() in twentytwelve_setup(). 132 * 133 * @since Twenty Twelve 1.0 134 */ 135 function twentytwelve_admin_header_style() { 136 ?> 137 <style type="text/css"> 138 .appearance_page_custom-header #headimg { 139 border: none; 140 } 141 #headimg h1, 142 #headimg h2 { 143 line-height: 1.6; 144 margin: 0; 145 padding: 0; 146 } 147 #headimg h1 { 148 font-size: 30px; 149 } 150 #headimg h1 a { 151 text-decoration: none; 152 } 153 #headimg h2 { 154 font: normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif; 155 margin-bottom: 24px; 156 } 157 #headimg img { 158 } 159 </style> 160 <?php 161 } 162 endif; 163 164 if ( ! function_exists( 'twentytwelve_admin_header_image' ) ) : 165 /** 166 * Custom header image markup displayed on the Appearance > Header admin panel. 167 * 168 * Referenced via add_custom_image_header() in twentytwelve_setup(). 169 * 170 * @since Twenty Twelve 1.0 171 */ 172 function twentytwelve_admin_header_image() { ?> 173 <div id="headimg"> 174 <?php 175 if ( 'blank' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) || '' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) ) 176 $style = ' style="display:none;"'; 177 else 178 $style = ' style="color:#' . get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) . ';"'; 179 ?> 180 <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 181 <h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2> 182 <?php $header_image = get_header_image(); 183 if ( ! empty( $header_image ) ) : ?> 184 <img src="<?php echo esc_url( $header_image ); ?>" alt="" /> 185 <?php endif; ?> 186 </div> 187 <?php } 68 188 endif; 69 189 … … 90 210 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 91 211 'after_widget' => "</aside>", 92 'before_title' => '<h3 class="widget-title ">',212 'before_title' => '<h3 class="widget-title all-caps-title">', 93 213 'after_title' => '</h3>', 94 214 ) ); … … 108 228 <nav id="<?php echo $nav_id; ?>"> 109 229 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 110 <div class="nav-previous "><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>111 <div class="nav-next "><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>230 <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> 231 <div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> 112 232 </nav><!-- #nav-above --> 113 233 <?php endif; … … 203 323 } 204 324 endif; 325 326 /** 327 * Extends the default WordPress body class to denote a full-width layout. 328 * 329 * Used in two cases: no active widgets in sidebar, and full-width page template. 330 * 331 * @since Twenty Twelve 1.0 332 */ 333 function twentytwelve_body_class( $classes ) { 334 if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'full-width' ) ) 335 $classes[] = 'full-width'; 336 337 return $classes; 338 } 339 add_filter( 'body_class', 'twentytwelve_body_class' ); -
trunk/wp-content/themes/twentytwelve/header.php
r19845 r19915 14 14 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 15 15 <meta name="viewport" content="width=device-width" /> 16 <title><?php wp_title( '|', true, 'right' ); ?> </title>16 <title><?php wp_title( '|', true, 'right' ); ?> <?php bloginfo( 'name' ); ?></title> 17 17 <link rel="profile" href="http://gmpg.org/xfn/11" /> 18 18 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> … … 28 28 wp_enqueue_script( 'comment-reply' ); 29 29 30 wp_enqueue_style( 'twentytwelve-style', get_ bloginfo( 'stylesheet_url') );30 wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); 31 31 ?> 32 32 <?php wp_head(); ?> … … 47 47 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> 48 48 </nav> 49 50 <?php $header_image = get_header_image(); 51 if ( ! empty( $header_image ) ) : ?> 52 <img src="<?php echo esc_url( $header_image ); ?>" alt="" /> 53 <?php endif; ?> 49 54 </header><!-- #masthead --> 50 55 -
trunk/wp-content/themes/twentytwelve/index.php
r19842 r19915 17 17 <div id="primary"> 18 18 <div id="content" role="main"> 19 <!-- Placeholder for optional header image20 <section role="banner">21 <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/flowers.jpg" width="625" height="188" />22 </section>23 -->24 19 <?php if ( have_posts() ) : ?> 25 20 -
trunk/wp-content/themes/twentytwelve/sidebar.php
r19842 r19915 2 2 /** 3 3 * The Sidebar containing the main widget area. 4 * 5 * If no active widgets in sidebar, hide it completely. 4 6 * 5 7 * @package WordPress … … 8 10 */ 9 11 ?> 12 13 <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> 10 14 <div id="secondary" class="widget-area" role="complementary"> 11 <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> 12 13 <aside id="archives" class="widget"> 14 <h3 class="widget-title"><?php _e( 'Archives', 'twentytwelve' ); ?></h3> 15 <ul> 16 <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> 17 </ul> 18 </aside> 19 20 <aside id="meta" class="widget"> 21 <h3 class="widget-title"><?php _e( 'Meta', 'twentytwelve' ); ?></h3> 22 <ul> 23 <?php wp_register(); ?> 24 <li><?php wp_loginout(); ?></li> 25 <?php wp_meta(); ?> 26 </ul> 27 </aside> 28 29 <?php endif; // end sidebar widget area ?> 15 <?php dynamic_sidebar( 'sidebar-1' ); ?> 30 16 </div><!-- #secondary .widget-area --> 17 <?php endif; ?> -
trunk/wp-content/themes/twentytwelve/style.css
r19842 r19915 115 115 } 116 116 117 /* patterns.scss 118 * Repeatable patterns 119 * ------------------------------------------------------------------ */ 120 .all-caps-title { 121 text-transform: uppercase; 122 font-weight: 400; 123 font-size: 13px; 124 font-size: 0.928571429rem; 125 line-height: 1.846153846; 126 } 127 117 128 /* scaffolding.css.scss 118 129 * Basic structure … … 149 160 Page structure 150 161 ------------------------------------------------------------ */ 151 div#page {162 #page { 152 163 padding: 0 24px; 153 164 padding: 0 1.714285714rem; … … 155 166 } 156 167 @media screen and (min-width: 600px) { 157 div#page {168 #page { 158 169 zoom: 1; 159 170 margin: 0 auto; … … 161 172 max-width: 68.571428571rem; 162 173 } 163 div#page:before, div#page:after {174 #page:before, #page:after { 164 175 display: table; 165 176 content: ""; 166 177 } 167 div#page:after {178 #page:after { 168 179 clear: both; 169 180 } … … 171 182 } 172 183 173 div#primary {184 #primary { 174 185 margin: 24px 0; 175 186 margin: 1.714285714rem 0; 176 187 } 177 188 @media screen and (min-width: 600px) { 178 div#primary {189 #primary { 179 190 float: left; 180 191 width: 65.104166667%; 181 192 } 182 193 183 } 184 185 div#secondary { 194 @media screen and (min-width: 600px) { 195 body.full-width #primary { 196 width: 100%; 197 } 198 } 199 200 #secondary { 186 201 margin: 24px 0; 187 202 margin: 1.714285714rem 0; 188 203 } 189 204 @media screen and (min-width: 600px) { 190 div#secondary {205 #secondary { 191 206 float: right; 192 207 width: 26.041666667%; … … 348 363 margin-bottom: 24px; 349 364 margin-bottom: 1.714285714rem; 350 text-transform: uppercase;351 font-weight: 300;352 font-size: 13px;353 font-size: 0.928571429rem;354 line-height: 1.846153846;355 365 } 356 366 div#secondary aside p, … … 522 532 max-width: 100%; 523 533 } 534 535 /* archive.css.scss 536 * Styling for the archive view 537 * ------------------------------------------------------------------ */ 538 #content.archive h1.archive-title { 539 margin-bottom: 48px; 540 margin-bottom: 3.428571429rem; 541 padding-bottom: 22px; 542 padding-bottom: 1.571428571rem; 543 border-bottom: 1px solid #ededed; 544 color: #777777; 545 }
Note: See TracChangeset
for help on using the changeset viewer.