update merge branch 'twentytwelve' into twentyGOLEM
bringing the theme up to date with upstream
This commit is contained in:
commit
b056b7e2a1
2
404.php
2
404.php
|
@ -26,4 +26,4 @@ get_header(); ?>
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
39
archive.php
39
archive.php
|
@ -10,7 +10,7 @@
|
||||||
* has tag.php for Tag archives, category.php for Category archives, and
|
* has tag.php for Tag archives, category.php for Category archives, and
|
||||||
* author.php for Author archives.
|
* author.php for Author archives.
|
||||||
*
|
*
|
||||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
|
@ -24,25 +24,32 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<header class="archive-header">
|
||||||
<h1 class="archive-title"><?php
|
<h1 class="archive-title">
|
||||||
if ( is_day() ) :
|
<?php
|
||||||
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
|
if ( is_day() ) {
|
||||||
elseif ( is_month() ) :
|
/* translators: %s: Date. */
|
||||||
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
|
||||||
elseif ( is_year() ) :
|
} elseif ( is_month() ) {
|
||||||
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
/* translators: %s: Date. */
|
||||||
else :
|
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||||
_e( 'Archives', 'twentytwelve' );
|
} elseif ( is_year() ) {
|
||||||
endif;
|
/* translators: %s: Date. */
|
||||||
?></h1>
|
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||||
|
} else {
|
||||||
|
_e( 'Archives', 'twentytwelve' );
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
</header><!-- .archive-header -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Start the Loop */
|
// Start the Loop.
|
||||||
while ( have_posts() ) : the_post();
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
|
||||||
/* Include the post format-specific template for the content. If you want to
|
/*
|
||||||
* this in a child theme then include a file called called content-___.php
|
* Include the post format-specific template for the content. If you want
|
||||||
|
* to use this in a child theme then include a file called content-___.php
|
||||||
* (where ___ is the post format) and that will be used instead.
|
* (where ___ is the post format) and that will be used instead.
|
||||||
*/
|
*/
|
||||||
get_template_part( 'content', get_post_format() );
|
get_template_part( 'content', get_post_format() );
|
||||||
|
|
38
author.php
38
author.php
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* Used to display archive-type pages for posts by an author.
|
* Used to display archive-type pages for posts by an author.
|
||||||
*
|
*
|
||||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
|
@ -19,7 +19,8 @@ get_header(); ?>
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Queue the first post, that way we know
|
/*
|
||||||
|
* Queue the first post, that way we know
|
||||||
* what author we're dealing with (if that is the case).
|
* what author we're dealing with (if that is the case).
|
||||||
*
|
*
|
||||||
* We reset this later so we can run the loop
|
* We reset this later so we can run the loop
|
||||||
|
@ -29,13 +30,19 @@ get_header(); ?>
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<header class="archive-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
|
||||||
|
/* translators: Author display name. */
|
||||||
|
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 -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Since we called the_post() above, we need to
|
/*
|
||||||
* rewind the loop back to the beginning that way
|
* Since we called the_post() above, we need
|
||||||
* we can run the loop properly, in full.
|
* to rewind the loop back to the beginning.
|
||||||
|
* That way we can run the loop properly, in full.
|
||||||
*/
|
*/
|
||||||
rewind_posts();
|
rewind_posts();
|
||||||
?>
|
?>
|
||||||
|
@ -44,12 +51,13 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// If a user has filled out their description, show a bio on their entries.
|
// If a user has filled out their description, show a bio on their entries.
|
||||||
if ( get_the_author_meta( 'description' ) ) : ?>
|
if ( get_the_author_meta( 'description' ) ) :
|
||||||
|
?>
|
||||||
<div class="author-info">
|
<div class="author-info">
|
||||||
<div class="author-avatar">
|
<div class="author-avatar">
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Filter the author bio avatar size.
|
* Filters the author bio avatar size.
|
||||||
*
|
*
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*
|
*
|
||||||
|
@ -60,14 +68,22 @@ get_header(); ?>
|
||||||
?>
|
?>
|
||||||
</div><!-- .author-avatar -->
|
</div><!-- .author-avatar -->
|
||||||
<div class="author-description">
|
<div class="author-description">
|
||||||
<h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
|
<h2>
|
||||||
|
<?php
|
||||||
|
/* translators: Author display name. */
|
||||||
|
printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
|
||||||
|
?>
|
||||||
|
</h2>
|
||||||
<p><?php the_author_meta( 'description' ); ?></p>
|
<p><?php the_author_meta( 'description' ); ?></p>
|
||||||
</div><!-- .author-description -->
|
</div><!-- .author-description -->
|
||||||
</div><!-- .author-info -->
|
</div><!-- .author-info -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<?php
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
// Start the Loop.
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
<?php get_template_part( 'content', get_post_format() ); ?>
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
|
|
21
category.php
21
category.php
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* Used to display archive-type pages for posts in a category.
|
* Used to display archive-type pages for posts in a category.
|
||||||
*
|
*
|
||||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
|
@ -18,19 +18,26 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<header class="archive-header">
|
||||||
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
|
<h1 class="archive-title">
|
||||||
|
<?php
|
||||||
|
/* translators: %s: Category title. */
|
||||||
|
printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
|
|
||||||
<?php if ( category_description() ) : // Show an optional category description ?>
|
<?php if ( category_description() ) : // Show an optional category description. ?>
|
||||||
<div class="archive-meta"><?php echo category_description(); ?></div>
|
<div class="archive-meta"><?php echo category_description(); ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</header><!-- .archive-header -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Start the Loop */
|
// Start the Loop.
|
||||||
while ( have_posts() ) : the_post();
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
|
||||||
/* Include the post format-specific template for the content. If you want to
|
/*
|
||||||
* this in a child theme then include a file called called content-___.php
|
* Include the post format-specific template for the content. If you want
|
||||||
|
* to use this in a child theme then include a file called content-___.php
|
||||||
* (where ___ is the post format) and that will be used instead.
|
* (where ___ is the post format) and that will be used instead.
|
||||||
*/
|
*/
|
||||||
get_template_part( 'content', get_post_format() );
|
get_template_part( 'content', get_post_format() );
|
||||||
|
|
42
comments.php
42
comments.php
|
@ -17,8 +17,9 @@
|
||||||
* the visitor has not yet entered the password we will
|
* the visitor has not yet entered the password we will
|
||||||
* return early without loading the comments.
|
* return early without loading the comments.
|
||||||
*/
|
*/
|
||||||
if ( post_password_required() )
|
if ( post_password_required() ) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="comments" class="comments-area">
|
<div id="comments" class="comments-area">
|
||||||
|
@ -28,33 +29,54 @@ if ( post_password_required() )
|
||||||
<?php if ( have_comments() ) : ?>
|
<?php if ( have_comments() ) : ?>
|
||||||
<h2 class="comments-title">
|
<h2 class="comments-title">
|
||||||
<?php
|
<?php
|
||||||
printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ),
|
if ( 1 === get_comments_number() ) {
|
||||||
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
|
printf(
|
||||||
|
/* translators: %s: The post title. */
|
||||||
|
__( 'One thought on “%s”', 'twentytwelve' ),
|
||||||
|
'<span>' . get_the_title() . '</span>'
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
printf(
|
||||||
|
/* translators: %1$s: The number of comments. %2$s: The post title. */
|
||||||
|
_n( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ),
|
||||||
|
number_format_i18n( get_comments_number() ),
|
||||||
|
'<span>' . get_the_title() . '</span>'
|
||||||
|
);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<ol class="commentlist">
|
<ol class="commentlist">
|
||||||
<?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?>
|
<?php
|
||||||
|
wp_list_comments(
|
||||||
|
array(
|
||||||
|
'callback' => 'twentytwelve_comment',
|
||||||
|
'style' => 'ol',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
?>
|
||||||
</ol><!-- .commentlist -->
|
</ol><!-- .commentlist -->
|
||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||||
<nav id="comment-nav-below" class="navigation" role="navigation">
|
<nav id="comment-nav-below" class="navigation" role="navigation">
|
||||||
<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
|
<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div>
|
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; // check for comment navigation ?>
|
<?php endif; // Check for comment navigation. ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* If there are no comments and comments are closed, let's leave a note.
|
/*
|
||||||
|
* If there are no comments and comments are closed, let's leave a note.
|
||||||
* But we only want the note on posts and pages that had comments in the first place.
|
* But we only want the note on posts and pages that had comments in the first place.
|
||||||
*/
|
*/
|
||||||
if ( ! comments_open() && get_comments_number() ) : ?>
|
if ( ! comments_open() && get_comments_number() ) :
|
||||||
<p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p>
|
?>
|
||||||
|
<p class="nocomments"><?php _e( 'Comments are closed.', 'twentytwelve' ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php endif; // have_comments() ?>
|
<?php endif; // have_comments() ?>
|
||||||
|
|
||||||
<?php comment_form(); ?>
|
<?php comment_form(); ?>
|
||||||
|
|
||||||
</div><!-- #comments .comments-area -->
|
</div><!-- #comments .comments-area -->
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* translators: %s: Post title. */
|
||||||
|
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
@ -17,7 +20,7 @@
|
||||||
</div><!-- .aside -->
|
</div><!-- .aside -->
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
<div class="comments-link">
|
<div class="comments-link">
|
||||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* translators: %s: Post title. */
|
||||||
|
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
@ -15,7 +18,7 @@
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
<div class="comments-link">
|
<div class="comments-link">
|
||||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
||||||
|
|
|
@ -11,14 +11,21 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
|
<?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
|
<?php
|
||||||
|
wp_link_pages(
|
||||||
|
array(
|
||||||
|
'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ),
|
||||||
|
'after' => '</div>',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* translators: %s: Post title. */
|
||||||
|
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
@ -14,7 +17,7 @@
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
<div class="comments-link">
|
<div class="comments-link">
|
||||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
||||||
|
|
|
@ -6,17 +6,20 @@
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* translators: %s: Post title. */
|
||||||
|
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<div class="entry-header">
|
<div class="entry-header">
|
||||||
<header>
|
<header>
|
||||||
<h1><?php the_author(); ?></h1>
|
<h1><?php the_author(); ?></h1>
|
||||||
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
|
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
|
||||||
</header>
|
</header>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Filter the status avatar size.
|
* Filters the status avatar size.
|
||||||
*
|
*
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*
|
*
|
||||||
|
|
34
content.php
34
content.php
|
@ -17,9 +17,11 @@
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<?php if ( ! post_password_required() && ! is_attachment() ) :
|
<?php
|
||||||
|
if ( ! post_password_required() && ! is_attachment() ) :
|
||||||
the_post_thumbnail();
|
the_post_thumbnail();
|
||||||
endif; ?>
|
endif;
|
||||||
|
?>
|
||||||
|
|
||||||
<?php if ( is_single() ) : ?>
|
<?php if ( is_single() ) : ?>
|
||||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||||
|
@ -35,21 +37,31 @@
|
||||||
<?php endif; // comments_open() ?>
|
<?php endif; // comments_open() ?>
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
|
<?php if ( is_search() ) : // Only display excerpts for search. ?>
|
||||||
<div class="entry-summary">
|
<div class="entry-summary">
|
||||||
<?php the_excerpt(); ?>
|
<?php the_excerpt(); ?>
|
||||||
</div><!-- .entry-summary -->
|
</div><!-- .entry-summary -->
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
|
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
|
||||||
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
|
<?php
|
||||||
|
wp_link_pages(
|
||||||
|
array(
|
||||||
|
'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ),
|
||||||
|
'after' => '</div>',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<?php twentytwelve_entry_meta(); ?>
|
<?php twentytwelve_entry_meta(); ?>
|
||||||
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
||||||
<?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
|
<?php
|
||||||
|
// If a user has filled out their description and this is a multi-author blog, show a bio on their entries.
|
||||||
|
if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) :
|
||||||
|
?>
|
||||||
<div class="author-info">
|
<div class="author-info">
|
||||||
<div class="author-avatar">
|
<div class="author-avatar">
|
||||||
<?php
|
<?php
|
||||||
|
@ -59,11 +71,19 @@
|
||||||
?>
|
?>
|
||||||
</div><!-- .author-avatar -->
|
</div><!-- .author-avatar -->
|
||||||
<div class="author-description">
|
<div class="author-description">
|
||||||
<h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
|
<h2>
|
||||||
|
<?php
|
||||||
|
/* translators: %s: Author display name. */
|
||||||
|
printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
|
||||||
|
?>
|
||||||
|
</h2>
|
||||||
<p><?php the_author_meta( 'description' ); ?></p>
|
<p><?php the_author_meta( 'description' ); ?></p>
|
||||||
<div class="author-link">
|
<div class="author-link">
|
||||||
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
||||||
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?>
|
<?php
|
||||||
|
/* translators: %s: Author display name. */
|
||||||
|
printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() );
|
||||||
|
?>
|
||||||
</a>
|
</a>
|
||||||
</div><!-- .author-link -->
|
</div><!-- .author-link -->
|
||||||
</div><!-- .author-description -->
|
</div><!-- .author-description -->
|
||||||
|
|
|
@ -0,0 +1,443 @@
|
||||||
|
/*
|
||||||
|
Theme Name: Twenty Twelve
|
||||||
|
Description: Used to style blocks.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
>>> TABLE OF CONTENTS:
|
||||||
|
----------------------------------------------------------------
|
||||||
|
1.0 General Block Styles
|
||||||
|
2.0 Blocks - Common Blocks
|
||||||
|
3.0 Blocks - Formatting
|
||||||
|
4.0 Blocks - Layout Elements
|
||||||
|
5.0 Blocks - Widgets
|
||||||
|
6.0 Blocks - Colors
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
1.0 General Block Styles
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Captions */
|
||||||
|
|
||||||
|
[class^="wp-block-"] figcaption {
|
||||||
|
color: #757575;
|
||||||
|
font-size: 12px;
|
||||||
|
font-size: 0.857142857rem;
|
||||||
|
line-height: 2;
|
||||||
|
font-style: italic;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="wp-block-"].alignleft,
|
||||||
|
[class^="wp-block-"] .alignleft {
|
||||||
|
margin-right: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="wp-block-"].alignright,
|
||||||
|
[class^="wp-block-"] .alignright {
|
||||||
|
margin-left: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rtl [class^="wp-block-"] figcaption {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
2.0 Blocks - Common Blocks
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Paragraph */
|
||||||
|
|
||||||
|
p.has-drop-cap:not(:focus)::first-letter {
|
||||||
|
font-size: 5em;
|
||||||
|
margin-top: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Image */
|
||||||
|
|
||||||
|
.wp-block-image figure:not(.aligncenter) {
|
||||||
|
line-height: 0;
|
||||||
|
margin: 0 1.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-image figure.alignleft {
|
||||||
|
margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-image figure.alignright {
|
||||||
|
margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-image figcaption {
|
||||||
|
padding-top: 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="wp-block-"].alignleft,
|
||||||
|
[class^="wp-block-"] .alignleft,
|
||||||
|
[class^="wp-block-"].alignright,
|
||||||
|
[class^="wp-block-"] .alignright {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gallery */
|
||||||
|
|
||||||
|
.wp-block-gallery {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
margin-bottom: 1.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||||
|
.wp-block-gallery .blocks-gallery-item figcaption {
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
text-align: center;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quote */
|
||||||
|
|
||||||
|
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||||
|
border: 0;
|
||||||
|
padding: 24px;
|
||||||
|
padding: 1.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote {
|
||||||
|
padding: 24px;
|
||||||
|
padding: 1.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote cite {
|
||||||
|
color: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote.is-large p,
|
||||||
|
.wp-block-quote.is-style-large p {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Audio */
|
||||||
|
|
||||||
|
.wp-block-audio audio {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 1.714285714rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Cover */
|
||||||
|
|
||||||
|
.wp-block-cover-image.aligncenter,
|
||||||
|
.wp-block-cover.aligncenter {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* File */
|
||||||
|
|
||||||
|
.wp-block-file .wp-block-file__button {
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6);
|
||||||
|
border: 1px solid #d2d2d2;
|
||||||
|
border-radius: 3px;
|
||||||
|
box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
|
||||||
|
color: #7c7c7c;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: 11px;
|
||||||
|
font-size: 0.785714286rem;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1.428571429;
|
||||||
|
padding: 6px 10px;
|
||||||
|
padding: 0.428571429rem 0.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-file .wp-block-file__button:hover,
|
||||||
|
.wp-block-file .wp-block-file__button:focus {
|
||||||
|
background-color: #ebebeb;
|
||||||
|
background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: linear-gradient(to bottom, #f9f9f9, #ebebeb);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
color: #5e5e5e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-file .wp-block-file__button:focus {
|
||||||
|
background-color: #e1e1e1;
|
||||||
|
background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: linear-gradient(to bottom, #ebebeb, #e1e1e1);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
|
||||||
|
color: #757575;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rtl .wp-block-file * + .wp-block-file__button {
|
||||||
|
margin-left: 0.75em;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Video */
|
||||||
|
|
||||||
|
.wp-block-video video:not(:last-child) {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
3.0 Blocks - Formatting
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Code */
|
||||||
|
|
||||||
|
pre.wp-block-code {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pullquote */
|
||||||
|
|
||||||
|
.wp-block-pullquote__citation,
|
||||||
|
.wp-block-pullquote cite,
|
||||||
|
.wp-block-pullquote footer {
|
||||||
|
font-size: 14px;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table */
|
||||||
|
|
||||||
|
.wp-block-table {
|
||||||
|
border-bottom: 1px solid #ededed;
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 2;
|
||||||
|
margin: 0 0 20px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-table th {
|
||||||
|
border: 0;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 6px 10px 6px 0;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-table td {
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid #ededed;
|
||||||
|
padding: 6px 10px 6px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
4.0 Blocks - Layout Elements
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
|
|
||||||
|
.wp-block-button .wp-block-button__link {
|
||||||
|
border: 1px solid #d2d2d2;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: 11px;
|
||||||
|
font-size: 0.785714286rem;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1.428571429;
|
||||||
|
padding: 6px 10px;
|
||||||
|
padding: 0.428571429rem 0.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .wp-block-button__link,
|
||||||
|
.entry-content .wp-block-button__link:visited {
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
color: #7c7c7c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button.is-style-outline .wp-block-button__link,
|
||||||
|
.wp-block-button.is-style-outline .wp-block-button__link:visited {
|
||||||
|
background-color: inherit;
|
||||||
|
border-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .wp-block-button__link:hover,
|
||||||
|
.entry-content .wp-block-button__link:visited:hover,
|
||||||
|
.entry-content .wp-block-button__link:focus {
|
||||||
|
background-color: #ebebeb;
|
||||||
|
color: #5e5e5e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .wp-block-button__link:active {
|
||||||
|
background-color: #e1e1e1;
|
||||||
|
color: #757575;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button__link:not(.has-text-color) {
|
||||||
|
box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button__link:not(.has-background):hover,
|
||||||
|
.wp-block-button__link:not(.has-background):focus {
|
||||||
|
background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
|
background-image: linear-gradient(to bottom, #f9f9f9, #ebebeb);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button__link:not(.has-background):active {
|
||||||
|
background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
|
background-image: linear-gradient(to bottom, #ebebeb, #e1e1e1);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button__link:not(.has-text-color):active {
|
||||||
|
box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Separator */
|
||||||
|
|
||||||
|
.wp-block-separator {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Media & Text */
|
||||||
|
|
||||||
|
.wp-block-media-text {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
margin-bottom: 1.714285714rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-media-text *:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
5.0 Blocks - Widgets
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Archives, Categories & Latest Posts */
|
||||||
|
|
||||||
|
.wp-block-archives.aligncenter,
|
||||||
|
.wp-block-categories.aligncenter,
|
||||||
|
.wp-block-latest-posts.aligncenter {
|
||||||
|
list-style-position: inside;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Latest Comments */
|
||||||
|
|
||||||
|
.wp-block-latest-comments {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .avatar,
|
||||||
|
.wp-block-latest-comments__comment-avatar {
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,
|
||||||
|
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta {
|
||||||
|
margin-left: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments__comment,
|
||||||
|
.wp-block-latest-comments__comment-excerpt,
|
||||||
|
.wp-block-latest-comments__comment-excerpt p {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments__comment-date {
|
||||||
|
color: #5e5e5e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .wp-block-latest-comments__comment {
|
||||||
|
margin: 0;
|
||||||
|
padding: 24px 0;
|
||||||
|
padding: 1.714285714rem 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments article {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
6.0 Blocks - Colors
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
.entry-content .has-blue-color,
|
||||||
|
.entry-content .has-blue-color:visited {
|
||||||
|
color: #21759b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-blue-background-color,
|
||||||
|
.entry-content .has-blue-background-color:visited {
|
||||||
|
background-color: #21759b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-dark-gray-color,
|
||||||
|
.entry-content .has-dark-gray-color:visited {
|
||||||
|
color: #373737;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-dark-gray-background-color,
|
||||||
|
.entry-content .has-dark-gray-background-color:visited {
|
||||||
|
background-color: #373737;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-medium-gray-color,
|
||||||
|
.entry-content .has-medium-gray-color:visited {
|
||||||
|
color: #9f9f9f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-medium-gray-background-color,
|
||||||
|
.entry-content .has-medium-gray-background-color:visited {
|
||||||
|
background-color: #9f9f9f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-light-gray-color,
|
||||||
|
.entry-content .has-light-gray-color:visited {
|
||||||
|
color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-light-gray-background-color,
|
||||||
|
.entry-content .has-light-gray-background-color:visited {
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-white-color,
|
||||||
|
.entry-content .has-white-color:visited {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content .has-white-background-color,
|
||||||
|
.entry-content .has-white-background-color:visited {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
|
@ -0,0 +1,512 @@
|
||||||
|
/*
|
||||||
|
Theme Name: Twenty Twelve
|
||||||
|
Description: Used to style blocks in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
>>> TABLE OF CONTENTS:
|
||||||
|
----------------------------------------------------------------
|
||||||
|
1.0 General Typography
|
||||||
|
2.0 General Block Styles
|
||||||
|
3.0 Blocks - Common Blocks
|
||||||
|
4.0 Blocks - Formatting
|
||||||
|
5.0 Blocks - Layout Elements
|
||||||
|
6.0 Blocks - Widgets
|
||||||
|
7.0 Blocks - Colors
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
1.0 General Typography
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
.edit-post-visual-editor .editor-block-list__block,
|
||||||
|
.edit-post-visual-editor .editor-block-list__block p,
|
||||||
|
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||||
|
font-family: "Open Sans", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-post-visual-editor .editor-block-list__block {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-post-title__block .editor-post-title__input {
|
||||||
|
font-family: "Open Sans", Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 600px) {
|
||||||
|
.editor-post-title__block .editor-post-title__input {
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||||
|
font-size: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
2.0 General Block Styles
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Main column width */
|
||||||
|
|
||||||
|
.wp-block {
|
||||||
|
max-width: 655px; /* 625px + 30px for padding */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Link styles */
|
||||||
|
|
||||||
|
.edit-post-visual-editor a,
|
||||||
|
.editor-block-list__block a,
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||||
|
color: #21759b;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* List styles */
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce ol,
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce ul:not(.wp-block-gallery),
|
||||||
|
.block-library-list ol.editor-rich-text__tinymce,
|
||||||
|
.block-library-list ul.editor-rich-text__tinymce:not(.wp-block-gallery) {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quote styles */
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||||
|
border: 0;
|
||||||
|
font-style: italic;
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table styles */
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce th {
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce td {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce th,
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce td {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rtl .wp-block-freeform.block-library-rich-text__tinymce th,
|
||||||
|
.rtl .wp-block-freeform.block-library-rich-text__tinymce td {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code styles */
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce code {
|
||||||
|
background-color: transparent;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pre styles */
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Captions */
|
||||||
|
|
||||||
|
[class^="wp-block-"] figcaption,
|
||||||
|
[class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body {
|
||||||
|
color: #757575;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 2;
|
||||||
|
font-style: italic;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rtl [class^="wp-block-"] figcaption,
|
||||||
|
.rtl [class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Definition Lists */
|
||||||
|
|
||||||
|
.wp-block-freeform.block-library-rich-text__tinymce dt {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
3.0 Blocks - Common Blocks
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Paragraph */
|
||||||
|
|
||||||
|
p.has-drop-cap:not(:focus)::first-letter {
|
||||||
|
font-size: 5em;
|
||||||
|
margin-top: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Image */
|
||||||
|
|
||||||
|
.wp-block-image {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gallery */
|
||||||
|
|
||||||
|
.wp-block-gallery {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-gallery figcaption,
|
||||||
|
.wp-block-gallery figcaption.editor-rich-text__tinymce.mce-content-body {
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quote */
|
||||||
|
|
||||||
|
.wp-block-quote,
|
||||||
|
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote p {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote.is-large p,
|
||||||
|
.wp-block-quote.is-style-large p {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote .wp-block-quote__citation {
|
||||||
|
color: inherit;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-quote.is-large .wp-block-quote__citation,
|
||||||
|
.wp-block-quote.is-style-large .wp-block-quote__citation {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Cover */
|
||||||
|
|
||||||
|
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p,
|
||||||
|
.edit-post-visual-editor .editor-block-list__block .wp-block-cover p {
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* File */
|
||||||
|
|
||||||
|
.wp-block-file .wp-block-file__textlink {
|
||||||
|
color: #21759b;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-file .wp-block-file__button {
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6);
|
||||||
|
border: 1px solid #d2d2d2;
|
||||||
|
border-radius: 3px;
|
||||||
|
box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
|
||||||
|
color: #7c7c7c;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1.428571429;
|
||||||
|
padding: 6px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
4.0 Blocks - Formatting
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Verse */
|
||||||
|
|
||||||
|
.editor-block-list__block .wp-block-verse pre {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code */
|
||||||
|
|
||||||
|
.wp-block-code {
|
||||||
|
border: 0;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 2;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-html .CodeMirror-sizer {
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Preformatted */
|
||||||
|
|
||||||
|
.editor-block-list__block .wp-block-preformatted pre {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pullquote */
|
||||||
|
|
||||||
|
.wp-block-pullquote {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-post-visual-editor .wp-block-pullquote {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-pullquote .wp-block-pullquote__citation,
|
||||||
|
.wp-block-pullquote cite {
|
||||||
|
font-size: 14px;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table */
|
||||||
|
|
||||||
|
.wp-block-table {
|
||||||
|
border-bottom: 1px solid #ededed;
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 2;
|
||||||
|
margin: 0 0 20px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-block-list__block .wp-block-table th {
|
||||||
|
border: 0;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-block-list__block .wp-block-table td {
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid #ededed;
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-table__cell-content {
|
||||||
|
padding: 6px 10px 6px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
5.0 Blocks - Layout Elements
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
|
|
||||||
|
.wp-block-button__link {
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
color: #7c7c7c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button .wp-block-button__link {
|
||||||
|
border: 1px solid #d2d2d2;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1.428571429;
|
||||||
|
padding: 6px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button .editor-rich-text__tinymce.mce-content-body {
|
||||||
|
line-height: 1.428571429;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button__link:not(.has-text-color) {
|
||||||
|
box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button.is-style-outline .wp-block-button__link {
|
||||||
|
background-color: inherit;
|
||||||
|
border-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
|
||||||
|
background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
|
background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Separator */
|
||||||
|
|
||||||
|
.editor-block-list__block hr.wp-block-separator {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Media & Text */
|
||||||
|
|
||||||
|
.wp-block-media-text *:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
6.0 Blocks - Widgets
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Archives, Categories & Latest Posts */
|
||||||
|
|
||||||
|
[data-align="center"] .wp-block-archives ul,
|
||||||
|
[data-align="center"] .wp-block-categories ul,
|
||||||
|
[data-align="center"] .wp-block-latest-posts ul {
|
||||||
|
list-style-position: inside;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Archives */
|
||||||
|
|
||||||
|
.editor-block-list__block ul.wp-block-archives {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Categories */
|
||||||
|
|
||||||
|
.editor-block-list__block .wp-block-categories ul {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Latest Comments */
|
||||||
|
|
||||||
|
.editor-block-list__block .wp-block-latest-comments {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .avatar,
|
||||||
|
.wp-block-latest-comments__comment-avatar {
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,
|
||||||
|
.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta {
|
||||||
|
margin-left: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments__comment,
|
||||||
|
.wp-block-latest-comments__comment-excerpt,
|
||||||
|
.wp-block-latest-comments__comment-excerpt p {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments__comment-date {
|
||||||
|
color: #5e5e5e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .wp-block-latest-comments__comment {
|
||||||
|
margin: 0;
|
||||||
|
padding: 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments article {
|
||||||
|
border-bottom: 4px double #ededed;
|
||||||
|
padding-bottom: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Latest Posts */
|
||||||
|
|
||||||
|
.editor-block-list__block .wp-block-latest-posts {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
7.0 Blocks - Colors
|
||||||
|
--------------------------------------------------------------*/
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-blue-color,
|
||||||
|
:root .editor-styles-wrapper .has-blue-color:visited {
|
||||||
|
color: #21759b;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-blue-background-color,
|
||||||
|
:root .editor-styles-wrapper .has-blue-background-color:visited {
|
||||||
|
background-color: #21759b;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-dark-gray-color,
|
||||||
|
:root .editor-styles-wrapper .has-dark-gray-color:visited {
|
||||||
|
color: #373737;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-dark-gray-background-color,
|
||||||
|
:root .editor-styles-wrapper .has-dark-gray-background-color:visited {
|
||||||
|
background-color: #373737;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-medium-gray-color,
|
||||||
|
:root .editor-styles-wrapper .has-medium-gray-color:visited {
|
||||||
|
color: #9f9f9f;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-medium-gray-background-color,
|
||||||
|
:root .editor-styles-wrapper .has-medium-gray-background-color:visited {
|
||||||
|
background-color: #9f9f9f;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-light-gray-color,
|
||||||
|
:root .editor-styles-wrapper .has-light-gray-color:visited {
|
||||||
|
color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-light-gray-background-color,
|
||||||
|
:root .editor-styles-wrapper .has-light-gray-background-color:visited {
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-white-color,
|
||||||
|
:root .editor-styles-wrapper .has-white-color:visited {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root .editor-styles-wrapper .has-white-background-color,
|
||||||
|
:root .editor-styles-wrapper .has-white-background-color:visited {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
15
footer.php
15
footer.php
|
@ -13,10 +13,17 @@
|
||||||
<footer id="colophon" role="contentinfo">
|
<footer id="colophon" role="contentinfo">
|
||||||
<div class="site-info">
|
<div class="site-info">
|
||||||
<?php do_action( 'twentytwelve_credits' ); ?>
|
<?php do_action( 'twentytwelve_credits' ); ?>
|
||||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>
|
<?php
|
||||||
<!-- GOLEM -->
|
if ( function_exists( 'the_privacy_policy_link' ) ) {
|
||||||
|
|
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
|
||||||
<a href="/wiki/GolemWiki:Legalese" title="Legalese">Informazioni Legali</a>
|
}
|
||||||
|
?>
|
||||||
|
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>">
|
||||||
|
<?php
|
||||||
|
/* translators: %s: WordPress */
|
||||||
|
printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
</div><!-- .site-info -->
|
</div><!-- .site-info -->
|
||||||
</footer><!-- #colophon -->
|
</footer><!-- #colophon -->
|
||||||
</div><!-- #page -->
|
</div><!-- #page -->
|
||||||
|
|
510
functions.php
510
functions.php
|
@ -6,16 +6,18 @@
|
||||||
* in the theme as custom template tags. Others are attached to action and
|
* in the theme as custom template tags. Others are attached to action and
|
||||||
* filter hooks in WordPress to change core functionality.
|
* filter hooks in WordPress to change core functionality.
|
||||||
*
|
*
|
||||||
* When using a child theme (see https://codex.wordpress.org/Theme_Development and
|
* When using a child theme you can override certain functions (those wrapped
|
||||||
* https://codex.wordpress.org/Child_Themes), you can override certain functions
|
* in a function_exists() call) by defining them first in your child theme's
|
||||||
* (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
|
||||||
* functions.php file. The child theme's functions.php file is included before the parent
|
* the parent theme's file, so the child theme functions would be used.
|
||||||
* theme's file, so the child theme functions would be used.
|
*
|
||||||
|
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||||
|
* @link https://developer.wordpress.org/themes/advanced-topics/child-themes/
|
||||||
*
|
*
|
||||||
* Functions that are not pluggable (not wrapped in function_exists()) are instead attached
|
* Functions that are not pluggable (not wrapped in function_exists()) are instead attached
|
||||||
* to a filter or action hook.
|
* to a filter or action hook.
|
||||||
*
|
*
|
||||||
* For more information on hooks, actions, and filters, @link https://codex.wordpress.org/Plugin_API
|
* For more information on hooks, actions, and filters, @link https://developer.wordpress.org/plugins/
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
|
@ -23,8 +25,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Set up the content width value based on the theme's design and stylesheet.
|
// Set up the content width value based on the theme's design and stylesheet.
|
||||||
if ( ! isset( $content_width ) )
|
if ( ! isset( $content_width ) ) {
|
||||||
$content_width = 625;
|
$content_width = 625;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twenty Twelve setup.
|
* Twenty Twelve setup.
|
||||||
|
@ -35,7 +38,7 @@ if ( ! isset( $content_width ) )
|
||||||
* @uses load_theme_textdomain() For translation/localization support.
|
* @uses load_theme_textdomain() For translation/localization support.
|
||||||
* @uses add_editor_style() To add a Visual Editor stylesheet.
|
* @uses add_editor_style() To add a Visual Editor stylesheet.
|
||||||
* @uses add_theme_support() To add support for post thumbnails, automatic feed links,
|
* @uses add_theme_support() To add support for post thumbnails, automatic feed links,
|
||||||
* custom background, and post formats.
|
* custom background, and post formats.
|
||||||
* @uses register_nav_menu() To add support for navigation menus.
|
* @uses register_nav_menu() To add support for navigation menus.
|
||||||
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
|
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
|
||||||
*
|
*
|
||||||
|
@ -54,6 +57,47 @@ function twentytwelve_setup() {
|
||||||
// This theme styles the visual editor with editor-style.css to match the theme style.
|
// This theme styles the visual editor with editor-style.css to match the theme style.
|
||||||
add_editor_style();
|
add_editor_style();
|
||||||
|
|
||||||
|
// Load regular editor styles into the new block-based editor.
|
||||||
|
add_theme_support( 'editor-styles' );
|
||||||
|
|
||||||
|
// Load default block styles.
|
||||||
|
add_theme_support( 'wp-block-styles' );
|
||||||
|
|
||||||
|
// Add support for responsive embeds.
|
||||||
|
add_theme_support( 'responsive-embeds' );
|
||||||
|
|
||||||
|
// Add support for custom color scheme.
|
||||||
|
add_theme_support(
|
||||||
|
'editor-color-palette',
|
||||||
|
array(
|
||||||
|
array(
|
||||||
|
'name' => __( 'Blue', 'twentytwelve' ),
|
||||||
|
'slug' => 'blue',
|
||||||
|
'color' => '#21759b',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'Dark Gray', 'twentytwelve' ),
|
||||||
|
'slug' => 'dark-gray',
|
||||||
|
'color' => '#444',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'Medium Gray', 'twentytwelve' ),
|
||||||
|
'slug' => 'medium-gray',
|
||||||
|
'color' => '#9f9f9f',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'Light Gray', 'twentytwelve' ),
|
||||||
|
'slug' => 'light-gray',
|
||||||
|
'color' => '#e6e6e6',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'White', 'twentytwelve' ),
|
||||||
|
'slug' => 'white',
|
||||||
|
'color' => '#fff',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// Adds RSS feed links to <head> for posts and comments.
|
// Adds RSS feed links to <head> for posts and comments.
|
||||||
add_theme_support( 'automatic-feed-links' );
|
add_theme_support( 'automatic-feed-links' );
|
||||||
|
|
||||||
|
@ -67,13 +111,16 @@ function twentytwelve_setup() {
|
||||||
* This theme supports custom background color and image,
|
* This theme supports custom background color and image,
|
||||||
* and here we also set up the default background color.
|
* and here we also set up the default background color.
|
||||||
*/
|
*/
|
||||||
add_theme_support( 'custom-background', array(
|
add_theme_support(
|
||||||
'default-color' => 'e6e6e6',
|
'custom-background',
|
||||||
) );
|
array(
|
||||||
|
'default-color' => 'e6e6e6',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// This theme uses a custom image size for featured images, displayed on "standard" posts.
|
// This theme uses a custom image size for featured images, displayed on "standard" posts.
|
||||||
add_theme_support( 'post-thumbnails' );
|
add_theme_support( 'post-thumbnails' );
|
||||||
set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop
|
set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop.
|
||||||
|
|
||||||
// Indicate widget sidebars can use selective refresh in the Customizer.
|
// Indicate widget sidebars can use selective refresh in the Customizer.
|
||||||
add_theme_support( 'customize-selective-refresh-widgets' );
|
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||||
|
@ -83,7 +130,7 @@ add_action( 'after_setup_theme', 'twentytwelve_setup' );
|
||||||
/**
|
/**
|
||||||
* Add support for a custom header image.
|
* Add support for a custom header image.
|
||||||
*/
|
*/
|
||||||
require( get_template_directory() . '/inc/custom-header.php' );
|
require get_template_directory() . '/inc/custom-header.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the Google font stylesheet URL if available.
|
* Return the Google font stylesheet URL if available.
|
||||||
|
@ -98,29 +145,33 @@ require( get_template_directory() . '/inc/custom-header.php' );
|
||||||
function twentytwelve_get_font_url() {
|
function twentytwelve_get_font_url() {
|
||||||
$font_url = '';
|
$font_url = '';
|
||||||
|
|
||||||
/* translators: If there are characters in your language that are not supported
|
/*
|
||||||
|
* 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 language.
|
* by Open Sans, translate this to 'off'. Do not translate into your own language.
|
||||||
*/
|
*/
|
||||||
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
|
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
|
||||||
$subsets = 'latin,latin-ext';
|
$subsets = 'latin,latin-ext';
|
||||||
|
|
||||||
/* translators: To add an additional Open Sans character subset specific to your language,
|
/*
|
||||||
|
* 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.
|
* translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
|
||||||
*/
|
*/
|
||||||
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
|
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
|
||||||
|
|
||||||
if ( 'cyrillic' == $subset )
|
if ( 'cyrillic' === $subset ) {
|
||||||
$subsets .= ',cyrillic,cyrillic-ext';
|
$subsets .= ',cyrillic,cyrillic-ext';
|
||||||
elseif ( 'greek' == $subset )
|
} elseif ( 'greek' === $subset ) {
|
||||||
$subsets .= ',greek,greek-ext';
|
$subsets .= ',greek,greek-ext';
|
||||||
elseif ( 'vietnamese' == $subset )
|
} elseif ( 'vietnamese' === $subset ) {
|
||||||
$subsets .= ',vietnamese';
|
$subsets .= ',vietnamese';
|
||||||
|
}
|
||||||
|
|
||||||
$query_args = array(
|
$query_args = array(
|
||||||
'family' => 'Open+Sans:400italic,700italic,400,700',
|
'family' => urlencode( 'Open Sans:400italic,700italic,400,700' ),
|
||||||
'subset' => $subsets,
|
'subset' => urlencode( $subsets ),
|
||||||
|
'display' => urlencode( 'fallback' ),
|
||||||
);
|
);
|
||||||
$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $font_url;
|
return $font_url;
|
||||||
|
@ -138,25 +189,43 @@ function twentytwelve_scripts_styles() {
|
||||||
* Adds JavaScript to pages with the comment form to support
|
* Adds JavaScript to pages with the comment form to support
|
||||||
* sites with threaded comments (when in use).
|
* sites with threaded comments (when in use).
|
||||||
*/
|
*/
|
||||||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
|
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||||
wp_enqueue_script( 'comment-reply' );
|
wp_enqueue_script( 'comment-reply' );
|
||||||
|
}
|
||||||
|
|
||||||
// Adds JavaScript for handling the navigation menu hide-and-show behavior.
|
// Adds JavaScript for handling the navigation menu hide-and-show behavior.
|
||||||
wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true );
|
wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20141205', true );
|
||||||
|
|
||||||
$font_url = twentytwelve_get_font_url();
|
$font_url = twentytwelve_get_font_url();
|
||||||
if ( ! empty( $font_url ) )
|
if ( ! empty( $font_url ) ) {
|
||||||
wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
|
wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
|
||||||
|
}
|
||||||
|
|
||||||
// Loads our main stylesheet.
|
// Loads our main stylesheet.
|
||||||
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
|
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri(), array(), '20190507' );
|
||||||
|
|
||||||
|
// Theme block stylesheet.
|
||||||
|
wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20190406' );
|
||||||
|
|
||||||
// Loads the Internet Explorer specific stylesheet.
|
// Loads the Internet Explorer specific stylesheet.
|
||||||
wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
|
wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20150214' );
|
||||||
$wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
|
$wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
|
add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enqueue styles for the block-based editor.
|
||||||
|
*
|
||||||
|
* @since Twenty Twelve 2.6
|
||||||
|
*/
|
||||||
|
function twentytwelve_block_editor_styles() {
|
||||||
|
// Block styles.
|
||||||
|
wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190406' );
|
||||||
|
// Add custom fonts.
|
||||||
|
wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
|
||||||
|
}
|
||||||
|
add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add preconnect for Google Fonts.
|
* Add preconnect for Google Fonts.
|
||||||
*
|
*
|
||||||
|
@ -197,11 +266,13 @@ add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 );
|
||||||
function twentytwelve_mce_css( $mce_css ) {
|
function twentytwelve_mce_css( $mce_css ) {
|
||||||
$font_url = twentytwelve_get_font_url();
|
$font_url = twentytwelve_get_font_url();
|
||||||
|
|
||||||
if ( empty( $font_url ) )
|
if ( empty( $font_url ) ) {
|
||||||
return $mce_css;
|
return $mce_css;
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! empty( $mce_css ) )
|
if ( ! empty( $mce_css ) ) {
|
||||||
$mce_css .= ',';
|
$mce_css .= ',';
|
||||||
|
}
|
||||||
|
|
||||||
$mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) );
|
$mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) );
|
||||||
|
|
||||||
|
@ -224,20 +295,24 @@ add_filter( 'mce_css', 'twentytwelve_mce_css' );
|
||||||
function twentytwelve_wp_title( $title, $sep ) {
|
function twentytwelve_wp_title( $title, $sep ) {
|
||||||
global $paged, $page;
|
global $paged, $page;
|
||||||
|
|
||||||
if ( is_feed() )
|
if ( is_feed() ) {
|
||||||
return $title;
|
return $title;
|
||||||
|
}
|
||||||
|
|
||||||
// Add the site name.
|
// Add the site name.
|
||||||
$title .= get_bloginfo( 'name', 'display' );
|
$title .= get_bloginfo( 'name', 'display' );
|
||||||
|
|
||||||
// Add the site description for the home/front page.
|
// Add the site description for the home/front page.
|
||||||
$site_description = get_bloginfo( 'description', 'display' );
|
$site_description = get_bloginfo( 'description', 'display' );
|
||||||
if ( $site_description && ( is_home() || is_front_page() ) )
|
if ( $site_description && ( is_home() || is_front_page() ) ) {
|
||||||
$title = "$title $sep $site_description";
|
$title = "$title $sep $site_description";
|
||||||
|
}
|
||||||
|
|
||||||
// Add a page number if necessary.
|
// Add a page number if necessary.
|
||||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
|
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||||
|
/* translators: %s: Page number. */
|
||||||
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
|
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
|
||||||
|
}
|
||||||
|
|
||||||
return $title;
|
return $title;
|
||||||
}
|
}
|
||||||
|
@ -251,8 +326,9 @@ add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
function twentytwelve_page_menu_args( $args ) {
|
function twentytwelve_page_menu_args( $args ) {
|
||||||
if ( ! isset( $args['show_home'] ) )
|
if ( ! isset( $args['show_home'] ) ) {
|
||||||
$args['show_home'] = true;
|
$args['show_home'] = true;
|
||||||
|
}
|
||||||
return $args;
|
return $args;
|
||||||
}
|
}
|
||||||
add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
|
add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
|
||||||
|
@ -265,168 +341,203 @@ add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
function twentytwelve_widgets_init() {
|
function twentytwelve_widgets_init() {
|
||||||
register_sidebar( array(
|
register_sidebar(
|
||||||
'name' => __( 'Main Sidebar', 'twentytwelve' ),
|
array(
|
||||||
'id' => 'sidebar-1',
|
'name' => __( 'Main Sidebar', 'twentytwelve' ),
|
||||||
'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
|
'id' => 'sidebar-1',
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
|
||||||
'after_widget' => '</aside>',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'before_title' => '<h3 class="widget-title">',
|
'after_widget' => '</aside>',
|
||||||
'after_title' => '</h3>',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
) );
|
'after_title' => '</h3>',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar(
|
||||||
'name' => __( 'First Front Page Widget Area', 'twentytwelve' ),
|
array(
|
||||||
'id' => 'sidebar-2',
|
'name' => __( 'First Front Page Widget Area', 'twentytwelve' ),
|
||||||
'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
|
'id' => 'sidebar-2',
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
|
||||||
'after_widget' => '</aside>',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'before_title' => '<h3 class="widget-title">',
|
'after_widget' => '</aside>',
|
||||||
'after_title' => '</h3>',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
) );
|
'after_title' => '</h3>',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar(
|
||||||
'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ),
|
array(
|
||||||
'id' => 'sidebar-3',
|
'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ),
|
||||||
'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
|
'id' => 'sidebar-3',
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
|
||||||
'after_widget' => '</aside>',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'before_title' => '<h3 class="widget-title">',
|
'after_widget' => '</aside>',
|
||||||
'after_title' => '</h3>',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
) );
|
'after_title' => '</h3>',
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
add_action( 'widgets_init', 'twentytwelve_widgets_init' );
|
add_action( 'widgets_init', 'twentytwelve_widgets_init' );
|
||||||
|
|
||||||
if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
|
if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
|
||||||
/**
|
/**
|
||||||
* Displays navigation to next/previous pages when applicable.
|
* Displays navigation to next/previous pages when applicable.
|
||||||
*
|
*
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
function twentytwelve_content_nav( $html_id ) {
|
function twentytwelve_content_nav( $html_id ) {
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
|
|
||||||
if ( $wp_query->max_num_pages > 1 ) : ?>
|
if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||||
<nav id="<?php echo esc_attr( $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>
|
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
|
||||||
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
|
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
|
||||||
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
|
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
|
||||||
</nav><!-- .navigation -->
|
</nav><!-- .navigation -->
|
||||||
<?php endif;
|
<?php
|
||||||
}
|
endif;
|
||||||
|
}
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ( ! function_exists( 'twentytwelve_comment' ) ) :
|
if ( ! function_exists( 'twentytwelve_comment' ) ) :
|
||||||
/**
|
/**
|
||||||
* Template for comments and pingbacks.
|
* Template for comments and pingbacks.
|
||||||
*
|
*
|
||||||
* To override this walker in a child theme without modifying the comments template
|
* To override this walker in a child theme without modifying the comments template
|
||||||
* simply create your own twentytwelve_comment(), and that function will be used instead.
|
* simply create your own twentytwelve_comment(), and that function will be used instead.
|
||||||
*
|
*
|
||||||
* Used as a callback by wp_list_comments() for displaying the comments.
|
* Used as a callback by wp_list_comments() for displaying the comments.
|
||||||
*
|
*
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
function twentytwelve_comment( $comment, $args, $depth ) {
|
function twentytwelve_comment( $comment, $args, $depth ) {
|
||||||
$GLOBALS['comment'] = $comment;
|
$GLOBALS['comment'] = $comment;
|
||||||
switch ( $comment->comment_type ) :
|
switch ( $comment->comment_type ) :
|
||||||
case 'pingback' :
|
case 'pingback':
|
||||||
case 'trackback' :
|
case 'trackback':
|
||||||
// Display trackbacks differently than normal comments.
|
// Display trackbacks differently than normal comments.
|
||||||
?>
|
?>
|
||||||
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
|
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
|
||||||
<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p>
|
<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
default :
|
default:
|
||||||
// Proceed with normal comments.
|
// Proceed with normal comments.
|
||||||
global $post;
|
global $post;
|
||||||
?>
|
?>
|
||||||
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
|
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
|
||||||
<article id="comment-<?php comment_ID(); ?>" class="comment">
|
<article id="comment-<?php comment_ID(); ?>" class="comment">
|
||||||
<header class="comment-meta comment-author vcard">
|
<header class="comment-meta comment-author vcard">
|
||||||
<?php
|
<?php
|
||||||
echo get_avatar( $comment, 44 );
|
echo get_avatar( $comment, 44 );
|
||||||
printf( '<cite><b class="fn">%1$s</b> %2$s</cite>',
|
printf(
|
||||||
|
'<cite><b class="fn">%1$s</b> %2$s</cite>',
|
||||||
get_comment_author_link(),
|
get_comment_author_link(),
|
||||||
// If current post author is also comment author, make it known visually.
|
// If current post author is also comment author, make it known visually.
|
||||||
( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''
|
( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''
|
||||||
);
|
);
|
||||||
printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
|
printf(
|
||||||
|
'<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
|
||||||
esc_url( get_comment_link( $comment->comment_ID ) ),
|
esc_url( get_comment_link( $comment->comment_ID ) ),
|
||||||
get_comment_time( 'c' ),
|
get_comment_time( 'c' ),
|
||||||
/* translators: 1: date, 2: time */
|
/* translators: 1: Date, 2: Time. */
|
||||||
sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )
|
sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
</header><!-- .comment-meta -->
|
</header><!-- .comment-meta -->
|
||||||
|
|
||||||
<?php if ( '0' == $comment->comment_approved ) : ?>
|
<?php
|
||||||
<p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>
|
$commenter = wp_get_current_commenter();
|
||||||
<?php endif; ?>
|
if ( $commenter['comment_author_email'] ) {
|
||||||
|
$moderation_note = __( 'Your comment is awaiting moderation.', 'twentytwelve' );
|
||||||
|
} else {
|
||||||
|
$moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.', 'twentytwelve' );
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<section class="comment-content comment">
|
<?php if ( '0' == $comment->comment_approved ) : ?>
|
||||||
|
<p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<section class="comment-content comment">
|
||||||
<?php comment_text(); ?>
|
<?php comment_text(); ?>
|
||||||
<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class="edit-link">', '</p>' ); ?>
|
<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class="edit-link">', '</p>' ); ?>
|
||||||
</section><!-- .comment-content -->
|
</section><!-- .comment-content -->
|
||||||
|
|
||||||
<div class="reply">
|
<div class="reply">
|
||||||
<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>↓</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
|
<?php
|
||||||
</div><!-- .reply -->
|
comment_reply_link(
|
||||||
</article><!-- #comment-## -->
|
array_merge(
|
||||||
<?php
|
$args,
|
||||||
break;
|
array(
|
||||||
endswitch; // end comment_type check
|
'reply_text' => __( 'Reply', 'twentytwelve' ),
|
||||||
}
|
'after' => ' <span>↓</span>',
|
||||||
|
'depth' => $depth,
|
||||||
|
'max_depth' => $args['max_depth'],
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</div><!-- .reply -->
|
||||||
|
</article><!-- #comment-## -->
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
endswitch; // End comment_type check.
|
||||||
|
}
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
|
if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
|
||||||
/**
|
/**
|
||||||
* Set up post entry meta.
|
* Set up post entry meta.
|
||||||
*
|
*
|
||||||
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
|
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
|
||||||
*
|
*
|
||||||
* Create your own twentytwelve_entry_meta() to override in a child theme.
|
* Create your own twentytwelve_entry_meta() to override in a child theme.
|
||||||
*
|
*
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
function twentytwelve_entry_meta() {
|
function twentytwelve_entry_meta() {
|
||||||
// Translators: used between list items, there is a space after the comma.
|
/* translators: Used between list items, there is a space after the comma. */
|
||||||
$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );
|
$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );
|
||||||
|
|
||||||
// Translators: used between list items, there is a space after the comma.
|
/* translators: Used between list items, there is a space after the comma. */
|
||||||
$tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );
|
$tags_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );
|
||||||
|
|
||||||
$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
|
$date = sprintf(
|
||||||
esc_url( get_permalink() ),
|
'<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
|
||||||
esc_attr( get_the_time() ),
|
esc_url( get_permalink() ),
|
||||||
esc_attr( get_the_date( 'c' ) ),
|
esc_attr( get_the_time() ),
|
||||||
esc_html( get_the_date() )
|
esc_attr( get_the_date( 'c' ) ),
|
||||||
);
|
esc_html( get_the_date() )
|
||||||
|
);
|
||||||
|
|
||||||
$author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
$author = sprintf(
|
||||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
||||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
|
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||||
get_the_author()
|
/* translators: %s: Author display name. */
|
||||||
);
|
esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
|
||||||
|
get_the_author()
|
||||||
|
);
|
||||||
|
|
||||||
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
|
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
||||||
if ( $tag_list ) {
|
/* translators: 1: Category name, 2: Tag name, 3: Date, 4: Author display name. */
|
||||||
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||||
} elseif ( $categories_list ) {
|
} elseif ( $categories_list ) {
|
||||||
$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
/* translators: 1: Category name, 3: Date, 4: Author display name. */
|
||||||
} else {
|
$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||||
$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
} else {
|
||||||
|
/* translators: 3: Date, 4: Author display name. */
|
||||||
|
$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||||
|
}
|
||||||
|
|
||||||
|
printf(
|
||||||
|
$utility_text,
|
||||||
|
$categories_list,
|
||||||
|
$tags_list,
|
||||||
|
$date,
|
||||||
|
$author
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(
|
|
||||||
$utility_text,
|
|
||||||
$categories_list,
|
|
||||||
$tag_list,
|
|
||||||
$date,
|
|
||||||
$author
|
|
||||||
);
|
|
||||||
}
|
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -450,30 +561,36 @@ function twentytwelve_body_class( $classes ) {
|
||||||
$background_color = get_background_color();
|
$background_color = get_background_color();
|
||||||
$background_image = get_background_image();
|
$background_image = get_background_image();
|
||||||
|
|
||||||
if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) )
|
if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) {
|
||||||
$classes[] = 'full-width';
|
$classes[] = 'full-width';
|
||||||
|
}
|
||||||
|
|
||||||
if ( is_page_template( 'page-templates/front-page.php' ) ) {
|
if ( is_page_template( 'page-templates/front-page.php' ) ) {
|
||||||
$classes[] = 'template-front-page';
|
$classes[] = 'template-front-page';
|
||||||
if ( has_post_thumbnail() )
|
if ( has_post_thumbnail() ) {
|
||||||
$classes[] = 'has-post-thumbnail';
|
$classes[] = 'has-post-thumbnail';
|
||||||
if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) )
|
}
|
||||||
|
if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) {
|
||||||
$classes[] = 'two-sidebars';
|
$classes[] = 'two-sidebars';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( empty( $background_image ) ) {
|
if ( empty( $background_image ) ) {
|
||||||
if ( empty( $background_color ) )
|
if ( empty( $background_color ) ) {
|
||||||
$classes[] = 'custom-background-empty';
|
$classes[] = 'custom-background-empty';
|
||||||
elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) )
|
} elseif ( in_array( $background_color, array( 'fff', 'ffffff' ), true ) ) {
|
||||||
$classes[] = 'custom-background-white';
|
$classes[] = 'custom-background-white';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable custom font class only if the font CSS is queued to load.
|
// Enable custom font class only if the font CSS is queued to load.
|
||||||
if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) )
|
if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) {
|
||||||
$classes[] = 'custom-font-enabled';
|
$classes[] = 'custom-font-enabled';
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! is_multi_author() )
|
if ( ! is_multi_author() ) {
|
||||||
$classes[] = 'single-author';
|
$classes[] = 'single-author';
|
||||||
|
}
|
||||||
|
|
||||||
return $classes;
|
return $classes;
|
||||||
}
|
}
|
||||||
|
@ -510,16 +627,22 @@ function twentytwelve_customize_register( $wp_customize ) {
|
||||||
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
|
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
|
||||||
|
|
||||||
if ( isset( $wp_customize->selective_refresh ) ) {
|
if ( isset( $wp_customize->selective_refresh ) ) {
|
||||||
$wp_customize->selective_refresh->add_partial( 'blogname', array(
|
$wp_customize->selective_refresh->add_partial(
|
||||||
'selector' => '.site-title > a',
|
'blogname',
|
||||||
'container_inclusive' => false,
|
array(
|
||||||
'render_callback' => 'twentytwelve_customize_partial_blogname',
|
'selector' => '.site-title > a',
|
||||||
) );
|
'container_inclusive' => false,
|
||||||
$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
|
'render_callback' => 'twentytwelve_customize_partial_blogname',
|
||||||
'selector' => '.site-description',
|
)
|
||||||
'container_inclusive' => false,
|
);
|
||||||
'render_callback' => 'twentytwelve_customize_partial_blogdescription',
|
$wp_customize->selective_refresh->add_partial(
|
||||||
) );
|
'blogdescription',
|
||||||
|
array(
|
||||||
|
'selector' => '.site-description',
|
||||||
|
'container_inclusive' => false,
|
||||||
|
'render_callback' => 'twentytwelve_customize_partial_blogdescription',
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_action( 'customize_register', 'twentytwelve_customize_register' );
|
add_action( 'customize_register', 'twentytwelve_customize_register' );
|
||||||
|
@ -528,6 +651,7 @@ add_action( 'customize_register', 'twentytwelve_customize_register' );
|
||||||
* Render the site title for the selective refresh partial.
|
* Render the site title for the selective refresh partial.
|
||||||
*
|
*
|
||||||
* @since Twenty Twelve 2.0
|
* @since Twenty Twelve 2.0
|
||||||
|
*
|
||||||
* @see twentytwelve_customize_register()
|
* @see twentytwelve_customize_register()
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
@ -540,6 +664,7 @@ function twentytwelve_customize_partial_blogname() {
|
||||||
* Render the site tagline for the selective refresh partial.
|
* Render the site tagline for the selective refresh partial.
|
||||||
*
|
*
|
||||||
* @since Twenty Twelve 2.0
|
* @since Twenty Twelve 2.0
|
||||||
|
*
|
||||||
* @see twentytwelve_customize_register()
|
* @see twentytwelve_customize_register()
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
@ -559,3 +684,40 @@ function twentytwelve_customize_preview_js() {
|
||||||
wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', 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' );
|
add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modifies tag cloud widget arguments to display all tags in the same font size
|
||||||
|
* and use list format for better accessibility.
|
||||||
|
*
|
||||||
|
* @since Twenty Twelve 2.4
|
||||||
|
*
|
||||||
|
* @param array $args Arguments for tag cloud widget.
|
||||||
|
* @return array The filtered arguments for tag cloud widget.
|
||||||
|
*/
|
||||||
|
function twentytwelve_widget_tag_cloud_args( $args ) {
|
||||||
|
$args['largest'] = 22;
|
||||||
|
$args['smallest'] = 8;
|
||||||
|
$args['unit'] = 'pt';
|
||||||
|
$args['format'] = 'list';
|
||||||
|
|
||||||
|
return $args;
|
||||||
|
}
|
||||||
|
add_filter( 'widget_tag_cloud_args', 'twentytwelve_widget_tag_cloud_args' );
|
||||||
|
|
||||||
|
if ( ! function_exists( 'wp_body_open' ) ) :
|
||||||
|
/**
|
||||||
|
* Fire the wp_body_open action.
|
||||||
|
*
|
||||||
|
* Added for backward compatibility to support pre-5.2.0 WordPress versions.
|
||||||
|
*
|
||||||
|
* @since Twenty Twelve 3.0
|
||||||
|
*/
|
||||||
|
function wp_body_open() {
|
||||||
|
/**
|
||||||
|
* Triggered after the opening <body> tag.
|
||||||
|
*
|
||||||
|
* @since Twenty Twelve 3.0
|
||||||
|
*/
|
||||||
|
do_action( 'wp_body_open' );
|
||||||
|
}
|
||||||
|
endif;
|
||||||
|
|
18
header.php
18
header.php
|
@ -22,17 +22,18 @@
|
||||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<title><?php wp_title( '|', true, 'right' ); ?></title>
|
<title><?php wp_title( '|', true, 'right' ); ?></title>
|
||||||
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
<link rel="profile" href="https://gmpg.org/xfn/11" />
|
||||||
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
|
||||||
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
|
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
|
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
<link rel="stylesheet" href="/sito/golem.css" type="text/css" media="all" />
|
<link rel="stylesheet" href="/sito/golem.css" type="text/css" media="all" />
|
||||||
</head>
|
</head>
|
||||||
<!-- GOLEM custom background -->
|
<!-- GOLEM custom background -->
|
||||||
<body <?php body_class('custom-background'); ?>>
|
<body <?php body_class('custom-background'); ?>>
|
||||||
|
<?php wp_body_open(); ?>
|
||||||
<div id="golemnavbar">
|
<div id="golemnavbar">
|
||||||
<a href="http://golem.linux.it/"><div id="golemnavbarlogo" >
|
<a href="http://golem.linux.it/"><div id="golemnavbarlogo" >
|
||||||
</div></a>
|
</div></a>
|
||||||
|
@ -58,8 +59,15 @@
|
||||||
<nav id="site-navigation" class="main-navigation" role="navigation">
|
<nav id="site-navigation" class="main-navigation" role="navigation">
|
||||||
<button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button>
|
<button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button>
|
||||||
<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
|
<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
|
||||||
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
|
<?php
|
||||||
</nav>
|
wp_nav_menu(
|
||||||
|
array(
|
||||||
|
'theme_location' => 'primary',
|
||||||
|
'menu_class' => 'nav-menu',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</nav><!-- #site-navigation -->
|
||||||
|
|
||||||
<?php if ( get_header_image() ) : ?>
|
<?php if ( get_header_image() ) : ?>
|
||||||
<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>
|
<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>
|
||||||
|
|
114
image.php
114
image.php
|
@ -2,7 +2,7 @@
|
||||||
/**
|
/**
|
||||||
* The template for displaying image attachments
|
* The template for displaying image attachments
|
||||||
*
|
*
|
||||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
|
@ -14,7 +14,10 @@ get_header(); ?>
|
||||||
<div id="primary" class="site-content">
|
<div id="primary" class="site-content">
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
|
@ -23,7 +26,9 @@ get_header(); ?>
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<?php
|
<?php
|
||||||
$metadata = wp_get_attachment_metadata();
|
$metadata = wp_get_attachment_metadata();
|
||||||
printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
|
printf(
|
||||||
|
/* translators: 1: Date, 2: Date, 3: Attachment URL, 4: Image width in pixels, 5: Image height in pixels, 6: Post parent permalink, 7: Post parent title, 8: Post parent title. */
|
||||||
|
__( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
|
||||||
esc_attr( get_the_date( 'c' ) ),
|
esc_attr( get_the_date( 'c' ) ),
|
||||||
esc_html( get_the_date() ),
|
esc_html( get_the_date() ),
|
||||||
esc_url( wp_get_attachment_url() ),
|
esc_url( wp_get_attachment_url() ),
|
||||||
|
@ -47,46 +52,60 @@ get_header(); ?>
|
||||||
|
|
||||||
<div class="entry-attachment">
|
<div class="entry-attachment">
|
||||||
<div class="attachment">
|
<div class="attachment">
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
|
* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
|
||||||
* or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
|
* or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
|
||||||
*/
|
*/
|
||||||
$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' ) ) );
|
$attachments = array_values(
|
||||||
foreach ( $attachments as $k => $attachment ) :
|
get_children(
|
||||||
if ( $attachment->ID == $post->ID )
|
array(
|
||||||
break;
|
'post_parent' => $post->post_parent,
|
||||||
endforeach;
|
'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;
|
||||||
|
}
|
||||||
|
endforeach;
|
||||||
|
|
||||||
// If there is more than 1 attachment in a gallery
|
// If there is more than 1 attachment in a gallery...
|
||||||
if ( count( $attachments ) > 1 ) :
|
if ( count( $attachments ) > 1 ) :
|
||||||
$k++;
|
$k++;
|
||||||
if ( isset( $attachments[ $k ] ) ) :
|
if ( isset( $attachments[ $k ] ) ) :
|
||||||
// get the URL of the next image attachment
|
// ...get the URL of the next image attachment.
|
||||||
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
|
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
|
||||||
else :
|
else :
|
||||||
// or get the URL of the first image attachment
|
// ...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;
|
endif;
|
||||||
else :
|
else :
|
||||||
// or, if there's only 1 image, get the URL of the image
|
// Or, if there's only 1 image, get the URL of the image.
|
||||||
$next_attachment_url = wp_get_attachment_url();
|
$next_attachment_url = wp_get_attachment_url();
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
|
<a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
|
||||||
/**
|
<?php
|
||||||
* Filter the image attachment size to use.
|
/**
|
||||||
*
|
* Filters the image attachment size to use.
|
||||||
* @since Twenty Twelve 1.0
|
*
|
||||||
*
|
* @since Twenty Twelve 1.0
|
||||||
* @param array $size {
|
*
|
||||||
* @type int The attachment height in pixels.
|
* @param array $size {
|
||||||
* @type int The attachment width in pixels.
|
* @type int The attachment height in pixels.
|
||||||
* }
|
* @type int The attachment width in pixels.
|
||||||
*/
|
* }
|
||||||
$attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) );
|
*/
|
||||||
echo wp_get_attachment_image( $post->ID, $attachment_size );
|
$attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) );
|
||||||
?></a>
|
echo wp_get_attachment_image( $post->ID, $attachment_size );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
|
||||||
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
|
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
|
||||||
<div class="entry-caption">
|
<div class="entry-caption">
|
||||||
|
@ -99,7 +118,14 @@ endif;
|
||||||
|
|
||||||
<div class="entry-description">
|
<div class="entry-description">
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
|
<?php
|
||||||
|
wp_link_pages(
|
||||||
|
array(
|
||||||
|
'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ),
|
||||||
|
'after' => '</div>',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
?>
|
||||||
</div><!-- .entry-description -->
|
</div><!-- .entry-description -->
|
||||||
|
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
@ -108,7 +134,7 @@ endif;
|
||||||
|
|
||||||
<?php comments_template(); ?>
|
<?php comments_template(); ?>
|
||||||
|
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // End of the loop. ?>
|
||||||
|
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
|
@ -54,8 +54,9 @@ add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );
|
||||||
*/
|
*/
|
||||||
function twentytwelve_custom_header_fonts() {
|
function twentytwelve_custom_header_fonts() {
|
||||||
$font_url = twentytwelve_get_font_url();
|
$font_url = twentytwelve_get_font_url();
|
||||||
if ( ! empty( $font_url ) )
|
if ( ! empty( $font_url ) ) {
|
||||||
wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
|
wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' );
|
add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' );
|
||||||
|
|
||||||
|
@ -69,27 +70,28 @@ add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_cu
|
||||||
function twentytwelve_header_style() {
|
function twentytwelve_header_style() {
|
||||||
$text_color = get_header_textcolor();
|
$text_color = get_header_textcolor();
|
||||||
|
|
||||||
// If no custom options for text are set, let's bail
|
// If no custom options for text are set, let's bail.
|
||||||
if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) )
|
if ( get_theme_support( 'custom-header', 'default-text-color' ) == $text_color ) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// If we get this far, we have custom styles.
|
// If we get this far, we have custom styles.
|
||||||
?>
|
?>
|
||||||
<style type="text/css" id="twentytwelve-header-css">
|
<style type="text/css" id="twentytwelve-header-css">
|
||||||
<?php
|
<?php
|
||||||
// Has the text been hidden?
|
// Has the text been hidden?
|
||||||
if ( ! display_header_text() ) :
|
if ( ! display_header_text() ) :
|
||||||
?>
|
?>
|
||||||
.site-title,
|
.site-title,
|
||||||
.site-description {
|
.site-description {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
clip: rect(1px 1px 1px 1px); /* IE7 */
|
clip: rect(1px 1px 1px 1px); /* IE7 */
|
||||||
clip: rect(1px, 1px, 1px, 1px);
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
}
|
}
|
||||||
<?php
|
<?php
|
||||||
// If the user has set a custom color for the text, use that.
|
// If the user has set a custom color for the text, use that.
|
||||||
else :
|
else :
|
||||||
?>
|
?>
|
||||||
.site-header h1 a,
|
.site-header h1 a,
|
||||||
.site-header h2 {
|
.site-header h2 {
|
||||||
color: #<?php echo $text_color; ?>;
|
color: #<?php echo $text_color; ?>;
|
||||||
|
@ -105,7 +107,7 @@ function twentytwelve_header_style() {
|
||||||
* @since Twenty Twelve 1.0
|
* @since Twenty Twelve 1.0
|
||||||
*/
|
*/
|
||||||
function twentytwelve_admin_header_style() {
|
function twentytwelve_admin_header_style() {
|
||||||
?>
|
?>
|
||||||
<style type="text/css" id="twentytwelve-admin-header-css">
|
<style type="text/css" id="twentytwelve-admin-header-css">
|
||||||
.appearance_page_custom-header #headimg {
|
.appearance_page_custom-header #headimg {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -136,7 +138,7 @@ function twentytwelve_admin_header_style() {
|
||||||
max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;
|
max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -155,9 +157,12 @@ function twentytwelve_admin_header_image() {
|
||||||
<div id="headimg">
|
<div id="headimg">
|
||||||
<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>
|
<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>
|
<h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2>
|
||||||
<?php $header_image = get_header_image();
|
<?php
|
||||||
if ( ! empty( $header_image ) ) : ?>
|
$header_image = get_header_image();
|
||||||
|
if ( ! empty( $header_image ) ) :
|
||||||
|
?>
|
||||||
<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="" />
|
<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; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php
|
||||||
|
}
|
||||||
|
|
30
index.php
30
index.php
|
@ -7,7 +7,7 @@
|
||||||
* It is used to display a page when nothing more specific matches a query.
|
* 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.
|
* For example, it puts together the home page when no home.php file exists.
|
||||||
*
|
*
|
||||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
|
@ -20,8 +20,11 @@ get_header(); ?>
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<?php
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
// Start the Loop.
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
<?php get_template_part( 'content', get_post_format() ); ?>
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
|
@ -31,20 +34,27 @@ get_header(); ?>
|
||||||
|
|
||||||
<article id="post-0" class="post no-results not-found">
|
<article id="post-0" class="post no-results not-found">
|
||||||
|
|
||||||
<?php if ( current_user_can( 'edit_posts' ) ) :
|
<?php
|
||||||
|
if ( current_user_can( 'edit_posts' ) ) :
|
||||||
// Show a different message to a logged-in user who can add posts.
|
// Show a different message to a logged-in user who can add posts.
|
||||||
?>
|
?>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1>
|
<h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p>
|
<p>
|
||||||
|
<?php
|
||||||
|
/* translators: %s: Post editor URL. */
|
||||||
|
printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) );
|
||||||
|
?>
|
||||||
|
</p>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<?php else :
|
<?php
|
||||||
|
else :
|
||||||
// Show the default message to everyone else.
|
// Show the default message to everyone else.
|
||||||
?>
|
?>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
|
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
|
||||||
</header>
|
</header>
|
||||||
|
@ -53,11 +63,11 @@ get_header(); ?>
|
||||||
<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>
|
<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
<?php endif; // end current_user_can() check ?>
|
<?php endif; // End current_user_can() check. ?>
|
||||||
|
|
||||||
</article><!-- #post-0 -->
|
</article><!-- #post-0 -->
|
||||||
|
|
||||||
<?php endif; // end have_posts() check ?>
|
<?php endif; // End have_posts() check. ?>
|
||||||
|
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// Header text color
|
// Header text color.
|
||||||
wp.customize( 'header_textcolor', function( value ) {
|
wp.customize( 'header_textcolor', function( value ) {
|
||||||
value.bind( function( to ) {
|
value.bind( function( to ) {
|
||||||
if ( 'blank' === to ) {
|
if ( 'blank' === to ) {
|
||||||
|
@ -41,9 +41,9 @@
|
||||||
value.bind( function( to ) {
|
value.bind( function( to ) {
|
||||||
var body = $( 'body' );
|
var body = $( 'body' );
|
||||||
|
|
||||||
if ( ( '#ffffff' == to || '#fff' == to ) && 'none' == body.css( 'background-image' ) )
|
if ( ( '#ffffff' === to || '#fff' === to ) && 'none' === body.css( 'background-image' ) )
|
||||||
body.addClass( 'custom-background-white' );
|
body.addClass( 'custom-background-white' );
|
||||||
else if ( '' == to && 'none' == body.css( 'background-image' ) )
|
else if ( '' === to && 'none' === body.css( 'background-image' ) )
|
||||||
body.addClass( 'custom-background-empty' );
|
body.addClass( 'custom-background-empty' );
|
||||||
else
|
else
|
||||||
body.removeClass( 'custom-background-empty custom-background-white' );
|
body.removeClass( 'custom-background-empty custom-background-white' );
|
||||||
|
|
|
@ -17,7 +17,10 @@ get_header(); ?>
|
||||||
<div id="primary" class="site-content">
|
<div id="primary" class="site-content">
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
<?php if ( has_post_thumbnail() ) : ?>
|
<?php if ( has_post_thumbnail() ) : ?>
|
||||||
<div class="entry-page-image">
|
<div class="entry-page-image">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
|
@ -26,10 +29,10 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'content', 'page' ); ?>
|
<?php get_template_part( 'content', 'page' ); ?>
|
||||||
|
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // End of the loop. ?>
|
||||||
|
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar( 'front' ); ?>
|
<?php get_sidebar( 'front' ); ?>
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
|
@ -19,12 +19,15 @@ get_header(); ?>
|
||||||
<div id="primary" class="site-content">
|
<div id="primary" class="site-content">
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
<?php get_template_part( 'content', 'page' ); ?>
|
<?php get_template_part( 'content', 'page' ); ?>
|
||||||
<?php comments_template( '', true ); ?>
|
<?php comments_template( '', true ); ?>
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // End of the loop. ?>
|
||||||
|
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
9
page.php
9
page.php
|
@ -17,13 +17,16 @@ get_header(); ?>
|
||||||
<div id="primary" class="site-content">
|
<div id="primary" class="site-content">
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
<?php get_template_part( 'content', 'page' ); ?>
|
<?php get_template_part( 'content', 'page' ); ?>
|
||||||
<?php comments_template( '', true ); ?>
|
<?php comments_template( '', true ); ?>
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // End of the loop. ?>
|
||||||
|
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
54
readme.txt
54
readme.txt
|
@ -1,8 +1,7 @@
|
||||||
=== Twenty Twelve ===
|
=== Twenty Twelve ===
|
||||||
Contributors: the WordPress team
|
Contributors: wordpressdotorg
|
||||||
Requires at least: WordPress 3.5
|
Tested up to: 5.6
|
||||||
Tested up to: WordPress 4.9-trunk
|
Stable tag: 3.2
|
||||||
Stable tag: 2.3
|
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
||||||
|
@ -22,7 +21,7 @@ For more information about Twenty Twelve please go to https://codex.wordpress.or
|
||||||
|
|
||||||
== Copyright ==
|
== Copyright ==
|
||||||
|
|
||||||
Twenty Twelve WordPress Theme, Copyright 2012-2017 WordPress.org & Automattic.com
|
Twenty Twelve WordPress Theme, Copyright 2012-2020 WordPress.org & Automattic.com
|
||||||
Twenty Twelve is Distributed under the terms of the GNU GPL
|
Twenty Twelve is Distributed under the terms of the GNU GPL
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
@ -43,6 +42,51 @@ Source: https://github.com/aFarkas/html5shiv
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 3.2 =
|
||||||
|
* Released: August 11, 2020
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.2
|
||||||
|
|
||||||
|
= 3.1 =
|
||||||
|
* Released: March 31, 2020
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.1
|
||||||
|
|
||||||
|
= 3.0 =
|
||||||
|
* Released: May 7, 2019
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.0
|
||||||
|
|
||||||
|
= 2.9 =
|
||||||
|
* Released: February 21, 2019
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.9
|
||||||
|
|
||||||
|
= 2.8 =
|
||||||
|
* Released: January 9, 2019
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.8
|
||||||
|
|
||||||
|
= 2.7 =
|
||||||
|
* Released: December 19, 2018
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.7
|
||||||
|
|
||||||
|
= 2.6 =
|
||||||
|
* Released: December 6, 2018
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.6
|
||||||
|
|
||||||
|
= 2.5 =
|
||||||
|
* Released: May 17, 2018
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.5
|
||||||
|
|
||||||
|
= 2.4 =
|
||||||
|
* Released: November 14, 2017
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.4
|
||||||
|
|
||||||
= 2.3 =
|
= 2.3 =
|
||||||
* Released: June 8, 2017
|
* Released: June 8, 2017
|
||||||
|
|
||||||
|
|
4
rtl.css
4
rtl.css
|
@ -134,6 +134,9 @@ label ~ span.required {
|
||||||
margin: -18px -16px 0 0;
|
margin: -18px -16px 0 0;
|
||||||
margin: -1.285714286rem -1.142857143rem 0 0;
|
margin: -1.285714286rem -1.142857143rem 0 0;
|
||||||
}
|
}
|
||||||
|
#respond #wp-comment-cookies-consent {
|
||||||
|
margin: 0 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* =Front page template styling
|
/* =Front page template styling
|
||||||
|
@ -170,6 +173,7 @@ label ~ span.required {
|
||||||
#wp-calendar caption {
|
#wp-calendar caption {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
.wp-calendar-nav-next,
|
||||||
#wp-calendar #next {
|
#wp-calendar #next {
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
padding-left: 1.714285714rem;
|
padding-left: 1.714285714rem;
|
||||||
|
|
16
search.php
16
search.php
|
@ -15,13 +15,21 @@ get_header(); ?>
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
<h1 class="page-title">
|
||||||
|
<?php
|
||||||
|
/* translators: %s: Search query. */
|
||||||
|
printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<?php twentytwelve_content_nav( 'nav-above' ); ?>
|
<?php twentytwelve_content_nav( 'nav-above' ); ?>
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<?php
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
// Start the Loop.
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
<?php get_template_part( 'content', get_post_format() ); ?>
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
|
@ -46,4 +54,4 @@ get_header(); ?>
|
||||||
</section><!-- #primary -->
|
</section><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
|
@ -15,8 +15,9 @@
|
||||||
*
|
*
|
||||||
* If none of the sidebars have widgets, then let's bail early.
|
* If none of the sidebars have widgets, then let's bail early.
|
||||||
*/
|
*/
|
||||||
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) )
|
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// If we get this far, we have widgets. Let do this.
|
// If we get this far, we have widgets. Let do this.
|
||||||
?>
|
?>
|
||||||
|
@ -32,4 +33,4 @@ if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) )
|
||||||
<?php dynamic_sidebar( 'sidebar-3' ); ?>
|
<?php dynamic_sidebar( 'sidebar-3' ); ?>
|
||||||
</div><!-- .second -->
|
</div><!-- .second -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div><!-- #secondary -->
|
</div><!-- #secondary -->
|
||||||
|
|
|
@ -14,4 +14,4 @@
|
||||||
<div id="secondary" class="widget-area" role="complementary">
|
<div id="secondary" class="widget-area" role="complementary">
|
||||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||||
</div><!-- #secondary -->
|
</div><!-- #secondary -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -12,7 +12,10 @@ get_header(); ?>
|
||||||
<div id="primary" class="site-content">
|
<div id="primary" class="site-content">
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php
|
||||||
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
|
|
||||||
<?php get_template_part( 'content', get_post_format() ); ?>
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
||||||
|
|
||||||
|
@ -24,10 +27,10 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php comments_template( '', true ); ?>
|
<?php comments_template( '', true ); ?>
|
||||||
|
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // End of the loop. ?>
|
||||||
|
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
61
style.css
61
style.css
|
@ -4,7 +4,9 @@ Theme URI: https://wordpress.org/themes/twentytwelve/
|
||||||
Author: the WordPress team - edit GOLEM
|
Author: the WordPress team - edit GOLEM
|
||||||
Author URI: https://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.
|
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: 2.3
|
Version: 3.2
|
||||||
|
Requires at least: 3.5
|
||||||
|
Requires PHP: 5.2.4
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
||||||
|
@ -256,7 +258,7 @@ article.post-password-required input[type=submit],
|
||||||
background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
|
background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
|
background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
|
background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
|
||||||
background-image: linear-gradient(top, #f4f4f4, #e6e6e6);
|
background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6);
|
||||||
border: 1px solid #d2d2d2;
|
border: 1px solid #d2d2d2;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
|
box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
|
||||||
|
@ -286,7 +288,7 @@ article.post-password-required input[type=submit]:hover {
|
||||||
background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
|
background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
|
background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
|
background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
|
||||||
background-image: linear-gradient(top, #f9f9f9, #ebebeb);
|
background-image: linear-gradient(to bottom, #f9f9f9, #ebebeb);
|
||||||
}
|
}
|
||||||
.menu-toggle:active,
|
.menu-toggle:active,
|
||||||
.menu-toggle.toggled-on,
|
.menu-toggle.toggled-on,
|
||||||
|
@ -301,7 +303,7 @@ input[type="reset"]:active {
|
||||||
background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
|
background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
|
background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
|
background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
|
||||||
background-image: linear-gradient(top, #ebebeb, #e1e1e1);
|
background-image: linear-gradient(to bottom, #ebebeb, #e1e1e1);
|
||||||
box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
|
box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
}
|
}
|
||||||
|
@ -701,6 +703,12 @@ footer[role="contentinfo"] a:hover {
|
||||||
/* color: #21759b; GOLEM */
|
/* color: #21759b; GOLEM */
|
||||||
color: #009000;
|
color: #009000;
|
||||||
}
|
}
|
||||||
|
.site-info span[role=separator] {
|
||||||
|
padding: 0 0.3em 0 0.6em;
|
||||||
|
}
|
||||||
|
.site-info span[role=separator]::before {
|
||||||
|
content: '\002f';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* =Main content and comment content
|
/* =Main content and comment content
|
||||||
|
@ -1280,7 +1288,7 @@ article.format-quote .entry-content blockquote {
|
||||||
background-image: -ms-linear-gradient(top, #009cee, #0088d0);
|
background-image: -ms-linear-gradient(top, #009cee, #0088d0);
|
||||||
background-image: -webkit-linear-gradient(top, #009cee, #0088d0);
|
background-image: -webkit-linear-gradient(top, #009cee, #0088d0);
|
||||||
background-image: -o-linear-gradient(top, #009cee, #0088d0);
|
background-image: -o-linear-gradient(top, #009cee, #0088d0);
|
||||||
background-image: linear-gradient(top, #009cee, #0088d0);
|
background-image: linear-gradient(to bottom, #009cee, #0088d0);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: 1px solid #007cbd;
|
border: 1px solid #007cbd;
|
||||||
}
|
}
|
||||||
|
@ -1365,6 +1373,12 @@ a.comment-edit-link:hover {
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
color: #5e5e5e;
|
color: #5e5e5e;
|
||||||
}
|
}
|
||||||
|
#respond #wp-comment-cookies-consent {
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
}
|
||||||
|
#respond .comment-form-cookies-consent label {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
.required {
|
.required {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
@ -1415,6 +1429,9 @@ a.comment-edit-link:hover {
|
||||||
/* =Widgets
|
/* =Widgets
|
||||||
-------------------------------------------------------------- */
|
-------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.widget select {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
.widget-area .widget ul ul {
|
.widget-area .widget ul ul {
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
margin-left: 0.857142857rem;
|
margin-left: 0.857142857rem;
|
||||||
|
@ -1431,6 +1448,7 @@ a.comment-edit-link:hover {
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
margin-left: 0.857142857rem;
|
margin-left: 0.857142857rem;
|
||||||
}
|
}
|
||||||
|
.wp-calendar-nav,
|
||||||
#wp-calendar {
|
#wp-calendar {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1444,6 +1462,13 @@ a.comment-edit-link:hover {
|
||||||
#wp-calendar caption {
|
#wp-calendar caption {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
.wp-calendar-nav {
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
.wp-calendar-nav span {
|
||||||
|
display: table-cell;
|
||||||
|
}
|
||||||
|
.wp-calendar-nav-next,
|
||||||
#wp-calendar #next {
|
#wp-calendar #next {
|
||||||
padding-right: 24px;
|
padding-right: 24px;
|
||||||
padding-right: 1.714285714rem;
|
padding-right: 1.714285714rem;
|
||||||
|
@ -1462,6 +1487,32 @@ a.comment-edit-link:hover {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
.tagcloud ul {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagcloud ul li {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-area .widget.widget_tag_cloud li {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
.template-front-page .widget-area .widget.widget_tag_cloud li {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-area .gallery-columns-2.gallery-size-full .gallery-icon img,
|
||||||
|
.widget-area .gallery-columns-3.gallery-size-full .gallery-icon img,
|
||||||
|
.widget-area .gallery-columns-4.gallery-size-full .gallery-icon img,
|
||||||
|
.widget-area .gallery-columns-5.gallery-size-full .gallery-icon img,
|
||||||
|
.widget-area .gallery-columns-6 .gallery-icon img,
|
||||||
|
.widget-area .gallery-columns-7 .gallery-icon img,
|
||||||
|
.widget-area .gallery-columns-8 .gallery-icon img,
|
||||||
|
.widget-area .gallery-columns-9 .gallery-icon img {
|
||||||
|
height: auto;
|
||||||
|
max-width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
/* =Plugins
|
/* =Plugins
|
||||||
----------------------------------------------- */
|
----------------------------------------------- */
|
||||||
|
|
20
tag.php
20
tag.php
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* Used to display archive-type pages for posts in a tag.
|
* Used to display archive-type pages for posts in a tag.
|
||||||
*
|
*
|
||||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
|
@ -18,20 +18,26 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<header class="archive-header">
|
||||||
<h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
|
<h1 class="archive-title">
|
||||||
|
<?php
|
||||||
|
/* translators: %s: Tag title. */
|
||||||
|
printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
|
|
||||||
<?php if ( tag_description() ) : // Show an optional tag description ?>
|
<?php if ( tag_description() ) : // Show an optional tag description. ?>
|
||||||
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</header><!-- .archive-header -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Start the Loop */
|
// Start the Loop.
|
||||||
while ( have_posts() ) : the_post();
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Include the post format-specific template for the content. If you want to
|
* Include the post format-specific template for the content. If you want
|
||||||
* this in a child theme then include a file called called content-___.php
|
* to use this in a child theme then include a file called content-___.php
|
||||||
* (where ___ is the post format) and that will be used instead.
|
* (where ___ is the post format) and that will be used instead.
|
||||||
*/
|
*/
|
||||||
get_template_part( 'content', get_post_format() );
|
get_template_part( 'content', get_post_format() );
|
||||||
|
|
Loading…
Reference in New Issue