2021.1013 - New version
This commit is contained in:
		| @@ -39,8 +39,12 @@ function blog_avatars() { | ||||
|         <div class="block-item-text"> | ||||
|           <input type="checkbox" hidden class="read-more-state" id="<?php echo $i; ?>" /> | ||||
|           <div class="read-more-wrap"> | ||||
|             <div class="avatar right"><?php echo coauthors_get_avatar( $coauthor, 65 ); ?> | ||||
|             <a href="<?php echo get_author_posts_url( $coauthor->ID, $coauthor->user_nicename ); ?>"><?php echo $coauthor->display_name; ?></a></div><span class="read-more-target"><?php echo $coauthor->description; ?></span> | ||||
|             <div class="avatar"> | ||||
|               <div class="avatarimg left" style="width:50%;"><?php echo coauthors_get_avatar( $coauthor, 65 ); ?> | ||||
|                 <a href="<?php echo get_author_posts_url( $coauthor->ID, $coauthor->user_nicename ); ?>"><?php echo $coauthor->display_name; ?></a> | ||||
|               </div> | ||||
|               <span class="read-more-target"><?php echo $coauthor->description; ?></span> | ||||
|             </div> | ||||
|           </div> | ||||
|           <label for="<?php echo $i; ?>" class="read-more-trigger_closed"> | ||||
|             <strong>+ <?php printf( $show_profile ); ?></strong> | ||||
| @@ -57,7 +61,12 @@ function blog_avatars() { | ||||
|       <div class="block-item-text"> | ||||
|         <input type="checkbox" hidden class="read-more-state" id="<?php echo $i; ?>" /> | ||||
|         <div class="read-more-wrap"> | ||||
|           <div class="avatar right"><?php echo get_avatar( get_the_author_meta( 'user_email' ), 65 ); ?><a href="<?php echo get_the_author_meta( 'user_url' ); ?>"><?php echo get_the_author_meta( 'display_name' ); ?></a></div><span class="read-more-target"><?php echo get_the_author_meta( 'description' ); ?></span> | ||||
|           <div class="avatar"> | ||||
|             <div class="avatarimg left"><?php echo get_avatar( get_the_author_meta( 'user_email' ), 65 ); ?> | ||||
|               <a href="<?php echo get_the_author_meta( 'user_url' ); ?>"><?php echo get_the_author_meta( 'display_name' ); ?></a> | ||||
|             </div> | ||||
|             <span class="read-more-target"><?php echo get_the_author_meta( 'description' ); ?></span> | ||||
|           </div> | ||||
|         </div> | ||||
|         <label for="<?php echo $i; ?>" class="read-more-trigger_closed"> | ||||
|           <strong>+ <?php printf( $show_profile ); ?></strong> | ||||
| @@ -71,7 +80,7 @@ function blog_avatars() { | ||||
| } | ||||
|  | ||||
| function blog_enqueue() { | ||||
|   wp_register_style( 'blog-spoiler-style', plugins_url('/blog-spoiler.css', __FILE__) ); | ||||
|   wp_register_style( 'blog-spoiler-style', plugins_url('/blog-spoiler.css', __FILE__), rand(111,9999), '1' ); | ||||
|   wp_enqueue_style( 'blog-spoiler-style' ); | ||||
| } | ||||
| add_action( 'wp_enqueue_scripts', 'blog_enqueue' ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user