<commit_before>{extends "designs/site.tpl"}

{block "title"}{$data->FullNamePossessive} Profile &mdash; {$dwoo.parent}{/block}


{block "content"}
	{$Person = $data}
	
	<div id="photos">
		{if $Person->PrimaryPhoto}
			<a href="{$Person->PrimaryPhoto->WebPath}" id="display-photo-link"><img src="{$Person->PrimaryPhoto->getThumbnailRequest(200,200)}" alt="Profile Photo: {$Person->FullName|escape}" id="display-photo" /></a>
		{else}
			<img src="/thumbnail/person/200x200" alt="Profile Photo: {$Person->FullName|escape}" id="profilePhoto" />
		{/if}
		<div id="photo-thumbs" class="clearfix">
			{foreach item=Photo from=$Person->Photos}
				<a href="{$Photo->getThumbnailRequest(1024,768)}" class="photo-thumb" id="t{$Photo->ID}" title="{$Photo->Caption|escape}"><img src="{$Photo->getThumbnailRequest(48,48)}" /></a>
			{/foreach}
		</div>
	</div>
	
	<div id="page-intro" class="">
		<h1 class="run-in">{$Person->FullName|escape}</h1>
		{if $Person->Location}
		<div class="quick-info"><a href="http://maps.google.com/?q={$Person->Location|escape}" target="_blank">{$Person->Location|escape}</a></div>
		{/if}
	</div>

	<div id="info" class="">

		{if $Person->About}
			<h2>About Me</h2>
			<section class="about">
				{$Person->About|escape|markdown}
			</section>
		{/if}
		
		{if $.Session->hasAccountLevel('Staff')}
		<h2>Contact Information (Staff-only)</h2>
		<dl class="section">
			{if $Person->Email}
				<dt>Email</dt>
				<dd><a href="mailto:{$Person->Email}" title="Email {$Person->FullName|escape}">{$Person->Email}</a></dd>
			{/if}
			
			{if $Person->Phone}
				<dt>Phone</dt>
				<!-- tel: URL scheme fails in desktop browsers -->
				<dd><!-- <a href="tel:{$Person->Phone}"> -->{$Person->Phone|phone}<!-- </a> --></dd>
			{/if}		
		</dl>
		{/if}<commit_msg>updated profile page header to include edit profile link<commit_after>{extends "designs/site.tpl"}

{block "title"}{$data->FullNamePossessive} Profile &mdash; {$dwoo.parent}{/block}


{block "content"}
	{$Person = $data}

    <header class="page-header">
        <h2 class="header-title">{$Person->FullName|escape}</h2>
    	{if $Person->Location}
		    <h3 class="header-details"><a href="http://maps.google.com/?q={$Person->Location|escape:url}" target="_blank">{$Person->Location|escape}</a></h3>
		{/if}
        <div class="header-buttons">
            {if $.User->ID == $Person->ID || (ProfileRequestHandler::$accountLevelEditOthers && $.User->hasAccountLevel(ProfileRequestHandler::$accountLevelEditOthers))}
                <a class="button" href="/profile{tif $.User->ID != $Person->ID ? cat('?person=', $Person->ID)}">Edit Profile</a>
            {/if}
        </div>
    </header>
	
	<div id="photos">
		{if $Person->PrimaryPhoto}
			<a href="{$Person->PrimaryPhoto->WebPath}" id="display-photo-link"><img src="{$Person->PrimaryPhoto->getThumbnailRequest(200,200)}" alt="Profile Photo: {$Person->FullName|escape}" id="display-photo" /></a>
		{else}
			<img src="/thumbnail/person/200x200" alt="Profile Photo: {$Person->FullName|escape}" id="profilePhoto" />
		{/if}
		<div id="photo-thumbs" class="clearfix">
			{foreach item=Photo from=$Person->Photos}
				<a href="{$Photo->getThumbnailRequest(1024,768)}" class="photo-thumb" id="t{$Photo->ID}" title="{$Photo->Caption|escape}"><img src="{$Photo->getThumbnailRequest(48,48)}" /></a>
			{/foreach}
		</div>
	</div>
	
	<div id="page-intro" class="">
		<h1 class="run-in"></h1>
	</div>

	<div id="info" class="">

		{if $Person->About}
			<h2>About Me</h2>
			<section class="about">
				{$Person->About|escape|markdown}
			</section>
		{/if}
		
		{if $.Session->hasAccountLevel('Staff')}
		<h2>Contact Information (Staff-only)</h2>
		<dl class="section">
			{if $Person->Email}
				<dt>Email</dt>
				<dd><a href="mailto:{$Person->Email}" title="Email {$Person->FullName|escape}">{$Person->Email}</a></dd>
			{/if}
			
			{if $Person->Phone}
				<dt>Phone</dt>
				<!-- tel: URL scheme fails in desktop browsers -->
				<dd><!-- <a href="tel:{$Person->Phone}"> -->{$Person->Phone|phone}<!-- </a> --></dd>
			{/if}		
		</dl>
		{/if}
{'fraction_non_alphanumeric': 0.24176904176904176, 'fraction_numerical': 0.015233415233415233, 'mean_word_length': 4.314621409921671, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4418172', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1435, 'n_words': 243}