eval("\$variable = \"".$templates->get("plantilla")."\";");
<?php
eval("\$variable = \"".$templates->get("plantilla")."\";");
?>
{$variable}
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
$("ul.topnav li span").click(function() { //When trigger is clicked...
//Following events are applied to the subnav itself (moving subnav up and down)
$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
});
//Following events are applied to the trigger (Hover events for the trigger)
}).hover(function() {
$(this).addClass("subhover"); //On hover over, add class "subhover"
}, function(){ //On Hover Out
$(this).removeClass("subhover"); //On hover out, remove class "subhover"
});
});
</script>
<li style="float: right;"><a href="javascript:;" onclick="$('iniciar-sesion').toggle();"><strong>{$lang->welcome_login}</strong> <img src="{$theme['imgdir']}/down.gif" alt=">" /></a></li>
<li style="float: right;"><a href="{$mybb->settings['bburl']}/member.php?action=register"><strong>{$lang->welcome_register}</strong></a></li>
</ul>
<div id="iniciar-sesion" style="display: none;">
<form action="member.php" method="post">
<table border="0" cellspacing="0" cellpadding="6" class="tborder-iniciar-sesion">
<tr>
<td class="trow1"><strong>{$lang->username}</strong></td>
<td class="trow1" align="center"><input type="text" class="textbox" name="username" size="22" maxlength="{$mybb->settings['maxnamelength']}" style="width: 155px;" value="{$username}" /></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->password}</strong></td>
<td class="trow2" align="center"><input type="password" class="textbox" name="password" size="22" style="width: 155px;" value="{$password}" /></td>
</tr>
<tr>
<td class="trow1" align="center"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" checked="checked" value="yes" />{$lang->remember_me}</label></td>
<td class="trow1" align="center"><input type="submit" class="button" name="submit" value="{$lang->login}" /></td>
</tr>
<tr>
<td class="trow1" align="center" colspan="2"><span class="smalltext"><a href="{$mybb->settings['bburl']}/member.php?action=lostpw">{$lang->lost_password}</a></span></td>
</tr>
</table>
<input type="hidden" name="action" value="do_login" />
<input type="hidden" id="urlredir" name="url" value="" />
<script type="text/javascript">
document.getElementById("urlredir").value = location.href;
</script>
</form>
</div>