add design

This commit is contained in:
2019-05-09 00:26:27 +02:00
parent 0cae791a02
commit 3c24252ea3
33 changed files with 1112 additions and 359 deletions

View File

@@ -11,11 +11,17 @@
{% endblock %}
{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
<section class="header-wrapper">
<div class="title">
<h2>{{page.title}}</h2>
</div>
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
</section>
<section class="body-wrapper" class="section blog-listing">
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
@@ -32,7 +38,6 @@
{% endfor %}
{% endblock %}
{% endembed %}
</section>
</section>
{% endblock %}

View File

@@ -3,13 +3,16 @@
{% set image = page.media.images|first %}
{% block body %}
<section id="item" class="section blog-listing">
<section id="body" class="section blog-listing">
<section class="header-wrapper">
<div class="bandeau">
{% if image %}
{{image.html}}
{{image.html}}
{% endif %}
</div>
</section>
<section class="body-wrapper">
<div class="content">
<h2>{{page.title}}</h2>
{{content}}
@@ -19,5 +22,5 @@
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
</section>
</section>
{% endblock %}

View File

@@ -6,17 +6,16 @@
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
{% block hero %}
{% include 'partials/hero.html.twig' with {id: 'blog-hero', content: page.content, hero_image: blog_image} %}
{% endblock %}
{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
<section class="header-wrapper">
<div class="title">
{{page.title}}
</div>
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
</section>
<section class="body-wrapper" class="section blog-listing">
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
@@ -33,8 +32,6 @@
{% endblock %}
{% endembed %}
</section>
</section>
{% endblock %}

View File

@@ -20,17 +20,15 @@
{% endblock %}
{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
<section class="body-wrapper" class="section blog-listing">
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% embed 'partials/layout.html.twig' %}
{% block item %}
{% include 'partials/cal-event.html.twig' %}
{% endblock %}
{% endembed %}
</section>
{% embed 'partials/layout.html.twig' %}
{% block item %}
{% include 'partials/cal-event.html.twig' %}
{% endblock %}
{% endembed %}
</section>
{% endblock %}

View File

@@ -1,18 +1,14 @@
{% set collection = page.collection() %}
{% set image = page.media.images|first %}
{% for item in collection if page.template == "footer" %}
{{item.title}}
{% endfor %}
<section id="footer" class="section blog-listing">
{% if image %}
{{image.html}}
{% endif %}
<section id="footer cc" class="section blog-listing">
{% if image %}
{{image.html}}
{% endif %}
{% for item in collection %}
<div class="sub-content">
<h3>{{item.title}}</h3>
{% for item in collection %}
<div class="sub-content ">
{{item.content}}
</div>
{% endfor %}
</section>
{% endfor %}
</section>

View File

@@ -1,7 +1,6 @@
{% extends 'partials/base.html.twig' %}
{% set image = page.media.images %}
{% block content %}
{% block header_body %}
<div class="gal">
{% for feature in page.header.buttons %}
@@ -23,27 +22,26 @@
</div>
{% endif %}
{% endblock %}
{% block content %}
<div class="content">
{{ page.content|raw }}
</div>
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% block newsletter %}
{% include 'partials/newsletters.html.twig' %}
{% endblock %}
{% block devis %}
<div class="side-newsletter">
<div id="mc_embed_signup">
<form action="https://kevintessier.us19.list-manage.com/subscribe/post?u=a98b763288f940083bf28857c&amp;id=96d6b6e702" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<label for="mce-EMAIL">Recevoir l'actualité du campus</label></br>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a98b763288f940083bf28857c_96d6b6e702" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="ok" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
</div>
{% include 'partials/devis.html.twig' %}
{% endblock %}
{% block reco %}
{% include 'partials/reco.html.twig' %}
{% endblock %}

View File

@@ -19,6 +19,8 @@
{% do assets.addCss('theme://css-compiled/spectre'~compress) %}
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
{% do assets.addCss('theme://css/leaflet.css') %}
{% do assets.addCss('theme://css/jquery.bxslider.min.css') %}
{% endblock %}
{% block javascripts %}
@@ -28,7 +30,7 @@
{% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/masonry.filter.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.slides.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.bxslider.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
@@ -37,8 +39,16 @@
{{ assets.css()|raw }}
{{ assets.js()|raw }}
{% endblock %}
<meta property="og:url" content="https://www.your-domain.com/your-page.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Your Website Title" />
<meta property="og:description" content="Your description" />
<meta property="og:image" content="/user/themes/lecampus/images/fb.svg" />
{% endblock head %}
</head>
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
{% block header %}
<section id="header" class="section">
@@ -70,18 +80,24 @@
<section id="{{page.template}}" class="start">
{% block body %}
<section id="body-wrapper" class="section">
<section id="item">
{% block content %}{% endblock %}
{% block sidebar %}{% endblock %}
</section>
<section class="header-wrapper" class="section">
{% block header_body %}{% endblock %}
</section>
{% block devis %}{% endblock %}
</section>
<section class="body-wrapper" class="section">
{% block content %}{% endblock %}
{% block sidebar %}{% endblock %}
</section>
{% endblock %}
</section>
{% block newsletter %}
{% include 'partials/newsletters.html.twig' %}
{% endblock %}
{% block devis %}{% endblock %}
{% block reco %}{% endblock %}
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}

View File

@@ -1,4 +1,5 @@
{% set image = page.media.images|first %}
<div class="header-wrapper">
{% if image %}
<div class="bandeau">
@@ -15,7 +16,12 @@
{% endif %}
{% endif %}
</div>
<div class="body-wrapper">
{% if not hero_image_name and not show_sidebar %}
<div class="content">
<div class="content_s">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
{% if page.header.subtitle %}
@@ -23,13 +29,19 @@
{% endif %}
{{ page.content|raw }}
</div>
</div>
{% endif %}
{% if not hero_image_name and show_sidebar %}
<div class="content">
{% for images in page.media.images %}
{{images}}
{% endfor %}
{% if page.media.images|slice(1) %}
<div class="images_s">
{% for images in page.media.images|slice(1) %}
{{images}}
{% endfor %}
</div>
{% endif %}
<div class="content_s">
{% if header.entete.text == false %}
@@ -41,4 +53,11 @@
{{ page.content|raw }}
</div>
</div>
{% if show_sidebar %}
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% endif %}
</div>
{% endif %}

