HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/site/wp-content/plugins/booked/templates/profile.php
<?php

// This template only shows up if you are logged in or if you have a username after the /profile/ in the url.

global $current_user,$custom_query,$custom_recipe_title,$custom_type,$error,$post;

get_currentuserinfo();
$profile_username = $current_user->user_login;
$my_id = $current_user->ID;
$my_profile = true;

$user_data = get_user_by( 'id', $current_user->ID );

?><div id="booked-profile-page"<?php if ($my_profile): ?> class="me"<?php endif; ?>><?php

if (empty($user_data)) {

	echo '<h2>' . __('No profile here!','booked') . '</h2>';
	echo '<p>' . __('Sorry, this user profile does not exist.','booked') . '</p>';

} else { ?>

	<?php
			
	$user_meta = get_user_meta($user_data->ID);
	$user_url = $user_data->data->user_url;
	$user_desc = $user_meta['description'][0];
	$h3_class = '';
	
	$disable_avatar = get_option('booked_disable_avatar',false);
	$disable_website = get_option('booked_disable_website',false);
	$disable_bio = get_option('booked_disable_bio',false);
			
	?>

	<div class="booked-profile-header bookedClearFix"<?php if ($disable_avatar): ?> style="min-height:32px; padding:20px 25px 14px"<?php endif; ?>>
		
				
		<?php if (!$disable_avatar): ?>
			<div class="booked-avatar">
				<?php echo booked_avatar($user_data->ID,150); ?>
			</div>
		<?php endif; ?>

		<div class="booked-info"<?php if ($disable_avatar): ?> style="padding-left:0;"<?php endif; ?>>
			<div class="booked-user">
				<h3 class="<?php echo $h3_class; ?>"<?php if ($disable_website && $disable_bio): ?> style="margin:25px 0 0 5px"<?php endif; ?>><?php echo booked_get_name( $user_data->ID ); ?></h3>
				<?php if ($user_url && !$disable_website){ echo '<p><a href="'.$user_url.'" target="_blank">'.$user_url.'</a></p>'; } ?>
				<?php if ($user_desc && !$disable_bio){ echo wpautop($user_desc); } ?>
				<?php if ($my_profile): ?>
					<a class="booked-logout-button" href="<?php echo wp_logout_url(get_permalink($post->ID)); ?>" title="<?php _e('Logout','booked'); ?>"><?php _e('Logout','booked'); ?></a>
				<?php endif; ?>
			</div>
		</div>

	</div>

	<ul class="booked-tabs bookedClearFix">
		<?php
			
			$default_tabs = array(
				'appointments' => array(
					'title' => __('Upcoming Appointments','booked'),
					'fa-icon' => 'fa-calendar',
					'class' => false
				),
				'history' => array(
					'title' => __('Appointment History','booked'),
					'fa-icon' => 'fa-calendar-o',
					'class' => false
				),
				'edit' => array(
					'title' => __('Edit Profile','booked'),
					'fa-icon' => 'fa-edit',
					'class' => 'edit-button'
				)
			);
			
			echo apply_filters('booked_profile_tabs',$default_tabs);
		
		?>
	</ul>

	<?php $appointment_default_status = get_option('booked_new_appointment_default','draft');

	if ( is_user_logged_in() && $my_profile ) : ?>
	
		<?php echo apply_filters('booked_profile_tab_content',$default_tabs); ?>

	<?php endif; ?>


<?php } ?>

</div>