start to create install template
This commit is contained in:
@@ -41,17 +41,17 @@ class BaseInstallController extends BaseController
|
|||||||
$parser = $this->container->get("thelia.parser");
|
$parser = $this->container->get("thelia.parser");
|
||||||
|
|
||||||
// Define the template thant shoud be used
|
// Define the template thant shoud be used
|
||||||
$parser->setTemplate("install/default");
|
$parser->setTemplate("install");
|
||||||
|
|
||||||
return $parser;
|
return $parser;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render($templateName, $args)
|
public function render($templateName, $args = array())
|
||||||
{
|
{
|
||||||
return new Response($this->renderRaw($templateName, $args));
|
return new Response($this->renderRaw($templateName, $args));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderRaw($templateName, $args)
|
public function renderRaw($templateName, $args = array())
|
||||||
{
|
{
|
||||||
$data = $this->getParser()->render($templateName, $args);
|
$data = $this->getParser()->render($templateName, $args);
|
||||||
|
|
||||||
|
|||||||
@@ -31,4 +31,8 @@ use Thelia\Install\BaseInstall;
|
|||||||
*/
|
*/
|
||||||
class InstallController extends BaseInstallController {
|
class InstallController extends BaseInstallController {
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$this->render("index.html");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
17
templates/install/includes/footer.inc.html
Normal file
17
templates/install/includes/footer.inc.html
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
<hr />
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<p>{intl l='© Thelia 2013'}
|
||||||
|
- <a href="http://www.openstudio.fr/" target="_blank">{intl l='Édité par OpenStudio'}</a>
|
||||||
|
- <a href="http://forum.thelia.net/" target="_blank">{intl l='Forum Thelia'}</a>
|
||||||
|
- <a href="http://contrib.thelia.net/" target="_blank">{intl l='Contributions Thelia'}</a>
|
||||||
|
<span class="pull-right">{intl l='interface par <a target="_blank" href="http://www.steaw-webdesign.com/">Steaw-Webdesign</a>'}</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
24
templates/install/includes/header.inc.html
Normal file
24
templates/install/includes/header.inc.html
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{$lang_code}">
|
||||||
|
<head>
|
||||||
|
<title>{intl l='Thelia Back Office'}{if ! empty($page_title)} - {$page_title}{/if}</title>
|
||||||
|
|
||||||
|
{images file='../../admin/default/assets/img/favicon.ico'}<link rel="shortcut icon" href="{$asset_url}" />{/images}
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
{stylesheets file='../../admin/default/assets/bootstrap/css/bootstrap.css' filters='cssembed'}
|
||||||
|
<link rel="stylesheet" href="{$asset_url}">
|
||||||
|
{/stylesheets}
|
||||||
|
|
||||||
|
{stylesheets file='../../admin/default/assets/bootstrap/css/bootstrap-responsive.css' filters='cssembed'}
|
||||||
|
<link rel="stylesheet" href="{$asset_url}">
|
||||||
|
{/stylesheets}
|
||||||
|
|
||||||
|
|
||||||
|
{stylesheets file='../../admin/default/assets/css/*' filters='less,cssembed'}
|
||||||
|
<link rel="stylesheet" href="{$asset_url}">
|
||||||
|
{/stylesheets}
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
0
templates/install/index.html
Normal file
0
templates/install/index.html
Normal file
Reference in New Issue
Block a user