65 lines
1.9 KiB
PHP
65 lines
1.9 KiB
PHP
|
<?php
|
||
|
|
||
|
add_theme_support( 'menus' );
|
||
|
|
||
|
if ( function_exists('register_sidebar') )
|
||
|
register_sidebar(array(
|
||
|
'before_widget' => '<aside>',
|
||
|
'after_widget' => '</aside>',
|
||
|
'before_title' => '<h3>',
|
||
|
'after_title' => '</h3>',
|
||
|
));
|
||
|
|
||
|
add_post_type_support('page', 'excerpt');
|
||
|
|
||
|
function post_comments( $comment, $args, $depth ) {
|
||
|
$GLOBALS['comment'] = $comment;
|
||
|
switch ( $comment->comment_type ) :
|
||
|
case '' :
|
||
|
?>
|
||
|
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
|
||
|
<div id="comment-<?php comment_ID(); ?>">
|
||
|
<div class="comment-author vcard">
|
||
|
<?php echo get_avatar( $comment, 40 ); ?>
|
||
|
|
||
|
<p class="comment-meta">
|
||
|
<?php printf( __( '%s' ), sprintf( '%s', get_comment_author_link() ) ); ?>
|
||
|
|
||
|
<a class="comment-date" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
|
||
|
<?php printf( __( '%1$s' ), get_comment_date() ); ?>
|
||
|
</a>
|
||
|
|
||
|
<?php if ( $comment->comment_approved == '0' ) : ?>
|
||
|
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></em>
|
||
|
<?php endif; ?>
|
||
|
</p>
|
||
|
</div>
|
||
|
|
||
|
<div class="comment-body"><?php comment_text(); ?></div>
|
||
|
|
||
|
<div class="reply">
|
||
|
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<?php
|
||
|
break;
|
||
|
case 'pingback' :
|
||
|
case 'trackback' :
|
||
|
?>
|
||
|
|
||
|
<li class="post pingback">
|
||
|
<p><?php _e( 'Pingback:' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)' ), ' ' ); ?></p>
|
||
|
<?php
|
||
|
|
||
|
break;
|
||
|
endswitch;
|
||
|
}
|
||
|
|
||
|
// Custom functions
|
||
|
|
||
|
// Tidy up the <head> a little. Full reference of things you can show/remove is here: http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/
|
||
|
remove_action('wp_head', 'wp_generator');// Removes the WordPress version as a layer of simple security
|
||
|
|
||
|
add_theme_support('post-thumbnails');
|
||
|
?>
|