Committing v. 0.8.1
This commit is contained in:
parent
ea2d8f660a
commit
aaec9a3c9e
@ -1,80 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying comments.
|
||||
*
|
||||
* The area of the page that contains both current comments
|
||||
* and the comment form.
|
||||
*
|
||||
* @package Atticus Finch
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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( // WPCS: XSS OK.
|
||||
esc_html( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'atticus-finch' ) ),
|
||||
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 id="comment-nav-above" class="navigation comment-navigation" role="navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'atticus-finch' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
||||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'atticus-finch' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'atticus-finch' ) ); ?></div>
|
||||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-above -->
|
||||
<?php endif; // Check for comment navigation. ?>
|
||||
|
||||
<ol class="comment-list">
|
||||
<?php
|
||||
wp_list_comments( array(
|
||||
'style' => 'ol',
|
||||
'short_ping' => true,
|
||||
) );
|
||||
?>
|
||||
</ol><!-- .comment-list -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'atticus-finch' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
||||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'atticus-finch' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'atticus-finch' ) ); ?></div>
|
||||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-below -->
|
||||
<?php endif; // Check for comment navigation. ?>
|
||||
|
||||
<?php endif; // Check for 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="no-comments"><?php esc_html_e( 'Comments are closed.', 'atticus-finch' ); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php comment_form(); ?>
|
||||
|
||||
</div><!-- #comments -->
|
@ -494,28 +494,6 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
|
||||
) );
|
||||
|
||||
|
||||
// Custom CSS Information
|
||||
$wp_customize->add_section( 'atticus_finch_custom_css', array(
|
||||
'title' => __( 'Custom CSS', 'atticus-finch' ),
|
||||
'capability' => 'edit_theme_options',
|
||||
'priority' => 60,
|
||||
'description' => sprintf( wp_kses( __( 'The best way to alter your theme is via a child theme. Use <a href="%s" target="_blank">this link</a> to download a ready-made child theme.', 'atticus-finch' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( 'https://github.com/kjodle/atticus-finch-child' ) ),
|
||||
'panel' => 'atticusfinch',
|
||||
) );
|
||||
|
||||
$wp_customize->add_setting( 'atticus_finch_ccss', array(
|
||||
'type' => 'theme_mod',
|
||||
'transport' => 'postMessage',
|
||||
'sanitize_callback' => 'atticus_finch_sanitize_css',
|
||||
) );
|
||||
|
||||
|
||||
$wp_customize->add_control( 'atticus_finch_ccss', array(
|
||||
'section' => 'atticus_finch_custom_css',
|
||||
'type' => 'select',
|
||||
) );
|
||||
|
||||
|
||||
// Print Options
|
||||
$wp_customize->add_section( 'atticus_finch_print', array (
|
||||
'title' => __( 'Print Options', 'atticus-finch' ),
|
||||
@ -991,8 +969,3 @@ function atticus_finch_sanitize_int( $input ){
|
||||
}
|
||||
}
|
||||
|
||||
function atticus_finch_sanitize_css( $input ) {
|
||||
// wp_filter_nohtml_kses( $input );
|
||||
strip_tags( $input );
|
||||
return $input;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ Theme URI: http://wiki.kjodle.net/Category:Atticus_Finch_Theme
|
||||
Author: kjodle
|
||||
Author URI: http://d12webdesign.com/
|
||||
Description: Description
|
||||
Version: 0.8
|
||||
Version: 0.8.1
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: two-columns, left-sidebar, custom-menu, featured-images, post-formats, theme-options, threaded-comments, translation-ready
|
||||
|
Loading…
Reference in New Issue
Block a user