Location: PHPKode > projects > JakCMS > JAKCMS_PRO_2_2_6/upload/template/jakcms/profile.html
{include="header"}
		<div id="content">
		<div id="content_final_wide">
		<?php if ($JAK_LOG && $JAK_USERNAME_LINK == $JAK_PAGE1) { ?>
		<div class="moderate">
		<a href="{$BASE_URL}{$P_USR_PROFILE_EDIT}" title="{$tl.general.g}"><img src="{$BASE_URL}template/{$JAK_TEMPLATE}/img/prof_edit.png" width="16" height="15" alt="edit" /></a>
		</div>
		<?php } ?>
		<?php if ($PAGE_ACTIVE) { ?>
		<div class="status-failure">{$tl.errorpage.ep}</div>
		<?php } ?>
		
		<?php if ($JAK_PROFILE_DATA) { ?>
		<?php if ($PAGE_TITLE) { ?><h1>{$PAGE_TITLE}</h1><?php } ?>
		<div style="float:left;width:200px;margin-top:10px;">
		<div class="profava">
		<img src="<?php if ($JAK_PROFILE_DATA["localfile"] == 1) { ?>{$JAK_AVATARPATH_BASE}<?php } ?>{$JAK_PROFILE_DATA.picture}" alt="{$JAK_PROFILE_DATA.username}" />
		</div>
		<?php if ($JAK_LOG && $JAK_USERNAME_LINK == $JAK_PAGE1 && $JAK_USER_PM) { ?>
		<div class="profcat">{$tl.general.g122}</div>
		<div class="profpmin"><a href="{$BASE_URL}{$P_USR_PROFILE_PM}">{$tl.general.g119}</a></div>
		<div class="profpmout"><a href="{$BASE_URL}{$P_USR_PROFILE_PM_OUT}">{$tl.general.g120}</a></div>
		<div class="profpmnew"><a href="{$BASE_URL}{$P_USR_PROFILE_PM_NEW}">{$tl.general.g121}</a></div>
		<?php } else { ?>
		<?php if ($JAK_USER_PM) { ?>
		<div class="profcat">{$tl.general.g122}</div>
		<div class="profpmin"><a href="{$BASE_URL}{$JAK_PROFILE_DATA.parseurl}">{$tl.general.g159}</a></div>
		<?php } ?>
		<?php } ?>
		<div class="profcat">{$tl.general.g137}</div>
		<ul class="profdet">
		<li>{$tl.login.l1}: <span>{$JAK_PROFILE_DATA.username}</span></li>
		<li>{$tl.general.g4}<span>{$JAK_PROFILE_DATA.time}</span></li>
		<li>{$tl.general.g153}<span>{$JAK_PROFILE_DATA.hits}</span></li>
		<?php if ($JAK_PLUGIN_ACCESS_FORUM) { ?>
		<li>{$tl.general.g5}<span>{$JAK_PROFILE_DATA.forumpost}</span></li>
		<?php } ?>
		<?php if ($JAK_PLUGIN_ACCESS_BLOG) { ?>
		<li>{$tl.general.g141}<span>{$JAK_PROFILE_DATA.blogpost}</span></li>
		<?php } ?>
		<?php if ($JAK_PLUGIN_ACCESS_EVENT) { ?>
		<li>{$tl.general.g142}<span>{$JAK_PROFILE_DATA.eventpost}</span></li>
		<?php } ?>
		<?php if ($JAK_PLUGIN_ACCESS_GALLERY) { ?>
		<li>{$tl.general.g143}<span>{$JAK_PROFILE_DATA.gallerypost}</span></li>
		<?php } ?>
		<?php if ($JAK_PLUGIN_ACCESS_VIDEO) { ?>
		<li>{$tl.general.g152}<span>{$JAK_PROFILE_DATA.videopost}</span></li>
		<?php } ?>
		<?php if ($JAK_PROFILE_DATA.weburl) { ?>
		<li>{$tl.general.g144}<span><a style="text-decoration:none;" href="{$JAK_PROFILE_DATA.weburl}">{$tl.general.g9}</a></span></li>
		<?php } ?>
		</ul>
		
		<!-- Get the hook for the profile on top -->
		<?php if (isset($JAK_HOOK_PROFILE_TOP) && is_array($JAK_HOOK_PROFILE_TOP)) foreach($JAK_HOOK_PROFILE_TOP as $hpt) { ?>
		{include="{$hpt}"}
		<?php } ?>
		
		<?php if ($JAK_EVENT_DATA) { ?>
		<div class="profcat">{$tl.general.g92}</div>
		<?php } ?>
		<?php if (isset($JAK_EVENT_DATA) && is_array($JAK_EVENT_DATA)) foreach($JAK_EVENT_DATA as $e) { ?>
		<div class="profevent"><a href="{$BASE_URL}{$e.parseurle}">{$e.eventtitle}</a></div>
		<?php } ?>
		<?php if ($JAK_FORUM_DATA) { ?>
		<div class="profcat">{$tl.general.g94}</div>
		<?php } ?>
		<?php if (isset($JAK_FORUM_DATA) && is_array($JAK_FORUM_DATA)) foreach($JAK_FORUM_DATA as $f) { ?>
		<div class="profforum"><a href="{$BASE_URL}{$f.parseurlf}">{$f.forumtitle}</a></div>
		<?php } ?>
		<?php if ($JAK_BLOG_DATA) { ?>
		<div class="profcat">{$tl.general.g95}</div>
		<?php } ?>
		<?php if (isset($JAK_BLOG_DATA) && is_array($JAK_BLOG_DATA)) foreach($JAK_BLOG_DATA as $b) { ?>
		<div class="profblog"><a href="{$BASE_URL}{$b.parseurlb}">{$b.blogtitle}</a></div>
		<?php } ?>
		<?php if ($JAK_VIDEO_DATA) { ?>
		<div class="profcat">{$tl.general.g168}</div>
		<?php } ?>
		<?php if (isset($JAK_VIDEO_DATA) && is_array($JAK_VIDEO_DATA)) foreach($JAK_VIDEO_DATA as $vi) { ?>
		<div class="profvideo"><a href="{$BASE_URL}{$vi.parseurlv}">{$vi.videotitle}</a></div>
		<?php } ?>
		<?php if ($JAK_GALLERY_DATA) { ?>
		<div class="profcat">{$tl.general.g96}</div>
		<?php } ?>
		<?php if (isset($JAK_GALLERY_DATA) && is_array($JAK_GALLERY_DATA)) foreach($JAK_GALLERY_DATA as $g) { ?>
		<div class="profgal"><a href="{$BASE_URL}{$g.parseurlg}">{$g.phototitle}</a></div>
		<?php } ?>
		</div>
		
		<!-- Get the profile hook -->
		<?php if (isset($JAK_HOOK_PROFILE_BOTTOM) && is_array($JAK_HOOK_PROFILE_BOTTOM)) foreach($JAK_HOOK_PROFILE_BOTTOM as $hpb) { ?>
		{include="{$hpb}"}
		<?php } ?>
		
		<!-- What the user has to say -->
		<div style="float:right;width:680px;margin-top:10px;padding-left:10px;">
		<h2>{$tl.general.g93}</h2>
		{$JAK_PROFILE_DATA.userabout}
		
		<!-- Get the usercomments -->
		<?php if ($JAK_USERCOM) { ?>
		<h2>({$JAK_USER_TOTALCOM}) {$tl.general.g90}</h2>
		<div class="comments">
		<ol>
		<?php } ?>
		<?php if (isset($JAK_USERCOM) && is_array($JAK_USERCOM)) foreach($JAK_USERCOM as $v) { ?>
		<li>
		<div class="avatar">
		<?php if ($v["picture"]) { if ($v["userid"] != 0) { ?><a href="{$BASE_URL}{$v.parseurl}"><?php } ?><img src="<?php if ($v["localfile"] == 1) { ?>{$JAK_AVATARPATH_BASE}<?php } ?>{$v.picture}" alt="{$v.name}" /><?php } else { ?><img src="{$BASE_URL}profilepicture/standard_s.png" alt="pic" /><?php if ($v["userid"] != 0) { ?></a><?php } } ?>
		</div>
		<div class="commentp">
		<h5><?php if ($v["userid"] != 0) { ?><a href="{$BASE_URL}{$v.parseurl}">{$v.fromusername}</a><?php } else { ?>{$v.fromusername}<?php } ?> <span>{$tl.general.g15}{$v.created}</span></h5>
		<?php if ($v["approve"] == 0) { ?>
		<div class="status-ok">{$tl.general.g167}</div>
		<?php } ?>
		{$v.message}
		<!-- Moderate functions -->
		<?php if ($v["userid"] == $JAK_USERID || $JAK_ASACCESS) { ?>
		<div class="moderate">
		<a class="pdelete" href="{$BASE_URL}{$v.parseurl2}" title="{$tl.general.g22}" onclick="if(!confirm('{$tl.general.del}'))return false;">&nbsp;</a>
		<?php if ($v["approve"] == 0) { ?>
		<a class="pdapprove" href="{$BASE_URL}{$v.parseurl1}" title="{$tl.general.g106}" onclick="if(!confirm('{$tl.general.ap}'))return false;">&nbsp;</a>
		<?php } ?>
		<a class="ptrash" href="{$BASE_URL}{$v.parseurl3}" title="{$tl.general.g147}" onclick="if(!confirm('{$tl.general.del}'))return false;">&nbsp;</a>
		</div>
		<?php } ?>
		<div class="border"></div>
		  <div class="arrow"></div>
		</div>
		</li>
		<?php } ?>
		
		<?php if ($JAK_USERCOM) { ?>
		</ol>
		</div>
		<?php } ?>
		
		<?php if ($JAK_PAGINATE) { ?>
		<div>{$JAK_PAGINATE}</div>
		<div class="clear">&nbsp;</div>
		<?php } ?>
		
		<!-- show editor -->
		<?php if ($PAGE_SHOW_EDITOR) { ?>
		<h2>{$tl.general.g16}</h2>
		<?php if ($errors) { ?>
		<div class="status-failure">{$errors.e}{$errors.e1}</div>
		<?php } ?>
		<form class="editor" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
		<p>
		<textarea name="userpost" class="jakEditor" rows="15" cols="10"><?php echo $_REQUEST["userpost"]; ?></textarea>
		<div class="editorsave">
		<button type="submit" name="subcom" class="editorbutton">{$tl.general.g10}</button>
		</div>
		<?php if ($JAK_LOG) { ?>
		<input type="hidden" name="name" value="{$JAK_USERNAME}" />
		<?php } ?>
		</p>
		</form>
		<?php } ?>
		</div>
		<?php } ?>
		<!-- No profile exit fire error -->
		<?php if ($JAK_NO_PROFILE) { ?>
		<h2>{$JAK_NO_PROFILE}</h2>
				<p>{$tl.error.e5}</p>
				<ul>
		<li>{$tl.error.e6}</li>
		<li>{$tl.error.e7}</li>
		<li>{$tl.error.e8}</li>
		</ul>
		<p><a href="{$BASE_URL}">{$tl.error.e9}</a></p>
		<?php } ?>
		</div>
		</div><!-- #content -->
{include="footer"}
Return current item: JakCMS