Importing the Further theme, first pass at the new default theme for 2014.

A magazine theme with clean, responsive design focused on highlighting featured content prominently on home page.

This is slated for 3.8. Development will occur in trunk for the theme, and in plugins for the nice-to-have features.

Nice-to-have improvements include:

- Add a Contributors page template to highlight authors.
- Easy-to-manage featured content.
- Add support for an Authors widget to highlight authors.

Welcome, Twenty Fourteen né Further. Props iamtakashi, see #24858.


git-svn-id: http://core.svn.wordpress.org/trunk@24832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-07-28 22:55:10 +00:00
parent 43724e7735
commit 7d35419e62
44 changed files with 7562 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<article id="post-0" class="post error404 not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'twentyfourteen' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'twentyfourteen' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 .post .error404 .not-found -->
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_sidebar( 'content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

View File

@ -0,0 +1,91 @@
<?php
/**
* The template for displaying Archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header(); ?>
<section id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title">
<?php
if ( is_category() ) {
printf( __( 'Category Archives: %s', 'twentyfourteen' ), '<span>' . single_cat_title( '', false ) . '</span>' );
} elseif ( is_tag() ) {
printf( __( 'Tag Archives: %s', 'twentyfourteen' ), '<span>' . single_tag_title( '', false ) . '</span>' );
} elseif ( is_author() ) {
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*/
the_post();
printf( __( 'Author Archives: %s', 'twentyfourteen' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
} elseif ( is_day() ) {
printf( __( 'Daily Archives: %s', 'twentyfourteen' ), '<span>' . get_the_date() . '</span>' );
} elseif ( is_month() ) {
printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
} elseif ( is_year() ) {
printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
} else {
_e( 'Archives', 'twentyfourteen' );
}
?>
</h1>
<?php
if ( is_category() ) {
// show an optional category description
$category_description = category_description();
if ( ! empty( $category_description ) )
echo apply_filters( 'category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' );
} elseif ( is_tag() ) {
// show an optional tag description
$tag_description = tag_description();
if ( ! empty( $tag_description ) )
echo apply_filters( 'tag_archive_meta', '<div class="taxonomy-description">' . $tag_description . '</div>' );
}
?>
</header><!-- .page-header -->
<?php while ( have_posts() ) : the_post(); ?>
<?php twentyfourteen_get_template_part(); ?>
<?php endwhile; ?>
<?php twentyfourteen_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'archive' ); ?>
<?php endif; ?>
</div><!-- #content .site-content -->
</section><!-- #primary .content-area -->
<?php get_sidebar( 'content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

View File

@ -0,0 +1,76 @@
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentyfourteen_comment() which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<?php
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php // You can start editing here -- including this comment! ?>
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyfourteen' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation clearfix">
<h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyfourteen' ) ); ?></div>
</nav><!-- #comment-nav-above .site-navigation .comment-navigation -->
<?php endif; // check for comment navigation ?>
<ol class="commentlist">
<?php
/* Loop through and list the comments. Tell wp_list_comments()
* to use twentyfourteen_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define twentyfourteen_comment() and that will be used instead.
* See twentyfourteen_comment() in inc/template-tags.php for more.
*/
wp_list_comments( array( 'callback' => 'twentyfourteen_comment' ) );
?>
</ol><!-- .commentlist -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation clearfix">
<h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyfourteen' ) ); ?></div>
</nav><!-- #comment-nav-below .site-navigation .comment-navigation -->
<?php endif; // check for comment navigation ?>
<?php endif; // have_comments() ?>
<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- #comments .comments-area -->

View File

@ -0,0 +1,45 @@
<?php
/**
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-featured">
<?php
$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 1 ) );
if ( '' != get_the_post_thumbnail() ) :
the_post_thumbnail( 'featured-thumbnail-featured' );
elseif ( $images ) :
$image = array_shift( $images );
echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-featured' );
else : ?>
<img src="<?php echo get_template_directory_uri(); ?>/images/placeholder.png" alt="" class="featured-thumbnail-featured" /><?php
endif;
?>
</a>
<div class="entry-wrap">
<header class="entry-header">
<div class="entry-meta">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) );
if ( $categories_list && twentyfourteen_categorized_blog() ) :
?>
<span class="cat-links">
<?php echo $categories_list; ?>
</span>
<?php endif; // End if categories ?>
</div><!-- .entry-meta -->
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</header><!-- .entry-header -->
<div class="entry-summary clearfix">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
</div>
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -0,0 +1,27 @@
<?php
/**
* The template used for displaying page content in page.php
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -0,0 +1,83 @@
<?php
/**
* @package WordPress
* @subpackage Twenty_Fourteen
*/
$format = get_post_format();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>
<?php
if ( 'gallery' == $format ) :
$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );
if ( $images ) :
$image = array_shift( $images ); ?>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail">
<?php echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-large' ); ?>
</a><?php
endif;
endif;
?>
<header class="entry-header">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) );
if ( $categories_list && twentyfourteen_categorized_blog() && 'post' == get_post_type() ) :
?>
<div class="entry-meta">
<span class="cat-links"><?php echo $categories_list; ?></span>
</div>
<?php endif; ?>
<?php
/* Show title only if it exsits */
the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' );
?>
<div class="entry-meta">
<span class="post-format">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>
</span>
<?php
if ( 'post' == get_post_type() )
twentyfourteen_posted_on();
?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content clearfix">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( ( 'quote' == $format ) || ( 'aside' == $format ) ) : ?>
<div class="entry-meta">
<?php the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' ); ?>
</div>
<?php endif; ?>
<?php
$tag_list = get_the_tag_list();
if ( '' != $tag_list && 'post' == get_post_type() ) :
?>
<span class="tag-links"><?php echo $tag_list; ?></span>
<?php endif; // End if $tag_list ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -0,0 +1,54 @@
<?php
/**
* @package WordPress
* @subpackage Twenty_Fourteen
*/
if ( isset( $GLOBALS['content_width'] ) )
$GLOBALS['content_width'] = 306;
$format = get_post_format();
if ( false === $format )
$format = 'standard';
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>
<div class="entry-content clearfix">
<?php
if ( 'gallery' == $format ) :
$featured_image = get_the_post_thumbnail( get_the_ID(), 'featured-thumbnail-formatted' );
$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );
if ( $images ) :
$total_images = count( $images );
if ( empty( $featured_image ) ) {
$image = array_shift( $images );
$featured_image = wp_get_attachment_image( $image->ID, 'featured-thumbnail-formatted' );
}
?>
<a href="<?php the_permalink(); ?>"><?php echo $featured_image; ?></a>
<p class="wp-caption-text"><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyfourteen' ),
'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
number_format_i18n( $total_images )
); ?></p><?php
else :
the_excerpt();
endif;
else :
the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
endif;
?>
</div><!-- .entry-content -->
<header class="entry-header">
<div class="entry-meta">
<?php
if ( 'link' != $format ) :
the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark">', '</a></h1>' );
endif;
?>
<?php twentyfourteen_posted_on(); ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
<?php endif; ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
</article>

View File

@ -0,0 +1,83 @@
<?php
/**
* @package WordPress
* @subpackage Twenty_Fourteen
*/
$format = get_post_format();
if ( false === $format )
$format = 'standard';
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( ( 'video' != $format ) && ( 'image' != $format ) && ( 'aside' != $format ) && ( 'link' != $format ) && ( 'quote' != $format ) ) : ?>
<div class="attachment-featured-thumbnail">
<?php
if ( '' != get_the_post_thumbnail() )
the_post_thumbnail( 'featured-thumbnail-large' );
?>
</div>
<?php endif; ?>
<header class="entry-header">
<div class="entry-meta">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) );
if ( $categories_list && twentyfourteen_categorized_blog() ) :
?>
<span class="cat-links">
<?php echo $categories_list; ?>
</span>
<?php endif; // End if categories ?>
</div><!-- .entry-meta -->
<?php if ( ( 'standard' == $format ) || ( 'video' == $format ) || ( 'image' == $format ) || ( 'gallery' == $format ) ) : ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php endif; ?>
<div class="entry-meta">
<?php if ( 'standard' != $format ) : ?>
<span class="post-format">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>
</span>
<?php endif; ?>
<?php twentyfourteen_posted_on(); ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( ( 'quote' == $format ) || ( 'aside' == $format ) ) : ?>
<div class="entry-meta">
<?php the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' ); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
<?php
$tag_list = get_the_tag_list();
if ( '' != $tag_list ) :
?>
<span class="tag-links">
<?php echo $tag_list; ?>
</span>
<?php endif; // End if $tag_list ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -0,0 +1,76 @@
<?php
/**
* @package WordPress
* @subpackage Twenty_Fourteen
*/
$format = get_post_format();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail">
<?php
if ( '' != get_the_post_thumbnail() )
the_post_thumbnail( 'featured-thumbnail-large' );
?>
</a>
<header class="entry-header">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) );
if ( $categories_list && twentyfourteen_categorized_blog() && 'post' == get_post_type() ) :
?>
<div class="entry-meta">
<span class="cat-links"><?php echo $categories_list; ?></span>
</div>
<?php endif; ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<div class="entry-meta">
<?php if ( 'gallery' == $format ) : ?>
<span class="post-format">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>
</span>
<?php endif; ?>
<?php
if ( 'post' == get_post_type() )
twentyfourteen_posted_on();
?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<?php if ( is_search() ) : ?>
<div class="entry-summary clearfix">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content clearfix">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</div><!-- .entry-content -->
<?php endif; ?>
<?php
$tag_list = get_the_tag_list();
if ( '' != $tag_list && 'post' == get_post_type() ) :
?>
<footer class="entry-meta">
<span class="tag-links"><?php echo $tag_list; ?></span>
</footer><!-- .entry-meta -->
<?php endif; // End if $tag_list ?>
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -0,0 +1,19 @@
<div class="featured-content-wrapper">
<div id="featured-content" class="featured-content clearfix">
<?php
do_action( 'twentyfourteen_featured_posts_before' );
$featured_posts = twentyfourteen_get_featured_posts();
foreach ( (array) $featured_posts as $order => $post ) :
setup_postdata( $post );
get_template_part( 'content', 'featured-post' );
endforeach;
do_action( 'twentyfourteen_featured_posts_after' );
wp_reset_postdata();
?>
</div><!-- .featured-content -->
</div><!-- .featured-content-wrapper -->

View File

@ -0,0 +1,7 @@
Genericons is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
The fonts are distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

View File

