Skip to content

Commit

Permalink
Update author.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tronsymphony committed Apr 11, 2024
1 parent 9802bc6 commit eac49e0
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 eac49e0

Please sign in to comment.