<?php

// FrosT.Infernal.Customs.Box.Plugin - login.tpl file - v.1.0.3

if ($is_logged == TRUE){

if (trim($member_id['foto']) == "") {
$foto ="{THEME}/images/noavatar.png";
} else {
$foto = $config['http_home_url']."uploads/fotos/".$member_id['foto'];
}

$login_panel = <<<HTML
				   
HTML;

if ($user_group[$member_id['user_group']]['allow_admin']) {
$login_panel .= <<<HTML
                                 
HTML;
}
else {
$login_panel .= <<<HTML

HTML;

if ($user_group[$member_id['user_group']]['allow_admin']) {
$login_panel .= <<<HTML


HTML;
}
                                
HTML;
}
$login_panel .= <<<HTML


	<div id='account' style='padding:10px; background:#d1d1d1;'>
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_info.png" border="0" width="16" height="16" />&nbsp; <h_user>Labas, {$member_id['name']} </h_user>
		<div style="margin-top:10px;margin-bottom:10px;"><img style="border:0px solid #e9e9e9;" width="72" height="72" src="{$foto}"></div>
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_profile.png" border="0" width="16" height="16" />&nbsp; <a class="copy"  href="{$link_profile}">Profilis</a><br />
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_pm.png" border="0" width="16" height="16" />&nbsp; <a class="copy"  href="{$link_pm}">Asmeniniai pranešimai ({$member_id['pm_unread']} | {$member_id['pm_all']})</a> <br />
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_add_news.png" border="0" width="16" height="16" />&nbsp; <a class="copy"  href="{$link_addnews}">Pridėti dainą</a><br />
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_pin.png" border="0" width="16" height="16" />&nbsp; <a class="copy" href="{$link_favorites}">Mėgstamiausios</a><br />
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_news.png" border="0" width="16" height="16" />&nbsp; <a class="copy" href="{$link_newposts}">Neperžiūrėtos</a><br />
        <img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_admin.png" border="0" width="16" height="16" />&nbsp; <a href="{$adminlink}" target="_blank">Administracija</a><br /><br />
        <img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_exit.png" border="0" width="16" height="16" />&nbsp; <a class="login-e copy" onclick="javascript: showBusyLayer()" href="{$link_logout}">Atsijungti</a><br />
	</div>
HTML;

} else {
$login_panel = <<<HTML

<a id="autorize_btn" href="#" style="color:Red">Prisijungti/Registruotis</a>
<!-- This contains for autorisation -->		 
<div class='hidden'>
	<div id='autorize' style='padding:10px; background:#fff;'>
	<form method="post" onsubmit="javascript:showBusyLayer()">
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/user_arrow.png" border="0" width="16" height="16" />
			vartotojas :&nbsp;&nbsp; <input name="login_name" type="text" class="a_field" style="width:230px" /><br>
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/key_arrow.png" border="0" width="16" height="16" />
			slaptažodis :&nbsp;&nbsp; <input name="login_password" type="password" class="a_field" style="width:230px" />
		<br />
		<br />
		<div align="center"><input onclick="submit();" name="image" type="image" src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/enter_btn.png" style="width:100px; height:23px; border:0" /><input name="login" type="hidden" id="login" value="submit" /></div>
		<br />
		<br />
	</form>
	    <img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/openid.png" border="0" width="16" height="16" />&nbsp; <script src="/engine/ajax/loginza.js" type="text/javascript"></script><a href="https://loginza.ru/api/widget?token_url={$config['http_home_url']}?do=loginza"class="loginza">Prisijungti su OpenID</a>
		<br />
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/crown_arrow.png" border="0" width="16" height="16" />&nbsp; <a href="{$link_regist}">Registracija</a>
		<br />
		<img src="{THEME}/js/FrosT.Infernal.Customs.Box.Plugin/images/help.png" border="0" width="16" height="16" />&nbsp; <a href="{$link_lost}">Primintis slaptažodį?</a>
	</div>
</div>

HTML;
}
?>