Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Priit Haamer committed Oct 31, 2012
0 parents commit 4550245
Show file tree
Hide file tree
Showing 31 changed files with 1,001 additions and 0 deletions.
Binary file added assets/avenir-light-webfont.eot
Binary file not shown.
Binary file added assets/avenir-light-webfont.ttf
Binary file not shown.
Binary file added assets/avenir-light-webfont.woff
Binary file not shown.
Binary file added assets/avenir-medium-webfont.eot
Binary file not shown.
Binary file added assets/avenir-medium-webfont.ttf
Binary file not shown.
Binary file added assets/avenir-medium-webfont.woff
Binary file not shown.
Binary file added assets/avenir-roman-webfont.eot
Binary file not shown.
Binary file added assets/avenir-roman-webfont.ttf
Binary file not shown.
Binary file added assets/avenir-roman-webfont.woff
Binary file not shown.
16 changes: 16 additions & 0 deletions components/js.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% if site.search.enabled %}
<script type="text/javascript" src="http://static.edicy.com/assets/site_search/3.0/site_search.js?1"></script>
<script type="text/javascript">
var edys_site_search_options = {
texts: { noresults: "{{ "search_noresults"|lc }}" },
default_stylesheet_enabled: false
}
</script>
{% endif %}
{% unless editmode %}{{site.analytics}}{% endunless %}

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="{{ javascripts_path }}/scripts.js"></script>



16 changes: 16 additions & 0 deletions components/langmenu.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% if editmode or site.has_many_languages? %}
<div id="langmenu" class="langmenu-with-popup">
<div class="langmenu-content"><div>{% for language in site.languages %}{% if language.selected? %}{{language.title}}{% endif %}{% endfor %}</div></div>

<div class="langmenu-popup">
<div class="langmenu-arrow"></div>
<div class="langmenu-arrow2"></div>
<ul>
{% for language in site.languages %}
<li><a href="{{ language.url}}"{% if language.selected? %} class="active"{% endif %}>{{language.title}}</a></li>
{% endfor %}
{% if editmode %}<li>{% languageadd %}</li>{% endif %}
</ul>
</div>
</div>
{% endif %}
10 changes: 10 additions & 0 deletions components/langmenuselect.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% if editmode or site.has_many_languages? %}
<div id="langmenu" class="langmenu">
<div class="langmenu-content"><div>{% for language in site.languages %}{% if language.selected? %}{{language.title}}{% endif %}{% endfor %}</div></div>
<select>
{% for language in site.languages %}
<option value="{{language.url}}"{% if language.selected? %} selected="selected"{% endif %}>{{language.title}}</option>
{% endfor %}
</select>
</div>
{% endif %}
20 changes: 20 additions & 0 deletions components/latestnews.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% if site.latest_2_articles.size > 0 %}
<div class="latest-news">
<h2>{{ "latest_news"|lc }}</h2>
{% for a in site.latest_2_articles %}
<div class="news-item">
{{ a.author.name }}, <a href="{{a.url}}">{{a.title}}</a>
<div class="date">{{a.created_at | format_date:"short"}}, {{a.created_at | format_date:"%Y"}}</div>
</div>
{% endfor %}

{% if site.latest_3_articles.size > 2 %}
{% for a in site.latest_3_articles %}
{% if forloop.index == 3 %}
<a href="{{ a.page.url }}">{{ "older_news" | lc}}</a>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}

13 changes: 13 additions & 0 deletions components/mainmenu.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<ul id="mainmenu">
{% unless site.root_item.hidden? %}<li{% if site.root_item.selected? %} class="active"{% endif %}><a href="{{site.root_item.url}}">{{site.root_item.title}}</a></li>{% endunless %}
{% for item in site.visible_menuitems %}
<li{% if item.selected? %} class="active"{% endif %}{% unless item.translated? %} class="untranslated"{% endunless %}>
<a href="{{item.url}}"{% unless item.translated? %} class="fci-editor-menuadd"{% endunless %}>{{item.title}}</a>
</li>
{% endfor %}
{% if editmode %}
{% if site.hidden_menuitems.size > 0 %}<li>{% menubtn site.hidden_menuitems %}</li>{% endif %}
<li style="padding-left: 10px;">{% menuadd %}</li>
{% endif %}
</ul>

47 changes: 47 additions & 0 deletions components/mobilemenus.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<div id="mobile-menu">
<div class="mobile-menu-header">
<a href="#" class="mobile-menu-toggler">
<span class="line"></span>
<span class="line line-2"></span>
<span class="line line-3"></span>
</a>

{% include "LangmenuSelect" %}
</div>
<div class="mobile-menu-inner">

<ul>
{% unless site.root_item.hidden? %}<li><a href="{{site.root_item.url}}"{% if site.root_item.selected? %} class="active"{% endif %}>{{site.root_item.title}}</a></li>{% endunless %}
{% for item in site.visible_menuitems %}
<li class="{% if forloop.last%}last{% endif %} {% unless item.translated? %}untranslated{%endunless%}">
<a href="{{item.url}}"{% if item.selected? %} class="active"{% endif %}{% unless item.translated? %} class="fci-editor-menuadd"{% endunless %}>{{item.title}}</a>
{% if item.selected? %}

{% if item.children? and item.selected? %}
<ul>
{% for level2 in item.visible_children %}
<li class="{% if forloop.last %}last{%endif%} {% unless level2.translated? %}untranslated{% endunless %}">
<a href="{{ level2.url }}"{% if level2.selected? %} class="active"{% endif %}{% unless level2.translated? %} class="fci-editor-menuadd"{% endunless %}>{{ level2.title }}</a>

{% if level2.selected? %}
{% if level2.children? %}
<ul>
{% for level3 in level2.visible_children %}
<li class="{% if forloop.last %}last{% endif %} {% unless level3.translated? %}untranslated{% endunless %}">
<a href="{{ level3.url }}"{% if level3.selected? %} class="active"{% endif%}{% unless level3.translated? %} class="fci-editor-menuadd"{% endunless %}>{{ level3.title }}</a>
</li>
{% endfor %}

</ul>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
13 changes: 13 additions & 0 deletions components/search.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% if site.search.enabled %}
<div class="right">
<form id="search" class="edys-search" method="post" action="#">
<div class="search-left">
<input id="onpage_search" class="edys-search-input" type="text" placeholder="Search" name="">
</div>
<div class="search-right">
<input class="search-submit" type="submit" value="" name="">
</div>
</form>
</div>
{% endif %}

22 changes: 22 additions & 0 deletions components/siteheader.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<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" />

{% if site.search.enabled %}{% stylesheet_link "assets/site_search/3.0/style.css?1" static_host="true" %}{% endif %}
{% stylesheet_link "style.css?reykjavik1" %}
{% 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" />

<meta name="viewport" content="initial-scale=1" />

<title>{% if site.root_item.selected? %} {{page.site_title}} | {{ page.title }} {% else %}{% if article %}{{ article.title }}{% else %}{{ page.title }}{% endif %} | {{page.site_title}} {% endif %}</title>
{% if blog %}{{blog.rss_link}}{% endif %}




37 changes: 37 additions & 0 deletions components/submenu.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% for item in site.menuitems_with_hidden %}
{% if item.selected? %}
{% if editmode or item.visible_children.size > 0 %}
<div id="sidebar">
{% if editmode or item.children? %}
<ul id="submenu">
{% for level2 in item.visible_children %}
<li{% if forloop.last %}{% unless editmode %} class="last"{% endunless %}{% endif %}{% unless level2.translated? %} class="untranslated"{% endunless %}>
<a href="{{ level2.url }}"{% if level2.selected? %} class="active"{% endif %}{% unless level2.translated? %} class="fci-editor-menuadd"{% endunless %}>{{ level2.title }}</a>