@ -0,0 +1,72 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata></metadata>
<defs>
<font id="genericonsregular" horiz-adv-x="2048" >
<font-face units-per-em="2048" ascent="1638" descent="-410" />
<missing-glyph horiz-adv-x="500" />
<glyph unicode="&#xe000;" horiz-adv-x="500" d="M0 0z" />
<glyph unicode="&#xf100;" d="M512 1280v128h1024v-128h-1024zM512 1152h640v-128h-640v128zM1536 1024h-256v128h256v-128zM512 896h256v-128h-256v128zM1536 768h-640v128h640v-128zM1280 512h-768v128h768v-128z" />
<glyph unicode="&#xf101;" d="M1024 1792q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1024 768q106 0 181 75t75 181t-75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75z" />
<glyph unicode="&#xf102;" d="M1280 1664l128 -256h512v-1024h-1792v896l512 128l128 256h512zM256 1600h256v-96l-256 -64v160zM1024 512q186 0 317 131.5t131 316.5t-131 316.5t-317 131.5q-185 0 -316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5zM1024 1280q133 0 226.5 -93.5t93.5 -226.5 t-93.5 -226.5t-226.5 -93.5t-226.5 93.5t-93.5 226.5t93.5 226.5t226.5 93.5z" />
<glyph unicode="&#xf103;" d="M1024 1024h-896v384h896v-384zM1152 512v896h896v-896h-896zM512 512h-384v384h384v-384zM1024 512h-384v384h384v-384z" />
<glyph unicode="&#xf104;" d="M512 384v1280l1152 -640z" />
<glyph unicode="&#xf105;" d="M896 384v664q-113 40 -184.5 138t-71.5 222q0 159 112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5q0 -124 -71.5 -222t-184.5 -138v-536z" />
<glyph unicode="&#xf106;" d="M768 640h-384l128 768h512zM1152 640l128 768h512l-256 -768h-384z" />
<glyph unicode="&#xf107;" d="M870 1450l135 136q75 75 181 75t181 -75l91 -91q75 -75 75 -181t-75 -181l-136 -136l-90 91l135 136q38 37 38 90t-38 91l-90 90q-38 38 -91 38t-90 -38l-136 -135zM1186 1224l-362 -362l-90 90l362 362zM553 771l90 -90q38 -38 91 -38t90 38l136 135l91 -90l-136 -136 q-75 -75 -181 -75t-181 75l-91 91q-75 75 -75 181t75 181l136 135l91 -90l-136 -136q-38 -37 -38 -90t38 -91z" />
<glyph unicode="&#xf108;" d="M256 1792h1024q96 0 176 -80t80 -176v-384q0 -96 -80 -176t-176 -80h-448l-448 -448v448h-128q-96 0 -176 80t-80 176v384q0 96 80 176t176 80zM1664 1152v384q96 0 176 -80t80 -176v-384q0 -96 -80 -176t-176 -80h-128v-448l-448 448h-320l128 128h384q168 0 276 108 t108 276z" />
<glyph unicode="&#xf109;" d="M256 768v512h384l384 384v-1280l-384 384h-384zM1386 1386l91 91q88 -89 137.5 -206t49.5 -247q0 -87 -23 -170t-64.5 -153.5t-99.5 -129.5l-91 91q71 71 110.5 164.5t39.5 197.5t-39.5 197.5t-110.5 164.5zM1205 1205l91 91q53 -54 82.5 -124t29.5 -148t-29.5 -148 t-82.5 -124l-91 91q75 75 75 181t-75 181z" />
<glyph unicode="&#xf200;" d="M1024 2048q212 0 402 -79.5t326.5 -216t216 -326.5t79.5 -402t-79.5 -402t-216 -326.5t-326.5 -216t-402 -79.5t-402 79.5t-326.5 216t-216 326.5t-79.5 402t79.5 402t216 326.5t326.5 216t402 79.5zM1280 384v-224q293 98 466.5 327.5t173.5 536.5q0 176 -73 341.5 t-194.5 287t-287 194.5t-341.5 73t-341.5 -73t-287 -194.5t-194.5 -287t-73 -341.5q0 -307 173.5 -536.5t466.5 -327.5v224q0 224 128 224q-125 0 -213.5 16t-146.5 47t-91.5 83t-47 115.5t-13.5 154.5q0 100 25 187t71 133q-28 71 -28 143t14 109l14 36q7 0 18 -1t44 -7.5 t63 -18.5t67 -38.5t64 -62.5q144 24 300 24t276 -24q27 36 60 62.5t60.5 38.5t51.5 18.5t38 7.5l14 1q4 -5 10 -14.5t19 -40.5t20 -63t4 -78.5t-21 -91.5q96 -144 96 -320q0 -113 -21 -187.5t-75 -128t-147.5 -77t-236.5 -23.5q49 -25 72.5 -77.5t23.5 -146.5z" />
<glyph unicode="&#xf201;" d="M1024 2048q206 0 395.5 -82t327 -219.5t219.5 -327t82 -395.5t-82 -395.5t-219.5 -327t-327 -219.5t-395.5 -82t-395.5 82t-327 219.5t-219.5 327t-82 395.5t82 395.5t219.5 327t327 219.5t395.5 82zM1024 1920q-32 0 -96 -8t-96 -8q102 -166 304 -512q6 2 86 31 t118.5 45t108 47t122 64t93.5 69q-126 126 -290.5 199t-349.5 73zM672 1856q-194 -85 -329.5 -247.5t-182.5 -376.5q194 -22 444 14t388 82q-141 282 -320 528zM1760 1536q-71 -57 -162 -104.5t-214.5 -100.5t-183.5 -83q22 -29 36.5 -54.5t34 -67.5t25.5 -54q170 33 336 30 t288 -30q-26 285 -160 464zM128 1088v-64q0 -167 58 -319.5t166 -272.5q125 205 339 360t445 232q-16 48 -80 176q-282 -86 -481.5 -111t-446.5 -1zM1536 288q156 108 258 278t126 362q-276 46 -576 0q14 -27 43 -103t74.5 -231t74.5 -306zM1024 128q181 0 368 80 q-33 300 -208 688q-222 -74 -410 -225.5t-294 -350.5q216 -192 544 -192z" />
<glyph unicode="&#xf202;" d="M2048 1659q-84 -127 -210 -217q2 -36 2 -55q0 -168 -49 -337t-150 -323.5t-241 -273.5t-336 -190t-420 -71q-351 0 -644 189q50 -6 100 -6q293 0 522 180q-137 2 -244.5 83t-147.5 208q44 -7 79 -7q57 0 110 15q-145 29 -241 144.5t-96 267.5v5q86 -48 191 -53 q-86 58 -136.5 150t-50.5 200q0 113 57 211q158 -194 383 -310t483 -129q-11 49 -11 96q0 174 123 297t297 123q89 0 168.5 -35t138.5 -97q142 27 266 102q-47 -150 -184 -233q124 15 241 66z" />
<glyph unicode="&#xf203;" d="M117 0h1814q48 0 82.5 34.5t34.5 82.5v1814q0 48 -34.5 82.5t-82.5 34.5h-1814q-48 0 -82.5 -34.5t-34.5 -82.5v-1814q0 -48 34.5 -82.5t82.5 -34.5zM1442 1479v-207h329l-14 -303h-315v-841h-320v841h-222v303h222v258q0 78 26 147t77 124t136.5 87t194.5 32 q55 0 108 -3t79 -6l26 -3l-7 -282h-193q-76 0 -101.5 -32t-25.5 -101v-3v-2v-9z" />
<glyph unicode="&#xf204;" d="M1182 1479v-207h329l-14 -303h-315v-841h-320v841h-222v303h222v258q0 78 26 147t77 124t136.5 87t194.5 32q55 0 108 -3t79 -6l26 -3l-7 -282h-193q-76 0 -101.5 -32t-25.5 -101v-3v-2v-9z" />
<glyph unicode="&#xf205;" d="M1024 2048q208 0 398 -81t327 -218.5t218 -327t81 -397.5q0 -209 -81 -398.5t-218 -326.5t-326.5 -218t-398.5 -81q-208 0 -397.5 81t-327 218t-218.5 327t-81 398t81 397.5t218.5 327t327 218.5t397.5 81zM1456 537l90 301q69 177 69 293q0 51 -14 107q-18 45 -40 81 q-2 3 -15 24t-15.5 25t-13 22t-13 24.5t-10 22t-10 24.5t-6.5 22t-5 25t-1 24q0 63 42 110.5t106 49.5q-121 108 -274.5 168t-321.5 60q-226 0 -421 -105t-318 -285q4 0 13.5 -0.5t15.5 -0.5q70 0 127.5 2.5t80.5 4.5l22 3q29 2 46.5 -16t19.5 -40.5t-13 -43t-44 -24.5 q-27 -4 -70 -8l295 -877l198 591l-104 283l-90 11q-38 2 -51.5 34t4.5 62t56 28q54 -10 201 -10q70 0 127.5 2.5t80.5 4.5l22 3q38 2 56.5 -27t5 -60.5t-51.5 -36.5q-27 -4 -69 -8zM1756 1041l-271 -785q199 120 317 324t118 444q0 216 -99 409q4 -44 4 -68q0 -153 -69 -324 zM623 223l-421 1156q-74 -168 -74 -355q0 -259 135.5 -473.5t359.5 -327.5zM1040 945l-268 -780q123 -37 252 -37q152 0 296 51q0 1 -1 1l-1 2z" />
<glyph unicode="&#xf206;" d="M1920 1696v-160h-256v256h-128v-256h-256v-128h256v-256h128v256h256v-1056q0 -96 -64 -160t-160 -64h-544v64q0 128 -43.5 215t-180.5 201q-60 30 -126 89.5t-66 102.5q0 46 26.5 78t101.5 82q48 48 72.5 75t57.5 70.5t47.5 86t14.5 88.5q0 122 -48.5 213.5 t-143.5 138.5h160l160 160h-608q-133 0 -249.5 -55t-198.5 -137v96q0 96 64 160t160 64h1344q96 0 160 -64t64 -160zM576 928q-122 0 -225 109.5t-127 274.5q-23 164 54.5 274t201.5 110q121 -24 208.5 -136.5t111.5 -279.5q24 -165 -38.5 -258.5t-185.5 -93.5zM128 480v480 q52 -52 140.5 -90t179.5 -38h64q0 -16 -16 -48t-16 -48q0 -50 25 -93.5t71 -66.5h-128q-176 0 -320 -96zM960 128h-608q-73 0 -136.5 44.5t-87.5 115.5q49 98 162 161t254 63q32 0 80 -16t80 -16q11 -8 41 -30.5l40 -30t34.5 -26.5t34 -28t28 -25.5t27 -28t20.5 -27t19 -30 t12 -30.5v-64v-32z" />
<glyph unicode="&#xf207;" d="M530 1285h1q67 0 108.5 39.5t41.5 97.5q-2 60 -42 98.5t-106 38.5q-67 0 -108 -39t-41 -98q0 -58 40.5 -97.5t105.5 -39.5zM1350 384h264v455q0 175 -83.5 266t-220.5 91q-50 0 -90.5 -12t-68.5 -34t-45 -41t-33 -44v112h-264v-793h264v443q0 45 8 64q16 40 50.5 68 t85.5 28q133 0 133 -179v-424zM400 384h263v793h-263v-793z" />
<glyph unicode="&#xf208;" d="M384 1920h1280q106 0 181 -75t75 -181v-1280q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181v1280q0 106 75 181t181 75zM530 1285h1q67 0 108.5 39.5t41.5 97.5q-2 60 -42 98.5t-106 38.5q-67 0 -108 -39t-41 -98q0 -58 40.5 -97.5t105.5 -39.5zM1350 384h264 v455q0 175 -83.5 266t-220.5 91q-50 0 -90.5 -12t-68.5 -34t-45 -41t-33 -44v112h-264v-793h264v443q0 45 8 64q16 40 50.5 68t85.5 28q133 0 133 -179v-424zM400 384h263v793h-263v-793z" />
<glyph unicode="&#xf209;" d="M667 0l-149 54q-7 167 22 290l162 688q-40 81 -40 200q0 139 70.5 232.5t172.5 93.5q83 0 127 -53.5t44 -135.5q0 -51 -18.5 -124t-49 -170t-44.5 -154q-23 -99 37.5 -171t161.5 -72q117 0 209.5 92t142 244.5t49.5 334.5q0 214 -139 349t-387 135q-139 0 -257.5 -49.5 t-197 -133t-122.5 -193t-44 -229.5q0 -147 83 -247q18 -21 21.5 -34t-3.5 -37q-16 -61 -25 -101q-7 -24 -24.5 -32t-39.5 1q-127 51 -192.5 181.5t-65.5 300.5q0 109 35.5 219t110 213t179 182t254 126.5t323.5 47.5q176 0 327.5 -60.5t253.5 -161t160 -231t58 -270.5 q0 -246 -85 -443t-241 -309.5t-355 -112.5q-99 0 -186.5 46.5t-121.5 110.5q-73 -290 -89 -347q-34 -123 -127 -270z" />
<glyph unicode="&#xf210;" d="M1024 2048q209 0 398.5 -81t326.5 -218t218 -326.5t81 -398.5t-81 -398.5t-218 -326.5t-326.5 -218t-398.5 -81q-147 0 -290 42q74 116 103 219l72 282q28 -53 99 -90.5t151 -37.5q162 0 288.5 91.5t195.5 251t69 359.5q0 114 -47 220t-130 187.5t-206.5 130.5t-265.5 49 q-141 0 -262 -38.5t-205.5 -103t-145.5 -147.5t-89.5 -172.5t-28.5 -178.5q0 -138 53 -243.5t156 -147.5q18 -8 32.5 -1t18.5 26q2 9 10 41t11 41q5 19 2.5 30t-16.5 28q-68 78 -68 200q0 97 35.5 186t99.5 156.5t160 108t209 40.5q201 0 313.5 -109.5t112.5 -283.5 q0 -148 -40 -271.5t-115 -198t-169 -74.5q-82 0 -131.5 58.5t-30.5 138.5q11 46 35.5 125t39.5 138t15 101q0 66 -35.5 109.5t-102.5 43.5q-82 0 -139.5 -76t-57.5 -189q0 -43 8 -83.5t16 -59.5l9 -19q-113 -475 -132 -558q-24 -97 -18 -235q-275 120 -444 374t-169 564 q0 208 81 398t218.5 327t327 218t397.5 81z" />
<glyph unicode="&#xf211;" d="M992 1024q0 172 -122 294t-294 122t-294 -122t-122 -294t122 -294t294 -122t294 122t122 294zM1888 1024q0 172 -122 294t-294 122t-294 -122t-122 -294t122 -294t294 -122t294 122t122 294z" />
<glyph unicode="&#xf212;" d="M128 1379l84 -108q121 84 141 84q92 0 173 -287q24 -87 72 -262.5t72 -262.5q108 -287 265 -287q253 0 619 471q353 451 365 710q16 347 -260 355q-373 12 -505 -417q69 29 133 29q136 0 120 -152q-8 -92 -120 -268q-113 -176 -169 -176q-73 0 -133 271q-20 78 -72 407 q-49 303 -258 284q-89 -8 -265 -160q-126 -113 -262 -231z" />
<glyph unicode="&#xf213;" d="M512 1664h1024q104 0 192.5 -51.5t140 -140t51.5 -192.5v-512q0 -104 -51.5 -192.5t-140 -140t-192.5 -51.5h-1024q-104 0 -192.5 51.5t-140 140t-51.5 192.5v512q0 104 51.5 192.5t140 140t192.5 51.5zM768 1408v-768l640 384z" />
<glyph unicode="&#xf300;" d="M512 1536h1024q106 0 181 -75t75 -181v-384q0 -106 -75 -181t-181 -75h-448l-448 -448v448h-128q-106 0 -181 75t-75 181v384q0 106 75 181t181 75z" />
<glyph unicode="&#xf301;" d="M640 1024l64 128h960l-256 -640h-1024v1024h384l64 -128h448v-128h-640l-128 -256h128z" />
<glyph unicode="&#xf302;" d="M256 768l768 768h512v-512l-768 -768zM1280 1152q53 0 90.5 37.5t37.5 90.5t-37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5z" />
<glyph unicode="&#xf303;" d="M960 1792q143 0 273.5 -55.5t225 -150t150 -225t55.5 -273.5t-55.5 -273.5t-150 -225t-225 -150t-273.5 -55.5t-273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5zM960 512q117 0 223.5 45.5t184 123t123 184t45.5 223.5t-45.5 223.5 t-123 184t-184 123t-223.5 45.5t-223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5t45.5 -223.5t123 -184t184 -123t223.5 -45.5zM896 1536h128v-421l298 -298l-90 -91l-336 336v474z" />
<glyph unicode="&#xf304;" d="M1024 1152q-106 0 -181 75t-75 181t75 181t181 75t181 -75t75 -181t-75 -181t-181 -75zM896 1024h256q159 0 271.5 -112.5t112.5 -271.5v-256h-1024v256q0 159 112.5 271.5t271.5 112.5z" />
<glyph unicode="&#xf305;" d="M1408 1792v-128h256v-1280h-1408v1280h256v128h128v-128h640v128h128zM512 512h896q53 0 90.5 37.5t37.5 90.5v640q0 53 -37.5 90.5t-90.5 37.5h-896q-53 0 -90.5 -37.5t-37.5 -90.5v-640q0 -53 37.5 -90.5t90.5 -37.5zM832 1280h128q26 0 45 -19t19 -45v-512 q0 -26 -19 -45t-45 -19t-45 19t-19 45v448h-64q-26 0 -45 19t-19 45t19 45t45 19z" />
<glyph unicode="&#xf306;" d="M1408 1792v-128h256v-1280h-1408v1280h256v128h128v-128h640v128h128zM512 512h896q53 0 90.5 37.5t37.5 90.5v640q0 53 -37.5 90.5t-90.5 37.5h-896q-53 0 -90.5 -37.5t-37.5 -90.5v-640q0 -53 37.5 -90.5t90.5 -37.5zM832 1280h256h2h1h3q22 -2 38.5 -18t19.5 -39v-2 v-2v-1v-2q0 -5 -2 -15l-128 -512q-6 -26 -28.5 -40t-48.5 -7q-26 6 -40 28.5t-7 48.5l108 433h-174q-26 0 -45 19t-19 45t19 45t45 19z" />
<glyph unicode="&#xf307;" d="M1408 1792v-128h256v-1280h-1408v1280h256v128h128v-128h640v128h128zM512 512h896q53 0 90.5 37.5t37.5 90.5v640q0 53 -37.5 90.5t-90.5 37.5h-896q-53 0 -90.5 -37.5t-37.5 -90.5v-640q0 -53 37.5 -90.5t90.5 -37.5zM896 1152h-128v128h128v-128zM1152 1152h-128v128 h128v-128zM1408 1152h-128v128h128v-128zM640 896h-128v128h128v-128zM896 896h-128v128h128v-128zM1152 896h-128v128h128v-128zM1408 896h-128v128h128v-128zM640 640h-128v128h128v-128zM896 640h-128v128h128v-128zM1152 640h-128v128h128v-128z" />
<glyph unicode="&#xf308;" d="M1280 1920h128l512 -512v-128h-256l-320 -320v-384h-128l-640 640v128h384l320 320v256zM256 384l512 512l128 -128l-512 -512z" />
<glyph unicode="&#xf400;" d="M1664 256l-495 495q-153 -111 -337 -111q-117 0 -223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5q0 -184 -111 -337l495 -495zM832 768q186 0 317 131.5t131 316.5t-131 316.5t-317 131.5 q-185 0 -316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
<glyph unicode="&#xf401;" d="M1664 256l-495 495q-153 -111 -337 -111q-117 0 -223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5q0 -184 -111 -337l495 -495zM832 768q186 0 317 131.5t131 316.5t-131 316.5t-317 131.5 q-185 0 -316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5zM1152 1152h-640v128h640v-128z" />
<glyph unicode="&#xf402;" d="M1297 879l495 -495l-128 -128l-495 495q-153 -111 -337 -111q-117 0 -223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5q0 -184 -111 -337zM384 1216q0 -185 131.5 -316.5t316.5 -131.5 q186 0 317 131.5t131 316.5t-131 316.5t-317 131.5q-185 0 -316.5 -131.5t-131.5 -316.5zM896 1280h256v-128h-256v-256h-128v256h-256v128h256v256h128v-256z" />
<glyph unicode="&#xf403;" d="M0 1024l506 506q101 103 234.5 160.5t283.5 57.5t283.5 -57.5t233.5 -159.5l507 -507l-506 -507q-101 -103 -234.5 -160t-283.5 -57t-283.5 57.5t-233.5 160.5zM272 1024l370 -371q77 -78 175.5 -119.5t206.5 -41.5t206 41.5t174 118.5l373 372l-371 371 q-158 161 -382 161q-108 0 -206.5 -41t-173.5 -119zM1024 1408q159 0 271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5zM1152 1024q53 0 90.5 37.5t37.5 90.5t-37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5 t37.5 -90.5t90.5 -37.5z" />
<glyph unicode="&#xf404;" d="M1382 1653l-143 -143q-103 46 -215 46q-108 0 -206.5 -41t-173.5 -119l-372 -372l240 -240l-136 -136l-376 376l506 506q101 103 234.5 160.5t283.5 57.5q193 0 358 -95zM339 429l90 -90l1280 1280l-90 90zM1122 1394l-468 -468q-14 54 -14 98q0 159 112.5 271.5 t271.5 112.5q44 0 98 -14zM1536 1265l136 135l376 -376l-506 -507q-101 -103 -234.5 -160t-283.5 -57q-193 0 -358 95l143 143q103 -46 215 -46q108 0 206 41.5t174 118.5l373 372zM926 654l468 468q14 -54 14 -98q0 -159 -112.5 -271.5t-271.5 -112.5q-44 0 -98 14z" />
<glyph unicode="&#xf405;" d="M1408 1536l128 -128l-320 -320l320 -320l-128 -128l-320 320l-320 -320l-128 128l320 320l-320 320l128 128l320 -320z" />
<glyph unicode="&#xf406;" d="M1920 2048l128 -128l-832 -832l832 -832l-128 -128l-832 832l-832 -832l-128 128l832 832l-832 832l128 128l832 -832z" />
<glyph unicode="&#xf407;" d="M1140 1536h140q106 0 181 -75t75 -181h-128v-768q0 -53 -37.5 -90.5t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v768h-128q0 106 75 181t181 75h140q20 56 69.5 92t110.5 36q62 0 111 -35.5t69 -92.5zM640 1216v-640q0 -26 19 -45t45 -19t45 19t19 45v640 q0 26 -19 45t-45 19t-45 -19t-19 -45zM896 1216v-640q0 -26 19 -45t45 -19t45 19t19 45v640q0 26 -19 45t-45 19t-45 -19t-19 -45zM1280 576v640q0 26 -19 45t-45 19t-45 -19t-19 -45v-640q0 -26 19 -45t45 -19t45 19t19 45z" />
<glyph unicode="&#xf408;" d="M1205 1150l-181 535l-180 -534h-588l476 -330l-183 -535l475 332l475 -332l-183 535l476 329h-587z" />
<glyph unicode="&#xf409;" d="M384 1024l640 640l640 -640l-128 -128l-512 512l-512 -512zM640 512v384l384 384l384 -384v-384h-256v384h-256v-384h-256z" />
<glyph unicode="&#xf410;" d="M0 1792h2048l-1024 -1024zM0 512v1152l576 -576zM2048 1664v-1152l-576 576zM640 1024l384 -384l384 384l640 -640h-2048z" />
<glyph unicode="&#xf411;" d="M384 832l896 896l448 -448l-896 -896h-448v448zM1376 1440l-96 96l-595 -595l96 -96zM941 685l595 595l-96 96l-595 -595zM512 768l256 -256l128 128l-256 256z" />
<glyph unicode="&#xf412;" d="M1280 1472l640 -640l-640 -640v448h-1024v704l384 384v-704h640v448z" />
<glyph unicode="&#xf413;" d="M1920 128h-345q0 197 -52 385.5t-145.5 348t-227 294t-292 228t-346 146t-383.5 52.5v345q243 0 475 -64.5t428.5 -181t362 -282.5t281 -363.5t180 -430.5t64.5 -477zM1311 128h-345q0 170 -63.5 324t-181.5 273q-119 119 -272 182.5t-321 63.5v345q240 0 459 -94 t377.5 -253.5t252.5 -379.5t94 -461zM384 640q106 0 181 -75t75 -181t-75 -181t-181 -75t-181 75t-75 181t75 181t181 75z" />
<glyph unicode="&#xf414;" d="M1237 1711l759 -1237q88 -142 31 -244t-224 -102h-1557q-168 0 -225 102t31 244l760 1237q57 93 134.5 126.5t155 0t135.5 -126.5zM896 1280v-384q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5v384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5zM1024 384 q53 0 90.5 37.5t37.5 90.5t-37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5z" />
<glyph unicode="&#xf415;" d="M128 1280v-256h400q45 0 79.5 27.5t44.5 69.5q33 125 136.5 206t235.5 81q154 0 270 -114q38 -38 90.5 -38t90.5 38q37 38 37 91t-37 90q-88 89 -204.5 139t-246.5 50q-194 0 -353 -106t-234 -278h-309zM1280 1024q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181 t181 -75t181 75t75 181zM1611 768h309v256h-400q-45 0 -79.5 -27.5t-44.5 -69.5q-33 -125 -136.5 -206t-235.5 -81q-156 0 -269 115q-38 37 -91 37t-91 -38q-37 -38 -37 -91t37 -90q89 -89 205 -139t246 -50q194 0 353 106t234 278z" />
<glyph unicode="&#xf416;" d="M768 960v512q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5v-640q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5v320h128v-320q0 -133 93.5 -226.5t226.5 -93.5t226.5 93.5t93.5 226.5v640q0 80 -56 136t-136 56t-136 -56t-56 -136v-512 q0 -26 19 -45t45 -19t45 19t19 45v452h128v-452q0 -80 -56 -136t-136 -56t-136 56t-56 136z" />
<glyph unicode="&#xf417;" d="M960 402l-407 406q-80 80 -124.5 185.5t-44.5 222.5t45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5t-44.5 -222.5t-124.5 -185.5zM960 896q133 0 226.5 93.5t93.5 226.5t-93.5 226.5t-226.5 93.5t-226.5 -93.5t-93.5 -226.5 t93.5 -226.5t226.5 -93.5z" />
<glyph unicode="&#xf418;" d="M960 992l448 512l128 -96l-512 -768h-128l-288 416l128 128z" />
<glyph unicode="&#xf419;" d="M0 1536v256h2048v-256h-2048zM2048 896h-2048v256h2048v-256zM2048 256h-2048v256h2048v-256z" />
<glyph unicode="&#xf420;" d="M384 1280v128h1280v-128h-1280zM1664 512h-1280l640 640z" />
<glyph unicode="&#xf421;" d="M384 896v256h1152v-256h-1152z" />
<glyph unicode="&#xf422;" d="M384 512v1024h1152v-1024h-1152zM512 640h896v640h-896v-640z" />
<glyph unicode="&#xf423;" d="M456 1503l112 -62l-267 -481h403v-384h-128v256h-493zM1912 1441l-267 -481h403v-384h-128v256h-493l373 671zM1088 1344q87 0 160.5 -43t116.5 -116.5t43 -160.5t-43 -160.5t-116.5 -116.5t-160.5 -43t-160.5 43t-116.5 116.5t-43 160.5t43 160.5t116.5 116.5t160.5 43z M1088 832q79 0 135.5 56.5t56.5 135.5t-56.5 135.5t-135.5 56.5t-135.5 -56.5t-56.5 -135.5t56.5 -135.5t135.5 -56.5z" />
<glyph unicode="&#xf500;" d="M1088 960l960 -960h-1920z" />
<glyph unicode="&#xf501;" d="M960 1088l-960 960v-1920z" />
<glyph unicode="&#xf502;" d="M1088 1088l960 960h-1920z" />
<glyph unicode="&#xf503;" d="M1088 1088l960 960v-1920z" />
</font>
</defs></svg>

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,27 @@
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content after
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
</div><!-- #main .site-main -->
<?php get_sidebar( 'footer' ); ?>
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<?php do_action( 'twentyfourteen_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
</div><!-- .site-info -->
</footer><!-- #colophon .site-footer -->
</div><!-- #page .hfeed .site -->
<?php wp_footer(); ?>
</body>
</html>

View File

@ -0,0 +1,65 @@
<?php
/**
* Template Name: Full Width Page
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header(); ?>
<?php if ( is_front_page() ) : ?>
<div class="front-page-content-wrapper">
<div class="front-page-content-main">
<?php if ( twentyfourteen_has_featured_posts() ) : ?>
<?php get_template_part( 'featured-content' ); ?>
<?php endif; ?>
<div class="front-page-content-area clearfix">
<div id="primary" class="content-area no-sidebar">
<div id="content" class="site-content full-width" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'content', 'page' );
comments_template( '', true );
endwhile;
twentyfourteen_content_nav( 'nav-below' );
else :
get_template_part( 'no-results', 'index' );
endif;
?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
</div><!-- .front-page-content-area -->
</div><!-- .front-page-content-main -->
</div><!-- .front-page-content-wrapper -->
<?php else : ?>
<div id="primary" class="content-area">
<div id="content" class="site-content full-width" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php endif; // is_front_page() check ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

View File

@ -0,0 +1,446 @@
<?php
/**
* Twenty Fourteen functions and definitions
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
/**
* Set the content width based on the theme's design and stylesheet.
*
*/
if ( ! isset( $content_width ) )
$content_width = 474; /* pixels */
function futher_set_content_width() {
global $content_width;
if ( is_page_template( 'full-width-page.php' ) || is_attachment() )
$content_width = 895;
}
add_action( 'template_redirect', 'futher_set_content_width' );
if ( ! function_exists( 'twentyfourteen_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which runs
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
*
*/
function twentyfourteen_setup() {
/**
* Custom template tags for this theme.
*/
require( get_template_directory() . '/inc/template-tags.php' );
/**
* Customizer additions
*/
require( get_template_directory() . '/inc/customizer.php' );
/**
* Make theme available for translation
* Translations can be filed in the /languages/ directory
* If you're building a theme based on Twenty Fourteen, use a find and replace
* to change 'twentyfourteen' to the name of your theme in all the template files
*/
load_theme_textdomain( 'twentyfourteen', get_template_directory() . '/languages' );
/**
* Add default posts and comments RSS feed links to head
*/
add_theme_support( 'automatic-feed-links' );
/**
* Enable support for Post Thumbnails
*/
add_theme_support( 'post-thumbnails', array( 'post' ) );
/**
* Adding several sizes for Post Thumbnails
*/
add_image_size( 'featured-thumbnail-large', 672, 0 );
add_image_size( 'featured-thumbnail-featured', 672, 336, true );
add_image_size( 'featured-thumbnail-formatted', 306, 0 );
/**
* This theme uses wp_nav_menu() in one location.
*/
register_nav_menus( array(
'primary' => __( 'Top primary menu', 'twentyfourteen' ),
'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' )
) );
/**
* Enable support for Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery' ) );
/**
* This theme allows users to set a custom background.
*/
$args = apply_filters( 'twentyfourteen_custom_background_args', array( 'default-color' => 'f5f5f5' ) );
if ( function_exists( 'wp_get_theme' ) ) {
add_theme_support( 'custom-background', $args );
} else {
// Compat: Versions of WordPress prior to 3.4.
define( 'BACKGROUND_COLOR', $args['default-color'] );
add_custom_background();
}
}
endif; // twentyfourteen_setup
add_action( 'after_setup_theme', 'twentyfourteen_setup' );
/**
* Getter function for Featured Content Plugin.
*
*/
function twentyfourteen_get_featured_posts() {
return apply_filters( 'twentyfourteen_get_featured_posts', false );
}
/**
* A helper conditional function that returns a boolean value
* So that we can use a condition like
* if ( twentyfourteen_has_featured_posts( 1 ) )
*
*/
function twentyfourteen_has_featured_posts( $minimum = 1 ) {
if ( is_paged() )
return false;
$minimum = absint( $minimum );
$featured_posts = apply_filters( 'twentyfourteen_get_featured_posts', array() );
if ( ! is_array( $featured_posts ) )
return false;
if ( $minimum > count( $featured_posts ) )
return false;
return true;
}
/**
* Register widgetized area and update sidebar with default widgets
*
*/
function twentyfourteen_widgets_init() {
register_sidebar( array(
'name' => __( 'Primary Sidebar', 'twentyfourteen' ),
'id' => 'sidebar-1',
'description' => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Content Sidebar', 'twentyfourteen' ),
'id' => 'sidebar-2',
'description' => __( 'Additional sidebar that appears on the right, on single posts and pages.', 'twentyfourteen' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Footer Widget Area One', 'twentyfourteen' ),
'id' => 'sidebar-3',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Footer Widget Area Two', 'twentyfourteen' ),
'id' => 'sidebar-4',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Footer Widget Area Three', 'twentyfourteen' ),
'id' => 'sidebar-5',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Footer Widget Area Four', 'twentyfourteen' ),
'id' => 'sidebar-6',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Footer Widget Area Five', 'twentyfourteen' ),
'id' => 'sidebar-7',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
}
add_action( 'widgets_init', 'twentyfourteen_widgets_init' );
/**
* Register Google fonts for Twenty Fourteen
*
*/
function twentyfourteen_fonts() {
/* translators: If there are characters in your language that are not supported
by Lato, translate this to 'off'. Do not translate into your own language. */
if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {
$protocol = is_ssl() ? 'https' : 'http';
wp_register_style( 'twentyfourteen-lato', "$protocol://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic", array(), null );
}
}
add_action( 'init', 'twentyfourteen_fonts' );
/**
* Enqueue scripts and styles
*
*/
function twentyfourteen_scripts() {
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
wp_enqueue_style( 'twentyfourteen-lato' );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image() ) {
wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
}
wp_enqueue_script( 'twentyfourteen-theme', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130402', true );
}
add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
/**
* Enqueue Google fonts style to admin screen for custom header display.
*
*/
function twentyfourteen_admin_fonts( $hook_suffix ) {
if ( 'appearance_page_custom-header' != $hook_suffix )
return;
wp_enqueue_style( 'twentyfourteen-lato' );
}
add_action( 'admin_enqueue_scripts', 'twentyfourteen_admin_fonts' );
/**
* Implement the Custom Header feature
*
*/
require( get_template_directory() . '/inc/custom-header.php' );
/**
* Sets the post excerpt length to 40 words.
*
*/
function twentyfourteen_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'twentyfourteen_excerpt_length' );
/**
* Returns a "Continue Reading" link for excerpts
*
*/
function twentyfourteen_continue_reading_link() {
return ' <a href="'. esc_url( get_permalink() ) . '" class="more-link">' . __( 'Read More <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) . '</a>';
}
/**
* Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link().
*/
function twentyfourteen_auto_excerpt_more( $more ) {
return ' &hellip;' . twentyfourteen_continue_reading_link();
}
add_filter( 'excerpt_more', 'twentyfourteen_auto_excerpt_more' );
/**
* Adds a pretty "Continue Reading" link to custom post excerpts.
*
* To override this link in a child theme, remove the filter and add your own
* function tied to the get_the_excerpt filter hook.
*
*/
function twentyfourteen_custom_excerpt_more( $output ) {
if ( has_excerpt() && ! is_attachment() ) {
$output .= twentyfourteen_continue_reading_link();
}
return $output;
}
add_filter( 'get_the_excerpt', 'twentyfourteen_custom_excerpt_more' );
/**
* Count the number of footer sidebars to enable dynamic classes for the footer
*
*/
function twentyfourteen_footer_sidebar_class() {
$count = 0;
if ( is_active_sidebar( 'sidebar-3' ) )
$count++;
if ( is_active_sidebar( 'sidebar-4' ) )
$count++;
if ( is_active_sidebar( 'sidebar-5' ) )
$count++;
if ( is_active_sidebar( 'sidebar-6' ) )
$count++;
if ( is_active_sidebar( 'sidebar-7' ) )
$count++;
$class = '';
switch ( $count ) {
case '1':
$class = 'one';
break;
case '2':
$class = 'two';
break;
case '3':
$class = 'three';
break;
case '4':
$class = 'four';
break;
case '5':
$class = 'five';
break;
}
if ( $class )
echo 'class="clearfix ' . $class . '"';
}
/**
* Gets recent formatted posts that are not featured in FC plugin.
*
*/
function twentyfourteen_get_recent( $post_format ) {
$args = array(
'order' => 'DESC',
'ignore_sticky_posts' => 1,
'posts_per_page' => 2,
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'terms' => array( $post_format ),
'field' => 'slug',
'operator' => 'IN',
),
),
'no_found_rows' => true,
);
$featured_posts = twentyfourteen_get_featured_posts();
if ( is_array( $featured_posts ) && ! empty( $featured_posts ) )
$args['post__not_in'] = wp_list_pluck( $featured_posts, 'ID' );
return new WP_Query( $args );
}
/**
* Filter the home page posts, and remove formatted posts visible in the sidebar from it
*
*/
function twentyfourteen_pre_get_posts( $query ) {
// Bail if not home, not a query, not main query.
if ( ! $query->is_main_query() || is_admin() )
return;
// Only on the home page
if ( $query->is_home() ) {
$exclude_ids = array();
$videos = twentyfourteen_get_recent( 'post-format-video' );
$images = twentyfourteen_get_recent( 'post-format-image' );
$galleries = twentyfourteen_get_recent( 'post-format-gallery' );
$asides = twentyfourteen_get_recent( 'post-format-aside' );
$links = twentyfourteen_get_recent( 'post-format-link' );
$quotes = twentyfourteen_get_recent( 'post-format-quote' );
foreach ( $videos->posts as $post )
$exclude_ids[] = $post->ID;
foreach ( $images->posts as $post )
$exclude_ids[] = $post->ID;
foreach ( $galleries->posts as $post )
$exclude_ids[] = $post->ID;
foreach ( $asides->posts as $post )
$exclude_ids[] = $post->ID;
foreach ( $links->posts as $post )
$exclude_ids[] = $post->ID;
foreach ( $quotes->posts as $post )
$exclude_ids[] = $post->ID;
$query->set( 'post__not_in', $exclude_ids );
}
}
add_action( 'pre_get_posts', 'twentyfourteen_pre_get_posts' );
/**
* Adds custom classes to the array of body classes.
*
*/
function twentyfourteen_body_classes( $classes ) {
// Adds a class of group-blog to blogs with more than 1 published author
if ( is_multi_author() ) {
$classes[] = 'group-blog';
}
if ( is_archive() || is_search() || is_home() ) {
$classes[] = 'list-view';
}
return $classes;
}
add_filter( 'body_class', 'twentyfourteen_body_classes' );
/**
* Filters wp_title to print a neat <title> tag based on what is being viewed.
*
*/
function twentyfourteen_wp_title( $title, $sep ) {
global $page, $paged;
if ( is_feed() )
return $title;
// Add the blog name
$title .= get_bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
$title .= " $sep $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
$title .= " $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
return $title;
}
add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );

View File

@ -0,0 +1,197 @@
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<script>
/**
* Replaces class "no-js" with "js" in the <html>-tag when JavaScript is being used.
* Allows easy styling for browsers [not] supporting/running JavaScript.
*/
document.documentElement.className = document.documentElement.className.replace(/(\s|^)no-js(\s|$)/, '$1js$2');
</script>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
$email_link = get_theme_mod( 'email_link' );
$twitter_link = get_theme_mod( 'twitter_link' );
$facebook_link = get_theme_mod( 'facebook_link' );
$pinterest_link = get_theme_mod( 'pinterest_link' );
$google_plus_link = get_theme_mod( 'google_plus_link' );
$linkedin_link = get_theme_mod( 'linkedin_link' );
$flickr_link = get_theme_mod( 'flickr_link' );
$github_link = get_theme_mod( 'github_link' );
$dribbble_link = get_theme_mod( 'dribbble_link' );
$vimeo_link = get_theme_mod( 'vimeo_link' );
$youtube_link = get_theme_mod( 'youtube_link' );
$social_links = ( '' != $email_link
|| '' != $twitter_link
|| '' != $facebook_link
|| '' != $pinterest_link
|| '' != $google_plus_link
|| '' != $linkedin_link
|| '' != $flickr_link
|| '' != $github_link
|| '' != $dribbble_link
|| '' != $vimeo_link
|| '' != $youtube_link
) ? true : false;
?>
<div id="page" class="hfeed site">
<?php do_action( 'before' ); ?>
<?php $header_image = get_header_image();
if ( ! empty( $header_image ) ) { ?>
<div id="site-header">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
</a>
</div>
<?php } ?>
<header id="masthead" class="site-header clearfix" role="banner">
<div class="header-main clearfix">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<div class="header-extra">
<?php if ( $social_links ) : ?>
<div class="social-links-toggle">
<span class="genericon"><?php _e( 'Connect', 'twentyfourteen' ); ?></span>
</div>
<?php endif; ?>
<div class="search-toggle">
<span class="genericon"><?php _e( 'Search', 'twentyfourteen' ); ?></span>
</div>
</div>
<nav role="navigation" class="site-navigation primary-navigation">
<h1 class="assistive-text"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1>
<div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyfourteen' ); ?>"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>
</div>
<div id="mobile-navigations" class="hide"></div>
<?php if ( $social_links ) : ?>
<div class="social-links-wrapper hide">
<ul class="social-links clearfix">
<?php if ( is_email( $email_link ) ) : ?>
<li class="email-link">
<a href="mailto:<?php echo antispambot( sanitize_email( $email_link ) ); ?>" class="genericon" title="<?php esc_attr_e( 'Email', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Email', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $twitter_link ) : ?>
<li class="twitter-link">
<a href="<?php echo esc_url( $twitter_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Twitter', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Twitter', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $facebook_link ) : ?>
<li class="facebook-link">
<a href="<?php echo esc_url( $facebook_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Facebook', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Facebook', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $pinterest_link ) : ?>
<li class="pinterest-link">
<a href="<?php echo esc_url( $pinterest_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Pinterest', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Pinterest', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $google_plus_link ) : ?>
<li class="google-link">
<a href="<?php echo esc_url( $google_plus_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Google Plus', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Google Plus', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $linkedin_link ) : ?>
<li class="linkedin-link">
<a href="<?php echo esc_url( $linkedin_link ); ?>" class="genericon" title="<?php esc_attr_e( 'LinkedIn', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'LinkedIn', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $flickr_link ) : ?>
<li class="flickr-link">
<a href="<?php echo esc_url( $flickr_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Flickr', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Flickr', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $github_link ) : ?>
<li class="github-link">
<a href="<?php echo esc_url( $github_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Github', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Github', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $dribbble_link ) : ?>
<li class="dribbble-link">
<a href="<?php echo esc_url( $dribbble_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Dribbble', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Dribbble', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $vimeo_link ) : ?>
<li class="vimeo-link">
<a href="<?php echo esc_url( $vimeo_link ); ?>" class="genericon" title="<?php esc_attr_e( 'Vimeo', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'Vimeo', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( '' != $youtube_link ) : ?>
<li class="youtube-link">
<a href="<?php echo esc_url( $youtube_link ); ?>" class="genericon" title="<?php esc_attr_e( 'YouTube', 'twentyfourteen' ); ?>" target="_blank">
<?php _e( 'YouTube', 'twentyfourteen' ); ?>
</a>
</li>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>
<div class="search-box-wrapper hide">
<div class="search-box clearfix">
<?php get_search_form(); ?>
</div>
</div>
</header><!-- #masthead .site-header -->
<div id="main" class="site-main clearfix">

View File

@ -0,0 +1,120 @@
<?php
/**
* The template for displaying image attachments.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header();
?>
<div id="primary" class="content-area image-attachment">
<div id="content" class="site-content full-width" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-meta">
<?php $metadata = wp_get_attachment_metadata(); ?>
<span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span>
<span class="full-size-link"><a href="<?php echo wp_get_attachment_url(); ?>" title="Link to full-size image"><?php echo $metadata['width']; ?> &times; <?php echo $metadata['height']; ?></a></span>
<span class="parent-post-link"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="Return to <?php echo esc_attr( get_the_title( $post->post_parent ) ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span>
<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<div class="entry-attachment">
<div class="attachment">
<?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,
* 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'
) ) );
foreach ( $attachments as $k => $attachment ) {
if ( $attachment->ID == $post->ID )
break;
}
$k++;
// If there is more than 1 attachment in a gallery
if ( count( $attachments ) > 1 ) {
if ( isset( $attachments[ $k ] ) )
// get the URL of the next image attachment
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
else
// or get the URL of the first image attachment
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
} else {
// or, if there's only 1 image, get the URL of the image
$next_attachment_url = wp_get_attachment_url();
}
?>
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
$attachment_size = apply_filters( 'twentyfourteen_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
?></a>
</div><!-- .attachment -->
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
<div class="entry-caption">
<?php the_excerpt(); ?>
</div><!-- .entry-caption -->
<?php endif; ?>
</div><!-- .entry-attachment -->
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() ); ?>
<?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() ); ?>
<?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyfourteen' ); ?>
<?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
<?php _e( 'Both comments and trackbacks are currently closed.', 'twentyfourteen' ); ?>
<?php endif; ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
<nav id="image-navigation" class="site-navigation">
<?php previous_image_link( false, __( '<div class="previous-image">Previous Image</div>', 'twentyfourteen' ) ); ?>
<?php next_image_link( false, __( '<div class="next-image">Next Image</div>', 'twentyfourteen' ) ); ?>
</nav><!-- #image-navigation -->
<?php comments_template(); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area .image-attachment -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,171 @@
<?php
/**
* @package WordPress
* @subpackage Twenty_Fourteen
*/
/**
* Setup the WordPress core custom header feature.
*
* Use add_theme_support to register support for WordPress 3.4+
* as well as provide backward compatibility for previous versions.
* Use feature detection of wp_get_theme() which was introduced
* in WordPress 3.4.
*
* @todo Rework this function to remove WordPress 3.4 support when WordPress 3.6 is released.
*
* @uses twentyfourteen_header_style()
* @uses twentyfourteen_admin_header_style()
* @uses twentyfourteen_admin_header_image()
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
function twentyfourteen_custom_header_setup() {
$args = array(
'default-image' => '',
'default-text-color' => 'fff',
'width' => 1260,
'height' => 240,
'flex-height' => true,
'wp-head-callback' => 'twentyfourteen_header_style',
'admin-head-callback' => 'twentyfourteen_admin_header_style',
'admin-preview-callback' => 'twentyfourteen_admin_header_image',
);
$args = apply_filters( 'twentyfourteen_custom_header_args', $args );
if ( function_exists( 'wp_get_theme' ) ) {
add_theme_support( 'custom-header', $args );
} else {
// Compat: Versions of WordPress prior to 3.4.
define( 'HEADER_TEXTCOLOR', $args['default-text-color'] );
define( 'HEADER_IMAGE', $args['default-image'] );
define( 'HEADER_IMAGE_WIDTH', $args['width'] );
define( 'HEADER_IMAGE_HEIGHT', $args['height'] );
add_custom_image_header( $args['wp-head-callback'], $args['admin-head-callback'], $args['admin-preview-callback'] );
}
}
add_action( 'after_setup_theme', 'twentyfourteen_custom_header_setup' );
/**
* Shiv for get_custom_header().
*
* get_custom_header() was introduced to WordPress
* in version 3.4. To provide backward compatibility
* with previous versions, we will define our own version
* of this function.
*
* @todo Remove this function when WordPress 3.6 is released.
* @return stdClass All properties represent attributes of the curent header image.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
if ( ! function_exists( 'get_custom_header' ) ) {
function get_custom_header() {
return (object) array(
'url' => get_header_image(),
'thumbnail_url' => get_header_image(),
'width' => HEADER_IMAGE_WIDTH,
'height' => HEADER_IMAGE_HEIGHT,
);
}
}
if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see twentyfourteen_custom_header_setup().
*
*/
function twentyfourteen_header_style() {
// If no custom options for text are set, let's bail
// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value
if ( HEADER_TEXTCOLOR == get_header_textcolor() )
return;
// If we get this far, we have custom styles. Let's do this.
?>
<style type="text/css">
<?php
// Has the text been hidden?
if ( 'blank' == get_header_textcolor() ) :
?>
.site-title {
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
<?php
// If the user has set a custom color for the text use that
else :
?>
.site-title a {
color: #<?php echo get_header_textcolor(); ?> !important;
}
<?php endif; ?>
</style>
<?php
}
endif; // twentyfourteen_header_style
if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
/**
* Styles the header image displayed on the Appearance > Header admin panel.
*
* @see twentyfourteen_custom_header_setup().
*
*/
function twentyfourteen_admin_header_style() {
?>
<style type="text/css">
.appearance_page_custom-header #headimg {
background-color: #000;
border: none;
max-width: 1230px;
min-height: 48px;
}
#headimg h1 {
font-family: lato, sans-serif;
font-size: 18px;
line-height: 1.3333333333;
margin: 12px 0 12px 27px;
}
#headimg h1 a {
color: #fff;
text-decoration: none;
}
#headimg img {
vertical-align: middle;
}
</style>
<?php
}
endif; // twentyfourteen_admin_header_style
if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
/**
* Custom header image markup displayed on the Appearance > Header admin panel.
*
* @see twentyfourteen_custom_header_setup().
*
*/
function twentyfourteen_admin_header_image() { ?>
<div id="headimg">
<?php
if ( 'blank' == get_header_textcolor() || '' == get_header_textcolor() )
$style = ' style="display:none;"';
else
$style = ' style="color:#' . get_header_textcolor() . ';"';
?>
<?php $header_image = get_header_image();
if ( ! empty( $header_image ) ) : ?>
<img src="<?php echo esc_url( $header_image ); ?>" alt="" />
<?php endif; ?>
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
</div>
<?php }
endif; // twentyfourteen_admin_header_image

