import from la bonne adresse and first refactoring for ouidade.com

This commit is contained in:
Bachir Soussi Chiadmi
2017-06-19 11:25:19 +02:00
commit 344dae1543
2240 changed files with 288691 additions and 0 deletions
@@ -0,0 +1,68 @@
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
{% block head %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if header.description %}
<meta name="description" content="{{ header.description }}">
{% else %}
<meta name="description" content="{{ site.description }}">
{% endif %}
{% if header.robots %}
<meta name="robots" content="{{ header.robots }}">
{% endif %}
<link rel="icon" type="image/png" href="{{ theme_url }}/images/favicon.png">
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
{% block stylesheets %}
{# Bootstrap core CSS #}
{# % do assets.add('theme://app/bower_components/foundation/css/foundation.min.css',101) % #}
{# Custom font for this theme #}
{% do assets.add('theme://font/fontwebkit.css',100) %}
{# Custom styles for this theme #}
{% do assets.add('theme://css/styles.css',100) %}
{{ assets.css() }}
{% endblock %}
{% endblock head %}
</head>
<body class="{{bodyclass}}">
<div id="container">
{# include the header + navigation #}
{% include 'partials/header.html.twig' %}
<div id="center" class="row fullwidth">
<div class="large-12 columns">
{% block content %}{% endblock %}
</div>
</div>
{% block bottom %}{% endblock %}
{# include the footer#}
{% include 'partials/footer.html.twig' %}
</div>
{% block javascripts %}
{% do assets.add('theme://bower_components/jquery/dist/jquery.min.js', 101) %}
{% do assets.add('theme://bower_components/foundation/js/foundation.min.js') %}
{% do assets.add('theme://bower_components/imagesloaded/imagesloaded.pkgd.min.js') %}
{% do assets.add('theme://bower_components/masonry/dist/masonry.pkgd.min.js') %}
{% do assets.add('theme://js/dist/script.min.js') %}
{{ assets.js() }}
{% endblock %}
</body>
</html>
@@ -0,0 +1,11 @@
<footer id="bottom-bar">
<div class="row fullwidth">
<section class="large-12 columns">
<h1><a class="logo" href="/">- {{ site.title|e('html') }} -</a></h1>
<address>
{{ site.adresse|e('html') }}<br />
<a class="mailto" href="mailto:{{site.email}}">{{ site.email|e('html') }}</a>
</address>
</section>
</div>
</header>
@@ -0,0 +1,32 @@
<header id="top-bar">
<div class="bg">
<div class="row fullwidth">
<section id="title-area" class="medium-8 medium-push-2 columns">
<h1><a href="/"><span>{{ site.title|e('html') }}</span></a></h1>
<h2>{{ site.subtitle|e('html') }}</h2>
</section>
<nav id="left-nav" class="nav small-6 medium-2 medium-pull-8 columns">
<div class="wrapper">
<ul class="left">
{% for page in pages.children %}
{% if page.menu != "home" and page.menu != "Catégories" %}
<li><a href="{{ page.url }}">{{ page.menu }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
</nav>
<nav id="right-nav" class="nav small-6 medium-2 columns">
{% if config.plugins.taxonomylist.enabled %}
<div class="wrapper">
<h4><a href="/categories">Catégories</a></h4>
{% include 'partials/tagslist.html.twig' with {'base_url':"/categories/", 'taxonomy':'tag'} %}
</div>
{% endif %}
</nav>
</div>
</div>
</header>
@@ -0,0 +1,22 @@
{% if display == 'img' %}
{% set image = page.media['00-home.jpg'] %}
{% if image == null %}
{% set image = page.media.images|first %}
{% endif %}
<a href="{{ page.url }}">{{ image.resize(500).html }}</a>
<header>
<h1><a href="{{ page.url }}">{{page.title}}</a></h1>
<h2><a href="{{ page.url }}">{{page.header.subtitle}}</a></h2>
</header>
{% endif %}
{% if display == 'text' %}
<h4><a href="{{ page.url }}">{{page.title}} - {{page.date|date("Y")}}</a></h4>
{% set image = page.media['00-cat.jpg'] %}
{% if image == null %}
{% set image = page.media.images|first %}
{% endif %}
<a class="projet-img" href="{{ page.url }}">{{ image.resize(500).html }}</a>
{% endif %}
@@ -0,0 +1,19 @@
{% set taxlist = taxonomylist.get() %}
{% if taxlist %}
<ul class="tags">
{% for tax,value in taxlist[taxonomy] %}
{% set active = uri.param(taxonomy) == tax ? 'active' : '' %}
{% if not loop.first and display == "inline" %}
<span>-</span>
{% endif %}
<li class="{{ active }}">
<a
class="{{ active }}"
href="{{ base_url }}{{ taxonomy }}{{ config.system.param_sep }}{{ tax|e('url') }}">
<span>{{ tax }}</sapn>
</a>
</li>
{% endfor %}
</ul>
{% endif %}