summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-03-18 13:53:46 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-03-18 13:53:46 (GMT)
commit0732b74c6c0bfbb7d9308e82b2e3cc5898a8970c (patch)
treee099d6020b79925d93852b349e9239285e06c00b /templates
parent1f791e13503e905d5e5b4732799e0f6917f45126 (diff)
downloadpublik-website-0732b74c6c0bfbb7d9308e82b2e3cc5898a8970c.zip
publik-website-0732b74c6c0bfbb7d9308e82b2e3cc5898a8970c.tar.gz
publik-website-0732b74c6c0bfbb7d9308e82b2e3cc5898a8970c.tar.bz2
initial version
Diffstat (limited to 'templates')
-rw-r--r--templates/combo/menu.html13
-rw-r--r--templates/combo/page_template.html60
-rw-r--r--templates/combo/page_template_sidebar.html13
-rw-r--r--templates/combo/placeholder.html9
4 files changed, 95 insertions, 0 deletions
diff --git a/templates/combo/menu.html b/templates/combo/menu.html
new file mode 100644
index 0000000..ef87c57
--- /dev/null
+++ b/templates/combo/menu.html
@@ -0,0 +1,13 @@
+{% load combo %}
+{% if menuitems %}
+<ul>
+{% for menuitem in menuitems %}
+<li class="menu-{{ menuitem.page.slug }} {% if menuitem.selected %}selected{% endif %}"><a
+ href="{{ menuitem.page.get_online_url }}">{{ menuitem.page.title }}</a>
+ {% if depth > 1 %}
+ {% show_menu current_page=menuitem.page level=-1 depth=depth reduce_depth=True %}
+ {% endif %}
+</li>
+{% endfor %}
+</ul>
+{% endif %}
diff --git a/templates/combo/page_template.html b/templates/combo/page_template.html
new file mode 100644
index 0000000..5d66c8a
--- /dev/null
+++ b/templates/combo/page_template.html
@@ -0,0 +1,60 @@
+{% load combo gadjo %}<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8"/>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="content-language" content="fr" />
+ <title>Publik - {{ page.title }}</title>
+ <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/combo-style.css"/>
+ <script src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
+ <script src="{{ STATIC_URL }}js/jquery.parallax-1.1.3.js"></script>
+ <script src="{{ STATIC_URL }}js/jquery.scrollTo.js"></script>
+ <script src="{{ STATIC_URL }}js/combo.public.js"></script>
+ </head>
+ <body class="page-{{ page.slug }}">
+ <div class="container">
+ <div id="title"><a href="/"><img height="100" width="310" src="{{ STATIC_URL }}img/logo.png"/></a></div>
+ <div id="menu">{% block menu %}{% show_menu %}{% endblock %}</div>
+ </div>
+ <div id="content">
+ {% block combo-content %}
+ {% placeholder "content" %}
+ {% endblock %}
+ </div>
+ <div id="footer">
+ <div class="container">
+ <p id="eo-link">
+ Publik, développé par <a href="https://www.entrouvert.com">Entr'ouvert</a>
+ —
+ <a href="/contact">Contact</a>
+ <a class="legal" href="/mentions-legales">Mentions légales</a>
+ </p>
+ <p id="eo-address">Entr'ouvert SCOP ARL<br/>
+ 169 rue du Château<br/>
+ 75014 Paris<br/>
+ <a href="mailto:info@entrouvert.com">info@entrouvert.com</a>
+ </p>
+ <a id="goto-top" href="#title" title="Retourner en haut de page">⋀</a>
+ </div>
+ </div>
+
+<!-- Piwik -->
+<script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="//piwik.monitoring.entrouvert.org/";
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
+ _paq.push(['setSiteId', 6]);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<noscript><p><img src="//piwik.monitoring.entrouvert.org/piwik.php?idsite=6" style="border:0;" alt="" /></p></noscript>
+<!-- End Piwik Code -->
+
+ </body>
+</html>
diff --git a/templates/combo/page_template_sidebar.html b/templates/combo/page_template_sidebar.html
new file mode 100644
index 0000000..74a61d0
--- /dev/null
+++ b/templates/combo/page_template_sidebar.html
@@ -0,0 +1,13 @@
+{% extends "combo/page_template.html" %}
+{% load combo %}
+
+{% block combo-content %}
+<div id="main-content">
+{% placeholder "content" %}
+</div>
+<div id="sidebar">
+<h2>Sidebar</h2>
+{% show_menu 1 %}
+{% placeholder "sidebar" %}
+</div>
+{% endblock %}
diff --git a/templates/combo/placeholder.html b/templates/combo/placeholder.html
new file mode 100644
index 0000000..70d492b
--- /dev/null
+++ b/templates/combo/placeholder.html
@@ -0,0 +1,9 @@
+{% load combo %}
+{% for cell in cells %}
+<div class="cell {{ cell.css_class_name }} {% if cell.slug %}{{cell.slug}}{% endif %}"
+ {% if cell.slug %}id="{{cell.slug}}"{% endif %}
+ {% if cell.ajax_refresh %}
+ data-ajax-cell-url="{% url 'combo-public-ajax-page-cell' page_pk=page.id cell_reference=cell.get_reference %}"
+ data-ajax-cell-refresh="{{ cell.ajax_refresh }}"
+ {% endif %}><div>{% render_cell cell %}</div></div>
+{% endfor %}