View File

@ -0,0 +1,187 @@
<?php
/**
* Twenty Fourteen Theme Customizer
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*
*/
function twentyfourteen_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->add_section( 'twentyfourteen_theme_options', array(
'title' => __( 'Theme Options', 'twentyfourteen' ),
'priority' => 35,
) );
$wp_customize->add_setting( 'email_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'email_link', array(
'label' => __( 'Email Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'email_link',
'type' => 'text',
'priority' => 1,
) );
$wp_customize->add_setting( 'twitter_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'twitter_link', array(
'label' => __( 'Twitter Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'twitter_link',
'type' => 'text',
'priority' => 2,
) );
$wp_customize->add_setting( 'facebook_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'facebook_link', array(
'label' => __( 'Facebook Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'facebook_link',
'type' => 'text',
'priority' => 3,
) );
$wp_customize->add_setting( 'pinterest_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'pinterest_link', array(
'label' => __( 'Pinterest Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'pinterest_link',
'type' => 'text',
'priority' => 4,
) );
$wp_customize->add_setting( 'google_plus_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'google_plus_link', array(
'label' => __( 'Google+ Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'google_plus_link',
'type' => 'text',
'priority' => 5,
) );
$wp_customize->add_setting( 'linkedin_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'linkedin_link', array(
'label' => __( 'LinkedIn Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'linkedin_link',
'type' => 'text',
'priority' => 6,
) );
$wp_customize->add_setting( 'flickr_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'flickr_link', array(
'label' => __( 'Flickr Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'flickr_link',
'type' => 'text',
'priority' => 7,
) );
$wp_customize->add_setting( 'github_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'github_link', array(
'label' => __( 'Github Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'github_link',
'type' => 'text',
'priority' => 8,
) );
$wp_customize->add_setting( 'dribbble_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'dribbble_link', array(
'label' => __( 'Dribbble Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'dribbble_link',
'type' => 'text',
'priority' => 9,
) );
$wp_customize->add_setting( 'vimeo_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'vimeo_link', array(
'label' => __( 'Vimeo Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'vimeo_link',
'type' => 'text',
'priority' => 10,
) );
$wp_customize->add_setting( 'youtube_link', array(
'default' => '',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'youtube_link', array(
'label' => __( 'YouTube Link', 'twentyfourteen' ),
'section' => 'twentyfourteen_theme_options',
'settings' => 'youtube_link',
'type' => 'text',
'priority' => 11,
) );
}
add_action( 'customize_register', 'twentyfourteen_customize_register' );
/**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*
*/
function twentyfourteen_customize_preview_js() {
wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20120827', true );
}
add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );

