' . get_the_title() . '';; } } /** * Creates the Artist Photo for the ArtistPress Artist template * * @author LTDI Studios * @since 1.0.0 * */ function artispressArtistPhoto() { echo '
'; the_post_thumbnail(); echo '
'; } /** * Creates the Artist Details for the ArtistPress Artist template * * @author LTDI Studios * @since 1.0.0 * */ function artispressArtistDetails() { $artistOptions = get_option('artistpress_artist_settings'); $artistOptionPhone = sanitize_text_field($artistOptions['artist_phone']); $artistOptionPhoneLink = sanitize_text_field($artistOptions['artist_phone_link']); $artistOptionEmail = sanitize_text_field($artistOptions['artist_email']); $artistOptionWeb = sanitize_text_field($artistOptions['artist_web']); $artistOptionBio = sanitize_text_field($artistOptions['artist_bio']); $artistID = esc_html(get_the_ID()); $artistPhone = esc_html( get_post_meta($artistID, 'artistpress_artist_phone_number', true) ); $artistEmail = sanitize_email( get_post_meta($artistID, 'artistpress_artist_email_address', true) ); $artistWebsite = esc_url( get_post_meta($artistID, 'artistpress_artist_web_address', true)); $artistBio = esc_html( get_post_meta($artistID, 'artistpress_artist_bio', true) ); echo '
'; echo '
'; echo '
'; echo '
    '; if ($artistOptionPhone == 'yes'){ if ($artistOptionPhoneLink == 'yes'){ echo '
  • Phone: ' . $artistPhone . '
  • '; }else{ echo '
  • Phone: ' . $artistPhone . '
  • '; } } if ($artistOptionEmail == 'yes'){ echo '
  • Email: ' . $artistEmail . '
  • '; } if ($artistOptionWeb == 'yes'){ echo '
  • Website: ' . $artistWebsite . '
  • '; } echo '
'; echo '
'; echo '
'; if ($artistOptionBio == 'yes'){ echo '

Biography:

' . $artistBio . '
'; } echo '
'; } /** * Creates the No Artists error message for the ArtistPress Artist template * * @author LTDI Studios * @since 1.0.0 * */ function artispressNoArtists(){ echo '
'; echo '

Sorry! No artists have been added to this site.

'; echo '
'; } ?>