-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved to template-parts from html in functions
- Loading branch information
Showing
7 changed files
with
104 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* @package mimizuku | ||
* @author inc2734 | ||
* @license GPL-2.0+ | ||
*/ | ||
?> | ||
<div class="_p-comment" id="comment-<?php comment_ID(); ?>"> | ||
<div class="_p-comment__figure"> | ||
<?php echo get_avatar( $_comment, '48' ); ?> | ||
</div> | ||
<div class="_p-comment__body"> | ||
<?php if ( 0 === $_comment->comment_approved ) : ?> | ||
<em><?php esc_html_e( 'Your comment is awaiting moderation.', 'mimizuku' ) ?></em> | ||
<?php endif; ?> | ||
<div class="_p-comment__meta"> | ||
<?php | ||
$author = sprintf( '<cite>%s</cite>', get_comment_author_link() ); | ||
$date = get_comment_date(); | ||
$time = get_comment_time(); | ||
printf( | ||
esc_html__( '%1$s said on %2$s at %3$s', 'mimizuku' ), | ||
wp_kses_post( $author ), | ||
wp_kses_post( $date ), | ||
wp_kses_post( $time ) | ||
); | ||
edit_comment_link( 'edit', ' ', '' ); | ||
?> | ||
</div> | ||
|
||
<div class="_p-comment__content"> | ||
<?php comment_text() ?> | ||
</div> | ||
|
||
<?php | ||
$args = array_merge( $_args, [ | ||
'depth' => $_depth, | ||
'max_depth' => $_args['max_depth'], | ||
] ); | ||
?> | ||
|
||
<?php if ( ! empty( get_comment_reply_link( $args ) ) ) : ?> | ||
<div class="_p-comment__reply"> | ||
<?php comment_reply_link( $args ); ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* @package mimizuku | ||
* @author inc2734 | ||
* @license GPL-2.0+ | ||
*/ | ||
?> | ||
<form action="<?php echo esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ); ?>" class="post-password-form" method="post"> | ||
<p> | ||
<?php esc_html_e( 'This content is password protected. To view it please enter your password below:', 'mimizuku' ); ?> | ||
</p> | ||
<div class="_c-input-group"> | ||
<div class="_c-input-group__addon"> | ||
<?php esc_html_e( 'Password:', 'mimizuku' ); ?> | ||
</div> | ||
<div class="_c-input-group__field"> | ||
<input class="_c-input-group__control" name="post_password" type="password" size="20" /> | ||
</div><input class="_c-input-group__btn" type="submit" name="Submit" value="<?php echo esc_attr_x( 'Enter', 'post password form', 'mimizuku' ); ?>" /> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* @package mimizuku | ||
* @author inc2734 | ||
* @license GPL-2.0+ | ||
*/ | ||
?> | ||
<dl class="_p-trackback" id="comment-<?php comment_ID(); ?>"> | ||
<dt class="_p-trackback__meta"> | ||
<?php | ||
$author = sprintf( '<cite>%s</cite>', get_comment_author_link() ); | ||
$date = get_comment_date(); | ||
$time = get_comment_time(); | ||
printf( | ||
esc_html__( '%1$s said on %2$s at %3$s', 'mimizuku' ), | ||
wp_kses_post( $author ), | ||
wp_kses_post( $date ), | ||
wp_kses_post( $time ) | ||
); | ||
edit_comment_link( 'edit', ' ', '' ); | ||
?> | ||
</dt> | ||
<dd class="_p-trackback__body"> | ||
<?php comment_text() ?> | ||
</dd> | ||
</dl> |