View File

@@ -1,17 +1,15 @@
<div class="publics">
<span class="pc">
<!-- {% set page_public = page.header.public %}
{% for public in page_public %}
{{ public }}
{% endfor %} -->
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% if page.taxonomy.tag %}
{% import _self as macro %}
{% if page.taxonomy.tag %}
{% for tag in page.taxonomy.tag %}
<div class="publics {{ macro.pageLinkName(tag) }}">
<span class="pc">
<span class="tags">
{% for tag in page.taxonomy.tag %}
{{ tag }}
{% endfor %}
{{ tag }}
</span>
{% endif %}
</span>
</div>
</span>
</div>
{% endfor %}
{% endif %}

View File

@@ -1,7 +1,12 @@
{% if page.taxonomy.tag %}
<span class="tags">
{% for tag in page.taxonomy.tag %}
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% import _self as macro %}
{% for tag in page.taxonomy.tag %}
<span class="tags {{ macro.pageLinkName(tag) }}">
<a class="label">{{ tag }}</a>
{% endfor %}
</span>
{% endif %}
</span>

View File

@@ -1,14 +1,57 @@
{% set image = page.media.images|first %}
{% if not hero_image_name %}
<div class="content">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
<div class="reso">
<img src="/user/themes/lecampus/images/fb.svg" alt="">
</div>
{% if page.header.subtitle %}
<h3 >{{ page.header.subtitle }}</h3>
{% endif %}
{{ page.content|raw }}
{% for tag in page.taxonomy.tag %}
<div class="event" data-filter="{{tag}}">
{% endfor %}
<div class="card-header">
<h1>{{page.parent.title}}</h1>
{% include 'partials/blog/public.html.twig' %}
</div>
{% set image = page.media.images|first %}
{% if image %}
<div class="card-image">
{{ image }}
</div>
{% endif %}
<div class="card-body">
<div class="card-title">
{% include 'partials/blog/date.html.twig' %}
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
</div>
</div>
<div class="card-content">
<div class="reso">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Your share button code -->
<div class="fb-share-button"
data-href="https://www.your-domain.com/your-page.html"
data-layout="button_count">
</div>
<a href="#">Partager<img src="/user/themes/lecampus/images/fb.svg" alt=""></a>
<a href="#">Partager<img src="/user/themes/lecampus/images/yt.svg" alt=""></a>
<a href="#">Twitter<img src="/user/themes/lecampus/images/in.svg" alt=""></a>
</div>
<div class="txt">
{% if page.summary != page.content %}
{{ page.summary(100)|raw }}
{% endif %}
{{page.content}}
</div>
</div>
</div>
{% endif %}

