add(array( 'title'=>'Welcome to lnApp (public)!', 'subtitle'=>'Using lnApp', 'body'=>'Sample lnApp application', 'footer'=>'lnApp makes building websites easy! '.time(), )); if (Auth::instance()->logged_in()) { $this->template->control = HTML::anchor('/logout',_('Logout'),array('id'=>'ajxbody')); } else { $this->template->control = HTML::anchor('/login',_('Login'),array('id'=>'ajxbody')); Script::add(array('type'=>'stdin','data'=>' $(document).ready(function() { $("#ajxbody").click(function() {$("#ajBODY").load("'.URL::site('/login').'",null,function(x,s,r) {}); return false;}); $("#ajBODY").ajaxSend(function() {$(this).html(\''.sprintf('%s %s<\/span>...',HTML::image('media/img/ajax-progress.gif',array('alt'=>_('Loading Login').'...')),_('Loading Login')).'\');return true;}); });' )); } $this->template->content = $block; } } ?>