-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:add author card sns icon show config
- Loading branch information
bigfa
committed
Apr 27, 2024
1 parent
139ce2f
commit 5262383
Showing
5 changed files
with
25 additions
and
6 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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
<?php | ||
global $farallonSetting; ?> | ||
<div class="author--card"> | ||
<?php echo get_avatar(get_the_author_meta('ID'), 64); ?> | ||
<div class="author--name"><?php the_author(); ?></div> | ||
<div class="author--description"><?php the_author_meta('description'); ?></div> | ||
<div class="author--sns"> | ||
<?php get_template_part('template-parts/sns'); ?> | ||
</div> | ||
<?php | ||
if ($farallonSetting->get_setting('author_sns')) : ?> | ||
<div class="author--sns"> | ||
<?php get_template_part('template-parts/sns'); ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> |