start to create install template

This commit is contained in:
Manuel Raynaud
2013-09-02 17:27:11 +02:00
parent 347d3050f3
commit 384b0cd355
5 changed files with 48 additions and 3 deletions

View File

@@ -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);

View File

@@ -31,4 +31,8 @@ use Thelia\Install\BaseInstall;
*/ */
class InstallController extends BaseInstallController { class InstallController extends BaseInstallController {
public function index()
{
$this->render("index.html");
}
} }

View File

@@ -0,0 +1,17 @@
<hr />
<footer class="footer">
<div class="container">
<p>{intl l='&copy; 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>

View 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>

View File