Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanelj committed Jan 8, 2015
0 parents commit 11b7dd4
Show file tree
Hide file tree
Showing 19 changed files with 1,490 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
.voog
7 changes: 7 additions & 0 deletions components/js.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% if site.search.enabled %}
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://static.edicy.com/assets/site_search/2.0/site_search.js"></script>
<script type="text/javascript" charset="utf-8">
var search_translations = {"search": "{{ "search"|lc }}", "close": "{{ "search_close"|lc }}", "noresults": "{{ "search_noresults"|lc }}"};
</script>
{% endif %}
18 changes: 18 additions & 0 deletions components/languagemenu.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

{% if editmode %}
<ul id="langmenu">
{% for language in site.languages %}
<li><a href="{{ language.url }}" {% if language.selected? %}class="active"{% endif %}>{{ language.title }}</a></li>
{% endfor %}
<li>{%languageadd%}</li>
</ul>
{% else %}
{% if site.has_many_languages? %}
<ul id="langmenu">
{% for language in site.languages %}
<li><a href="{{ language.url }}" {% if language.selected? %}class="active"{% endif %}>{{ language.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endif %}

9 changes: 9 additions & 0 deletions components/mainmenu.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<ul id="navmenu">
{% unless site.root_item.hidden? %}<li><a href="{{ site.root_item.url }}"{% if site.root_item.current? %} class="active"{% endif %}>{{site.root_item.title}}</a></li>{% endunless %}
{% for item in site.visible_menuitems %}
<li><a href="{{ item.url }}"{% unless item.translated? %} class="untranslated fci-editor-menuadd"{% endunless %}{% if item.selected? %} class="active"{% endif %}>{{ item.title }}</a></li>
{% endfor %}
{% if editmode %}<li>{% menubtn site.hidden_menuitems %}</li>{% endif %}
{% if editmode %}<li>{% menuadd %}</li>{% endif %}
</ul> <!-- //navmenu -->
<div class="clearer"></div>
12 changes: 12 additions & 0 deletions components/news.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div id="news">{% for article in site.latest_articles limit:1 %}&nbsp;
<h1>{{"news"|lc}}</h1>
<table>
{% for article in site.latest_5_articles %}
<tr>
<td class="first">{{ article.created_at | date:"%d.%m" }}</td>
<td><a href="{{ article.url }}" class="newslink">{{ article.title }}</a></td>
</tr>
{% endfor %}
</table>{% endfor %}
</div> <!-- //news -->

21 changes: 21 additions & 0 deletions components/siteheader.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<meta name="keywords" content="{{ page.keywords }}" />
<meta name="description" content="{{ page.description }}" />
<meta name="copyright" content="{{ site.copyright }}" />
<meta name="author" content="{{ site.author }}" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{% stylesheet_link "layout.css?detroit1" %}
{% stylesheet_link "style.css?detroit" %}
{% if editmode %}{% stylesheet_link "assets/admin/editmode.css" static_host="true" %}{% endif %}
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/ico" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

{% if site.search.enabled %}
{% stylesheet_link "assets/site_search/2.0/site_search.css" static_host="true" %}
<style type="text/css">
#navmenu {
width: 700px;
}
</style>
{% endif %}
<!--[if IE]><link rel="stylesheet" type="text/css" href="http://static.edicy.com/assets/ie.css" /><![endif]-->
21 changes: 21 additions & 0 deletions components/submenu.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% for item in site.all_menuitems %}
{% if item.selected? %}
{% if editmode %}
<ul id="submenu">
{% for level2 in item.visible_children %}
<li><a href="{{ level2.url }}"{% unless level2.translated? %} class="untranslated fci-editor-menuadd"{% endunless %}{% if level2.selected? %} class="active"{% endif %}>{{ level2.title }}</a></li>
{% endfor %}
<li>{% menubtn item.hidden_children %}</li>
<li>{% menuadd parent="item" %}</li>
</ul>
{% else %}
{% if item.children? %}
<ul id="submenu">
{% for level2 in item.children %}
<li><a href="{{ level2.url }}"{% if level2.selected? %} class="active"{% endif %}>{{ level2.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
Binary file added images/black.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/footer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/frontbox.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/search.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/shadow.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions layouts/blog___news.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
{% include "SiteHeader" %}
{{ blog.rss_link }}
<title>{{site.name}} &gt; {{page.title}}</title>
</head>

<body>

<div id="wrap">

{% include "Languagemenu" %}

<div id="container">

<div id="header">

{% include "Mainmenu" %}

{% if site.search.enabled %}
<form action="" id="search">
<div>
<input type="text" class="textbox" id="onpage_search" />
</div>
</form>
{% endif %}

</div> <!-- //header -->

{% include "submenu" %}

<div id="content">

<div id="content_left">

<div id="slogan">
<table>
<tr>
<td class="clearfix">
{% editable site.header %}
</td>
</tr>
</table>
</div> <!-- //slogan -->

<div id="content_left_inner">
<div id="content_left_inner2">
{% addbutton class="add-article" %}

{% for article in articles %}
<div class="blog">

<div class="blog_heading">

<h1><a href="{{ article.url }}">{{ article.title }}</a> <span>{{ article.created_at | format_date:"short" }}</span></h1>
<span>
<span>{{ article.author.name }}</span>
</span>

<div class="clearer"></div>
</div>
<div class="clearfix">
{{ article.excerpt }} <a href="{{ article.url }}">{{"read_more"|lc}}</a>, <a href="{{ article.url }}#comments">{{ "comments_for_count" | lc }}: {{article.comments_count}}</a><br />
</div>

</div> <!-- //blog -->
{% endfor %}
</div>
</div> <!-- //content_left_inner -->

</div> <!-- //content_left -->

<div id="content_right">


<div id="darkbox">

<div id="darkbox_inner">
<div id="darkbox_inner2" class="clearfix">
{% content name="product" xpage="true" %}
</div>
</div> <!-- //darkbox_inner -->

<div id="blackbox">
<div id="blackbox_inner" class="clearfix">
{% content name="product-inner" xpage="true" %}
</div>
</div> <!-- //blackbox -->
</div> <!-- //darkbox -->

</div> <!-- //content_right -->

<div class="clearer"></div>

</div> <!-- //content -->

</div> <!-- //container -->


</div> <!-- //wrap -->

<div id="footer">

<div id="footer_inner" class="clearfix">{% content name="footer" xpage="true" %}</div>

<div id="edicy">
{% loginblock %}{{ "footer_login_link" | lc }}{% endloginblock %}
</div>

</div> <!-- //footer -->

{% unless editmode %}{{ site.analytics }}{% endunless %}
{% include "JS" %}
</body>
</html>
164 changes: 164 additions & 0 deletions layouts/blog_article.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
{% include "SiteHeader" %}
{{ blog.rss_link }}
<title>{{article.title}} &laquo; {{page.title}} | {{site.name}}</title>
</head>

<body>

<div id="wrap">

{% include "Languagemenu" %}

<div id="container">

<div id="header">

{% include "Mainmenu" %}

{% if site.search.enabled %}
<form action="" id="search">
<div>
<input type="text" class="textbox" id="onpage_search" />
</div>
</form>
{% endif %}

</div> <!-- //header -->

{% include "submenu" %}

<div id="content">

<div id="content_left">

<div id="slogan">
<table>
<tr>
<td class="clearfix">
{% editable site.header %}

</td>
</tr>
</table>
</div> <!-- //slogan -->

<div id="content_left_inner">
<div id="content_left_inner2">
<div class="blog">

<div class="blog_heading">
<h1>{% editable article.title plain="true" %} <span>{{ article.created_at | format_date:"short" }}</span></h1>
<span>
<span>{{ article.author.name }}</span> &nbsp;

<div class="clearer"></div>
</div>
<div class="clearfix">
{% editable article.excerpt %}
</div>
<div id="articlebody" class="clearfix">
{% editable article.body %}
</div>
<div class="comment">
{% unless article.new_record? %}
<a name="comments"></a>
<h1>{{"comments_for_count"|lc}}: <span class="edy-site-blog-comments-count">{{ article.comments_count }}</span></h1>

{% endunless %}
{% for comment in article.comments %}



<div class="comment_inner edy-site-blog-comment">
{{ comment.body }}
<br />
<span><span>{{ comment.author }}</span> &nbsp;|&nbsp; <span>{{ comment.created_at | format_date:"long" }} {% removebutton %}</span></span>
</div> <!-- //comment_inner -->



{% endfor %}
</div> <!-- //comment -->

{% commentform %}
{% unless comment.valid? %}<ul>
{% for error in comment.errors %}
<li>{{ error | lc }}</li>
{% endfor %}
</ul>{% endunless %}
<div>
<h2>{{"add_a_comment"|lc}}</h2>

<table>
<tr>
<td class="comment_label">{{"name"|lc}}:</td>
<td><input type="text" name="comment[author]" class="textbox" value="{{comment.author}}" /></td>
<td style="text-align: right;">{{"email"|lc}}: &nbsp;&nbsp;&nbsp;</td>
<td class="form_td_input"><input type="text" name="comment[author_email]" class="textbox" value="{{comment.author_email}}" /></td>
</tr>
</table>
<table>
<tr>
<td class="comment_label">{{"comment"|lc}}:</td>
<td class="form_td_textarea" ><textarea cols="20" name="comment[body]" rows="5">{{comment.body}}</textarea></td>
</tr>
<tr>
<td colspan="2" style="text-align: right;"><input type="submit" class="submit" value="{{"submit"|lc}}" /></td>
</tr>
</table>
</div>
{% endcommentform %}
</div> <!-- //blog -->
</div>
</div> <!-- //content_left_inner -->

</div> <!-- //content_left -->

<div id="content_right">

{% include "News" %}


<div id="darkbox">

<div id="darkbox_inner">
<div id="darkbox_inner2" class="clearfix">
{% content name="product" xpage="true" %}
</div>
</div> <!-- //darkbox_inner -->

<div id="blackbox">
<div id="blackbox_inner" class="clearfix">
{% content name="product-inner" xpage="true" %}
</div>
</div> <!-- //blackbox -->
</div> <!-- //darkbox -->

</div> <!-- //content_right -->

<div class="clearer"></div>

</div> <!-- //content -->

</div> <!-- //container -->

</div> <!-- //wrap -->

<div id="footer">

<div id="footer_inner" class="clearfix">{% content name="footer" xpage="true" %}</div>

<div id="edicy">
{% loginblock %}{{ "footer_login_link" | lc }}{% endloginblock %}
</div>

</div> <!-- //footer -->

{% unless editmode %}{{ site.analytics }}{% endunless %}
{% include "JS" %}
</body>
</html>
Loading

0 comments on commit 11b7dd4

Please sign in to comment.