Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ebbbcdf08 | ||
|
|
3c20c69e2d | ||
|
|
77b16de28b | ||
|
|
f0c2883d0e | ||
|
|
b7abbe605b | ||
|
|
fcd97f6492 | ||
|
|
1c12c205ec | ||
|
|
2ee7077ecf | ||
|
|
7601ad0b4c |
@@ -42,4 +42,4 @@ function render(){_ctx.clearRect(0,0,_scene_props.width,_scene_props.height);che
|
||||
_node_pop_up.draw();if(_node_hover_id!=-1){_canvas.style.cursor='pointer';}else{_canvas.style.cursor='auto';}
|
||||
highlightEntries();};function startAnime(){_physics.onUpdate(render);_physics.play()
|
||||
$('body').attr('corpus','map-ready').trigger({'type':'corpus-map-ready','playlist':_playlist});};init();}
|
||||
$(document).ready(function($){var edlpcorpus=new EdlpCorpus();});})(jQuery,Drupal,drupalSettings);
|
||||
$(document).ready(function($){if(drupalSettings.path.isFront&&!edlp_mobile.device_is_mobile){var edlpcorpus=new EdlpCorpus();}});})(jQuery,Drupal,drupalSettings);
|
||||
@@ -1225,8 +1225,11 @@
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function($) {
|
||||
var edlpcorpus = new EdlpCorpus();
|
||||
if(drupalSettings.path.isFront && !edlp_mobile.device_is_mobile){
|
||||
var edlpcorpus = new EdlpCorpus();
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery, Drupal, drupalSettings);
|
||||
|
||||
@@ -93,12 +93,19 @@ function template_preprocess_edlp_home(&$vars){
|
||||
// );
|
||||
|
||||
// render the next events of agenda as list
|
||||
$agenda = array (
|
||||
'#theme' => 'item_list',
|
||||
'#items' => [],
|
||||
$agenda = array(
|
||||
'#type'=>"container",
|
||||
'title'=>array(
|
||||
'#markup'=>"<h3>".t("Agenda")."</h3>",
|
||||
),
|
||||
'list'=> array(
|
||||
'#theme' => 'item_list',
|
||||
'#items' => [],
|
||||
),
|
||||
);
|
||||
|
||||
foreach($vars['agenda_items'] as $node){
|
||||
$agenda['#items'][] = $view_builder->view($node, 'teaser');
|
||||
$agenda['list']['#items'][] = $view_builder->view($node, 'teaser');
|
||||
}
|
||||
$vars['agenda'] = render($agenda);
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
name: 'edlp_mobile'
|
||||
type: module
|
||||
description: 'Handle some mobile behaviours'
|
||||
core: 8.x
|
||||
package: 'Edlp'
|
||||
dependencies:
|
||||
- domain
|
||||
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains edlp_mobile.module.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
// use Drupal\domain\DomainStorage;
|
||||
// use Drupal\domain\DomainElementManager;
|
||||
|
||||
/**
|
||||
* Implements hook_help().
|
||||
*/
|
||||
function edlp_mobile_help($route_name, RouteMatchInterface $route_match) {
|
||||
switch ($route_name) {
|
||||
// Main module help for the edlp_mobile module.
|
||||
case 'help.page.edlp_mobile':
|
||||
$output = '';
|
||||
$output .= '<h3>' . t('About') . '</h3>';
|
||||
$output .= '<p>' . t('Handle some mobile behaviours') . '</p>';
|
||||
return $output;
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* hook_entity_extra_field_info()
|
||||
*/
|
||||
// function edlp_mobile_entity_extra_field_info(){
|
||||
// $extra = [];
|
||||
// $extra['domain']['relations'] = [
|
||||
// 'label' => t('Relations'),
|
||||
// 'description' => 'Display enregistrement relations with other content types',
|
||||
// 'weight' => 99,
|
||||
// ];
|
||||
// return $extra;
|
||||
// }
|
||||
|
||||
// should be the right way
|
||||
// function edlp_mobile_entity_field_storage_info(\Drupal\Core\Entity\EntityTypeInterface $entity_type) {
|
||||
// if ($entity_type->id() == 'domain') {
|
||||
// $definitions['device'] = \Drupal\Core\Field\BaseFieldDefinition::create('string')
|
||||
// ->setName('Device')
|
||||
// ->setLabel(t('Define a target device for this domain (mobile|desktop)'))
|
||||
// ->setTargetEntityTypeId($entity_type->id());
|
||||
// return $definitions;
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* Implements hook_page_attachments().
|
||||
* @param array $attachments
|
||||
*/
|
||||
function edlp_mobile_page_attachments(array &$attachments) {
|
||||
$is_mobile_domain = false;
|
||||
|
||||
global $base_root;
|
||||
//dpm($base_root, '$base_root');
|
||||
|
||||
$current_domain = preg_replace('/http:\/\/|https:\/\//i', '', $base_root);
|
||||
//dpm($current_domain, '$current_domain');
|
||||
|
||||
$domain_storage = \Drupal::entityTypeManager()->getStorage('domain');
|
||||
$domains = $domain_storage->loadMultiple();
|
||||
//dpm($domains);
|
||||
$domain_alias_storage = \Drupal::entityTypeManager()->getStorage('domain_alias');
|
||||
//dpm($domain_alias_storage);
|
||||
|
||||
foreach ($domains as $domain_id => $domain) {
|
||||
if($domain->isActive()){
|
||||
//dpm($domain);
|
||||
|
||||
$alias_ids = $domain_alias_storage->getQuery()->condition('domain_id', $domain_id)->execute();
|
||||
//dpm($alias_ids, 'alias_ids');
|
||||
|
||||
$aliases = $domain_alias_storage->loadMultiple($alias_ids);
|
||||
// dpm($aliases, 'aliases');
|
||||
|
||||
foreach ($aliases as $alias_id => $alias) {
|
||||
if($alias->getPattern() == $current_domain){
|
||||
// we found the current domain and current alias
|
||||
// dpm($domain, 'domain');
|
||||
// dpm($alias, 'alias');
|
||||
$env = $alias->getEnvironment();
|
||||
$env_aliases = $domain_alias_storage->loadByEnvironment($env);
|
||||
// dpm($env_aliases, '$env_aliases');
|
||||
// find out mibile alias and desktop alias
|
||||
// this is dirty
|
||||
// TODO: set target device as domain setting
|
||||
if ($domain->id() == 'm_encyclopediedelaparole_org'){
|
||||
// current domain/alias is mobile
|
||||
$is_mobile_domain = true;
|
||||
$mobile_url = $alias->getPattern();
|
||||
// find desktop pattern
|
||||
foreach ($env_aliases as $env_alias_id => $env_alias) {
|
||||
if($env_alias_id != $alias_id){
|
||||
// we found the desktop pattern
|
||||
$desktop_url = $env_alias->getPattern();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
// current domain/alias is mobile
|
||||
$is_mobile_domain = false;
|
||||
$desktop_url = $alias->getPattern();
|
||||
// find desktop pattern
|
||||
foreach ($env_aliases as $env_alias_id => $env_alias) {
|
||||
if($env_alias_id != $alias_id){
|
||||
// we found the desktop pattern
|
||||
$mobile_url = $env_alias->getPattern();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// $mobile =
|
||||
$current_path = \Drupal::service('path.current')->getPath();
|
||||
$is_front = \Drupal::service('path.matcher')->isFrontPage();
|
||||
$current_language = \Drupal::languageManager()->getCurrentLanguage()->getId();
|
||||
|
||||
// $redirect = false;
|
||||
$js_str = "var edlp_mobile = {\n
|
||||
current_url:'".$base_root."',\n
|
||||
current_path:'".$current_path."',\n
|
||||
is_front:".($is_front ? 'true':'false').",\n
|
||||
lang_code:'".$current_language."',\n
|
||||
is_mobile_domain:".($is_mobile_domain ? 'true':'false').",\n
|
||||
mobile_url:'".$mobile_url."',\n
|
||||
desktop_url:'".$desktop_url."',\n
|
||||
};";
|
||||
|
||||
$attachments['#attached']['html_head'][] = [
|
||||
[
|
||||
'#type' => 'html_tag',
|
||||
'#tag' => 'script',
|
||||
'#value' => $js_str,
|
||||
'#weight' => -1000,
|
||||
'#group' => 'edlp'
|
||||
],
|
||||
// A key, to make it possible to recognize this HTML element when altering.
|
||||
'edlp_mobile',
|
||||
];
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
void 0;if(edlp.redirect){void 0;void 0;edlp.sys_path=edlp.sys_path.replace(/^\//,'');edlp.url=window.location.pathname;edlp.hash=window.location.hash;window.localStorage.setItem('edlp_origin',JSON.stringify(edlp));window.location.replace(window.location.origin+'/'+edlp.lang_code);}else{void 0;}
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
(function($,Drupal,drupalSettings){EdlpTheme=function(){var _ajax_settings=drupalSettings.edlp_ajax;var _$body=$('body');var _corpus_ready=false;var _$corpus_canvas;var _$row=$('main[role="main"]>.layout-content>.row');var _$ajaxLinks;var _audioPlayer;var _randomPlayer;var _compoPlayer;var _ajax_timing={start:0,end:0};var _corpus_promise;function init(){void 0;if(!drupalSettings.path.isFront)
|
||||
return;initEvents();_audioPlayer=new AudioPlayer();_compoPlayer=new CompoPlayer();checkLayout();initAjaxLinks();initHistory();};function initEvents(){var $corpus_df=$.Deferred();_corpus_promise=$corpus_df.promise();_$body.on('corpus-map-ready',function(e){onCorpusMapReady(e);$corpus_df.resolve();}).on('on-studio-chutier-updated',initAjaxLinks).on('studio-initialized',function(e){_compoPlayer.newCompo();}).on('studio-not-active',function(e){_compoPlayer.deactivate();}).on('on-studio-compo-updated',function(e){initAjaxLinks();_compoPlayer.refresh();}).on('on-studio-compo-opened',function(e){initAjaxLinks();_compoPlayer.newCompo();}).on('search-results-loaded',initAjaxLinks).on('open_entree',function(e){void 0;closeAllModals();checkLayout();_$body.removeClass();if(typeof e.url!='undefined'){var state=getSysPathState(e.sys_path);history.pushState(state,null,e.url);if(typeof _paq!=='undefined'){_paq.push(['setCustomUrl',e.url]);_paq.push(['setDocumentTitle',e.title]);_paq.push(['trackPageView']);}}}).on('close_entree',function(e){backToFrontPage();checkLayout();});window.addEventListener('resize',checkLayout,false);}
|
||||
function checkLayout(){var $audioplayer=$("#audio-player");if($audioplayer.length){var navpos=$('#block-mainnavigation').position();void 0;$audioplayer.css({'width':navpos.left+'px'});}};function initScrollbars(){};function getSysPathState(sys_path,view_mode){var state={'sys_path':sys_path,'ajax_path':sys_path};var node_match=state.ajax_path.match(/^\/?(node\/(\d+))$/i);void 0;var term_match=state.ajax_path.match(/^\/?(taxonomy\/term\/(\d+))$/i);void 0;if(node_match){state.ajax_path=_ajax_settings.entityjson_path+'/'+node_match[1];state.node_nid=node_match[2];if(view_mode){state.ajax_path+='/'+view_mode;state.view_mode=view_mode;}}else if(term_match){state.ajax_path=_ajax_settings.entityjson_path+'/'+term_match[1];state.ajax_path=state.ajax_path.replace(/taxonomy\/term/,'taxonomy_term');state.entree_tid=term_match[2];if(view_mode){state.ajax_path+='/'+view_mode;state.view_mode=view_mode;}else{state.ajax_path=null;}}else{state.ajax_path+='/ajax'}
|
||||
(function($,Drupal,drupalSettings){EdlpTheme=function(){var _ajax_settings=drupalSettings.edlp_ajax;var _$body=$('body');var _corpus_ready=false;var _$corpus_canvas;var _$row=$('main[role="main"]>.layout-content>.row');var _$ajaxLinks;var _audioPlayer;var _randomPlayer;var _compoPlayer;var _ajax_timing={start:0,end:0};var _corpus_promise;function init(){void 0;initEvents();_audioPlayer=new AudioPlayer();_compoPlayer=new CompoPlayer();checkLayout();initAjaxLinks();initHistory();};function initEvents(){var $corpus_df=$.Deferred();_corpus_promise=$corpus_df.promise();_$body.on('corpus-map-ready',function(e){onCorpusMapReady(e);$corpus_df.resolve();}).on('on-studio-chutier-updated',initAjaxLinks).on('studio-initialized',function(e){_compoPlayer.newCompo();}).on('studio-not-active',function(e){_compoPlayer.deactivate();}).on('on-studio-compo-updated',function(e){initAjaxLinks();_compoPlayer.refresh();}).on('on-studio-compo-opened',function(e){initAjaxLinks();_compoPlayer.newCompo();}).on('search-results-loaded',initAjaxLinks).on('open_entree',function(e){void 0;closeAllModals();checkLayout();_$body.removeClass();if(typeof e.url!='undefined'){var state=getSysPathState(e.sys_path);history.pushState(state,null,e.url);if(typeof _paq!=='undefined'){_paq.push(['setCustomUrl',e.url]);_paq.push(['setDocumentTitle',e.title]);_paq.push(['trackPageView']);}}}).on('close_entree',function(e){backToFrontPage();checkLayout();});window.addEventListener('resize',checkLayout,false);}
|
||||
function checkLayout(){var $audioplayer=$("#audio-player");if($audioplayer.length){var navpos=$('#block-mainnavigation').position();void 0;if(typeof navpos!='undefined'){$audioplayer.css({'width':navpos.left+'px'});}}};function initScrollbars(){};function getSysPathState(sys_path,view_mode){var state={'sys_path':sys_path,'ajax_path':sys_path};var node_match=state.ajax_path.match(/^\/?(node\/(\d+))$/i);void 0;var term_match=state.ajax_path.match(/^\/?(taxonomy\/term\/(\d+))$/i);void 0;if(node_match){state.ajax_path=_ajax_settings.entityjson_path+'/'+node_match[1];state.node_nid=node_match[2];if(view_mode){state.ajax_path+='/'+view_mode;state.view_mode=view_mode;}}else if(term_match){state.ajax_path=_ajax_settings.entityjson_path+'/'+term_match[1];state.ajax_path=state.ajax_path.replace(/taxonomy\/term/,'taxonomy_term');state.entree_tid=term_match[2];if(view_mode){state.ajax_path+='/'+view_mode;state.view_mode=view_mode;}else{state.ajax_path=null;}}else{state.ajax_path+='/ajax'}
|
||||
return state;};function ajaxLoadContent(state){void 0;_$body.addClass('ajax-loading');_ajax_timing.start=performance.now();var path=window.location.origin+Drupal.url(state.ajax_path);$.getJSON(path,{}).done(function(data){onAjaxLoaded(data,state);}).fail(function(jqxhr,textStatus,error){onAjaxLoadError(jqxhr,textStatus,error,state.sys_path);});};function onAjaxLoadError(jqxhr,textStatus,error,sys_path){void 0;$('.ajax-loading').removeClass('ajax-loading');_$body.removeClass('ajax-loading');};function onAjaxLoaded(data,state){void 0;if(data.entity_type=="node"&&data.bundle=="evenement"){if(_$row.find('.col.event').length){_$row.find('.col.event').replaceWith(data.rendered);}else if(_$row.find('.col.aside').length){_$row.find('.col.aside').replaceWith(data.rendered);}else{_$row.append(data.rendered);}}else{_$row.removeAttr('style').html(data.rendered);}
|
||||
var body_classes=['path-'+state.sys_path.replace(/\//g,'-'),'entity-type-'+data.entity_type,'bundle-'+data.bundle,'view-mode-'+data.view_mode];_$body.removeClass().addClass(body_classes.join(' '));if(state.node_nid)
|
||||
_$body.addClass('path-edlp-node');$('.ajax-loading').removeClass('ajax-loading');$('.ajax-link.is-active').removeClass('is-active');$('.is-active-trail').removeClass('is-active-trail');if(typeof state.selector!='undefined'){void 0;$('a[selector="'+state.selector+'"]').addClass('is-active');initAudioLinksInContent();}else{if(typeof state.view_mode!='undefined'){$('a[viewmode="'+state.view_mode+'"][data-drupal-link-system-path="'+state.sys_path+'"]').addClass('is-active');}else{$('a[data-drupal-link-system-path="'+state.sys_path+'"]').addClass('is-active');}
|
||||
@@ -32,7 +31,7 @@ var sys_path=$(this).attr('data-drupal-link-system-path');if(sys_path=='<front>'
|
||||
var view_mode=$link.attr('viewmode');var state=getSysPathState(sys_path,view_mode);state.url=$(this).attr('href');if(view_mode){state.url+="#"+view_mode;}
|
||||
if($link.is('[selector]')){state.selector=$link.attr('selector');}
|
||||
$link.addClass('ajax-loading');ajaxLoadContent(state);return false;};function onCorpusMapReady(e){_corpus_ready=true;_$corpus_canvas=$('canvas#corpus-map');_$corpus_canvas.on('corpus-cliked-on-map',function(e){backToFrontPage();}).on('corpus-cliked-on-node',function(e){_audioPlayer.emmit('stop-shuffle').setAutoOpenArticle(e.article).openDocument(e.target_node);});_randomPlayer=new RandomPlayer(e.playlist);_$body.attr('corpus-map','ready');}
|
||||
function openEntree(tid){if(tid){closeAllModals();_$body.removeClass();if(_corpus_ready){_$corpus_canvas.trigger({type:'open-entree',tid:tid});}else{$('li.entree[tid="'+tid+'"] a.term-link').addClass('is-active');}}};function checkVisibleCorpusMapSpace(){var left_limit=0,right_limit=0;_$row.find('.col').each(function(i,e){var $col=$(this);var offset=$col.offset();switch(true){case $col.is('.float-right'):right_limit=Math.max(right_limit,Math.abs(offset.left-window.innerWidth));break;default:left_limit=Math.max(left_limit,offset.left+$col.width());break;}});void 0;if(_corpus_ready){_$body.trigger({type:'visible-space-changed',left_limit:left_limit,right_limit:right_limit});}else{_corpus_promise.done(function(){_$body.trigger({type:'visible-space-changed',left_limit:left_limit,right_limit:right_limit});});}};function AudioPlayer(){var that=this;this.fid;this.audio=new Audio();this.audio_events=["loadedmetadata","playing","pause","timeupdate","ended","error"];this.$container=$('<div id="audio-player">');this.$btns=$('<div>').addClass('btns').appendTo(this.$container);this.$previous=$('<div>').addClass('previous').appendTo(this.$btns);this.$playpause=$('<div>').addClass('play-pause').appendTo(this.$btns);this.$next=$('<div>').addClass('next').appendTo(this.$btns);this.$timelinecont=$('<div>').addClass('time-line-container').appendTo(this.$container);this.$timeline=$('<div>').addClass('time-line').appendTo(this.$timelinecont);this.$loader=$('<div>').addClass('loader').appendTo(this.$timeline);this.$cursor=$('<div>').addClass('cursor').appendTo(this.$timeline);this.$time=$('<div>').addClass('time').appendTo(this.$container);this.$currentTime=$('<div>').addClass('current-time').html('00:00').appendTo(this.$time);this.$duration=$('<div>').addClass('duration').html('00:00').appendTo(this.$time);this.$fav=$('<div>').addClass('favoris').appendTo(this.$container);this.$cartel=$('<div>').addClass('cartel').appendTo(this.$container);this.hideTimer=false;this.hideTimeMS=10000;this.currentHistoricIndex=null;this.historic=[];this.shuffle_is_active=false;this.auto_open_article=false;this.event_handlers={'audio-open-document':[],'audio-play':[],'audio-pause':[],'audio-play-next':[],'audio-ended':[],'stop-shuffle':[]};this.init();};AudioPlayer.prototype={init(){this.$container_parent=$('header[role="banner"] .region-header');this.$container.appendTo(this.$container_parent);this.timeline_w=parseInt(this.$timeline.width());var fn='';for(var i=0;i<this.audio_events.length;i++){fn=this.audio_events[i];fn='on'+fn.charAt(0).toUpperCase()+fn.slice(1);this.audio.addEventListener(this.audio_events[i],this[fn].bind(this),true);}
|
||||
function openEntree(tid){if(tid){closeAllModals();_$body.removeClass();if(_corpus_ready){_$corpus_canvas.trigger({type:'open-entree',tid:tid});}else{$('li.entree[tid="'+tid+'"] a.term-link').addClass('is-active');}}};function checkVisibleCorpusMapSpace(){var left_limit=0,right_limit=0;_$row.find('.col').each(function(i,e){var $col=$(this);var offset=$col.offset();switch(true){case $col.is('.float-right'):right_limit=Math.max(right_limit,Math.abs(offset.left-window.innerWidth));break;default:left_limit=Math.max(left_limit,offset.left+$col.width());break;}});void 0;if(_corpus_ready){_$body.trigger({type:'visible-space-changed',left_limit:left_limit,right_limit:right_limit});}else{_corpus_promise.done(function(){_$body.trigger({type:'visible-space-changed',left_limit:left_limit,right_limit:right_limit});});}};function AudioPlayer(){var that=this;this.fid;this.audio=new Audio();this.audio_events=["loadedmetadata","playing","pause","timeupdate","ended","error"];this.$container=$('<div id="audio-player">');this.$btns=$('<div>').addClass('btns').appendTo(this.$container);this.$previous=$('<div>').addClass('previous').appendTo(this.$btns);this.$playpause=$('<div>').addClass('play-pause').appendTo(this.$btns);this.$next=$('<div>').addClass('next').appendTo(this.$btns);this.$timelinecont=$('<div>').addClass('time-line-container').appendTo(this.$container);this.$timeline=$('<div>').addClass('time-line').appendTo(this.$timelinecont);this.$loader=$('<div>').addClass('loader').appendTo(this.$timeline);this.$cursor=$('<div>').addClass('cursor').appendTo(this.$timeline);this.$time=$('<div>').addClass('time').appendTo(this.$container);this.$currentTime=$('<div>').addClass('current-time').html('00:00').appendTo(this.$time);this.$duration=$('<div>').addClass('duration').html('00:00').appendTo(this.$time);this.$fav=$('<div>').addClass('favoris').appendTo(this.$container);this.$cartel=$('<div>').addClass('cartel').appendTo(this.$container);this.hideTimer=false;this.hideTimeMS=15000;this.currentHistoricIndex=null;this.historic=[];this.shuffle_is_active=false;this.auto_open_article=false;this.event_handlers={'audio-open-document':[],'audio-play':[],'audio-pause':[],'audio-play-next':[],'audio-ended':[],'stop-shuffle':[]};this.init();};AudioPlayer.prototype={init(){this.$container_parent=$('header[role="banner"] .region-header');this.$container.appendTo(this.$container_parent);this.timeline_w=parseInt(this.$timeline.width());var fn='';for(var i=0;i<this.audio_events.length;i++){fn=this.audio_events[i];fn='on'+fn.charAt(0).toUpperCase()+fn.slice(1);this.audio.addEventListener(this.audio_events[i],this[fn].bind(this),true);}
|
||||
this.$previous.on('click',this.playPrevious.bind(this));this.$playpause.on('click',this.togglePlayPause.bind(this));this.$next.on('click',this.playNext.bind(this));},openDocument(node,caller,historic_index){if(typeof node=='undefined'||typeof node.nid=='undefined'||typeof node.audio_url=='undfined'||typeof node.document_url=='undfined'){void 0;return false;}
|
||||
if(typeof caller=='undefined'||caller!='popstate'){this.historic.push(node);this.currentHistoricIndex=this.historic.length-1;if(caller!="history_first_load"){var state={audio:true,node:{nid:node.nid,audio_url:node.audio_url,document_url:node.document_url,title:node.title||null,},historic_index:this.currentHistoricIndex,};history.pushState(state,null,node.document_url);}}else{this.currentHistoricIndex=historic_index;}
|
||||
this.emmit('audio-open-document',{caller:caller});if(typeof _paq!=='undefined'){if(typeof node.title!='undefined'){_paq.push(['trackEvent','Audio','play',node.title]);}}
|
||||
@@ -54,4 +53,4 @@ return this;},deactivate(){this.stop();this.active=false;},onAudioOpenDocument(a
|
||||
function initSearch(){$('#edit-entries--wrapper legend','#edlp-search-form').on('click',function(){$(this).parent().toggleClass('opened');});};function initEnregistrementTranscript(){void 0;var $node=_$row.find('article.node--type-enregistrement.node--view-mode-transcript');var $nav=$('<nav>').prependTo($node);$node.find('.field--name-field-transcript-vo').addClass('visible').find('.field__label').clone().appendTo($nav).addClass('is-active').attr('field_target','.field--name-field-transcript-vo');$node.find('.field--name-field-transcript-trad').find('.field__label').clone().appendTo($nav).attr('field_target','.field--name-field-transcript-trad');$nav.find('.field__label').on('click',function(){var $this=$(this).addClass('is-active');$this.siblings('.is-active').removeClass('is-active');$this.parents('article.node').find('.field.visible').removeClass('visible');$this.parents('article.node').find($this.attr('field_target')).addClass('visible');});};function backToFrontPage(pop_state){void 0;closeAllModals();$('body').removeClass().addClass('path-frontpage');$('a[data-drupal-link-system-path="<front>"]').addClass('is-active');_$corpus_canvas.trigger({'type':'close-all-entree'});_$corpus_canvas.trigger({'type':'scramble-collection'});if(typeof pop_state=="undefined"||!pop_state){void 0;history.pushState({home:true},null,drupalSettings.path.baseUrl+drupalSettings.path.currentLanguage);}}
|
||||
function initHome(){addCloseModalBtnToCols();var $grid=$('.grid',_$row).masonry({itemSelector:'.col',columnWidth:'.col-2',horizontalOrder:true,containerStyle:null,});$grid.imagesLoaded().progress(function(){$grid.masonry('layout');});$grid.imagesLoaded(function(){$grid.masonry('layout');});}
|
||||
function closeAllModals(){_$row.html('');_$ajaxLinks.removeClass('is-active');_$body.trigger({'type':'all-modal-closed'});};function checkRowEmpty(){if(!$('.col',_$row).length){if(!_$body.is('.entity-type-taxonomy_term.bundle-entrees')){if(!_$body.is('.entity-type-node.bundle-page')){backToFrontPage();}else{_$corpus_canvas.trigger({'type':'scramble-collection'});$('a[data-drupal-link-system-path="productions"]','#block-mainnavigation').removeClass('is-active').trigger('click');}}else{$('.entree-content a.is-active').removeClass('is-active');}}};init();}
|
||||
$(document).ready(function($){if(drupalSettings.path.isFront){var edlptheme=new EdlpTheme();}else{$('body').attr('booted','booted');}});})(jQuery,Drupal,drupalSettings);
|
||||
$(document).ready(function($){if(drupalSettings.path.isFront&&!edlp_mobile.device_is_mobile){var edlptheme=new EdlpTheme();}else{$('body').attr('booted','booted');}});})(jQuery,Drupal,drupalSettings);
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
void 0;function checkMobile(){var user_agent=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge|maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(user_agent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(user_agent.substr(0,4));}
|
||||
if(typeof edlp_mobile!="undefined"){var device_redirect=false;var device_is_mobile=checkMobile();edlp_mobile.device_is_mobile=device_is_mobile;switch(true){case(device_is_mobile&&!edlp_mobile.is_mobile_domain):device_redirect=true;window.location.replace(window.location.protocol+'//'+edlp_mobile.mobile_url);break;case(edlp_mobile.is_mobile_domain&&!device_is_mobile):device_redirect=true;window.location.replace(window.location.protocol+'//'+edlp_mobile.desktop_url);break;default:break;}
|
||||
if(device_is_mobile){document.documentElement.className+="is-mobile";}}
|
||||
if(edlp.redirect&&!device_redirect&&!device_is_mobile){void 0;void 0;edlp.sys_path=edlp.sys_path.replace(/^\//,'');edlp.url=window.location.pathname;edlp.hash=window.location.hash;window.localStorage.setItem('edlp_origin',JSON.stringify(edlp));window.location.replace(window.location.origin+'/'+edlp.lang_code);}else{void 0;}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,20 +0,0 @@
|
||||
console.log('EDLP THEME HISTORY.js');
|
||||
// var edlp is provided by edlp_ajax.module file
|
||||
if(edlp.redirect){
|
||||
console.log('history redirect', edlp);
|
||||
console.log('window.location', window.location);
|
||||
// window.localStorage.setItem('edlp_origin_path', edlp.sys_path.replace(/^\//, ''));
|
||||
edlp.sys_path = edlp.sys_path.replace(/^\//, '');
|
||||
|
||||
// window.localStorage.setItem('edlp_origin_url', window.location.pathname);
|
||||
edlp.url = window.location.pathname;
|
||||
|
||||
// window.localStorage.setItem('edlp_origin_hash', window.location.hash);
|
||||
edlp.hash = window.location.hash;
|
||||
|
||||
window.localStorage.setItem('edlp_origin', JSON.stringify(edlp));
|
||||
// redirect to home
|
||||
window.location.replace(window.location.origin+'/'+edlp.lang_code);
|
||||
}else{
|
||||
console.log('history do not redirect');
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
function init(){
|
||||
console.log("EdlpTheme init()");
|
||||
|
||||
if(!drupalSettings.path.isFront)
|
||||
return;
|
||||
// if(!drupalSettings.path.isFront)
|
||||
// return;
|
||||
|
||||
initEvents();
|
||||
|
||||
@@ -121,9 +121,11 @@
|
||||
if($audioplayer.length){
|
||||
var navpos = $('#block-mainnavigation').position();
|
||||
console.log('navpos', navpos);
|
||||
$audioplayer.css({
|
||||
'width':navpos.left+'px'
|
||||
});
|
||||
if(typeof navpos != 'undefined'){
|
||||
$audioplayer.css({
|
||||
'width':navpos.left+'px'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// entrees
|
||||
@@ -803,7 +805,7 @@
|
||||
|
||||
// hiding
|
||||
this.hideTimer = false;
|
||||
this.hideTimeMS = 10000;
|
||||
this.hideTimeMS = 15000;
|
||||
|
||||
// history
|
||||
this.currentHistoricIndex = null;
|
||||
@@ -1657,7 +1659,7 @@
|
||||
} // end EdlpTheme()
|
||||
|
||||
$(document).ready(function($) {
|
||||
if(drupalSettings.path.isFront){
|
||||
if(drupalSettings.path.isFront && !edlp_mobile.device_is_mobile){
|
||||
var edlptheme = new EdlpTheme();
|
||||
}else{
|
||||
$('body').attr('booted', 'booted');
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
console.log('EDLP THEME redirect.js');
|
||||
|
||||
function checkMobile(){
|
||||
var user_agent = navigator.userAgent||navigator.vendor||window.opera;
|
||||
return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(user_agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(user_agent.substr(0,4));
|
||||
}
|
||||
|
||||
// var edlp_mobile is provided by edlp_mobile.module file
|
||||
if(typeof edlp_mobile != "undefined"){
|
||||
// console.log(edlp_mobile);
|
||||
// console.log('window.location', window.location);
|
||||
var device_redirect = false;
|
||||
var device_is_mobile = checkMobile();
|
||||
// console.log('is_mobile_domain', edlp_mobile.is_mobile_domain);
|
||||
// console.log('device_is_mobile', device_is_mobile);
|
||||
edlp_mobile.device_is_mobile = device_is_mobile;
|
||||
switch(true){
|
||||
case (device_is_mobile && !edlp_mobile.is_mobile_domain):
|
||||
// console.log('redirect to mobile domain', window.location.protocol +'//'+ edlp_mobile.mobile_url);
|
||||
device_redirect = true;
|
||||
// TODO: redirect to mobile domain
|
||||
window.location.replace(window.location.protocol +'//'+ edlp_mobile.mobile_url);
|
||||
break;
|
||||
case (edlp_mobile.is_mobile_domain && !device_is_mobile):
|
||||
// console.log('redirect to desktop domain', window.location.protocol +'//'+ edlp_mobile.desktop_url);
|
||||
device_redirect = true;
|
||||
// TODO: redirect to desktop domain
|
||||
window.location.replace(window.location.protocol +'//'+ edlp_mobile.desktop_url);
|
||||
break;
|
||||
default:
|
||||
// console.log('do not redirect');
|
||||
break;
|
||||
}
|
||||
if(device_is_mobile){
|
||||
document.documentElement.className += "is-mobile";
|
||||
}
|
||||
}
|
||||
|
||||
// var edlp is provided by edlp_ajax.module file
|
||||
if(edlp.redirect && !device_redirect && !device_is_mobile){
|
||||
console.log('redirect', edlp);
|
||||
console.log('window.location', window.location);
|
||||
// window.localStorage.setItem('edlp_origin_path', edlp.sys_path.replace(/^\//, ''));
|
||||
edlp.sys_path = edlp.sys_path.replace(/^\//, '');
|
||||
|
||||
// window.localStorage.setItem('edlp_origin_url', window.location.pathname);
|
||||
edlp.url = window.location.pathname;
|
||||
|
||||
// window.localStorage.setItem('edlp_origin_hash', window.location.hash);
|
||||
edlp.hash = window.location.hash;
|
||||
|
||||
window.localStorage.setItem('edlp_origin', JSON.stringify(edlp));
|
||||
// redirect to home
|
||||
window.location.replace(window.location.origin+'/'+edlp.lang_code);
|
||||
}else{
|
||||
console.log('history do not redirect');
|
||||
}
|
||||
@@ -89,6 +89,10 @@ header[role="banner"]{
|
||||
white-space: nowrap;
|
||||
text-indent: 500px;
|
||||
overflow: hidden;
|
||||
html.is-mobile &{
|
||||
$w:170px;
|
||||
width:$w; height:$w * 0.22;
|
||||
}
|
||||
}
|
||||
}
|
||||
opacity: 1;
|
||||
@@ -151,6 +155,16 @@ header[role="banner"]{
|
||||
}
|
||||
}
|
||||
}
|
||||
html.is-mobile &{
|
||||
// outline: 1px solid orange;
|
||||
margin-top:4px;
|
||||
li{
|
||||
a{
|
||||
font-size: 0.680em;
|
||||
padding:0; margin:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.block-language{
|
||||
@@ -1651,40 +1665,6 @@ footer{
|
||||
}
|
||||
}
|
||||
|
||||
// .block-language{
|
||||
// display: inline-block;
|
||||
// position: relative;
|
||||
// ul{
|
||||
// position: absolute;
|
||||
// bottom:0;
|
||||
// margin:0;
|
||||
// padding:0;
|
||||
// transform-origin: left bottom;
|
||||
// transform: rotateZ(-45deg);
|
||||
// white-space: nowrap;
|
||||
// pointer-events: all;
|
||||
// li{
|
||||
// margin:0; padding:0;
|
||||
// list-style: none;
|
||||
// display: inline-block;
|
||||
// &:last-of-type{
|
||||
// &:before{
|
||||
// content:"/";
|
||||
// margin:0 0.2em;
|
||||
// }
|
||||
// }
|
||||
// a{
|
||||
// color: inherit;
|
||||
// text-decoration: none;
|
||||
// font-size: 0.756em;
|
||||
// }
|
||||
// &.is-active{
|
||||
// a{color: red;}
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
nav#block-productions.block-menu{
|
||||
position: relative;
|
||||
pointer-events: none;
|
||||
@@ -1926,14 +1906,15 @@ footer{
|
||||
}
|
||||
|
||||
$icons_w:20px;
|
||||
$mobile_icon_w:15px;
|
||||
@mixin iconlinkblock($bgimgurl, $bgimgurlactive) {
|
||||
pointer-events: all;
|
||||
margin-left: 0.5em;
|
||||
// @include btn;
|
||||
a{
|
||||
box-sizing: border-box;
|
||||
$wh:$icons_w;
|
||||
display: block;
|
||||
$wh:$icons_w;
|
||||
width:$wh; height:$wh;
|
||||
text-indent: $wh*2;
|
||||
margin: 0;
|
||||
@@ -1950,6 +1931,12 @@ footer{
|
||||
// background-color: red;
|
||||
background-image: $bgimgurlactive;
|
||||
}
|
||||
html.is-mobile &{
|
||||
$wh:$mobile_icon_w;
|
||||
width:$wh; height:$wh;
|
||||
text-indent: $wh*2;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2041,6 +2028,95 @@ footer{
|
||||
margin-left: 0.2em;
|
||||
}
|
||||
|
||||
.block-language{
|
||||
float: none;
|
||||
margin-top: 0;
|
||||
margin-right: 2em;
|
||||
ul{
|
||||
margin:0; padding:0;
|
||||
li{
|
||||
display: inline-block; vertical-align: middle;
|
||||
list-style: none;
|
||||
pointer-events: all;
|
||||
a{
|
||||
font-size: 0.690em;
|
||||
color:inherit;
|
||||
text-decoration: none;
|
||||
text-transform: capitalize;
|
||||
margin-left: 0.8em;
|
||||
@include btn;
|
||||
&:before{
|
||||
content: "";
|
||||
display:inline-block;
|
||||
$sq:0.6em;
|
||||
width: $sq; height:$sq;
|
||||
border: 1px solid red;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
}
|
||||
&.is-active,
|
||||
&:hover{
|
||||
a:before{
|
||||
border-color: red;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html.is-mobile &{
|
||||
// outline: 1px solid green;
|
||||
border-left: none;
|
||||
ul{
|
||||
margin-right:0.5em;
|
||||
}
|
||||
li{
|
||||
line-height: 0;
|
||||
a{
|
||||
padding:0;
|
||||
margin:0;
|
||||
// &:before{display: none;}
|
||||
&.is-active{
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html.is-mobile &{
|
||||
position: fixed;
|
||||
box-sizing: border-box;
|
||||
bottom:0; left:0;
|
||||
width:100%;
|
||||
background-color: #fff;
|
||||
padding-top:0;
|
||||
padding-bottom:0;
|
||||
.region-footer-left, .region-footer-right{
|
||||
width: 50%;
|
||||
>*{
|
||||
margin:0.4em 0!important;
|
||||
}
|
||||
}
|
||||
|
||||
#block-footer, .block-language{
|
||||
// margin-top: 0;
|
||||
li{
|
||||
display: inline-block;
|
||||
a{
|
||||
font-size: 0.680em;
|
||||
&:before{
|
||||
$sq:5px;
|
||||
width: $sq; height:$sq;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.region-footer-right{
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// _ _ _ ___
|
||||
|
||||
@@ -28,8 +28,13 @@ $med-bp:1080px;
|
||||
@mixin col($col, $offset: 0, $sum: $default_sum, $gap: $default_gap, $align: top) {
|
||||
@extend %col-reset;
|
||||
padding-left: $gap*$offset;
|
||||
padding-right: $gap;
|
||||
@if $col == $default_sum {
|
||||
padding-right: 0;
|
||||
}@else{
|
||||
padding-right: $gap;
|
||||
}
|
||||
&:last-child{padding-right: 0;}
|
||||
|
||||
margin-left: percentage(($col/$sum)*$offset);
|
||||
|
||||
// @media only screen and (min-width: 768px) {
|
||||
|
||||
@@ -37,6 +37,15 @@ header[role="banner"]{
|
||||
}
|
||||
}
|
||||
}
|
||||
html.is-mobile header[role="banner"]{
|
||||
position:fixed;
|
||||
box-sizing: border-box;
|
||||
top:0; left:0; width:100%;
|
||||
background-color: #fff;
|
||||
>.wrapper{
|
||||
height:50px;
|
||||
}
|
||||
}
|
||||
|
||||
aside.messages{
|
||||
border: none;
|
||||
@@ -49,7 +58,7 @@ aside.messages{
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
main[role="main"]{
|
||||
html:not(.is-mobile) main[role="main"]{
|
||||
// outline:1px solid green;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
@@ -69,6 +78,11 @@ main[role="main"]{
|
||||
}
|
||||
}
|
||||
|
||||
html.is-mobile main[role="main"]{
|
||||
padding:80px 1em 40px;
|
||||
// background-color: blue;
|
||||
}
|
||||
|
||||
body.toolbar-horizontal.toolbar-themes.toolbar-no-tabs{
|
||||
main[role="main"]{
|
||||
padding-top: 7em + 1em;
|
||||
|
||||
@@ -5,7 +5,7 @@ base theme: classy
|
||||
core: 8.x
|
||||
libraries:
|
||||
- core/normalize
|
||||
- edlptheme/history-js
|
||||
- edlptheme/redirect-js
|
||||
- edlptheme/global-css
|
||||
- edlptheme/global-js
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@ global-css:
|
||||
theme:
|
||||
assets/dist/styles/app.min.css: {}
|
||||
|
||||
history-js:
|
||||
redirect-js:
|
||||
version: VERSION
|
||||
header: true
|
||||
js:
|
||||
assets/dist/scripts/history.min.js: { weight:-998, preprocess: false, minified: true }
|
||||
assets/dist/scripts/redirect.min.js: { weight:-998, preprocess: false, minified: true }
|
||||
|
||||
global-js:
|
||||
version: VERSION
|
||||
|
||||
@@ -202,7 +202,7 @@ function edlptheme_preprocess_node__enregistrement__player_cartel(&$vars){
|
||||
'data-drupal-link-system-path' => $url->getInternalPath()
|
||||
)
|
||||
));
|
||||
$vars['link_transcript'] = Link::fromTextAndUrl(t("Lire le text."), $url);
|
||||
$vars['link_transcript'] = Link::fromTextAndUrl(t("Read the text."), $url);
|
||||
}
|
||||
|
||||
// if article not empty
|
||||
@@ -217,7 +217,7 @@ function edlptheme_preprocess_node__enregistrement__player_cartel(&$vars){
|
||||
'data-drupal-link-system-path' => $url->getInternalPath()
|
||||
)
|
||||
));
|
||||
$vars['link_article'] = Link::fromTextAndUrl(t("Lire l'article."), $url);
|
||||
$vars['link_article'] = Link::fromTextAndUrl(t("Read the article."), $url);
|
||||
}
|
||||
|
||||
// relations (defined in edlp_corpus.module)
|
||||
|
||||
@@ -29,7 +29,7 @@ function handleError(err) {
|
||||
}
|
||||
|
||||
gulp.task('scripts', function () {
|
||||
gulp.src(['./assets/scripts/main.js', './assets/scripts/history.js']) // './assets/scripts/shared_variables.js',
|
||||
gulp.src(['./assets/scripts/main.js', './assets/scripts/redirect.js']) // './assets/scripts/shared_variables.js',
|
||||
// .pipe(concat('main.js'))
|
||||
.pipe(gulpif(prod, stripDebug()))
|
||||
.pipe(gulpif(prod, jsmin()))
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="grid">
|
||||
|
||||
{% for node in nodes %}
|
||||
<div class="col col-{{ node.cols }}">
|
||||
<div class="col small-col-12 med-col-4 large-col-{{ node.cols }}">
|
||||
<div class="wrapper">
|
||||
{{ node.build }}
|
||||
</div>
|
||||
@@ -26,7 +26,7 @@
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="agenda col col-3">
|
||||
<div class="agenda col small-col-12 med-col-4 large-col-3">
|
||||
<div class="wrapper">
|
||||
{{ agenda }}
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="grid">
|
||||
{% for node in nodes %}
|
||||
<div class="col col-{{ node.cols }}">
|
||||
<div class="col small-col-12 med-col-4 large-col-{{ node.cols }}">
|
||||
<div class="wrapper">
|
||||
{{ node.build }}
|
||||
</div>
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
{%- endif -%}
|
||||
<ul{{ attributes }}>
|
||||
{%- for item in links -%}
|
||||
<!-- {{ dump(item) }} -->
|
||||
<li{{ item.attributes }}>
|
||||
{%- if item.link -%}
|
||||
{{ item.link }}
|
||||
|
||||
@@ -2,7 +2,7 @@ position: tr
|
||||
vertical: 70
|
||||
horizontal: 10
|
||||
fixed: 1
|
||||
width: 400px
|
||||
width: 600px
|
||||
autoclose: 7
|
||||
opendelay: 0.3
|
||||
disable_autoclose: 1
|
||||
@@ -15,8 +15,8 @@ popout:
|
||||
effect: fadeIn
|
||||
duration: fast
|
||||
jquery_ui:
|
||||
draggable: 0
|
||||
resizable: 0
|
||||
draggable: 1
|
||||
resizable: 1
|
||||
visibility:
|
||||
message_type:
|
||||
id: message_type
|
||||
|
||||
@@ -25,7 +25,8 @@ visibility:
|
||||
domains:
|
||||
encyclopediedelaparole_org: encyclopediedelaparole_org
|
||||
negate: false
|
||||
context_mapping: { }
|
||||
context_mapping:
|
||||
'entity:domain': '@domain.current_domain_context:entity:domain'
|
||||
request_path:
|
||||
id: request_path
|
||||
pages: '<front>'
|
||||
|
||||
@@ -9,7 +9,7 @@ dependencies:
|
||||
id: edlpsearchlinkblock
|
||||
theme: edlptheme
|
||||
region: footer_right
|
||||
weight: 0
|
||||
weight: -3
|
||||
provider: null
|
||||
plugin: edlp_search_link_block
|
||||
settings:
|
||||
|
||||
@@ -12,7 +12,7 @@ dependencies:
|
||||
id: footer
|
||||
theme: edlptheme
|
||||
region: footer_left
|
||||
weight: -4
|
||||
weight: -7
|
||||
provider: null
|
||||
plugin: 'system_menu_block:footer'
|
||||
settings:
|
||||
|
||||
@@ -10,7 +10,7 @@ dependencies:
|
||||
id: languageswitcher
|
||||
theme: edlptheme
|
||||
region: footer_left
|
||||
weight: -3
|
||||
weight: -6
|
||||
provider: null
|
||||
plugin: 'language_block:language_interface'
|
||||
settings:
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
uuid: c9f90b2a-6eb4-49ec-a5d0-38e824469041
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- domain
|
||||
- language
|
||||
theme:
|
||||
- edlptheme
|
||||
id: languageswitcher_2
|
||||
theme: edlptheme
|
||||
region: footer_right
|
||||
weight: -6
|
||||
provider: null
|
||||
plugin: 'language_block:language_interface'
|
||||
settings:
|
||||
id: 'language_block:language_interface'
|
||||
label: 'Language switcher'
|
||||
provider: language
|
||||
label_display: '0'
|
||||
visibility:
|
||||
domain:
|
||||
id: domain
|
||||
domains:
|
||||
m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
|
||||
negate: false
|
||||
context_mapping: { }
|
||||
@@ -5,7 +5,6 @@ dependencies:
|
||||
config:
|
||||
- system.menu.main
|
||||
module:
|
||||
- domain
|
||||
- system
|
||||
theme:
|
||||
- edlptheme
|
||||
@@ -22,10 +21,4 @@ settings:
|
||||
label_display: '0'
|
||||
level: 1
|
||||
depth: 0
|
||||
visibility:
|
||||
domain:
|
||||
id: domain
|
||||
domains:
|
||||
encyclopediedelaparole_org: encyclopediedelaparole_org
|
||||
negate: false
|
||||
context_mapping: { }
|
||||
visibility: { }
|
||||
|
||||
@@ -5,6 +5,7 @@ dependencies:
|
||||
config:
|
||||
- system.menu.productions
|
||||
module:
|
||||
- domain
|
||||
- system
|
||||
theme:
|
||||
- edlptheme
|
||||
@@ -27,3 +28,10 @@ visibility:
|
||||
pages: '<front>'
|
||||
negate: false
|
||||
context_mapping: { }
|
||||
domain:
|
||||
id: domain
|
||||
domains:
|
||||
encyclopediedelaparole_org: encyclopediedelaparole_org
|
||||
negate: false
|
||||
context_mapping:
|
||||
'entity:domain': '@domain.current_domain_context:entity:domain'
|
||||
|
||||
@@ -3,6 +3,7 @@ langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- domain
|
||||
- language
|
||||
theme:
|
||||
- edlptheme
|
||||
@@ -17,4 +18,10 @@ settings:
|
||||
label: 'Sélecteur de langue'
|
||||
provider: language
|
||||
label_display: '0'
|
||||
visibility: { }
|
||||
visibility:
|
||||
domain:
|
||||
id: domain
|
||||
domains:
|
||||
encyclopediedelaparole_org: encyclopediedelaparole_org
|
||||
negate: false
|
||||
context_mapping: { }
|
||||
|
||||
@@ -9,7 +9,7 @@ dependencies:
|
||||
id: studiolinkblock
|
||||
theme: edlptheme
|
||||
region: footer_right
|
||||
weight: -6
|
||||
weight: -5
|
||||
provider: null
|
||||
plugin: edlp_studio_link_block
|
||||
settings:
|
||||
|
||||
@@ -10,7 +10,7 @@ dependencies:
|
||||
id: userlogin
|
||||
theme: edlptheme
|
||||
region: footer_right
|
||||
weight: -5
|
||||
weight: -4
|
||||
provider: null
|
||||
plugin: user_login_block
|
||||
settings:
|
||||
|
||||
@@ -45,6 +45,7 @@ content:
|
||||
link: false
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
addtoany: true
|
||||
body: true
|
||||
chutier_actions: true
|
||||
field_collectionneurs: true
|
||||
|
||||
@@ -39,6 +39,7 @@ module:
|
||||
edlp_fils: 0
|
||||
edlp_home: 0
|
||||
edlp_migrate: 0
|
||||
edlp_mobile: 0
|
||||
edlp_productions: 0
|
||||
edlp_search: 0
|
||||
edlp_studio: 0
|
||||
|
||||
Reference in New Issue
Block a user