View File

@ -0,0 +1,208 @@
<?php
/**
* Custom template tags for this theme.
*
* Eventually, some of the functionality here could be replaced by core features
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
if ( ! function_exists( 'twentyfourteen_content_nav' ) ) :
/**
* Display navigation to next/previous pages when applicable
*
*/
function twentyfourteen_content_nav( $nav_id ) {
global $wp_query, $post;
// Don't print empty markup on single pages if there's nowhere to navigate.
if ( is_single() ) {
$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );
$next = get_adjacent_post( false, '', false );
if ( ! $next && ! $previous )
return;
}
// Don't print empty markup in archives if there's only one page.
if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) )
return;
$nav_class = 'site-navigation paging-navigation';
if ( is_single() )
$nav_class = 'site-navigation post-navigation';
?>
<nav role="navigation" id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>">
<h1 class="assistive-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
<?php if ( is_single() ) : // navigation links for single posts ?>
<?php previous_post_link( '%link', __( '<div class="nav-previous"><span class="meta-nav">Previous Post</span>%title</div>', 'twentyfourteen' ) ); ?>
<?php next_post_link( '%link', __( '<div class="nav-next"><span class="meta-nav">Next Post</span>%title</div>', 'twentyfourteen' ) ); ?>
<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
<div class="pagination loop-pagination">
<?php
/* Get the current page. */
$current = ( get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1 );
/* Get the max number of pages. */
$max_num_pages = intval( $wp_query->max_num_pages );
/* Set up arguments for the paginate_links() function. */
$args = array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'total' => $max_num_pages,
'current' => $current,
'prev_text' => __( '&larr; Previous', 'twentyfourteen' ),
'next_text' => __( 'Next &rarr;', 'twentyfourteen' ),
'mid_size' => 1
);
echo paginate_links( $args )
?>
</div>
<?php endif; ?>
</nav><!-- #<?php echo $nav_id; ?> -->
<?php
}
endif; // twentyfourteen_content_nav
if ( ! function_exists( 'twentyfourteen_comment' ) ) :
/**
* Template for comments and pingbacks.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
*/
function twentyfourteen_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
?>
<li class="post pingback">
<p><?php _e( 'Pingback:', 'twentyfourteen' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyfourteen' ), ' ' ); ?></p>
<?php
break;
default :
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<article id="comment-<?php comment_ID(); ?>" class="comment">
<footer>
<div class="comment-author vcard">
<span class="comment-author-avatar"><?php echo get_avatar( $comment, 32 ); ?></span>
<?php printf( __( '%s', 'twentyfourteen' ), sprintf( '<cite class="fn">%s</cite> says:', get_comment_author_link() ) ); ?>
</div><!-- .comment-author .vcard -->
</footer>
<div class="comment-content">
<?php comment_text(); ?>
<?php if ( $comment->comment_approved == '0' ) : ?>
<p><em><?php _e( 'Your comment is awaiting moderation.', 'twentyfourteen' ); ?></em></p>
<?php endif; ?>
</div>
<div class="comment-meta commentmetadata">
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>">
<?php
/* translators: 1: date, 2: time */
printf( __( '%1$s at %2$s', 'twentyfourteen' ), get_comment_date(), get_comment_time() ); ?>
</time></a>
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
<?php edit_comment_link( __( 'Edit', 'twentyfourteen' ), ' ' );
?>
</div><!-- .comment-meta .commentmetadata -->
</article><!-- #comment-## -->
<?php
break;
endswitch;
}
endif; // ends check for twentyfourteen_comment()
if ( ! function_exists( 'twentyfourteen_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*
*/
function twentyfourteen_posted_on() {
if ( is_sticky() && is_home() && ! is_paged() )
echo '<span class="featured-post">' . __( 'Sticky', 'twentyfourteen' ) . '</span>';
printf( __( '<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyfourteen' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'twentyfourteen' ), get_the_author() ) ),
get_the_author()
);
}
endif;
/**
* Returns true if a blog has more than 1 category
*
*/
function twentyfourteen_categorized_blog() {
if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {
// Create an array of all the categories that are attached to posts
$all_the_cool_cats = get_categories( array(
'hide_empty' => 1,
) );
// Count the number of categories that are attached to the posts
$all_the_cool_cats = count( $all_the_cool_cats );
set_transient( 'all_the_cool_cats', $all_the_cool_cats );
}
if ( '1' != $all_the_cool_cats ) {
// This blog has more than 1 category so twentyfourteen_categorized_blog should return true
return true;
} else {
// This blog has only 1 category so twentyfourteen_categorized_blog should return false
return false;
}
}
/**
* Flush out the transients used in twentyfourteen_categorized_blog
*
*/
function twentyfourteen_category_transient_flusher() {
// Like, beat it. Dig?
delete_transient( 'all_the_cool_cats' );
}
add_action( 'edit_category', 'twentyfourteen_category_transient_flusher' );
add_action( 'save_post', 'twentyfourteen_category_transient_flusher' );
/**
* Include the Post-Format-specific template for the content.
* This is called in index.php and single.php
*/
function twentyfourteen_get_template_part() {
$format = get_post_format();
switch( $format ) {
case 'aside':
case 'quote':
case 'link':
case 'video':
case 'image':
get_template_part( 'content', 'post-format' );
break;
default:
get_template_part( 'content', get_post_format() );
break;
}
}

