// change header and footer smarty inclusion
This commit is contained in:
@@ -27,16 +27,13 @@
|
|||||||
|
|
||||||
class AdminTools extends AdminController
|
class AdminTools extends AdminController
|
||||||
{
|
{
|
||||||
|
public $template = 'adminTools.tpl';
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->className = 'AdminTools';
|
$this->className = 'AdminTools';
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function display()
|
|
||||||
{
|
|
||||||
parent::display();
|
|
||||||
$this->context->smarty->display('adminTools.tpl');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,11 +24,9 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
|
||||||
{include file='header.tpl'}
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><img src="../img/admin/tab-tools.gif" />{l s='Shop Tools'}</legend>
|
<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>
|
<p>{l s='Several tools are available to manage your shop.'}</p>
|
||||||
<br />
|
<br />
|
||||||
<p>{l s='Please choose a tool by selecting a Tools sub-tab above.'}</p>
|
<p>{l s='Please choose a tool by selecting a Tools sub-tab above.'}</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{include file='footer.tpl'}
|
|
||||||
@@ -3,6 +3,11 @@ class AdminController extends Controller
|
|||||||
{
|
{
|
||||||
public $path;
|
public $path;
|
||||||
|
|
||||||
|
public $content;
|
||||||
|
|
||||||
|
public $content_only = false;
|
||||||
|
public $layout = 'index.tpl';
|
||||||
|
|
||||||
/** @var string Associated table name */
|
/** @var string Associated table name */
|
||||||
public $table;
|
public $table;
|
||||||
|
|
||||||
@@ -116,7 +121,14 @@ class AdminController extends Controller
|
|||||||
|
|
||||||
public function display()
|
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('css_files', $this->css_files);
|
||||||
$this->context->smarty->assign('js_files', array_unique($this->js_files));
|
$this->context->smarty->assign('js_files', array_unique($this->js_files));
|
||||||
//$this->context->smarty->display(_PS_ADMIN_DIR_.'/themes/header.tpl');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user