This commit is contained in:
kevin
2020-12-14 23:12:44 +01:00
parent b1e14f5f7b
commit b6ed4d771e
38 changed files with 1338 additions and 409 deletions
+32
View File
@@ -1,14 +1,22 @@
absolute_urls: false
timezone: Europe/Paris
default_locale: null
param_sep: ':'
wrapped_site: false
reverse_proxy_setup: false
force_ssl: false
force_lowercase_urls: true
custom_base_url: null
username_regex: '^[a-z0-9_-]{3,16}$'
pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
intl_enabled: true
http_x_forwarded:
protocol: true
host: false
port: true
ip: true
languages:
supported: null
default_lang: fr
include_default_lang: false
pages_fallback_only: false
@@ -28,6 +36,7 @@ pages:
list:
count: 50
dateformat:
default: null
short: 'jS M Y'
long: 'jS M Y'
publish_dates: true
@@ -47,6 +56,12 @@ pages:
special_chars:
'>': gt
'<': lt
valid_link_attributes:
- rel
- target
- id
- class
- classes
types:
- html
- htm
@@ -55,6 +70,7 @@ pages:
- json
- rss
- atom
append_url_extension: null
expires: 604800
cache_control: '31536000'
last_modified: false
@@ -69,6 +85,7 @@ pages:
- .git
- .idea
ignore_hidden: true
hide_empty_folders: false
url_taxonomy_filters: true
frontmatter:
process_twig: false
@@ -89,6 +106,17 @@ cache:
lifetime: 604800
gzip: false
allow_webserver_gzip: false
redis:
socket: null
server: null
port: null
password: null
memcache:
server: null
port: null
memcached:
server: null
port: null
twig:
cache: false
debug: false
@@ -132,6 +160,8 @@ images:
seofriendly: false
media:
enable_media_timestamp: false
unsupported_inline_types: null
allowed_fallback_types: null
auto_metadata_exif: false
upload_limit: 8388608
session:
@@ -143,8 +173,10 @@ session:
secure: false
httponly: true
split: true
path: null
gpm:
releases: stable
proxy_url: null
method: auto
verify_peer: true
official_gpm_only: true
+6
View File
@@ -0,0 +1,6 @@
core:
grav:
version: 1.6.30
history:
version: 1.6.30
date: '2020-12-06 17:57:16'
@@ -6,9 +6,9 @@ lieux: '93 Baker Street'
artistes: ' Olivia Bax'
title: 'at large'', '
media_order: 'Olivia Bax, Boulder (with handle), 2015.jpg,Detail of Olivia Bax, Hot Spot, 2018.jpg,Olivia Bax, Love Handles, 2017.jpg,Olivia Bax, Pump, 2016.jpg,Olivia Bax, Slot _ Groove, 2015.jpg,Olivia Bax, Rumble, 2018.jpg,Installation Olivia Bax.jpg,Detail ''Footloose'', 2017.jpg,Olivia Bax, Footloose, 2017.jpg'
show_sidebar: false
aura:
pagetype: website
show_sidebar: false
---
An awareness of materials is crucial in pursuing any artistic endeavour.
@@ -27,7 +27,7 @@ materials for further assembly (Iza Genzken). Olivia Bax's work is a
distinct example of this aesthetic manu propria, for Bax not only
physically leaves the imprint of her hand, her gestures on the surface of her
sculptures, but she also uses handles as a recurring motif (Hot Spot,
Boulder (with handle) and Pump). Her stand-alone pieces (Rumble and
Boulder (**with handle) and Pump). Her stand-alone pieces (Rumble** and
Roar) have a human scale, as if they were based on her own height.
Bax's investigation of material rhythms can be likened to the act of
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+16
View File
@@ -127,7 +127,23 @@ function newsletter() {
}
function OpenSearch(){
$('.wrap_search a').click(function() {
$('.search-wrapper').toggleClass("opacity");
});
var url = window.location.pathname
var splitUrl = url.split("/");
console.log(splitUrl);
if(splitUrl[1] == "search" ){
$('.search-wrapper').addClass("opacity");
}
}
$(document).ready(function(){
// more();
// newsletter();
OpenSearch();
});
+1
View File
@@ -14,6 +14,7 @@
@import 'theme/header';
@import 'theme/footer';
@import 'theme/menu';
@import 'theme/search';
// Extra Skeleton Styling
@import 'theme/blog';
@@ -115,86 +115,4 @@
}
}
.simplesearch_results{
.section{
// width: calc((100% / 12) * 9);
width: 100%;
.simplesearch{
.center{
width: calc((100% / 12) * 9);
}
.result_for{
text-transform: uppercase;
p{
margin: 0!important;
}
}
.search-wrapper{
form{
display: inline-flex;
.search-input, button{
font-family: $Bold;
font-size: 6rem;
text-transform: uppercase;
width: 100%;
height: auto;
border: none;
background: none;
}
}
}
}
}
.card-cat{
margin-bottom:0.6rem;
}
}
.search-results{
.results{
margin-top: 6rem;
@include flexbox;
align-items: flex-end;
width: 100%;
.search-row{
width: calc((100% / 12) * 6);
margin-bottom: 6rem;
a{
display: block;
}
&:nth-child(odd){
padding-right: 0.7rem;
}
&:nth-child(even){
padding-left: 0.7rem;
}
.search-item{
margin: 0;
}
.card-cat{
margin-bottom:0.6rem;
}
.search-title{
h2{
font-size: 2.5rem;
line-height: 2.7rem;
}
}
.search-details{
font-family: $Bold;
font-size: 2.5rem;
line-height: 2.7rem;
font-weight: 400;
margin: 0;
text-transform: uppercase;
}
.search-image{
float: none;
width: 100%;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
}
}
}
@@ -157,6 +157,7 @@
}
}
.dz-default{
display: none;
span{
display: none;
}
@@ -279,3 +280,7 @@
margin-left: 1rem;
}
}
input{
outline: none;
}
@@ -0,0 +1,113 @@
.simplesearch_results{
.section{
// width: calc((100% / 12) * 9);
width: 100%;
.simplesearch{
.center{
width: calc((100% / 12) * 9);
}
.result_for{
text-transform: uppercase;
p{
margin: 0!important;
}
}
}
}
.card-cat{
margin-bottom:0.6rem;
}
}
.wrap_search{
display: inline-flex;
align-items: baseline;
& > a{
margin-right: 1.2rem;
}
}
.search-wrapper{
opacity: 0;
transition: opacity 0.2s ease;
&.opacity{
opacity: 1;
transition: opacity 0.2s ease;
}
form{
display: inline-flex;
.search-input, button{
font-family: $Bold;
font-size: 1.5rem;
text-transform: uppercase;
height: auto;
border: none;
background: none;
}
button{
width: auto;
}
.search-input{
max-width: 200px;
width: 100%;
border-bottom: 1px solid black;
margin-right: 1.2rem;
background: white!important;
&:focus, &:active, &::placeholder{
outline: none;
background-color:transparent!important;
}
}
}
}
.search-results{
.results{
margin-top: 6rem;
@include flexbox;
align-items: flex-end;
width: 100%;
.search-row{
width: calc((100% / 12) * 6);
margin-bottom: 6rem;
a{
display: block;
}
&:nth-child(odd){
padding-right: 0.7rem;
}
&:nth-child(even){
padding-left: 0.7rem;
}
.search-item{
margin: 0;
}
.card-cat{
margin-bottom:0.6rem;
}
.search-title{
h2{
font-size: 2.5rem;
line-height: 2.7rem;
}
}
.search-details{
font-family: $Bold;
font-size: 2.5rem;
line-height: 2.7rem;
font-weight: 400;
margin: 0;
text-transform: uppercase;
}
.search-image{
float: none;
width: 100%;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
}
}
}
@@ -0,0 +1,118 @@
{% extends "forms/field.html.twig" %}
{% macro bytesToSize(bytes) -%}
{% spaceless %}
{% set kilobyte = 1024 %}
{% set megabyte = kilobyte * 1024 %}
{% set gigabyte = megabyte * 1024 %}
{% set terabyte = gigabyte * 1024 %}
{% if bytes < kilobyte %}
{{ bytes ~ ' B' }}
{% elseif bytes < megabyte %}
{{ (bytes / kilobyte)|number_format(2, '.') ~ ' KB' }}
{% elseif bytes < gigabyte %}
{{ (bytes / megabyte)|number_format(2, '.') ~ ' MB' }}
{% elseif bytes < terabyte %}
{{ (bytes / gigabyte)|number_format(2, '.') ~ ' GB' }}
{% else %}
{{ (bytes / terabyte)|number_format(2, '.') ~ ' TB' }}
{% endif %}
{% endspaceless %}
{%- endmacro %}
{% macro preview(path, value, global) %}
{% if value %}
{% set uri = global.grav.uri %}
{% set files = global.files %}
{% set config = global.grav.config %}
{% set route = global.context.route() %}
{% set type = global.context.content() is not null ? 'pages' : global.plugin ? 'plugins' : global.theme ? 'themes' : 'config' %}
{% set blueprint_name = global.blueprints.getFilename %}
{% if type == 'pages' %}
{% set blueprint_name = type ~ '/' ~ blueprint_name %}
{% endif %}
{% set blueprint = base64_encode(blueprint_name) %}
{% set real_path = value.thumb ?? global.context.media[path].relativePath ?? global.form.getPagePathFromToken(path) %}
{% set remove = global.form.getFileDeleteAjaxRoute(files.name, path)|string ?: uri.addNonce(
global.base_url_relative ~
'/media.json' ~
'/task' ~ config.system.param_sep ~ 'removeFileFromBlueprint' ~
'/proute' ~ config.system.param_sep ~ base64_encode(route) ~
'/blueprint' ~ config.system.param_sep ~ blueprint ~
'/type' ~ config.system.param_sep ~ type ~
'/field' ~ config.system.param_sep ~ files.name ~
'/path' ~ config.system.param_sep ~ base64_encode(value.path), 'admin-form', 'admin-nonce') %}
{% set file = value|merge({remove: remove, path: value.thumb_url ?? (uri.rootUrl == '/' ? '/' : uri.rootUrl ~ '/' ~ real_path) }) %}
<div class="hidden" data-file="{{ file|json_encode|e('html_attr') }}"></div>
{% endif %}
{% endmacro %}
{% import _self as macro %}
{% set defaults = config.plugins.form %}
{% set files = defaults.files|merge(field|default([])) %}
{% set limit = not field.multiple ? 1 : files.limit %}
{% do config.set('forms.dropzone.enabled', true) %}
{% block input %}
{% set page_can_upload = exists or (type == 'page' and not exists and not (field.destination starts with '@self' or field.destination starts with 'self@')) %}
{% set max_filesize = (field.filesize > form_max_filesize or field.filesize == 0) ? form_max_filesize : field.filesize %}
{% block prepend %}{% endblock %}
{% set settings = {name: field.name, paramName: (scope ~ field.name)|fieldName ~ (files.multiple ? '[]' : ''), limit: limit, filesize: max_filesize, accept: files.accept, resolution: files.resolution, resizeWidth: files.resizeWidth, resizeHeight: files.resizeHeight, resizeQuality: files.resizeQuality } %}
{% set dropzoneSettings = field.dropzone %}
<div class="{{ form_field_wrapper_classes ?: 'form-input-wrapper' }} {{ field.classes }} dropzone files-upload form-input-file {{ field.size }}" data-grav-file-settings="{{ settings|json_encode|e('html_attr') }}" data-dropzone-options="{{ dropzoneSettings|json_encode|e('html_attr') }}" {% if form.getFileUploadAjaxRoute %}data-file-url-add="{{ form.getFileUploadAjaxRoute() }}"{% endif %}>
{% block file_extras %}{% endblock %}
<input
{# required attribute structures #}
{% block input_attributes %}
type="file"
{% if files.multiple %}multiple="multiple"{% endif %}
{% if files.accept %}accept="{{ files.accept|join(',') }}"{% endif %}
{% if field.disabled %}disabled="disabled"{% endif %}
{% if field.random_name %}random="true"{% endif %}
{% if required %}required="required"{% endif %}
{{ parent() }}
{% endblock %}
/>
{% for path, file in value %}
{{ macro.preview(path, file, _context) }}
{% endfor %}
{% include 'forms/fields/hidden/hidden.html.twig' with {field: {name: '_json.' ~ field.name}, value: (value ?? [])|json_encode } %}
</div>
{% if grav.browser.browser == 'msie' and grav.browser.version < 12 %}
{% do assets.addJs('plugin://form/assets/object.assign.polyfill.js') %}
{% endif %}
{% do assets.addJs('jquery', 101) %}
{% do assets.addJs('plugin://form/assets/form.vendor.js', { 'group': 'bottom', 'loading': 'defer' }) %}
{% do assets.addJs('plugin://form/assets/form.min.js', { 'group': 'bottom', 'loading': 'defer' }) %}
{% do assets.addCss('plugin://form/assets/dropzone.min.css', { 'group': 'form'}) %}
{{ assets.css('form')|raw }}
{% do assets.addInlineJs("
window.GravForm = window.GravForm || {};
window.GravForm = Object.assign({}, window.GravForm, {
translations: {
PLUGIN_FORM: {
'DROPZONE_CANCEL_UPLOAD': " ~ 'PLUGIN_FORM.DROPZONE_CANCEL_UPLOAD'|t|json_encode ~ ",
'DROPZONE_CANCEL_UPLOAD_CONFIRMATION': " ~ 'PLUGIN_FORM.DROPZONE_CANCEL_UPLOAD_CONFIRMATION'|t|json_encode ~ ",
'DROPZONE_DEFAULT_MESSAGE': " ~ 'PLUGIN_FORM.DROPZONE_DEFAULT_MESSAGE'|t|json_encode ~ ",
'DROPZONE_FALLBACK_MESSAGE': " ~ 'PLUGIN_FORM.DROPZONE_FALLBACK_MESSAGE'|t|json_encode ~ ",
'DROPZONE_FALLBACK_TEXT': " ~ 'PLUGIN_FORM.DROPZONE_FALLBACK_TEXT'|t|json_encode ~ ",
'DROPZONE_FILE_TOO_BIG': " ~ 'PLUGIN_FORM.DROPZONE_FILE_TOO_BIG'|t|json_encode ~ ",
'DROPZONE_INVALID_FILE_TYPE': " ~ 'PLUGIN_FORM.DROPZONE_INVALID_FILE_TYPE'|t|json_encode ~ ",
'DROPZONE_MAX_FILES_EXCEEDED': " ~ 'PLUGIN_FORM.DROPZONE_MAX_FILES_EXCEEDED'|t|json_encode ~ ",
'DROPZONE_REMOVE_FILE': " ~ 'PLUGIN_FORM.DROPZONE_REMOVE_FILE'|t|json_encode ~ ",
'DROPZONE_REMOVE_FILE_CONFIRMATION': " ~ 'PLUGIN_FORM.DROPZONE_REMOVE_FILE_CONFIRMATION'|t|json_encode ~ ",
'DROPZONE_RESPONSE_ERROR': " ~ 'PLUGIN_FORM.DROPZONE_RESPONSE_ERROR'|t|json_encode ~ ",
'RESOLUTION_MIN': " ~ 'PLUGIN_FORM.RESOLUTION_MIN'|t|json_encode ~ ",
'RESOLUTION_MAX': " ~ 'PLUGIN_FORM.RESOLUTION_MAX'|t|json_encode ~ "
}
}
});
", {'group': 'bottom', 'position': 'before'}) %}
{% endblock %}
@@ -2,9 +2,10 @@
<ul {{ tree ? 'class="tree"' : '' }}>
{{ macros.nav_loop(pages) }}
<li>
<a href="/search">
<li class="wrap_search">
<a href="#">
<img src="/user/themes/vocurations/images/Icone_search.svg" alt="">
</a>
{% include 'partials/simplesearch_searchbox.html.twig' %}
</li>
</ul>
@@ -2,7 +2,6 @@
{% set pageCollection = search_results %}
{% if page.template == 'modular' %}
{% for item in page.collection %}
{% if item.media.images %}
{% set value = query|hyphenize %}
@@ -10,7 +9,9 @@
{% if title|contains(value) == 1 %}
<section class="search-row">
<a href="{{ item.header.url_news }}" target="_blank">
{% if item.header.url_news %}
<a href="{{ item.header.url_news }}" target="_blank">
{% endif %}
{% set banner = item.media.images|first %}
<div class="search-item">
@@ -35,7 +36,10 @@
{% endif %}
</div>
{% if item.header.url_news %}
</a>
{% endif %}
</section>
{% endif %}
@@ -46,6 +50,7 @@
{% if page.media.images %}
<section class="search-row">
<a href="{{page.url}}">
{% set banner = page.media.images|first %}
<div class="search-item">
@@ -2,6 +2,7 @@
<div class="search-wrapper">
<form name="search" data-simplesearch-form>
<input
autocomplete="off"
name="searchfield"
class="search-input"
type="text"
@@ -2,17 +2,14 @@
{% block content %}
<div class="content-padding simplesearch">
<div class="center">
{% include 'partials/simplesearch_searchbox.html.twig' %}
</div>
<div class="result_for">
<p>
{% if query %}
{% set count = search_results ? search_results.count : 0 %}
{% if count is same as( 1 ) %}
{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query|e)|raw }}
"{{ query }}" - Found {{ search_results.count }} {{ 'Result'|pluralize(search_results.count) }}
{% else %}
{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query|e, count)|raw }}
"{{ query }}" - Found {{ search_results.count }} {{ 'Results'|t(query|e, count)|raw }}
{% endif %}
{% endif %}
</p>