View File

@ -0,0 +1,84 @@
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header(); ?>
<?php if ( is_front_page() ) : ?>
<div class="front-page-content-wrapper">
<div class="front-page-content-main">
<?php if ( twentyfourteen_has_featured_posts() ) : ?>
<?php get_template_part( 'featured-content' ); ?>
<?php endif; ?>
<div class="front-page-content-area clearfix">
<div id="primary" class="content-area no-sidebar">
<div id="content" class="site-content" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
twentyfourteen_get_template_part();
endwhile;
twentyfourteen_content_nav( 'nav-below' );
else :
get_template_part( 'no-results', 'index' );
endif;
?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_template_part( 'recent-formatted-posts' ); ?>
</div><!-- .front-page-content-area -->
</div><!-- .front-page-content-main -->
</div><!-- .front-page-content-wrapper -->
<?php get_sidebar(); ?>
<?php else : ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php twentyfourteen_get_template_part(); ?>
<?php endwhile; ?>
<?php twentyfourteen_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'index' ); ?>
<?php endif; ?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_sidebar( 'content' ); ?>
<?php get_sidebar(); ?>
<?php endif; // is_front_page() check ?>
<?php get_footer(); ?>

View File

@ -0,0 +1,19 @@
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-title a' ).text( to );
} );
} );
wp.customize( 'blogdescription', function( value ) {
value.bind( function( to ) {
$( '.site-description' ).text( to );
} );
} );
} )( jQuery );

View File

@ -0,0 +1,7 @@
/*! HTML5 Shiv v3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
/* Source: https://github.com/aFarkas/html5shiv */
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");
var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,
b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);

View File

@ -0,0 +1,14 @@
jQuery( document ).ready( function( $ ) {
$( document ).keydown( function( e ) {
var url = false;
if ( e.which == 37 ) { // Left arrow key code
url = $( '.previous-image a' ).attr( 'href' );
}
else if ( e.which == 39 ) { // Right arrow key code
url = $( '.entry-attachment a' ).attr( 'href' );
}
if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) {
window.location = url;
}
} );
} );

View File

