Location: PHPKode > projects > Anahita Social Engine > site/views/person/info/tmpl/default.php
<?php defined('KOOWA') or die; ?>

<?php $tabHasData = array(false, false, false, false); ?>

<script language="javascript">
	new Uikit.Tab('#an-se-actor-fields');
</script>

<?php if ( @$owner->getAcl()->canUpdateInformation() ) :  ?>
<ul class="an-se-actions an-se-actor-actions">
	<li class="an-se-action">
		<a id="an-se-actor-action-edit" href="<?= @route('view=person.info&layout=edit&id='.@$owner->id) ?>">
			<?= @text('AN-SE-ACTION-EDIT') ?>
		</a>
	</li>
</ul>
<?php endif; ?>

<div id="an-se-actor-fields" class="an-se-actor-fields an-se-person-fields-wrapper an-se-tabs">
	<ul class="an-se-tabset">
		<li class="an-se-on"><a><?= @text('AN-SE-PERSON-INFO-FIELDS-TAB-1') ?></a></li>
		<li class="an-se-off"><a><?= @text('AN-SE-PERSON-INFO-FIELDS-TAB-2') ?></a></li>
		<li class="an-se-off"><a><?= @text('AN-SE-PERSON-INFO-FIELDS-TAB-3') ?></a></li>
		<li class="an-se-off"><a><?= @text('AN-SE-PERSON-INFO-FIELDS-TAB-4') ?></a></li>
 	</ul>
 	
 	<div class="an-se-panelset">
 		<div class="an-se-tabpanel">
 			
 			<dl class="an-se-actor-info an-se-person-info">
 			
 				<?php if( @$globalParams->get('person_gender', 1) && @$personInfo['gender'] ) : ?>
 				<?php $tabHasData[0] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-GENDER') ?></dt>
 				<dd><?= @text('AN-SE-PERSON-SELECT-GENDER-'.@$personInfo['gender']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_date_of_birth', 1) && @$personInfo['dateOfBirth']) : ?>
 				<?php $tabHasData[0] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-DATE-OF-BIRTH') ?></dt>
 				<dd>
 					<? $date = new KDate(array('date'=>@$personInfo['dateOfBirth'])); ?>
					<?= $date->format('%B %d, %Y') ?>
				</dd>
 				<?php endif; ?>
								
 				<?php if( @$globalParams->get('person_relationship_status', 1) && @$personInfo['relationshipStatus']) : ?>
 				<?php $tabHasData[0] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-RELATIONSHIP-STATUS') ?></dt>
 				<dd><?= @text('AN-SE-PERSON-SELECT-RELATIONSHIP-STATUS-'.@$personInfo['relationshipStatus']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_political_views', 1) && @$personInfo['politicalViews']) : ?>
 				<?php $tabHasData[0] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-POLITICAL-VIEWS') ?></dt>
 				<dd><?= @text('AN-SE-PERSON-SELECT-POLITICALVIEWS-'.@$personInfo['politicalViews']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_religion', 1) && @$personInfo['religion']) : ?>
 				<?php $tabHasData[0] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-RELIGION') ?></dt>
 				<dd><?= @text(@$personInfo['religion']) ?></dd>
 				<?php endif; ?>
 				
				
				<?php 
					$words =  array();
					foreach(@$personInfo['lookingFor'] as $word) if ( strlen($word) ) $words[] = @text('AN-SE-PERSON-SELECT-LOOKINGFOR-'.$word);
				?>								
 				<?php if( @$globalParams->get('person_looking_for', 1) && count($words) ): ?>
 				<?php $tabHasData[0] = true; ?>			
 				<dt><?= @text('AN-SE-PERSON-FIELD-LOOKING-FOR') ?></dt> 				
				<dd><?= implode(', ', $words) ?></dd>				
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_happiest_when', 1) && @$personInfo['happiestWhen']) : ?>
 				<?php $tabHasData[0] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-HAPPIEST-WHEN') ?></dt>
 				<dd><?= @$escape(@$personInfo['happiestWhen']) ?></dd>
 				<?php endif; ?>
 			</dl>
 			
 			<?php if($tabHasData[0] == false): ?>
 			<div class="an-se-message"><?= @text('AN-SE-ACTOR-INFO-TAB-HAS-NO-DATA') ?></div>
 			<?php endif; ?>
 		</div>
 		
 		<div class="an-se-tabpanel">		
 			<dl class="an-se-actor-info an-se-person-info">
 				
 				<?php if( @$globalParams->get('person_about_me', 1) && @$personInfo['aboutMe']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-ABOUT-ME') ?></dt>
 				<dd><?= @$escape(@$personInfo['aboutMe']) ?></dd>
				<?php endif; ?>

				<?php if( @$globalParams->get('person_activities', 1) && @$personInfo['activities']) : ?>
				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-ACTIVITIES') ?></dt>
 				<dd><?= @$escape(@$personInfo['activities']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_interests', 1) && @$personInfo['interests']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-INTERESTS') ?></dt>
 				<dd><?= @$escape(@$personInfo['interests']) ?></dd>
 				<?php endif; ?>

				<?php if( @$globalParams->get('person_books', 1) && @$personInfo['books']) : ?>
				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-BOOKS') ?></dt>
 				<dd><?= @$escape(@$personInfo['books']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_quotes', 1) && @$personInfo['quotes']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-QUOTES') ?></dt>
 				<dd><?= @$escape(@$personInfo['quotes']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_heroes', 1) && @$personInfo['heroes']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-HEROES') ?></dt>
 				<dd><?= @$escape(@$personInfo['heroes']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_music', 1) && @$personInfo['music']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-MUSIC') ?></dt>
 				<dd><?= @$escape(@$personInfo['music']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_tv_shows', 1) && @$personInfo['tvShows']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-TV-SHOWS') ?></dt>
 				<dd><?= @$escape(@$personInfo['tvShows']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_movies', 1) && @$personInfo['movies']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-MOVIES') ?></dt>
 				<dd><?= @$escape(@$personInfo['movies']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_sports', 1) && @$personInfo['sports']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-SPORTS') ?></dt>
 				<dd><?= @$escape(@$personInfo['sports']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_food', 1) && @$personInfo['food']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-FOOD') ?></dt>
 				<dd><?= @$escape(@$personInfo['food']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_cars', 1) && @$personInfo['cars']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-CARS') ?></dt>
 				<dd><?= @$escape(@$personInfo['cars']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_humor', 1) && @$personInfo['humor']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-HUMOR') ?></dt>
 				<dd><?= @$escape(@$personInfo['humor']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_fashion', 1) && @$personInfo['fashion']) : ?> 
 				<?php $tabHasData[1] = true; ?>				
 				<dt><?= @text('AN-SE-PERSON-FIELD-FASHION') ?></dt>
 				<dd><?= @$escape(@$personInfo['fashion']) ?></dd>
 				<?php endif; ?>
				
				<?php if( @$globalParams->get('person_drinker', 1) && @$personInfo['drinker']) : ?>
				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-DRINKER') ?></dt>
 				<dd><?= @text('AN-SE-PERSON-SELECT-DRINKER-'.@$personInfo['drinker']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_smoker', 1) && @$personInfo['smoker']) : ?>
 				<?php $tabHasData[1] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-SMOKER') ?></dt>
 				<dd><?= @text('AN-SE-PERSON-SELECT-SMOKER-'.@$personInfo['smoker']) ?></dd>
				<?php endif; ?>
 			</dl>
 			
 			<?php if($tabHasData[1] == false): ?>
 			<div class="an-se-message"><?= @text('AN-SE-ACTOR-INFO-TAB-HAS-NO-DATA') ?></div>
 			<?php endif; ?>
 		</div>

 		<div class="an-se-tabpanel">
 						 			
 			<dl class="an-se-actor-info an-se-person-info">
 				
 				<?php if( @$globalParams->get('person_job_interests', 1) && @$personInfo['jobInterests']) : ?>
 				<?php $tabHasData[2] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-JOB-INTERESTS') ?></dt>
 				<dd><?= @$escape(@$personInfo['jobInterests']) ?></dd>
 				<?php endif; ?>

				<?php if( @$globalParams->get('person_living_arrangement', 1) && @$personInfo['livingArrangement']) : ?>
				<?php $tabHasData[2] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-LIVING-ARRANGEMENT') ?></dt>
 				<dd><?= @$escape(@$personInfo['livingArrangement']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_children', 1) && @$personInfo['children']) : ?>
 				<?php $tabHasData[2] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-CHILDREN') ?></dt>
 				<dd><?= @$escape(@$personInfo['children']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_pets', 1) && @$personInfo['pets']) : ?>
 				<?php $tabHasData[2] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-PETS') ?></dt>
 				<dd><?= @$escape(@$personInfo['pets']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_scared_of', 1) && @$personInfo['scaredOf']) : ?>
 				<?php $tabHasData[2] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-SCARED-OF') ?></dt>
 				<dd><?= @$escape(@$personInfo['scaredOf']) ?></dd>
 				<?php endif; ?>
 			</dl>
 			
 			<?php if($tabHasData[2] == false): ?>
 			<div class="an-se-message"><?= @text('AN-SE-ACTOR-INFO-TAB-HAS-NO-DATA') ?></div>
 			<?php endif; ?>
 		</div>
 
 		<div class="an-se-tabpanel"> 			 			
 			<dl class="an-se-actor-info an-se-person-info">
 			
 				<?php if( @$globalParams->get('person_romance', 1) && @$personInfo['romance']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-ROMANCE') ?></dt>
 				<dd><?= @$escape(@$personInfo['romance']) ?></dd>
 				<?php endif; ?>
 			
 				<?php if( @$globalParams->get('person_ethnicity', 1) && @$personInfo['ethnicity']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-ETHNICITY') ?></dt>
 				<dd><?= @$escape(@$personInfo['ethnicity']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_sexual_orientation', 1) && @$personInfo['sexualOrientation']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-SEXUAL-ORIENTATION') ?></dt>
 				<dd><?= @text('AN-SE-PERSON-SELECT-SEXUALORIENTATION-'.@$personInfo['sexualOrientation']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_turn_ons', 1) && @$personInfo['turnOns']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-TURN-ONS') ?></dt>
 				<dd><?= @$escape(@$personInfo['turnOns']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_turn_offs', 1) && @$personInfo['turnOffs']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-TURN-OFFS') ?></dt>
 				<dd><?= @$escape(@$personInfo['turnOffs']) ?></dd>
 				<?php endif; ?>
 			
 				<?php if( @$globalParams->get('person_build', 1) && @$personInfo['build']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-BUILD') ?></dt>
 				<dd><?= @$escape(@$personInfo['build']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_eye_color', 1) && @$personInfo['eyeColor']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-EYE-COLOR') ?></dt>
 				<dd><?= @$escape(@$personInfo['eyeColor']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_hair_color', 1) && @$personInfo['hairColor']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-HAIR-COLOR') ?></dt>
 				<dd><?= @$escape(@$personInfo['hairColor']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_height', 1) && @$personInfo['height']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-HEIGHT') ?></dt>
 				<dd><?= @$escape(@$personInfo['height']) ?></dd>
 				<?php endif; ?>
 				
 				<?php if( @$globalParams->get('person_weight', 1) && @$personInfo['weight']) : ?>
 				<?php $tabHasData[3] = true; ?>
 				<dt><?= @text('AN-SE-PERSON-FIELD-WEIGHT') ?></dt>
 				<dd><?= @$escape(@$personInfo['weight']) ?></dd>
 				<?php endif; ?>
 			</dl>
 			
 			<?php if($tabHasData[3] == false): ?>
 			<div class="an-se-message"><?= @text('AN-SE-ACTOR-INFO-TAB-HAS-NO-DATA') ?></div>
 			<?php endif; ?> 			
 		</div>
 	</div>
</div>
<div class="clr"></div>
Return current item: Anahita Social Engine