diff options
author | emkael <emkael@tlen.pl> | 2016-06-07 15:17:49 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-06-10 11:46:41 +0200 |
commit | 823d71ced9b4947b1a5a5ade7245d521ed490061 (patch) | |
tree | a9a6c7cb0de74ff705e8320c284de423a698f5b5 /app/frontend/layouts | |
parent | df401552aac363655ab8f056a6c910a7611954d6 (diff) |
* renaming php directory
Diffstat (limited to 'app/frontend/layouts')
-rw-r--r-- | app/frontend/layouts/Layout.php | 11 | ||||
-rw-r--r-- | app/frontend/layouts/MainLayout.php | 9 | ||||
-rw-r--r-- | app/frontend/layouts/MainLayout.tpl | 22 |
3 files changed, 42 insertions, 0 deletions
diff --git a/app/frontend/layouts/Layout.php b/app/frontend/layouts/Layout.php new file mode 100644 index 0000000..324c69f --- /dev/null +++ b/app/frontend/layouts/Layout.php @@ -0,0 +1,11 @@ +<?php + +class Layout extends TTemplateControl { + + public function generateViewID() { + return $this->ViewID->Value ?: md5(mt_rand()); + } + +} + +?> diff --git a/app/frontend/layouts/MainLayout.php b/app/frontend/layouts/MainLayout.php new file mode 100644 index 0000000..5843952 --- /dev/null +++ b/app/frontend/layouts/MainLayout.php @@ -0,0 +1,9 @@ +<?php + +Prado::using('Application.layouts.Layout'); + +class MainLayout extends Layout { + +} + +?> diff --git a/app/frontend/layouts/MainLayout.tpl b/app/frontend/layouts/MainLayout.tpl new file mode 100644 index 0000000..0deb816 --- /dev/null +++ b/app/frontend/layouts/MainLayout.tpl @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <com:THead> + <com:TMetaTag HttpEquiv="Content-Type" Content="text/html; charset=utf-8" /> + <title><com:TContentPlaceHolder ID="Title" /></title> + </com:THead> + <body> + <com:TForm> + <header role="banner"> + <com:HeaderMenu /> + </header> + <main role="main"> + <com:TContentPlaceHolder ID="Content" /> + </main> + <footer role="contentinfo"> + </footer> + <com:THiddenField ID="ViewID"> + <prop:Value><%= $this->generateViewID() %></prop:Value> + </com:THiddenField> + </com:TForm> + </body> +</html> |