Reduce card nodes further
This commit is contained in:
parent
24c9f5bcba
commit
aeaadadd9c
@ -174,11 +174,12 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<div class="card__footer">
|
||||
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
|
||||
<i class="fa-solid fa-font" title="<?php esc_attr_e( 'Words', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Words', 'fictioneer' ) ?>"><?php echo fictioneer_shorten_number( get_post_meta( get_the_ID(), '_word_count', true ) ); ?></span>
|
||||
<?php echo fictioneer_shorten_number( get_post_meta( get_the_ID(), '_word_count', true ) ); ?>
|
||||
|
||||
<i class="fa-regular fa-clock" title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"><?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?></span>
|
||||
<?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?>
|
||||
|
||||
<?php if ( get_option( 'fictioneer_show_authors' ) && ! $hide_author ) : ?>
|
||||
<?php fictioneer_icon( 'user', 'hide-below-desktop' ); ?>
|
||||
@ -186,7 +187,8 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<?php endif; ?>
|
||||
|
||||
<i class="fa-solid fa-message" title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"><?php echo get_comments_number( $post ); ?></span>
|
||||
<?php echo get_comments_number( $post ); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ( ! empty( $chapter_rating ) ) : ?>
|
||||
|
@ -175,19 +175,19 @@ $comment_count = get_comments( $comment_args );
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
|
||||
<i class="fa-solid fa-book" title="<?php esc_attr_e( 'Stories', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Stories', 'fictioneer' ) ?>"><?php echo $story_count; ?></span>
|
||||
<?php echo $story_count; ?>
|
||||
|
||||
<i class="fa-solid fa-list" title="<?php esc_attr_e( 'Chapters', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Chapters', 'fictioneer' ) ?>"><?php echo $chapter_count; ?></span>
|
||||
<?php echo $chapter_count; ?>
|
||||
|
||||
<i class="fa-solid fa-font"></i>
|
||||
<span><?php echo fictioneer_shorten_number( $word_count ); ?></span>
|
||||
<?php echo fictioneer_shorten_number( $word_count ); ?>
|
||||
|
||||
<i class="fa-regular fa-clock" title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"><?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?></span>
|
||||
<?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?>
|
||||
|
||||
<i class="fa-solid fa-message" title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"><?php echo $comment_count; ?></span>
|
||||
<?php echo $comment_count; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -52,10 +52,10 @@ $comments_number = get_comments_number();
|
||||
<?php fictioneer_the_author_node( get_the_author_meta( 'ID' ) ); ?>
|
||||
<?php endif; ?>
|
||||
<i class="fa-solid fa-clock" title="<?php esc_attr_e( 'Publishing Date', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Publishing Date', 'fictioneer' ) ?>"><?php the_time( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?></span>
|
||||
<?php the_time( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?>
|
||||
<?php if ( $comments_number > 0 ) : ?>
|
||||
<i class="fa-solid fa-message" title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"><?php echo $comments_number; ?></span>
|
||||
<?php echo $comments_number; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -76,9 +76,9 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<?php fictioneer_the_author_node( get_the_author_meta( 'ID' ) ); ?>
|
||||
<?php endif; ?>
|
||||
<i class="fa-solid fa-clock" title="<?php esc_attr_e( 'Publishing Date', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Publishing Date', 'fictioneer' ) ?>"><?php the_time( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?></span>
|
||||
<?php the_time( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?>
|
||||
<i class="fa-solid fa-message" title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"><?php echo get_comments_number(); ?></span>
|
||||
<?php echo get_comments_number(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -152,14 +152,15 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<div class="card__footer">
|
||||
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
|
||||
<i class="fa-solid fa-list" title="<?php esc_attr_e( 'Chapters', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Chapters', 'fictioneer' ) ?>"><?php echo $story['chapter_count']; ?></span>
|
||||
<?php echo $story['chapter_count']; ?>
|
||||
|
||||
<i class="fa-solid fa-font" title="<?php esc_attr_e( 'Total Words', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Total Words', 'fictioneer' ) ?>"><?php echo $story['word_count_short']; ?></span>
|
||||
<?php echo $story['word_count_short']; ?>
|
||||
|
||||
<i class="fa-regular fa-clock" title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"><?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?></span>
|
||||
<?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?>
|
||||
|
||||
<?php if ( get_option( 'fictioneer_show_authors' ) && ! $hide_author ) : ?>
|
||||
<?php fictioneer_icon( 'user', 'hide-below-desktop' ); ?>
|
||||
@ -170,7 +171,8 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<span class="hide-below-480" title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"><?php echo $story['comment_count']; ?></span>
|
||||
|
||||
<i class="<?php echo $story['icon']; ?>"></i>
|
||||
<span><?php echo fcntr( $story['status'] ); ?></span>
|
||||
<?php echo fcntr( $story['status'] ); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card__right rating-letter-label _large tooltipped" data-tooltip="<?php echo fcntr( $story['rating'], true ); ?>">
|
||||
|
@ -143,24 +143,26 @@ $entries = new WP_Query( $query_args );
|
||||
<div class="card__footer _small">
|
||||
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
|
||||
<i class="fa-solid fa-font" title="<?php esc_attr_e( 'Words', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Words', 'fictioneer' ) ?>"><?php echo fictioneer_shorten_number( get_post_meta( $post->ID, '_word_count', true ) ); ?></span>
|
||||
<?php echo fictioneer_shorten_number( get_post_meta( $post->ID, '_word_count', true ) ); ?>
|
||||
|
||||
<i class="fa-regular fa-clock" title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ) ?>"><?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?></span>
|
||||
<?php the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y" ); ?>
|
||||
|
||||
<i class="fa-solid fa-message" title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Comments', 'fictioneer' ) ?>"><?php echo get_comments_number(); ?></span>
|
||||
<?php echo get_comments_number(); ?>
|
||||
|
||||
<?php if ( $story ) : ?>
|
||||
<i class="<?php echo $story['icon']; ?>"></i>
|
||||
<span><?php echo fcntr( $story['status'] ); ?></span>
|
||||
<?php echo fcntr( $story['status'] ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ( ! empty( $chapter_rating ) ) : ?>
|
||||
<div class="card__right rating-letter-label tooltipped" data-tooltip="<?php echo fcntr( $chapter_rating, true ) ?>">
|
||||
<span><?php echo fcntr( $chapter_rating[0] ); ?></span>
|
||||
<?php echo fcntr( $chapter_rating[0] ); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -157,23 +157,29 @@ $entries = new WP_Query( $query_args );
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card__footer _small">
|
||||
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
|
||||
<i class="fa-solid fa-list" title="<?php esc_attr_e( 'Chapters', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Chapters', 'fictioneer' ); ?>"><?php echo $story['chapter_count']; ?></span>
|
||||
<?php echo $story['chapter_count']; ?>
|
||||
|
||||
<i class="fa-solid fa-font" title="<?php esc_attr_e( 'Total Words', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Total Words', 'fictioneer' ); ?>"><?php echo $story['word_count_short']; ?></span>
|
||||
<?php echo $story['word_count_short']; ?>
|
||||
|
||||
<i class="fa-regular fa-clock" title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ); ?>"><?php echo get_the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y", $post ); ?></span>
|
||||
<?php
|
||||
echo get_the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y", $post );
|
||||
?>
|
||||
|
||||
<i class="<?php echo $story['icon']; ?>"></i>
|
||||
<span><?php echo fcntr( $story['status'] ); ?></span>
|
||||
<?php echo fcntr( $story['status'] ); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card__right rating-letter-label tooltipped" data-tooltip="<?php echo fcntr( $story['rating'], true ); ?>">
|
||||
<span><?php echo fcntr( $story['rating_letter'] ); ?></span>
|
||||
<?php echo fcntr( $story['rating_letter'] ); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -155,21 +155,25 @@ $entries = new WP_Query( $query_args );
|
||||
<div class="card__footer _small">
|
||||
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
|
||||
<i class="fa-solid fa-list" title="<?php esc_attr_e( 'Chapters', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Chapters', 'fictioneer' ); ?>"><?php echo $story['chapter_count']; ?></span>
|
||||
<?php echo $story['chapter_count']; ?>
|
||||
|
||||
<i class="fa-solid fa-font" title="<?php esc_attr_e( 'Total Words', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Total Words', 'fictioneer' ); ?>"><?php echo $story['word_count_short']; ?></span>
|
||||
<?php echo $story['word_count_short']; ?>
|
||||
|
||||
<i class="fa-regular fa-clock" title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ); ?>"><?php echo get_the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y", $post ); ?></span>
|
||||
<?php
|
||||
echo get_the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y", $post );
|
||||
?>
|
||||
|
||||
<i class="<?php echo $story['icon']; ?>"></i>
|
||||
<span><?php echo fcntr( $story['status'] ); ?></span>
|
||||
<?php echo fcntr( $story['status'] ); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card__right rating-letter-label tooltipped" data-tooltip="<?php echo fcntr( $story['rating'], true ); ?>">
|
||||
<span><?php echo fcntr( $story['rating_letter'] ); ?></span>
|
||||
<?php echo fcntr( $story['rating_letter'] ); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -208,21 +208,25 @@ $entries = new WP_Query( $query_args );
|
||||
<div class="card__footer _small">
|
||||
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
|
||||
<i class="fa-solid fa-list" title="<?php esc_attr_e( 'Chapters', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Chapters', 'fictioneer' ); ?>"><?php echo $story['chapter_count']; ?></span>
|
||||
<?php echo $story['chapter_count']; ?>
|
||||
|
||||
<i class="fa-solid fa-font" title="<?php esc_attr_e( 'Total Words', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Total Words', 'fictioneer' ); ?>"><?php echo $story['word_count_short']; ?></span>
|
||||
<?php echo $story['word_count_short']; ?>
|
||||
|
||||
<i class="fa-regular fa-clock" title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ); ?>"></i>
|
||||
<span title="<?php esc_attr_e( 'Last Updated', 'fictioneer' ); ?>"><?php echo get_the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y", $post ); ?></span>
|
||||
<?php
|
||||
echo get_the_modified_date( get_option( 'fictioneer_subitem_date_format', "M j, 'y" ) ?: "M j, 'y", $post );
|
||||
?>
|
||||
|
||||
<i class="<?php echo $story['icon']; ?>"></i>
|
||||
<span><?php echo fcntr( $story['status'] ); ?></span>
|
||||
<?php echo fcntr( $story['status'] ); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card__right rating-letter-label tooltipped" data-tooltip="<?php echo fcntr( $story['rating'], true ); ?>">
|
||||
<span><?php echo fcntr( $story['rating_letter'] ); ?></span>
|
||||
<?php echo fcntr( $story['rating_letter'] ); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user