Updated OSB to work with KH 3.1

This commit is contained in:
Deon George
2011-05-14 17:35:33 +10:00
parent 6d256839fc
commit 9dda9f43f4
42 changed files with 397 additions and 347 deletions

View File

@@ -19,11 +19,8 @@ class Controller_Welcome extends Controller_TemplateDefault {
'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'));
// @todo Show a login/logout on the breadcrumb
if (! Auth::instance()->logged_in()) {
Script::add(array('type'=>'stdin','data'=>'
$(document).ready(function() {
$("#ajxbody").click(function() {$("#ajBODY").load("'.URL::site('/login').'",null,function(x,s,r) {}); return false;});
@@ -31,8 +28,6 @@ class Controller_Welcome extends Controller_TemplateDefault {
});'
));
}
$this->template->content = Block::factory();
}
}
?>