File: C:/xampp/htdocs/wordpress/wp-content/themes/mini/functions.php
<?php
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'1' => 'First column',
'before_widget' => '<div id="%1$s" class="%2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="block title-1">',
'after_title' => '</h3>',
));
register_sidebar(array(
'2' => 'Second column',
'before_widget' => '<div id="%1$s" class="%2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="title-1 block">',
'after_title' => '</h3>',
));
register_sidebar(array(
'3' => 'Bottom column',
'before_widget' => '<div id="%1$s" class="%2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="title-1 block">',
'after_title' => '</h3>',
));
}
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div class="com-wrapper <?php if (1 == $comment->user_id) echo "admin"; ?>">
<div id="comment-<?php comment_ID(); ?>" class="com-header">
<?php echo get_avatar( $comment, 32); ?>
<p class="tp">
<span><?php comment_author_link() ?></span>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation', 'default'); ?>.</em>
<?php endif; ?>
<small class="commentmetadata">
<a href="#comment-<?php comment_ID() ?>" title=""><?php printf( __('%1$s at %2$s', 'default'), get_comment_time(__('F jS, Y', 'default')), get_comment_time(__('H:i', 'default')) ); ?></a>
<?php edit_comment_link(__('Edit', 'default'),' ',''); ?>
</small>
</p>
<div class="clear"></div>
</div>
<?php comment_text() ?>
<div class="reply">
<p><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?></p>
</div>
</div>
<?php
}
function mytheme_ping($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div class="com-wrapper">
<div id="comment-<?php comment_ID(); ?>" class="com-header">
<img height="32" width="32" class="avatar avatar-32 photo" src="<?php bloginfo('stylesheet_directory'); ?>/img/link.png" alt="Link"/>
<p class="tp">
<span><?php comment_author_link() ?></span>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation', 'default'); ?>.</em>
<?php endif; ?>
<small class="commentmetadata">
<a href="#comment-<?php comment_ID() ?>" title=""><?php printf( __('%1$s at %2$s', 'default'), get_comment_time(__('F jS, Y', 'default')), get_comment_time(__('H:i', 'default')) ); ?></a>
<?php edit_comment_link(__('Edit', 'default'),' ',''); ?>
</small>
</p>
<div class="clear"></div>
</div>
<?php comment_text() ?>
</div>
<?php
}
?>