<?php
if (isset($i_am))
{
if ($i_am->id != $infouser->id)
{
$friend = new friend($dbo);
if ($friend->Exists($infouser->id, $i_am->id))
{
?>
<div id="liveProfileEdit_buttonHolder">
<a style="float: right;font-size: 10px;" class="liveProfileEdit live-edit-sprite" href="/<?php echo $infouser->login ?>/gifts/select">
<span class="live-edit-sprite">
текст
</span>
</a>
</div>
<?php
}
else
{
?>
<div id="liveProfileEdit_buttonHolder">
<a style="float: right;font-size: 10px;" class="liveProfileEdit live-edit-sprite" href="/<?php echo $infouser->login ?>/gifts/select">
<span class="live-edit-sprite">
текст
</span>
</a>
</div>
<?php
}
unset($friend);
}
else
{
?>
<div id="liveProfileEdit_buttonHolder">
<a class="liveProfileEdit live-edit-sprite" href="/account/settings" data-rlt-aid="profile_edit_show">
<span class="live-edit-sprite">
текст
</span>
</a>
</div>
<?php
}
}
else
{
}
?>