php.mbstring.internal_encoding = "%encoding%"\r
\r
; vars\r
-variable.site = empty\r
+variable.site = Demo Eywa\r
variable.lang = cs\r
variable.tempDir = %appDir%/../temp\r
variable.logDir = %appDir%/../log\r
-variable.mailFrom = info@intya.cz\r
-variable.mailReturnPath = info@intya.cz\r
+variable.mailFrom = jan.prachar@gmail.com\r
+variable.mailReturnPath = jan.prachar@gmail.com\r
variable.facebookAppId =\r
variable.facebookSecret =\r
variable.allowRobots = TRUE\r
service.Eywa-CMS-Repository.factory = 'Eywa\CMS\Repository'\r
\r
service.Eywa-CMS-Repository-IStorage.factory = 'Eywa\CMS\Repository\Storage\CouchDB'\r
-service.Eywa-CMS-Repository-IStorage.option.database = empty\r
+service.Eywa-CMS-Repository-IStorage.option.database = demo\r
\r
service.Eywa-Application-IFileLoaderFactory.factory = 'Eywa\CMS\Application\FileLoaderFactory'\r
\r
--- /dev/null
+<?php
+namespace Eywa\CMS\Presenters;
+
+use Eywa\Forms\ContactForm;
+
+
+/**
+ * @title Kontaktní formulář
+ * @model Eywa\CMS\Model\Page
+ */
+class Contact extends Base
+{
+
+ public function actionDefault($path)
+ {
+
+ }
+
+
+
+ public function createComponentContactForm()
+ {
+ $form = new ContactForm;
+ $form->to[] = "jan.prachar@gmail.com";
+
+ return $form;
+ }
+
+}
<?php
namespace Eywa\CMS\Presenters;
-use Eywa\CMS\Navigation;
+use Eywa\CMS\Components\Overview;
class Homepage extends Base
{
+ public function createComponentJobs()
+ {
+ $jobs = new Overview;
+
+ $jobs->setPath('//www/volne-pozice');
+ $jobs->setLimit(3);
+ $jobs->setOrder('ctime', 'desc');
+
+ return $jobs;
+ }
}
</div>
<div id="header">
- <a id="logo" href="{dlink '//www'}" title="">Název</a>
+ <a id="logo" href="{dlink '//www'}" title="">EYWA CMS Demo</a>
<div id="navcontainer">
{control navigation}
--- /dev/null
+{block #content}
+
+<div id="content">
+ <h1>{$heading}</h1>
+ <div id="editable">
+ {!$document->html}
+ </div>
+
+
+ <div class="contactForm">
+ <h2>{_'Napište nám'}</h2>
+ {control contactForm 'begin'}
+ {control contactForm 'errors'}
+
+ {if !Nette\Environment::getUser()->isLoggedIn()}
+ <p>
+ {$control['contactForm']['author_name']->label}
+ {$control['contactForm']['author_name']->control}
+ </p>
+ <p>
+ {$control['contactForm']['email']->label}
+ {$control['contactForm']['email']->control}
+ </p>
+ {/if}
+ <p>
+ {$control['contactForm']['text']->label}
+ {$control['contactForm']['text']->control}
+ </p>
+ <p>
+ {$control['contactForm']['send']->control}
+ </p>
+ {control contactForm 'end'}
+ </div>
+ <div class="clear"></div>
+</div>
<div id="editable">
{!$document->html}
</div>
+
+ <h2>Volné pozice</h2>
+ <ul>
+ {foreach $control['jobs']->documents as $item}
+ <li>
+ <a href="{dlink $item->path}" title="{$item->title}">{$item->name}</a>
+ </li>
+ {/foreach}
+ </ul>
</div>
-body {}
+body {background:#fff;}
p, ol, ul {padding-bottom: 10px;}
ol, ul {font-size: 1.5em; margin-left: 30px; line-height: 1.5em;}
ol>li, ul>li {list-style-type: circle;}
-ol ol, ol ul, ul ol, ul ul {padding-bottom: 0px; margin-left: 15px;}
-li li {list-style-type: square;}
\ No newline at end of file
+ol ol, ol ul, ul ol, ul ul {font-size: 1em; padding-bottom: 0px; margin-left: 15px;}
+li li {list-style-type: square;}
\r
* {margin: 0; padding: 0; list-style:none;}\r
html {font-size: 62.5%; font-family: Arial, Helvetica, sans-serif; height: 100%;}\r
-body {height: 100%;}\r
+body {height: 100%;color: #333333;background: #ccc;}\r
\r
\r
/* BASIC */\r
h2 {font-size: 2.4em; padding: 10px 0; font-weight: bold;}\r
h3 {font-size: 1.8em; padding: 10px 0; font-weight: normal;}\r
a {\r
+ color: #9900FF;\r
&:hover {text-decoration: none;}\r
- img {}\r
+ img {border:2px solid #333; padding:1px;}\r
}\r
hr {border: none; border-top: 1px solid #333; margin: 0 0 15px;}\r
-th {}\r
-td {}\r
+th { font-size:1.2em; text-transform:uppercase; text-align:left; padding:10px; background-color:#CFBCA3}\r
+td { background-color:#E7DCCB; vertical-align: top; padding:10px;}\r
+tfoot td {font-size:1.2em; font-weight:bold; text-align:left; padding:10px; background-color:#CFBCA3;}\r
label {display: block; float: left; width: 60px;}\r
\r
\r
.clear {display: block; width: 100%; height: 0; font-size: 0; overflow: hidden; clear: both;}\r
.hidden {display: none; speak: normal;}\r
.vanish {display: none; speak: none;}\r
+.button { font-size:1.4em; background-color:#FF8000; color:#fff; padding:.2em 1em .2em 1em; text-decoration:none; }\r
+.button:hover { background-color:#000;}\r
\r
\r
/* LAYOUT */\r
#page {position: relative; width: $width; margin: 0 auto; min-height: $header-height + $nav-height;}\r
#container {padding-top: $header-height + $nav-height;}\r
-#content {padding: 20px;}\r
-#header {position: absolute; top: 0px; left: 0px; width: $width; height: $header-height;\r
- #logo {position: absolute; top: 0px; left: 0px; display: block;}\r
+#content {background:#fff; padding:20px;}\r
+#header {position: absolute; top: 0px; left: 0px; width: $width; height: $header-height; background: transparent url("../images/header.jpg") 0 0 no-repeat;\r
+ #logo {position: absolute; top: 0px; left: 0px; display: block; width: 375px; height: 0; padding-top: 150px; background: transparent url("../images/logo.png") center no-repeat; overflow: hidden; font-size: 0; text-indent:-9999;}\r
}\r
-#footer {width: $width;}\r
+#footer {width: $width; height:30px; background: #000; margin-bottom:30px;}\r
+#footer p {padding-top: 5px; color:#ccc; font-size:1.4em; margin-left:10px;}\r
\r
\r
/* CONTENT */\r
p, ol, ul {padding-bottom: 10px;}\r
ol, ul {font-size: 1.5em; margin-left: 30px; line-height: 1.5em;\r
&>li {list-style-type: circle;}\r
- ol, ul {padding-bottom: 0px; margin-left: 15px;\r
+ ol, ul {font-size: 1em; padding-bottom: 0px; margin-left: 15px;\r
&>li {list-style-type: square;}\r
}\r
}\r
\r
\r
/* MENU */\r
-#navcontainer {padding-top: $header-height; height: $nav-height; font-size: 1.5em;\r
- &>ul {float: left; width: $width;\r
+#navcontainer {padding-top: $header-height; height: $nav-height;\r
+ &>ul {float: left; width: $width; background-color: #000; color: #fff; font-size:1.8em;\r
&>li {display: inline;\r
- &>a {float: left; text-decoration: none;}\r
- &.current>a, &.ancestor>a, &>a:hover {text-decoration: underline;}\r
+ &>a {float: left; text-decoration: none; padding: .6em 1em .6em 1em; background-color: #000; color: #fff; margin-right:1px;}\r
+ &>a:hover {background-color: #9900FF; color: #fff;}\r
+ &.current>a, &.ancestor>a {background-color: #fff; color:#000;}\r
}\r
}\r
-}
\ No newline at end of file
+}\r