View File

@@ -12,8 +12,8 @@
{% endif %}
<div class="card-body">
<div class="card-title">
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
{% include 'partials/blog/date.html.twig' %}
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
</div>
<div class="card-summary">
<a href="{{ page.url }}">

View File

@@ -0,0 +1,18 @@
{% set options = { items: {'@page.self': '/demande-de-devis'}, 'limit': 1 } %}
{% set image = page.media.images|first %}
<div class="devis">
{% for p in page.collection(options)%}
<div class="txt">
{{p.content}}
</div>
<div class="img">
{{image}}
</div>
<div id="demander-votre-devis">
<a href="/demande-de-devis">
<h3>{{p.title}}</h3>
</a>
</div>
{% endfor %}
</div>

View File

@@ -4,7 +4,6 @@
<section id="footer" class="section blog-listing">
{% for p in page.find('/home').children if p != page %}
<div class="sub-content">
<h2>{{p.title}}</h2>
{{p.content}}
</div>
{% endfor %}

View File

@@ -2,5 +2,19 @@
{% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
{% set status_mapping = {'success':'green', 'error': 'red', 'warning': 'yellow'} %}
{% set message = inline_errors and form.messages ? "FORM.VALIDATION_FAIL"|t : form.message %}
<script type="text/javascript">
var $ok = $('.ok');
var $send = $('#send-valide');
$ok.on('click', function () {
$(this).parent('#send-valide').remove();
location.reload();
})
</script>
<div id="send-valide">
<div class="toast toast-{{ form.status }} {{ status_mapping[form.status] ?: 'green' }} mt-2 mb-2">{{ message|raw }}</div>
{% endif %}
<div class="ok">Ok, merci !</div>
</div>
{% endif %}

View File

@@ -1,13 +1,4 @@
{% set item_col = show_sidebar ? 'col-9 col-md-12' : 'col-12' %}
{% set sidebar_col = show_sidebar ? 'col-3 col-md-12' : 'col-12' %}
<div id="item">
{% block item %}{% endblock %}
{% if show_sidebar %}
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% endif %}
</div>

View File

@@ -0,0 +1,12 @@
<div class="side-newsletter">
<div id="mc_embed_signup">
<form action="https://kevintessier.us19.list-manage.com/subscribe/post?u=a98b763288f940083bf28857c&amp;id=96d6b6e702" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<label for="mce-EMAIL">Recevoir l'actualité du campus</label></br>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a98b763288f940083bf28857c_96d6b6e702" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="ok" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,13 @@
{% set options = { items: {'@page.self': '/nos-references'}, 'limit': 1 } %}
{% set image = page.media.images|first %}
<div id="reco">
{% for p in page.collection(options)%}
<div class="title">
<h4>{{p.title}}</h4>
</div>
<div class="txt">
{{p.content}}
</div>
{% endfor %}
</div>

View File

@@ -6,8 +6,8 @@
<div class="side-agenda">
<a href="{{p.url}}">
{% include 'partials/blog/date.html.twig' with {page: p } %}
<h3>{{p.title}}</h3>
{{p.summary(50)}}
<h5>{{p.title}}</h5>
{{p.summary(70)}}
</a>
</div>
{% endfor %}

View File

@@ -1,21 +1,24 @@
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% import _self as macro %}
{% if taxlist %}
<div class="btn-toolbar filters">
<div data-toggle="buttons" class="btn-group">
<label class="btn btn-default" data-filter="">
<label class="btn btn-default tous" data-filter="">
<input type="radio" name="options">
Tous
</label>
{% for tax,value in taxlist[taxonomy] %}
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
<label class="btn btn-default" data-filter="{{tax}}">
<label class="btn btn-default {{ macro.pageLinkName(tax) }}" data-filter="{{tax}}">
<input type="radio" name="options" >
{{tax}}
</label>
{% endfor %}
<div class="btn-group">
<label>
<label class="btn-default archive">
<a href="/archive">archive</a>
</label>
</div>

View File

@@ -3,12 +3,14 @@
{% set image = page.media.images|first %}
{% block body %}
<section id="item" class="section blog-listing">
<section class="header-wrapper" class="section blog-listing">
<div class="bandeau">
{% if image %}
{{image.html}}
{% endif %}
</div>
</section>
<section class="body-wrapper">
<div class="content">
<h2>{{page.title}}</h2>