File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function printArticleForBlogList($post): void {
70
70
echo ('<img class="post-image" src=" ' .getImgSrc ($ post ).'" alt="post ' .$ post ["title " ].'"> ' );
71
71
$ author = BlogHelper::getAuthorInfo ($ post ["author " ]);
72
72
if ($ author ) {
73
- echo ('<h3 class="post-author"> ' . $ author ["name " ][ " formatted " ] . '</h3> ' );
73
+ echo ('<h3 class="post-author"> ' . $ author ["displayName " ] . '</h3> ' );
74
74
}
75
75
echo ('<h1 class="post-title"><a href="article/ ' .$ post ["id " ].'- ' .getArticleAlias ($ post ["title " ]).'"> ' .$ post ["title " ].'</a></h1> ' );
76
76
echo ('</div> ' );
@@ -83,10 +83,10 @@ function printArticleFullPage($post): void {
83
83
$ author = BlogHelper::getAuthorInfo ($ post ["author " ]);
84
84
if ($ author ) {
85
85
echo ('<div class="author"> ' );
86
- echo ('<img src=" ' .$ author ["thumbnailUrl " ].'" alt="author image for ' .$ author ["name " ][ " formatted " ].'" class="author-img"> ' );
86
+ echo ('<img src=" ' .$ author ["thumbnailUrl " ].'" alt="author image for ' .$ author ["displayName " ].'" class="author-img"> ' );
87
87
echo ('<div class="post-info"> ' );
88
88
echo ('<span class="author-name"> ' );
89
- echo ($ author ["name " ][ " formatted " ]);
89
+ echo ($ author ["displayName " ]);
90
90
echo ('</span><br> ' );
91
91
echo ('<span class="post-date"> ' );
92
92
echo ('<span title=" ' .getDateTimeString (getPostPublishDate ($ post )).'"> ' );
@@ -115,4 +115,4 @@ function printArticleFullPage($post): void {
115
115
echo ('<p class="post-author-info"> ' .T::t ("CONTENT.BLOG.WRITTEN_BY " ).': <b> ' .$ author ["name " ]["formatted " ].'</b></p> ' );
116
116
echo ('</div> ' );
117
117
echo ('</div> ' );
118
- }
118
+ }
You can’t perform that action at this time.
0 commit comments