Location: PHPKode > scripts > Ajaxmint Gallery > ajaxmint-gallery/admin/app/controller/layout.php
<?php
/**
***************************************************************************************************
 * @Software    AjaxMint Gallery
 * @Author      Rajapandian - hide@address.com
 * @Copyright   Copyright (c) 2010-2011. All Rights Reserved.
 * @License     GNU GENERAL PUBLIC LICENSE
 **************************************************************************************************
 This source code is licensed under the terms of the GNU GENERAL PUBLIC LICENSE
 http://www.gnu.org/licenses/gpl.html
 **************************************************************************************************
 Copyright (c) 2010-2011 http://ajaxmint.com. All Rights Reserved.
 **************************************************************************************************
**/
  
class ControllerLayout extends Controller {
    protected function index() {

        $this->data['title'] = $this->config->get('config_site_title');
        $this->data['description'] = $this->config->get('config_site_description');
        $this->data['base'] = HTTP_SERVER.'/';
        
        $layoutMain = array();
        $layoutMain['logout'] = $this->url->http('login/logout');
        $this->data['showmenu'] = false;	        
        if($this->user->isLogged())
              $this->data['showmenu'] = true;		           
            
        $this->data['logo'] = $this->config->get('config_logo');
        $this->data['icon'] = $this->config->get('config_icon');

        $this->template = $this->config->get('config_template') . 'layout.php';                
        $this->render();
    }
}
?>
Return current item: Ajaxmint Gallery