PluginProbe
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs / 2.6.6
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs v2.6.6
5.0.1 4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 All 39 releases
← All changes | inc/block-posts-config/class-multiauthor-frontend.php +30 -7 5.0.1 → 2.6.6 View file →
@@ -12,9 +12,9 @@
12 12 $multiauthor_settings = false;
13 13 if($enable_author_metabox_for_post && $enable_author_metabox_for_post['enable_author_metabox']==true){
14 14 $multiauthor_settings = true;
15 15 }
16 -
16 + //var_dump($awpa_post_authors);
17 17 if(isset($awpa_post_authors) && !empty($awpa_post_authors) && $multiauthor_settings == true){
18 18 foreach ($awpa_post_authors as $key=>$author_id) {
19 19
20 20 $needle = 'guest-';
@@ -33,9 +33,10 @@
33 33 }else{
34 34 $author_id = $xauthor_id;
35 35
36 36 ?>
37 - <a class="blockspare-posts-block-text-link" href="<?php echo esc_url(get_author_posts_url($xauthor_id));?>" itemprop="url" rel="author">
37 + <a class="blockspare-posts-block-text-link" href="<?php echo esc_url(get_author_posts_url($xauthor_id));?>"
38 + itemprop="url" rel="author">
38 39 <span itemprop="name"><i class="<?php echo $authorIcon;?>"></i><?php echo esc_html(get_the_author_meta('display_name', $xauthor_id));?></span>
39 40 </a>
40 41 <?php
41 42
@@ -42,9 +43,9 @@
42 43
43 44 }
44 45 }else{
45 46 $author_id = $xauthor_id;?>
46 - <a class="blockspare-posts-block-text-link" href="<?php echo esc_url(get_author_posts_url($xauthor_id));?>" itemprop="url" rel="author">
47 + <a class="blockspare-posts-block-text-link" href="<?php echo esc_url(get_author_posts_url($xauthor_id));?>" itemprop="url" rel="author">
47 48 <span itemprop="name"><i class="<?php echo $authorIcon;?>"></i><?php echo esc_html(get_the_author_meta('display_name', $xauthor_id));?></span>
48 49 </a>
49 50 <?php }
50 51
@@ -52,9 +53,9 @@
52 53
53 54
54 55
55 56
56 -function blockspare_front_author_list($authorIcon,$key,$awpa_post_authors,$post_id='',$author_id='',$author_type=''){
57 +function blockspare_front_author_list($authorIcon, $key, $awpa_post_authors, $post_id='',$author_id='',$author_type=''){
57 58
58 59 if($author_type == 'default'){
59 60 $default_author_id = get_post_field('post_author', $post_id);
60 61 $author_name = get_userdata( $author_id);
@@ -59,10 +60,22 @@
59 60 $default_author_id = get_post_field('post_author', $post_id);
60 61 $author_name = get_userdata( $author_id);
61 62 ?>
62 63
63 - <a class="blockspare-posts-block-text-link" href="<?php echo esc_url(get_author_posts_url($author_id));?>" itemprop="url" rel="author">
64 - <span itemprop="name"><?php if($key<1){?><i class="<?php echo $authorIcon;?>"></i><?php } ?><?php echo esc_html(get_the_author_meta('display_name', $author_id));?><?php if( $key != ( count( $awpa_post_authors ) - 1 ) ){echo ",";} ?></span>
64 + <a class="blockspare-posts-block-text-link" href="<?php echo esc_url(get_author_posts_url($author_id));?>"
65 + itemprop="url" rel="author">
66 + <span itemprop="name">
67 + <?php if($key<1){ ?>
68 + <i class="<?php echo $authorIcon;?>"></i>
69 + <?php } ?>
70 + <?php echo esc_html(get_the_author_meta('display_name', $author_id));?>
71 + <?php
72 + if( $key != ( count( $awpa_post_authors ) - 1 ) ){
73 + echo ",";
74 + }
75 + ?>
76 + </span>
77 +
65 78 </a>
66 79 <?php
67 80 }
68 81 if($author_type == 'guest'){
@@ -69,9 +82,19 @@
69 82 $wp_amulti_authors = new WPAMultiAuthors();
70 83 $guest_user_data = $wp_amulti_authors->get_guest_by_id($author_id);?>
71 84
72 85 <a class="blockspare-posts-block-text-link">
73 - <span itemprop="name"><?php if($key<1){?><i class="<?php echo esc_attr($authorIcon);?>"></i><?php } ?><?php echo esc_html($guest_user_data->display_name);?><?php if( $key != ( count( $awpa_post_authors ) - 1 ) ){echo ",";} ?></span>
86 + <span itemprop="name">
87 + <?php if($key<1){ ?>
88 + <i class="<?php echo esc_attr($authorIcon);?>"></i>
89 + <?php } ?>
90 + <?php echo esc_html($guest_user_data->display_name);?>
91 + <?php
92 + if( $key != ( count( $awpa_post_authors ) - 1 ) ){
93 + echo ",";
94 + } ?>
95 + </span>
96 +
74 97 </a>
75 98
76 99 <?php } ?>
77 100