@ -0,0 +1,128 @@
( function( $ ) {
$( document ).ready( function() {
var $primaryNaviClone,
$secondaryNaviClone,
$masthead = $( 'header#masthead' ),
$secondaryTop = $( 'div#secondary-top' ),
$mobileNavigations = $( 'div#mobile-navigations'),
$socialLinksWrapper = $( 'div.social-links-wrapper' ),
$searchBoxWrapper = $( 'div.search-box-wrapper' ),
$searchToggle = $( 'div.search-toggle' ),
$socialLinksToggle = $( 'div.social-links-toggle' ),
timeout = false;
// Toggle function.
function menuToggle() {
$( 'span#nav-toggle' ).toggleClass( 'active' );
$masthead.find( 'div#mobile-navigations' ).toggleClass( 'hide' );
}
// Click event for toggle the social links
$socialLinksToggle.click( function() {
$( this ).toggleClass( 'active' );
$socialLinksWrapper.toggleClass( 'hide' );
// if .search-box-wrapper is visible hide it
if ( ! $searchBoxWrapper.hasClass( 'hide' ) ) {
$searchBoxWrapper.addClass( 'hide' );
}
if ( $searchToggle.hasClass( 'active' ) ) {
$searchToggle.removeClass( 'active' );
}
} );
// Click event for toggle the search
$searchToggle.click( function() {
$( this ).toggleClass( 'active' );
$searchBoxWrapper.toggleClass( 'hide' );
// if .social-links-wrapper is visible hide it
if ( ! $socialLinksWrapper.hasClass( 'hide' ) ) {
$socialLinksWrapper.addClass( 'hide' );
}
if ( $socialLinksToggle.hasClass( 'active' ) ) {
$socialLinksToggle.removeClass( 'active' );
}
} );
// DOM manupilations for mobile header
function mobileHeader() {
// Check if the toggler exists. If not add it.
if ( ! $( 'span#nav-toggle' ).length )
$( '<span id="nav-toggle" class="genericon" />' ).appendTo( $masthead );
// Clone and detach the primary navigation for use later
$primaryNaviClone = $masthead.find( 'nav.primary-navigation' ).detach();
// Clone and detach the secondary navigation for use later
$secondaryNaviClone = $secondaryTop.find( 'nav.secondary-navigation' ).detach();
// Prepend the primary navigation clone to #mobile-navigations and remove the class and add an id
$primaryNaviClone.prependTo( $mobileNavigations ).removeClass( 'primary-navigation' ).addClass( 'mobile-navigation' ).attr( 'id', 'primary-mobile-navigation' );
// Append the secondary navigation clone to #mobile-navigations and remove the class and add an id
$secondaryNaviClone.appendTo( $mobileNavigations ).removeClass( 'secondary-navigation' ).addClass( 'mobile-navigation' ).attr( 'id', 'secondary-mobile-navigation' );
// Remove the click event first and bind it after to make sure it's invoked once.
$( 'span#nav-toggle' ).off( 'click', menuToggle ).click( menuToggle );
};
// DOM manupilations for desktop header
function normalHeader() {
// Check if the toggler exists. If it does remove it.
if ( $( 'span#nav-toggle').length )
$( 'span#nav-toggle' ).remove();
// Clone and detach the primary mobile navigation for use later
$primaryNaviClone = $mobileNavigations.find( '#primary-mobile-navigation' ).detach();
// Clone and detach the secondary mobile navigation for use later
$secondaryNaviClone = $mobileNavigations.find( '#secondary-mobile-navigation' ).detach();
// Append the secondary navigation clone to #mobile-navigations and remove the class and add an id
$primaryNaviClone.appendTo( '.header-main' ).removeClass( 'mobile-navigation' ).removeAttr( 'id' ).addClass( 'primary-navigation' );
// Append the secondary navigation clone to #mobile-navigations and remove the class and add an id
$secondaryNaviClone.appendTo( $secondaryTop ).removeClass( 'mobile-navigation' ).removeAttr( 'id' ).addClass( 'secondary-navigation' );
};
// Check viewport width when user resizes the browser window.
$( window ).resize( function() {
if ( false !== timeout )
clearTimeout( timeout );
timeout = setTimeout( function() {
if ( $( window ).width() < 770 ) {
mobileHeader();
} else {
normalHeader();
}
}, 100 );
} ).resize();
// Sticky header.
var $mastheadOffset = -1,
$toolbarOffset = $( 'body' ).is( '.admin-bar' ) ? 32 : 0,
$maindiv = $( 'div#main' );
$( window ).on( 'scroll', false, function() {
if ( $mastheadOffset < 0 )
$mastheadOffset = $masthead.offset().top - $toolbarOffset;
if ( ( window.scrollY >= $mastheadOffset ) && ( $( window ).width() > 769 ) ) {
$masthead.addClass( 'masthead-fixed' );
$maindiv.css( {
marginTop: $masthead.height()
} );
} else {
$masthead.removeClass( 'masthead-fixed' );
$maindiv.css( {
marginTop: 0
} );
}
} );
} );
} )( jQuery );

View File

@ -0,0 +1,539 @@
# Copyright (C) 2013 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Fourteen 0.1\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyfourteen\n"
"POT-Creation-Date: 2013-07-28 22:14:19+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: 404.php:16
msgid "Oops! That page can&rsquo;t be found."
msgstr ""
#: 404.php:20
msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?"
msgstr ""
#: archive.php:22
msgid "Category Archives: %s"
msgstr ""
#: archive.php:25
msgid "Tag Archives: %s"
msgstr ""
#: archive.php:32
msgid "Author Archives: %s"
msgstr ""
#: archive.php:40
msgid "Daily Archives: %s"
msgstr ""
#: archive.php:43
msgid "Monthly Archives: %s"
msgstr ""
#: archive.php:46
msgid "Yearly Archives: %s"
msgstr ""
#: archive.php:49 sidebar.php:36
msgid "Archives"
msgstr ""
#: comments.php:32
msgid "One thought on &ldquo;%2$s&rdquo;"
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
msgstr[0] ""
msgstr[1] ""
#: comments.php:39 comments.php:59
msgid "Comment navigation"
msgstr ""
#: comments.php:40 comments.php:60
msgid "&larr; Older Comments"
msgstr ""
#: comments.php:41 comments.php:61
msgid "Newer Comments &rarr;"
msgstr ""
#: comments.php:71
msgid "Comments are closed."
msgstr ""
#: content-featured-post.php:9 content-post-format.php:15
#: content-recent-formatted-post.php:29 content-recent-formatted-post.php:45
#: content.php:10
msgid "Permalink to %s"
msgstr ""
#. translators: used between list items, there is a space after the comma
#: content-featured-post.php:29 content-post-format.php:25
#: content-single.php:25 content.php:20
msgid ", "
msgstr ""
#: content-page.php:19 content-post-format.php:60 content-single.php:59
#: content.php:59 image.php:85
msgid "Pages:"
msgstr ""
#: content-page.php:25 content-post-format.php:52 content-single.php:51
#: content.php:46 image.php:29 inc/template-tags.php:90
#: inc/template-tags.php:118
msgid "Edit"
msgstr ""
#: content-post-format.php:40 content-single.php:41 content.php:33
msgid "All %s posts"
msgstr ""
#: content-post-format.php:49 content-recent-formatted-post.php:50
#: content-single.php:48 content.php:43
msgid "Leave a comment"
msgstr ""
#: content-post-format.php:49 content-recent-formatted-post.php:50
#: content-single.php:48 content.php:43
msgid "1 Comment"
msgstr ""
#: content-post-format.php:49 content-recent-formatted-post.php:50
#: content-single.php:48 content.php:43
msgid "% Comments"
msgstr ""
#: content-post-format.php:57 content-recent-formatted-post.php:36
#: content.php:56
msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: content-recent-formatted-post.php:28
msgid "This gallery contains <a %1$s>%2$s photo</a>."
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
msgstr[0] ""
msgstr[1] ""
#: footer.php:19
msgid "http://wordpress.org/"
msgstr ""
#: footer.php:19
msgid "Semantic Personal Publishing Platform"
msgstr ""
#: footer.php:19
msgid "Proudly powered by %s"
msgstr ""
#: functions.php:72
msgid "Top primary menu"
msgstr ""
#: functions.php:73
msgid "Secondary menu in left sidebar"
msgstr ""
#: functions.php:133
msgid "Primary Sidebar"
msgstr ""
#: functions.php:135
msgid "Main sidebar that appears on the left."
msgstr ""
#: functions.php:142
msgid "Content Sidebar"
msgstr ""
#: functions.php:144
msgid "Additional sidebar that appears on the right, on single posts and pages."
msgstr ""
#: functions.php:151
msgid "Footer Widget Area One"
msgstr ""
#: functions.php:159
msgid "Footer Widget Area Two"
msgstr ""
#: functions.php:167
msgid "Footer Widget Area Three"
msgstr ""
#: functions.php:175
msgid "Footer Widget Area Four"
msgstr ""
#: functions.php:183
msgid "Footer Widget Area Five"
msgstr ""
#. translators: If there are characters in your language that are not supported
#. by Lato, translate this to 'off'. Do not translate into your own
#. language.
#: functions.php:200
msgctxt "Lato font: on or off"
msgid "on"
msgstr ""
#: functions.php:262
msgid "Read More <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: functions.php:442
msgid "Page %s"
msgstr ""
#: header.php:77
msgid "Connect"
msgstr ""
#: header.php:82 searchform.php:10 searchform.php:12
msgid "Search"
msgstr ""
#: header.php:87
msgid "Primary Menu"
msgstr ""
#: header.php:88
msgid "Skip to content"
msgstr ""
#: header.php:101 header.php:102
msgid "Email"
msgstr ""
#: header.php:109 header.php:110
msgid "Twitter"
msgstr ""
#: header.php:117 header.php:118
msgid "Facebook"
msgstr ""
#: header.php:125 header.php:126
msgid "Pinterest"
msgstr ""
#: header.php:133 header.php:134
msgid "Google Plus"
msgstr ""
#: header.php:141 header.php:142
msgid "LinkedIn"
msgstr ""
#: header.php:149 header.php:150
msgid "Flickr"
msgstr ""
#: header.php:157 header.php:158
msgid "Github"
msgstr ""
#: header.php:165 header.php:166
msgid "Dribbble"
msgstr ""
#: header.php:173 header.php:174
msgid "Vimeo"
msgstr ""
#: header.php:181 header.php:182
msgid "YouTube"
msgstr ""
#: image.php:95
msgid "<a class=\"comment-link\" href=\"#respond\" title=\"Post a comment\">Post a comment</a> or leave a trackback: <a class=\"trackback-link\" href=\"%s\" title=\"Trackback URL for your post\" rel=\"trackback\">Trackback URL</a>."
msgstr ""
#: image.php:97
msgid "Comments are closed, but you can leave a trackback: <a class=\"trackback-link\" href=\"%s\" title=\"Trackback URL for your post\" rel=\"trackback\">Trackback URL</a>."
msgstr ""
#: image.php:99
msgid "Trackbacks are closed, but you can <a class=\"comment-link\" href=\"#respond\" title=\"Post a comment\">post a comment</a>."
msgstr ""
#: image.php:101
msgid "Both comments and trackbacks are currently closed."
msgstr ""
#: image.php:107
msgid "<div class=\"previous-image\">Previous Image</div>"
msgstr ""
#: image.php:108
msgid "<div class=\"next-image\">Next Image</div>"
msgstr ""
#: inc/customizer.php:20
msgid "Theme Options"
msgstr ""
#: inc/customizer.php:31
msgid "Email Link"
msgstr ""
#: inc/customizer.php:45
msgid "Twitter Link"
msgstr ""
#: inc/customizer.php:59
msgid "Facebook Link"
msgstr ""
#: inc/customizer.php:73
msgid "Pinterest Link"
msgstr ""
#: inc/customizer.php:87
msgid "Google+ Link"
msgstr ""
#: inc/customizer.php:101
msgid "LinkedIn Link"
msgstr ""
#: inc/customizer.php:115
msgid "Flickr Link"
msgstr ""
#: inc/customizer.php:129
msgid "Github Link"
msgstr ""
#: inc/customizer.php:143
msgid "Dribbble Link"
msgstr ""
#: inc/customizer.php:157
msgid "Vimeo Link"
msgstr ""
#: inc/customizer.php:171
msgid "YouTube Link"
msgstr ""
#: inc/template-tags.php:38
msgid "Post navigation"
msgstr ""
#: inc/template-tags.php:42
msgid "<div class=\"nav-previous\"><span class=\"meta-nav\">Previous Post</span>%title</div>"
msgstr ""
#: inc/template-tags.php:43
msgid "<div class=\"nav-next\"><span class=\"meta-nav\">Next Post</span>%title</div>"
msgstr ""
#: inc/template-tags.php:61
msgid "&larr; Previous"
msgstr ""
#: inc/template-tags.php:62
msgid "Next &rarr;"
msgstr ""
#: inc/template-tags.php:90
msgid "Pingback:"
msgstr ""
#: inc/template-tags.php:100
msgid "%s"
msgstr ""
#: inc/template-tags.php:107
msgid "Your comment is awaiting moderation."
msgstr ""
#. translators: 1: date, 2: time
#: inc/template-tags.php:115
msgid "%1$s at %2$s"
msgstr ""
#: inc/template-tags.php:136
msgid "Sticky"
msgstr ""
#: inc/template-tags.php:138
msgid "<span class=\"entry-date\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span> <span class=\"byline\"><span class=\"author vcard\"><a class=\"url fn n\" href=\"%5$s\" title=\"%6$s\" rel=\"author\">%7$s</a></span></span>"
msgstr ""
#: inc/template-tags.php:144
msgid "View all posts by %s"
msgstr ""
#: no-results.php:14
msgid "Nothing Found"
msgstr ""
#: no-results.php:20
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr ""
#: no-results.php:24
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
msgstr ""
#: no-results.php:29
msgid "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help."
msgstr ""
#: recent-formatted-posts.php:19
msgid "All Video Posts"
msgstr ""
#: recent-formatted-posts.php:19
msgid "Videos"
msgstr ""
#: recent-formatted-posts.php:26
msgid "More Videos"
msgstr ""
#: recent-formatted-posts.php:26
msgid "More Videos <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: recent-formatted-posts.php:36
msgid "All Image Posts"
msgstr ""
#: recent-formatted-posts.php:36
msgid "Images"
msgstr ""
#: recent-formatted-posts.php:43
msgid "More images"
msgstr ""
#: recent-formatted-posts.php:43
msgid "More images <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: recent-formatted-posts.php:53
msgid "All Gallery Posts"
msgstr ""
#: recent-formatted-posts.php:53
msgid "Galleries"
msgstr ""
#: recent-formatted-posts.php:60
msgid "More Galleries"
msgstr ""
#: recent-formatted-posts.php:60
msgid "More galleries <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: recent-formatted-posts.php:70
msgid "All Aside Posts"
msgstr ""
#: recent-formatted-posts.php:70
msgid "Asides"
msgstr ""
#: recent-formatted-posts.php:77
msgid "More Asides"
msgstr ""
#: recent-formatted-posts.php:77
msgid "More asides <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: recent-formatted-posts.php:87
msgid "All Link Posts"
msgstr ""
#: recent-formatted-posts.php:87
msgid "Links"
msgstr ""
#: recent-formatted-posts.php:94
msgid "More Links"
msgstr ""
#: recent-formatted-posts.php:94
msgid "More links <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: recent-formatted-posts.php:104
msgid "All Quote Posts"
msgstr ""
#: recent-formatted-posts.php:104
msgid "Quotes"
msgstr ""
#: recent-formatted-posts.php:111
msgid "More Quotes"
msgstr ""
#: recent-formatted-posts.php:111
msgid "More quotes <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: search.php:17
msgid "Search Results for: %s"
msgstr ""
#: searchform.php:11
msgid "Search &hellip;"
msgstr ""
#: sidebar-content.php:18
msgid "Blogroll"
msgstr ""
#: sidebar-content.php:25
msgid "Meta"
msgstr ""
#: sidebar.php:29
msgid "Categories"
msgstr ""
#. Theme Name of the plugin/theme
msgid "Twenty Fourteen"
msgstr ""
#. Theme URI of the plugin/theme
msgid "http://wordpress.org/themes/"
msgstr ""
#. Description of the plugin/theme
msgid "The default theme for 2014 is a magazine theme with a sleek, modern, and beautifully crafted responsive design. As a magazine theme it highlights featured content prominently on the home page."
msgstr ""
#. Author of the plugin/theme
msgid "the WordPress team"
msgstr ""
#. Author URI of the plugin/theme
msgid "http://wordpress.org/"
msgstr ""
#. Tags of the plugin/theme
msgid "black, green, white, light, dark, two-columns, three-columns, fixed-width, responsive-width, custom-background, custom-header, custom-menu, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready"
msgstr ""
#. Template Name of the plugin/theme
msgid "Full Width Page"
msgstr ""

