Skip to content

Commit

Permalink
Merge pull request #1177 from equalizedigital/dev/author-page
Browse files Browse the repository at this point in the history
Update author.php
  • Loading branch information
tronsymphony authored Apr 11, 2024
2 parents 9802bc6 + eac49e0 commit 17bc797
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,20 @@
<?php
if ( ! empty( get_field( 'consult_link', 'user_' . $curauth->ID ) ) ) :
$link = get_field( 'consult_link', 'user_' . $curauth->ID );
if (is_array($link)) {
?>
<div class="info_link">
<a href="<?php echo wp_kses_post( $link['url'] ); ?>" class="btn btn-dark-bg">
<?php echo wp_kses_post( $link['title'] ); ?>
</a>
</div>
<?php
if ( is_array( $link ) ) {
?>
<div class="info_link">
<a href="<?php echo wp_kses_post( $link['url'] ); ?>" class="btn btn-dark-bg">
<?php
if( empty(wp_kses_post( $link['title'] )){
echo 'Schedule a Call';
} else {
echo wp_kses_post( $link['title']
}
?>
</a>
</div>
<?php
}
endif; ?>

Expand Down

0 comments on commit 17bc797

Please sign in to comment.