Commit 678b5abf authored by ale's avatar ale Committed by lucha

[auto] Theme: twentytwelve 1.7

parent b8533191
......@@ -10,7 +10,7 @@
* has tag.php for Tag archives, category.php for Category archives, and
* author.php for Author archives.
*
* @link http://codex.wordpress.org/Template_Hierarchy
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -60,4 +60,4 @@ get_header(); ?>
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
......@@ -4,7 +4,7 @@
*
* Used to display archive-type pages for posts by an author.
*
* @link http://codex.wordpress.org/Template_Hierarchy
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -29,7 +29,7 @@ get_header(); ?>
?>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
<h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
</header><!-- .archive-header -->
<?php
......@@ -81,4 +81,4 @@ get_header(); ?>
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
......@@ -4,7 +4,7 @@
*
* Used to display archive-type pages for posts in a category.
*
* @link http://codex.wordpress.org/Template_Hierarchy
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -48,4 +48,4 @@ get_header(); ?>
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
......@@ -17,7 +17,7 @@ body.custom-background-white .site {
}
.assistive-text,
.site .screen-reader-text {
clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px 1px 1px 1px);
}
.full-width .site-content {
float: none;
......@@ -158,7 +158,7 @@ body.full-width .site-content {
color: #636363;
font-weight: bold;
}
.menu-toggle {
.main-navigation .menu-toggle {
display: none;
}
.entry-header .entry-title {
......@@ -183,16 +183,27 @@ body.full-width .site-content {
margin-bottom: 0;
width: 47.916666667%;
}
/* IE Front Page Template Widget fix */
.template-front-page .widget-area {
clear: both;
}
.template-front-page .widget {
width: 100% !important;
border: none;
}
.template-front-page .widget-area .widget,
.template-front-page .first.front-widgets,
.template-front-page.two-sidebars .widget-area .front-widgets {
float: left;
margin-bottom: 24px;
width: 51.875%;
}
.template-front-page .second.front-widgets,
.template-front-page .widget-area .widget:nth-child(odd) {
clear: right;
}
.template-front-page .widget-area .widget:nth-child(even),
.template-front-page .first.front-widgets,
.template-front-page .second.front-widgets,
.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets {
float: right;
margin: 0 0 24px;
......@@ -203,8 +214,12 @@ body.full-width .site-content {
float: none;
width: auto;
}
/* add input font for <IE9 Password Box to make the bullets show up */
input[type="password"] {
font-family: Helvetica, Arial, sans-serif;
}
/* =RTL overrides for IE7 and IE8
/* RTL overrides for IE7 and IE8
-------------------------------------------------------------- */
.rtl .site-header h1,
.rtl .site-header h2 {
......
......@@ -6,8 +6,8 @@
* in the theme as custom template tags. Others are attached to action and
* filter hooks in WordPress to change core functionality.
*
* When using a child theme (see http://codex.wordpress.org/Theme_Development and
* http://codex.wordpress.org/Child_Themes), you can override certain functions
* When using a child theme (see https://codex.wordpress.org/Theme_Development and
* https://codex.wordpress.org/Child_Themes), you can override certain functions
* (those wrapped in a function_exists() call) by defining them first in your child theme's
* functions.php file. The child theme's functions.php file is included before the parent
* theme's file, so the child theme functions would be used.
......@@ -15,7 +15,7 @@
* Functions that are not pluggable (not wrapped in function_exists()) are instead attached
* to a filter or action hook.
*
* For more information on hooks, actions, and filters, @link http://codex.wordpress.org/Plugin_API
* For more information on hooks, actions, and filters, @link https://codex.wordpress.org/Plugin_API
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -279,14 +279,12 @@ if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
function twentytwelve_content_nav( $html_id ) {
global $wp_query;
$html_id = esc_attr( $html_id );
if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">
<nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation">
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></div>
</nav><!-- #<?php echo $html_id; ?> .navigation -->
</nav><!-- .navigation -->
<?php endif;
}
endif;
......@@ -494,6 +492,6 @@ add_action( 'customize_register', 'twentytwelve_customize_register' );
* @since Twenty Twelve 1.0
*/
function twentytwelve_customize_preview_js() {
wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130301', true );
wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true );
}
add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' );
......@@ -46,7 +46,7 @@
</nav><!-- #site-navigation -->
<?php if ( get_header_image() ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a>
<?php endif; ?>
</header><!-- #masthead -->
......
......@@ -2,7 +2,7 @@
/**
* The template for displaying image attachments
*
* @link http://codex.wordpress.org/Template_Hierarchy
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -66,7 +66,7 @@ if ( count( $attachments ) > 1 ) :
$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 );
$next_attachment_url = get_attachment_link( $attachments[0]->ID );
endif;
else :
// or, if there's only 1 image, get the URL of the image
......@@ -113,4 +113,4 @@ endif;
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
......@@ -2,7 +2,7 @@
/**
* Implement an optional custom header for Twenty Twelve
*
* See http://codex.wordpress.org/Custom_Headers
* See https://codex.wordpress.org/Custom_Headers
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -147,19 +147,17 @@ function twentytwelve_admin_header_style() {
* @since Twenty Twelve 1.0
*/
function twentytwelve_admin_header_image() {
$style = 'color: #' . get_header_textcolor() . ';';
if ( ! display_header_text() ) {
$style = 'display: none;';
}
?>
<div id="headimg">
<?php
if ( ! display_header_text() )
$style = ' style="display:none;"';
else
$style = ' style="color:#' . get_header_textcolor() . ';"';
?>
<h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
<h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2>
<?php $header_image = get_header_image();
if ( ! empty( $header_image ) ) : ?>
<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="" />
<?php endif; ?>
</div>
<?php }
\ No newline at end of file
<?php }
......@@ -7,7 +7,7 @@
* It is used to display a page when nothing more specific matches a query.
* For example, it puts together the home page when no home.php file exists.
*
* @link http://codex.wordpress.org/Template_Hierarchy
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -63,4 +63,4 @@ get_header(); ?>
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
......@@ -42,7 +42,7 @@
} );
if ( 'ontouchstart' in window ) {
$( '.menu-item-has-children > a' ).on( 'touchstart.twentytwelve', function( e ) {
$('body').on( 'touchstart.twentytwelve', '.menu-item-has-children > a, .page_item_has_children > a', function( e ) {
var el = $( this ).parent( 'li' );
if ( ! el.hasClass( 'focus' ) ) {
......
/**
* Theme Customizer enhancements for a better user experience.
* Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
* Contains handlers to make Customizer preview reload changes asynchronously.
* Things like site title, description, and background color changes.
*/
......@@ -53,12 +53,13 @@
value.bind( function( to ) {
var body = $( 'body' );
if ( '' != to )
if ( '' !== to ) {
body.removeClass( 'custom-background-empty custom-background-white' );
else if ( 'rgb(255, 255, 255)' == body.css( 'background-color' ) )
} else if ( 'rgb(255, 255, 255)' === body.css( 'background-color' ) ) {
body.addClass( 'custom-background-white' );
else if ( 'rgb(230, 230, 230)' == body.css( 'background-color' ) && '' == _wpCustomizeSettings.values.background_color )
} else if ( 'rgb(230, 230, 230)' === body.css( 'background-color' ) && '' === wp.customize.instance( 'background_color' ).get() ) {
body.addClass( 'custom-background-empty' );
}
} );
} );
} )( jQuery );
# Copyright (C) 2014 the WordPress team
# Copyright (C) 2015 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Twelve 1.5\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentytwelve\n"
"POT-Creation-Date: 2014-09-03 00:45:46+00:00\n"
"Project-Id-Version: Twenty Twelve 1.7\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/twentytwelve\n"
"POT-Creation-Date: 2015-04-23 15:11:25+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -109,7 +109,7 @@ msgstr ""
#: content-aside.php:26 content-image.php:26 content-link.php:24
#: content-page.php:24 content-quote.php:23 content-status.php:40
#: content.php:51 functions.php:345 image.php:37
#: content.php:51 functions.php:343 image.php:37
msgid "Edit"
msgstr ""
......@@ -139,8 +139,6 @@ msgstr ""
msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#. #-#-#-#-# twentytwelve.pot (Twenty Twelve 1.5) #-#-#-#-#
#. Author URI of the plugin/theme
#: footer.php:16
msgid "http://wordpress.org/"
msgstr ""
......@@ -158,7 +156,7 @@ msgid "Primary Menu"
msgstr ""
#. translators: If there are characters in your language that are not supported
#. * by Open Sans, translate this to 'off'. Do not translate into your own
#. by Open Sans, translate this to 'off'. Do not translate into your own
#. language.
#: functions.php:101
msgctxt "Open Sans font: on or off"
......@@ -166,9 +164,8 @@ msgid "on"
msgstr ""
#. translators: To add an additional Open Sans character subset specific to
#. your language,
#. * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate
#. into your own language.
#. your language, translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not
#. translate into your own language.
#: functions.php:107
msgctxt "Open Sans font: add new subset (greek, cyrillic, vietnamese)"
msgid "no-subset"
......@@ -202,67 +199,67 @@ msgstr ""
msgid "Second Front Page Widget Area"
msgstr ""
#: functions.php:286 single.php:20
#: functions.php:284 single.php:20
msgid "Post navigation"
msgstr ""
#: functions.php:287
#: functions.php:285
msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
msgstr ""
#: functions.php:288
#: functions.php:286
msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: functions.php:313
#: functions.php:311
msgid "Pingback:"
msgstr ""
#: functions.php:313
#: functions.php:311
msgid "(Edit)"
msgstr ""
#: functions.php:328
#: functions.php:326
msgid "Post author"
msgstr ""
#. translators: 1: date, 2: time
#: functions.php:334
#: functions.php:332
msgid "%1$s at %2$s"
msgstr ""
#: functions.php:340
#: functions.php:338
msgid "Your comment is awaiting moderation."
msgstr ""
#: functions.php:349
#: functions.php:347
msgid "Reply"
msgstr ""
#. Translators: used between list items, there is a space after the comma.
#: functions.php:370 functions.php:373
#: functions.php:368 functions.php:371
msgid ", "
msgstr ""
#: functions.php:384
#: functions.php:382
msgid "View all posts by %s"
msgstr ""
#. Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's
#. name.
#: functions.php:390
#: functions.php:388
msgid ""
"This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author"
"\"> by %4$s</span>."
msgstr ""
#: functions.php:392
#: functions.php:390
msgid ""
"This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</"
"span>."
msgstr ""
#: functions.php:394
#: functions.php:392
msgid "This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>."
msgstr ""
......@@ -328,7 +325,7 @@ msgid "Twenty Twelve"
msgstr ""
#. Theme URI of the plugin/theme
msgid "http://wordpress.org/themes/twentytwelve"
msgid "https://wordpress.org/themes/twentytwelve/"
msgstr ""
#. Description of the plugin/theme
......@@ -344,6 +341,10 @@ msgstr ""
msgid "the WordPress team"
msgstr ""
#. Author URI of the plugin/theme
msgid "https://wordpress.org/"
msgstr ""
#. Template Name of the plugin/theme
msgid "Front Page Template"
msgstr ""
......
/*
Theme Name: Twenty Twelve
Theme URI: http://wordpress.org/themes/twentytwelve
Theme URI: https://wordpress.org/themes/twentytwelve/
Author: the WordPress team
Author URI: http://wordpress.org/
Author URI: https://wordpress.org/
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
Version: 1.5
Version: 1.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, gray, white, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
......@@ -506,8 +506,14 @@ a:hover {
.site .screen-reader-text {
position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
height: 1px;
width: 1px;
}
.main-navigation .assistive-text:focus {
.main-navigation .assistive-text:focus,
.site .screen-reader-text:hover,
.site .screen-reader-text:active,
.site .screen-reader-text:focus {
background: #fff;
border: 2px solid #333;
border-radius: 3px;
......@@ -805,6 +811,9 @@ article.sticky .featured-post {
.comment-content a:visited {
color: #9f9f9f;
}
.entry-content .more-link {
white-space: nowrap;
}
.entry-content ol,
.comment-content ol,
.entry-content ul,
......@@ -1449,7 +1458,7 @@ img#wpstats {
/* Does the same thing as <meta name="viewport" content="width=device-width">,
* but in the future W3C standard way. -ms- prefix is required for IE10+ to
* render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
* the meta tag. See http://core.trac.wordpress.org/ticket/25888.
* the meta tag. See https://core.trac.wordpress.org/ticket/25888.
*/
@-ms-viewport {
width: device-width;
......
......@@ -4,7 +4,7 @@
*
* Used to display archive-type pages for posts in a tag.
*
* @link http://codex.wordpress.org/Template_Hierarchy
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
......@@ -49,4 +49,4 @@ get_header(); ?>
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment