-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Priit Haamer
committed
Oct 31, 2012
0 parents
commit 4550245
Showing
31 changed files
with
1,001 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} • <span class="date">{{article.created_at | format_date:"short"}}, {{article.created_at | format_date:"%Y"}}</span> {% if article.comments_count > 0 %} <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> |
Oops, something went wrong.