View File

@ -0,0 +1,34 @@
<?php
/**
* The template part for displaying a message that posts cannot be found.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- .entry-content -->
</article><!-- #post-0 .post .no-results .not-found -->

View File

@ -0,0 +1,76 @@
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header(); ?>
<?php if ( is_front_page() ) : ?>
<div class="front-page-content-wrapper">
<div class="front-page-content-main">
<?php if ( twentyfourteen_has_featured_posts() ) : ?>
<?php get_template_part( 'featured-content' ); ?>
<?php endif; ?>
<div class="front-page-content-area clearfix">
<div id="primary" class="content-area no-sidebar">
<div id="content" class="site-content" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'content', 'page' );
comments_template( '', true );
endwhile;
twentyfourteen_content_nav( 'nav-below' );
else :
get_template_part( 'no-results', 'index' );
endif;
?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_template_part( 'recent-formatted-posts' ); ?>
</div><!-- .front-page-content-area -->
</div><!-- .front-page-content-main -->
</div><!-- .front-page-content-wrapper -->
<?php get_sidebar(); ?>
<?php else : ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_sidebar( 'content' ); ?>
<?php get_sidebar(); ?>
<?php endif; // is_front_page() check ?>
<?php get_footer(); ?>

View File

@ -0,0 +1,120 @@
<?php
/**
* A template to display recent post formatted posts.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<div class="post-formatted-posts">
<?php
do_action( 'before_sidebar' );
do_action( 'twentyfourteen_formatted_posts_before' );
$recent_videos = twentyfourteen_get_recent( 'post-format-video' );
if ( $recent_videos->have_posts() ) :
?>
<section id="recent-videos" class="recent-videos">
<h1 class="format-title genericon">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>" title="<?php esc_attr_e( 'All Video Posts', 'twentyfourteen' ); ?>"><?php _e( 'Videos', 'twentyfourteen' ); ?></a>
</h1>
<?php
while ( $recent_videos->have_posts() ) : $recent_videos->the_post();
get_template_part( 'content', 'recent-formatted-post' );
endwhile;
?>
<a class="more-formatted-posts-link" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>" title="<?php esc_attr_e( 'More Videos', 'twentyfourteen' ); ?>"><?php _e( 'More Videos <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ); ?></a>
</section>
<?php endif; ?>
<?php
$recent_images = twentyfourteen_get_recent( 'post-format-image' );
if ( $recent_images->have_posts() ) :
?>
<section id="recent-images" class="recent-images">
<h1 class="format-title genericon">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>" title="<?php esc_attr_e( 'All Image Posts', 'twentyfourteen' ); ?>"><?php _e( 'Images', 'twentyfourteen' ); ?></a>
</h1>
<?php
while ( $recent_images->have_posts() ) : $recent_images->the_post();
get_template_part( 'content', 'recent-formatted-post' );
endwhile;
?>
<a class="more-formatted-posts-link" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>" title="<?php esc_attr_e( 'More images', 'twentyfourteen' ); ?>"><?php _e( 'More images <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ); ?></a>
</section>
<?php endif; ?>
<?php
$recent_galleries = twentyfourteen_get_recent( 'post-format-gallery' );
if ( $recent_galleries->have_posts() ) :
?>
<section id="recent-galleries" class="recent-galleries">
<h1 class="format-title genericon">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php esc_attr_e( 'All Gallery Posts', 'twentyfourteen' ); ?>"><?php _e( 'Galleries', 'twentyfourteen' ); ?></a>
</h1>
<?php
while ( $recent_galleries->have_posts() ) : $recent_galleries->the_post();
get_template_part( 'content', 'recent-formatted-post' );
endwhile;
?>
<a class="more-formatted-posts-link" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php esc_attr_e( 'More Galleries', 'twentyfourteen' ); ?>"><?php _e( 'More galleries <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ); ?></a>
</section>
<?php endif; ?>
<?php
$recent_asides = twentyfourteen_get_recent( 'post-format-aside' );
if ( $recent_asides->have_posts() ) :
?>
<section id="recent-asides" class="recent-asides">
<h1 class="format-title genericon">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>" title="<?php esc_attr_e( 'All Aside Posts', 'twentyfourteen' ); ?>"><?php _e( 'Asides', 'twentyfourteen' ); ?></a>
</h1>
<?php
while ( $recent_asides->have_posts() ) : $recent_asides->the_post();
get_template_part( 'content', 'recent-formatted-post' );
endwhile;
?>
<a class="more-formatted-posts-link" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>" title="<?php esc_attr_e( 'More Asides', 'twentyfourteen' ); ?>"><?php _e( 'More asides <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ); ?></a>
</section>
<?php endif; ?>
<?php
$recent_links = twentyfourteen_get_recent( 'post-format-link' );
if ( $recent_links->have_posts() ) :
?>
<section id="recent-links" class="recent-links">
<h1 class="format-title genericon">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>" title="<?php esc_attr_e( 'All Link Posts', 'twentyfourteen' ); ?>"><?php _e( 'Links', 'twentyfourteen' ); ?></a>
</h1>
<?php
while ( $recent_links->have_posts() ) : $recent_links->the_post();
get_template_part( 'content', 'recent-formatted-post' );
endwhile;
?>
<a class="more-formatted-posts-link" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>" title="<?php esc_attr_e( 'More Links', 'twentyfourteen' ); ?>"><?php _e( 'More links <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ); ?></a>
</section>
<?php endif; ?>
<?php
$recent_quotes = twentyfourteen_get_recent( 'post-format-quote' );
if ( $recent_quotes->have_posts() ) :
?>
<section id="recent-quotes" class="recent-quotes">
<h1 class="format-title genericon">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>" title="<?php esc_attr_e( 'All Quote Posts', 'twentyfourteen' ); ?>"><?php _e( 'Quotes', 'twentyfourteen' ); ?></a>
</h1>
<?php
while ( $recent_quotes->have_posts() ) : $recent_quotes->the_post();
get_template_part( 'content', 'recent-formatted-post' );
endwhile;
?>
<a class="more-formatted-posts-link" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>" title="<?php esc_attr_e( 'More Quotes', 'twentyfourteen' ); ?>"><?php _e( 'More quotes <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ); ?></a>
</section>
<?php endif; ?>
<?php
wp_reset_postdata();
do_action( 'twentyfourteen_formatted_posts_after' );
?>
</div>

View File

@ -0,0 +1,859 @@
/*
Theme Name: Twenty Fourteen
*/
body {
direction: rtl;
unicode-bidi: embed;
}
/* =Reset
----------------------------------------------- */
caption, th, td {
text-align: right;
}
/* =Global
----------------------------------------------- */
/* Text elements */
ul, ol {
margin: 0 22px 24px 0;
margin: 0 2.2rem 2.4rem 0;
}
ul ul, ol ol, ul ol, ol ul {
margin-right: 20px;
margin-right: 2.0rem;
margin-left: auto;
}
blockquote.pull.alignright {
margin: 7px 0 7px 24px;
margin: 0.7rem 0 0.7rem 2.4rem;
}
blockquote.pull.alignleft {
margin: 7px 24px 7px 0;
margin: 0.7rem 2.4rem 0.7rem 0;
}
/* Alignment */
.alignright {
float: right;
margin-left: 24px;
margin-left: 2.4rem;
margin-right: auto;
}
.alignleft {
float: left;
margin-right: 24px;
margin-right: 2.4rem;
margin-left: auto;
}
/* =Header
----------------------------------------------- */
.header-main {
margin-left: 48px;
margin-left: 4.8rem;
padding-right: 10px;
padding-right: 1.0rem;
padding-left: 0;
margin-right: auto;
}
.header-extra {
float: left;
}
.site-title {
float: right;
}
#nav-toggle {
left: 0;
right: auto;
}
.social-links-toggle,
.search-toggle {
float: right;
}
.social-links-toggle {
border-left: 1px solid rgba(255, 255, 255, 0.4);
border-right: none;
}
.social-links-toggle span:before,
.search-toggle span:before {
margin-right: -8px;
margin-right: -0.8rem;
right: 50%;
left: auto;
margin-left: auto;
}
.social-links li {
float: left;
margin: 8px 0 8px 10px;
margin: 0.8rem 0 0.8rem 1.0rem;
}
.search-box #searchform input[type="text"] {
float: left;
}
/* =Menu
----------------------------------------------- */
/* Primary Navigation */
.primary-navigation {
float: left;
margin: 0 -10px 0 10px;
margin: 0 -1.0rem 0 1.0rem;
}
.primary-navigation ul {
padding-right: 0;
padding-left: 0;
}
.primary-navigation ul ul {
float: right;
right: 0;
left: auto;
}
.primary-navigation ul ul ul {
right: 100%;
left: auto;
}
/* Secondary Navigation */
.secondary-navigation ul ul {
margin: 0 20px 0 0;
margin: 0 2.0rem 0 0;
}
/* Mobile Navigations */
.mobile-navigation ul ul li {
margin-right: 15px;
margin-right: 1.5rem;
margin-left: auto;
}
/* =Content
----------------------------------------------- */
.entry-content th,
.comment-content th {
border-left: 1px solid rgba(0, 0, 0, 0.1);
border-right: none;
}
.entry-content td,
.comment-content td {
border-left: 1px solid rgba(0, 0, 0, 0.1);
border-right: none;
}
.more-link .meta-nav,
.more-formatted-posts-link .meta-nav {
right: 0;
left: auto;
}
.more-link:hover .meta-nav,
.more-formatted-posts-link:hover .meta-nav {
right: 5px;
right: 0.5rem;
left: auto;
}
.page-links a,
.page-links > span {
margin-left: 1px;
margin-left: 0.1rem;
margin-right: auto;
}
.page-links > span.page-links-title {
padding-right: 0;
padding-left: 0;
}
.tag-links a {
margin: 0 10px 4px 4px;
margin: 0 1.0rem 0.4rem 0.4rem;
}
.tag-links a:before {
border-left: 10px solid #8c8c8c;
right: -10px;
right: -1.0rem;
left: auto;
border-right: none;
}
.tag-links a:hover:before {
border-left-color: #2b2b2b;
}
.tag-links a:after {
right: -2px;
right: -0.2rem;
left: auto;
}
/* =Post Formatted posts column
----------------------------------------------- */
.format-title:before {
margin-left: 10px;
margin-left: 1.0rem;
margin-right: auto;
}
/* =Media
----------------------------------------------- */
img.alignright,
.wp-caption.alignright {
margin: 7px 0 7px 24px;
margin: 0.7rem 0 0.7rem 2.4rem;
}
img.alignleft,
.wp-caption.alignleft {
margin: 7px 24px 7px 0;
margin: 0.7rem 2.4rem 0.7rem 0;
}
.wp-caption-text {
padding: 0 0 0 10px;
padding: 0 0 0 1.0rem;
text-align: right;
}
/* =Navigation
----------------------------------------------- */
.paging-navigation .page-numbers {
margin-left: 5px;
margin-left: 0.5rem;
margin-right: auto;
}
.post-navigation .nav-previous,
.post-navigation .nav-next,
#image-navigation .previous-image,
#image-navigation .next-image {
text-align: right;
}
.comment-navigation {
padding-right: 10px;
padding-right: 1.0rem;
padding-left: 0;
}
.comment-navigation .nav-previous a {
margin-left: 10px;
margin-right: auto;
}
/* =Comments
----------------------------------------------- */
.comment-author {
padding-right: 36px;
padding-right: 3.6rem;
padding-left: 0;
}
.comment-author .comment-author-avatar {
right: 0;
left: auto;
}
.comment-author .avatar {
right: 2px;
right: 0.2rem;
left: auto;
}
.comment-meta,
.comment-content {
padding-right: 36px;
padding-right: 3.6rem;
padding-left: 0;
}
.comment-content ul,
.comment-content ol {
margin: 0 22px 24px 0;
margin: 0 2.2rem 2.4rem 0;
}
.commentlist .children {
margin-right: 20px;
margin-right: 2.0rem;
margin-left: auto;
}
#comments li #respond {
margin-right: 47px;
margin-right: 4.7rem;
margin-left: auto;
}
/* =Widgets
----------------------------------------------- */
.widget ul ul,
.widget ol ol,
.widget ul ol,
.widget ol ul {
margin: 0 10px 0 0;
margin: 0 1.0rem 0 0;
}
.widget select,
.widget iframe {
margin-right: 1px;
margin-right: 0.1rem;
margin-left: auto;
}
/* Authors Widget */
.widget_authors img {
margin: 0 0 9px 5px;
margin: 0 0 0.9rem 0.5rem;
}
/* Caledar widget*/
.widget_calendar #wp-calendar caption {
text-align: right;
}
.widget_calendar #wp-calendar tfoot td#prev {
padding-right: 5px;
padding-right: 0.5rem;
padding-left: 0;
}
.widget_calendar #wp-calendar tfoot td#next {
border-left: 1px solid rgba(255, 255, 255, 0.2);
padding-left: 5px;
padding-left: 0.5rem;
text-align: left;
padding-right: 0;
border-right: none;
}
/* =Content Sidebar
----------------------------------------------- */
#content-sidebar .widget .children,
#content-sidebar .widget .sub-menu {
margin:0 20px 0 0;
margin:0 2.0rem 0 0;
}
#content-sidebar .widget .widgets-multi-column-grid li {
padding: 0 0 6px 8px;
padding: 0 0 0.6rem 0.8rem;
}
/* =Media Queries
----------------------------------------------- */
/* Mobile list style */
@media screen and (max-width: 400px) {
.list-view .attachment-featured-thumbnail img {
float: right;
margin: 0 0 3px 10px;
margin: 0 0 0.3rem 1.0rem;
}
}
@media screen and (min-width: 400px) {
#primary .featured-post:before,
#primary .post-format a:before,
#primary .post-format + span.entry-date a:before,
#primary span.entry-date a:before,
#primary .byline a:before,
#primary .comments-link a:before,
#primary .edit-link a:before,
.attachment span.entry-date:before,
#primary .full-size-link a:before,
#primary .parent-post-link a:before {
margin: 0 0 0 2px;
margin: 0 0 0 0.2rem;
}
#primary .entry-meta > span {
margin-left: 10px;
margin-left: 1.0rem;
margin-right: auto;
}
#primary .format-video .post-format a:before {
margin: -1px 0 0 2px;
margin: -0.1rem 0 0 0.2rem;
}
#primary .format-image .post-format a:before {
margin: -1px 0 0 2px;
margin: -0.1rem 0 0 0.2rem;
}
#primary .format-gallery .post-format a:before {
margin: -1px 0 0 4px;
margin: -0.1rem 0 0 0.4rem;
}
#primary .featured-post:before {
margin: -1px 0 0 3px;
margin: -0.1rem 0 0 0.3rem;
}
#primary .post-format + span.entry-date a:before,
#primary span.entry-date a:before,
.attachment span.entry-date:before {
margin: 0 0 0 1px;
margin: 0 0 0 0.1rem;
}
#primary .comments-link a:before {
margin: -1px 0 0 2px;
margin: -0.1rem 0 0 0.2rem;
}
#primary .edit-link a:before {
margin: -1px 0 0 2px;
margin: -0.1rem 0 0 0.2rem;
}
.page #primary .edit-link a:before {
margin: 5px 0 0 2px;
margin: 0.5rem 0 0 0.2rem;
}
}
@media screen and (min-width: 672px) {
#primary {
float: right;
}
.site-content {
margin: 0 0 0 33.33333333%;
}
#content-sidebar {
float: left;
margin: 0 -30.35714285% 0 0;
padding: 36px 0 24px 10px;
padding: 3.6rem 0 2.4rem 1.0rem;
}
.post-formatted-posts {
float: left;
margin: 0 -30.35714285% 0 0;
padding: 36px 0 0 10px;
padding: 3.6rem 0 0 1.0rem;
}
#featured-content .hentry {
float: right;
}
}
@media screen and (min-width: 740px) {
.comment-author {
padding-right: 60px;
padding-right: 6.0rem;
padding-left: 0;
}
.comment-meta,
.comment-content {
padding-right: 60px;
padding-right: 6.0rem;
padding-left: 0;
}
.comments-title,
.nocomments,
#comments #respond,
.comments-area article,
.commentlist li.trackback,
.commentlist li.pingback,
.post-navigation .nav-previous,
.post-navigation .nav-next {
padding-left: 9.12778904%;
padding-right: 9.12778904%;
}
.comment-navigation {
padding-right: 9.12778904%;
padding-left: 0;
}
#image-navigation .previous-image,
#image-navigation .next-image,
.full-width .comment-navigation,
.full-width .comments-title,
.full-width #comments #respond,
.full-width .comments-area article,
.full-width .commentlist li.trackback,
.full-width .commentlist li.pingback {
padding-left: 6.04307432%;
padding-right: 6.04307432%;
}
}
@media screen and (min-width: 770px) {
.header-main {
margin-left: 0;
margin-right: auto;
}
}
@media screen and (min-width: 870px) {
#primary .entry-header {
margin-left: 8.03571428%;
margin-right: 12.5%;
}
#primary .entry-content,
#primary .entry-summary {
margin-left: 8.03571428%;
margin-right: 12.5%;
}
#primary footer.entry-meta {
margin: 12px 12.5% 24px 8.03571428%;
margin: 1.2rem 12.5% 2.4rem 8.03571428%;
}
.page #primary .entry-header,
.error404 #primary .entry-header {
margin: 0 12.5% 0 8.03571428%;
}
.page-header {
margin: 0 12.5% 24px 8.03571428%;
margin: 0 12.5% 2.4rem 8.03571428%;
}
.comments-title,
.nocomments,
#comments #respond,
.comments-area article,
.commentlist li.trackback,
.commentlist li.pingback,
.post-navigation .nav-previous,
.post-navigation .nav-next {
padding-left: 12.39493534%;
padding-right: 17.06896551%;
}
#comments #respond {
padding-left: 13.8900862%;
}
.commentlist,
.full-width .commentlist {
margin-right: -70px;
margin-right: -7.0rem;
margin-left: auto;
}
.comment-navigation {
padding-right: 17.06896551%;
padding-left: 0;
}
#content-sidebar {
padding-top: 72px;
padding-top: 7.2rem;
}
#image-navigation .previous-image,
#image-navigation .next-image,
.full-width .comment-navigation,
.full-width .comments-title,
.full-width #comments #respond,
.full-width .comments-area article,
.full-width .commentlist li.trackback,
.full-width .commentlist li.pingback {
padding-left: 11.30926724%;
padding-right: 11.30926724%;
}
blockquote.pull.alignright {
margin-right: -20%;
margin-left: auto;
}
blockquote.pull.alignleft {
margin-left: -20%;
margin-right: auto;
}
#primary .no-results .entry-header {
margin-right: 12.5%;
margin-left: 8.03571428%;
}
#primary .no-results .entry-content {
margin-right: 12.5%;
margin-left: 8.03571428%;
}
}
@media screen and (min-width: 1008px) {
#page:before {
right: 0;
left: auto;
}
.header-main {
padding-right: 27px;
padding-right: 2.7rem;
padding-left: 0;
}
.social-links-wrapper,
.search-box-wrapper {
padding-right: 222px;
padding-right: 22.2rem;
padding-left: 0;
}
.site-content {
margin: 0 222px 0 27.31707317%;
margin: 0 22.2rem 0 27.31707317%;
}
#secondary {
float: right;
margin: 0 -100% 0 0;
}
.front-page-content-wrapper {
float: right;
}
.site-content {
margin: 0 222px 0 27.31707317%;
margin: 0 22.2rem 0 27.31707317%;
}
#content-sidebar,
.post-formatted-posts {
margin: 0 -27.31707317% 0 0;
}
#featured-content {
padding-right: 222px;
padding-right: 22.2rem;
padding-left: 0;
}
#colophon {
padding-right: 27px;
padding-right: 2.7rem;
padding-left: 0;
}
.secondary-navigation ul ul {
right: 168px;
right: 16.8rem;
left: auto;
}
.full-width.site-content {
margin-right: 222px;
margin-right: 22.2rem;
margin-left: auto;
}
.comments-title,
.nocomments,
#comments #respond,
.comments-area article,
.commentlist li.trackback,
.commentlist li.pingback,
.post-navigation .nav-previous,
.post-navigation .nav-next {
padding-left: 9.87001616%;
padding-right: 9.19765166%;
}
.commentlist,
.full-width .commentlist {
margin-right: 0;
margin-left: auto;
}
.comment-navigation {
padding-right: 9.19765166%;
padding-left: 0;
}
#image-navigation .previous-image,
#image-navigation .next-image,
.full-width .comment-navigation,
.full-width .comments-title,
.full-width #comments #respond,
.full-width .comments-area article,
.full-width .commentlist li.trackback,
.full-width .commentlist li.pingback {
padding-left: 5.882236%;
padding-right: 5.882236%;
}
blockquote.pull.alignright {
margin-right: 0;
margin-left: auto;
}
blockquote.pull.alignleft {
margin-left: 0;
margin-right: auto;
}
#supplementary {
padding-left: 0;
padding-right: 0;
}
#supplementary .widget-area {
float: right;
}
}
@media screen and (min-width: 1150px) {
#primary .entry-header {
margin: -48px 12.5% 0 8.03571428%;
margin: -4.8rem 12.5% 0 8.03571428%;
}
#primary .entry-content,
#primary .entry-summary {
margin: 0 12.5% 0 8.03571428%;
}
#primary footer.entry-meta {
margin: 12px 12.5% 24px 8.03571428%;
margin: 1.2rem 12.5% 2.4rem 8.03571428%;
}
.comments-title,
.nocomments,
#comments #respond,
.comments-area article,
.commentlist li.trackback,
.commentlist li.pingback,
.post-navigation .nav-previous,
.post-navigation .nav-next {
padding-left: 12.44146986%;
padding-right: 16.77524429%;
}
#comments #respond {
padding-left: 13.73697916%;
}
.commentlist,
.full-width .commentlist {
margin-right: -70px;
margin-right: -7.0rem;
margin-left: auto;
}
.comment-navigation {
padding-right: 16.77524429%;
padding-left: 0;
}
.page-header {
margin: 0 12.5% 24px 8.03571428%;
margin: 0 12.5% 2.4rem 8.03571428%;
}
.page #primary .entry-header,
.error404 #primary .entry-header {
margin: 0 12.5% 0 8.03571428%;
}
#image-navigation .previous-image,
#image-navigation .next-image,
.full-width .comment-navigation,
.full-width .comments-title,
.full-width #comments #respond,
.full-width .comments-area article,
.full-width .commentlist li.trackback,
.full-width .commentlist li.pingback {
padding-left: 11.21868265%;
padding-right: 11.21868265%;
}
#primary .entry-content .wp-caption.alignright .wp-caption-text {
padding-right: 10px;
padding-right: 1.0rem;
padding-left: 0;
}
blockquote.pull.alignright {
margin-right: -20%;
margin-left: auto;
}
blockquote.pull.alignleft {
margin-left: -20%;
margin-right: auto;
}
}
@media screen and (min-width: 1230px) {
#content-sidebar,
.post-formatted-posts {
padding-left: 0;
}
#primary .full-width .entry-header,
#primary .full-width .entry-content,
#primary .full-width footer.entry-meta {
margin: 0 11.21868265% 0 0;
}
#image-navigation .previous-image,
#image-navigation .next-image,
.full-width .comment-navigation,
.full-width .comments-title,
.full-width #comments #respond,
.full-width .comments-area article,
.full-width .commentlist li.trackback,
.full-width .commentlist li.pingback {
padding-left: 0;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,41 @@
<?php
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header(); ?>
<section id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header><!-- .page-header -->
<?php while ( have_posts() ) : the_post(); ?>
<?php twentyfourteen_get_template_part(); ?>
<?php endwhile; ?>
<?php twentyfourteen_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'search' ); ?>
<?php endif; ?>
</div><!-- #content .site-content -->
</section><!-- #primary .content-area -->
<?php get_sidebar( 'content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

View File

@ -0,0 +1,13 @@
<?php
/**
* The template for displaying search forms in Twenty Fourteen
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label for="s" class="assistive-text"><?php _e( 'Search', 'twentyfourteen' ); ?></label>
<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', 'twentyfourteen' ); ?>" />
<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyfourteen' ); ?>" />
</form>

View File

@ -0,0 +1,33 @@
<?php
/**
* The Content Sidebar.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<div id="content-sidebar" class="widget-area" role="complementary">
<?php do_action( 'before_sidebar' ); ?>
<?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
<aside id="search" class="widget widget_search">
<?php get_search_form(); ?>
</aside>
<aside id="link" class="widget widget_links">
<h1 class="widget-title"><?php _e( 'Blogroll', 'twentyfourteen' ); ?></h1>
<ul class="xoxo blogroll">
<?php wp_list_bookmarks( array( 'title_li' => '', 'categorize' => 0 ) ); ?>
</ul>
</aside>
<aside id="meta" class="widget">
<h1 class="widget-title"><?php _e( 'Meta', 'twentyfourteen' ); ?></h1>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</aside>
<?php endif; // end sidebar widget area ?>
</div><!-- #content-sidebar .widget-area -->

View File

@ -0,0 +1,47 @@
<?php
/**
* The Sidebar containing the main widget areas.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<?php
if ( ! is_active_sidebar( 'sidebar-3' )
&& ! is_active_sidebar( 'sidebar-4' )
&& ! is_active_sidebar( 'sidebar-5' )
&& ! is_active_sidebar( 'sidebar-6' )
&& ! is_active_sidebar( 'sidebar-7' )
)
return;
?>
<div id="supplementary" <?php twentyfourteen_footer_sidebar_class(); ?>>
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
<div id="footer-sidebar-one" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div><!-- #first .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
<div id="footer-sidebar-two" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-4' ); ?>
</div><!-- #second .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?>
<div id="footer-sidebar-three" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-5' ); ?>
</div><!-- #third .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-6' ) ) : ?>
<div id="footer-sidebar-four" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-6' ); ?>
</div><!-- #fourth .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-7' ) ) : ?>
<div id="footer-sidebar-five" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-7' ); ?>
</div><!-- #fourth .widget-area -->
<?php endif; ?>
</div><!-- #supplementary -->

View File

@ -0,0 +1,43 @@
<?php
/**
* The Sidebar containing the main widget areas.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<div id="secondary">
<div id="secondary-top">
<?php
$description = get_bloginfo( 'description' );
if ( ! empty ( $description ) ) : ?>
<h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
<?php endif; ?>
<?php if ( has_nav_menu( 'secondary' ) ) : ?>
<nav role="navigation" class="site-navigation secondary-navigation">
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
</nav>
<?php endif; ?>
</div>
<div id="secondary-bottom" class="widget-area" role="complementary">
<?php do_action( 'before_sidebar' ); ?>
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
<aside id="categories" class="widget widget_categories">
<h1 class="widget-title"><?php _e( 'Categories', 'twentyfourteen' ); ?></h1>
<ul>
<?php wp_list_categories( array( 'title_li' => '' ) ); ?>
</ul>
</aside>
<aside id="archives" class="widget widget_archive">
<h1 class="widget-title"><?php _e( 'Archives', 'twentyfourteen' ); ?></h1>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</aside>
<?php endif; // end sidebar widget area ?>
</div><!-- .widget-area -->
</div><!-- #secondary -->

View File

@ -0,0 +1,35 @@
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php twentyfourteen_content_nav( 'nav-below' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template( '', true );
?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_sidebar( 'content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

File diff suppressed because it is too large Load Diff