{% if level2.selected? %}
{% if editmode or level2.children? %}
<ul>
{% for level3 in level2.visible_children %}
<li{% unless level3.translated? %} class="untranslated"{% endunless %}>
<a href="{{ level3.url }}"{% if level3.selected? %} class="active"{% endif%}{% unless level3.translated? %} class="fci-editor-menuadd"{% endunless %}>{{ level3.title }}</a>
</li>
{% endfor %}
{% if editmode %}
{% if level2.hidden_children.size > 0 %}<li style="padding: 0 10px;">{% menubtn level2.hidden_children %}</li>{% endif %}
<li style="padding: 0 10px;">{% menuadd parent="level2" %}</li>
{% endif %}
</ul>
{% endif %}
{% endif %}
</li>
{% endfor %}
{% if editmode %}
{% if item.hidden_children.size > 0 %}<li>{% menubtn item.hidden_children %}</li>{% endif %}
<li class="last">{% menuadd parent="item" %}</li>
{% endif %}
</ul>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endfor %}
Binary file added images/arr_down.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/list_dot.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/list_dot_2x.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/photo01.jpg
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/search_2x.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions javascripts/scripts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

$(function() {
$('.langmenu select').change(function() {
window.location = $(this).children(':selected').val();
});

$('.langmenu-with-popup').each(function() {
var $popup = $(this).find('.langmenu-popup');
$(this).find('.langmenu-content').click(function() {
$popup.show();
$(document).bind('click', function(event) {
if (!$.contains($popup.get(0), event.target)) {
$popup.hide();
$(this).unbind('click', arguments.callee);
}
});
return false;
});
});

$('.mobile-menu-toggler').click(function() {
$('.mobile-menu-inner').toggle();
return false;
});

$('a.news-older-show').click(function() { $(this).addClass('no-bg'); $('.news-older-hidden').show(); return false; });
});
79 changes: 79 additions & 0 deletions layouts/blog___news.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!DOCTYPE html>
<html>

<head>
{% include "SiteHeader" %}
</head>

<body id="blog">

<div id="holder">
{% include "MobileMenus" %}
<div class="wrap">
<div id="header" class="cfx">
<div id="logo">{% editable site.header %}</div>
<div class="inner">
{% include "Langmenu" %}
{% include "Mainmenu" %}
</div>
</div>

<div id="container" class="cfx">
<div id="content">
{% if editmode %}
<div style="padding-bottom: 30px;">{% addbutton class="add-article" %}</div>
{% endif %}
<div class="news-list news-list-all">
{% for article in articles %}
{% if forloop.index < 11 %}
<div class="news-item{% if forloop.index == 1%} news-item-first{% endif %}">
<div class="news-info">
{{ article.author.name }} &nbsp;&#149;&nbsp; <span class="date">{{article.created_at | format_date:"short"}}, {{article.created_at | format_date:"%Y"}}</span> {% if article.comments_count > 0 %}&nbsp;<a href="{{article.url}}#comments" class="comments-count">{{article.comments_count}}</a>{% endif %}
</div>

<h1><a href="{{ article.url }}">{{ article.title }}</a></h1>

<div class="excerpt cfx">{{ article.excerpt }} <a href="{{ article.url }}" class="nowrap">{{ "read_more"|lc }}</a></div>
</div>
{% endif %}
{% endfor %}


{% if articles.size > 10%}
<div class="news-older">
<h3><a href="#" class="news-older-show">{{ "older_news"|lc }}</a></h3>

<div class="news-older-hidden">
{% for article in articles %}
{% if forloop.index > 10 %}
<div class="cfx news-older-item">
<div class="date">{{article.created_at | format_date:"short"}}, {{article.created_at | format_date:"%Y"}}</div>
<div class="news-older-item-text"><a href="{{article.url}}">{{ article.title }}</a></div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</div>

</div>
</div>

<div id="footer">
<div class="wrap cfx">

<div class="inner">
<div class="cfx">
{% xcontent name="footer" %}
</div>
</div>
{% include "Search" %}
</div>
</div>

{% include "JS" %}
</body>
</html>
Loading

0 comments on commit 4550245

Please sign in to comment.