- ';
-
- if (in_array('photo', $information_to_display)) {
- echo '
';
- the_post_thumbnail('large');
- echo '
';
- };
-
- if (in_array('first_name', $information_to_display) || in_array('middle_name', $information_to_display) || in_array('last_name', $information_to_display)){
- echo '
';
- if (in_array('first_name', $information_to_display)) {
- the_field('first_name');
- echo ' ';
- };
- if (in_array('middle_name', $information_to_display)) {
- the_field('middle_name');
- echo ' ';
- };
- if (in_array('last_name', $information_to_display)) {
- the_field('last_name');
- };
- echo '
';
- };
-
- echo '';
-
- if (in_array('title', $information_to_display)) {
- echo '
';
- $titlePieces = explode(";", get_field('title'));
- foreach( $titlePieces as $t ){
- echo ( !empty($t) ? "{$t}
": "" );
- }
- echo '
';
- };
- if (in_array('department', $information_to_display)) {
- echo '
';
- $departmentPieces = explode(";", get_field('department'));
- foreach( $departmentPieces as $d ){
- echo ( !empty($d) ? "{$d}
": "" );
- }
- echo '
';
- };
- if (in_array('about', $information_to_display)) {
- echo '
';
- the_field('about');
- echo '
';
- };
- if (in_array('file', $information_to_display)) {
- $file = get_field('file');
- $urlLength = strlen($file['url']);
- if ($urlLength > 0){
- echo '
';
- echo ''.$file['title'].'';
- echo '
';
- }
- };
- if (in_array('email', $information_to_display)) {
- echo '
';
- echo ''.get_field('email').'';
- echo '
';
- };
- if (in_array('phone', $information_to_display)) {
- echo '
';
- the_field('phone');
- echo '
';
- };
- if (in_array('phone_(alternate)', $information_to_display)) {
- echo '
';
- the_field('phone_(alternate)');
- echo '
';
- };
- if (in_array('fax', $information_to_display)) {
- echo '
';
- the_field('fax');
- echo '
';
- };
- if (in_array('mailing_address', $information_to_display)) {
- echo '
';
- echo str_replace(';','
',get_field('mailing_address'));
- echo '
';
- };
- if (in_array('office_location', $information_to_display)) {
- echo '
';
- the_field('office_location');
- echo '
';
- };
- if (in_array('campus', $information_to_display)) {
- echo '
';
- the_field('campus');
- echo '
';
- };
- if (in_array('office_hours', $information_to_display)) {
- echo '
';
- the_field('office_hours');
- echo '
';
- };
- if (in_array('courses', $information_to_display)) {
- echo '
';
- the_field('courses');
- echo '
';
- };
- if (in_array('url', $information_to_display)) {
- echo '
'.get_field('url').'
';
- }; ?>
-