// change header and footer smarty inclusion

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8697 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-09-21 15:26:44 +00:00
parent fc6530d1f5
commit 14f55eccb7
3 changed files with 15 additions and 9 deletions
+2 -5
View File
@@ -27,16 +27,13 @@
class AdminTools extends AdminController
{
public $template = 'adminTools.tpl';
public function __construct()
{
$this->className = 'AdminTools';
parent::__construct();
}
public function display()
{
parent::display();
$this->context->smarty->display('adminTools.tpl');
}
}
-2
View File
@@ -24,11 +24,9 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{include file='header.tpl'}
<fieldset>
<legend><img src="../img/admin/tab-tools.gif" />{l s='Shop Tools'}</legend>
<p>{l s='Several tools are available to manage your shop.'}</p>
<br />
<p>{l s='Please choose a tool by selecting a Tools sub-tab above.'}</p>
</fieldset>
{include file='footer.tpl'}
+13 -2
View File
@@ -3,6 +3,11 @@ class AdminController extends Controller
{
public $path;
public $content;
public $content_only = false;
public $layout = 'index.tpl';
/** @var string Associated table name */
public $table;
@@ -116,7 +121,14 @@ class AdminController extends Controller
public function display()
{
if ($this->content_only)
$this->context->smarty->display($this->template);
else
{
$this->content = $this->context->smarty->fetch($this->template);
$this->context->smarty->assign('content', $this->content);
$this->context->smarty->display($this->layout);
}
}
/**
@@ -267,7 +279,6 @@ class AdminController extends Controller
$this->context->smarty->assign('css_files', $this->css_files);
$this->context->smarty->assign('js_files', array_unique($this->js_files));
//$this->context->smarty->display(_PS_ADMIN_DIR_.'/themes/header.tpl');
}
/**