Browse Source

expo interface using own subdomain, fix #544

Bachir Soussi Chiadmi 4 years ago
parent
commit
180b98274b
29 changed files with 269 additions and 91 deletions
  1. 1 0
      config/sync/block.block.edlpentreesblock.yml
  2. 9 1
      config/sync/block.block.edlpsearchlinkblock.yml
  3. 9 1
      config/sync/block.block.edlptheme_branding.yml
  4. 11 2
      config/sync/block.block.edlptheme_content.yml
  5. 10 2
      config/sync/block.block.mainnavigation_2.yml
  6. 1 1
      config/sync/block.block.messages.yml
  7. 9 1
      config/sync/block.block.studiolinkblock.yml
  8. 9 1
      config/sync/block.block.studiouserlogin.yml
  9. 9 1
      config/sync/block.block.tabs.yml
  10. 11 0
      config/sync/domain.record.expo_encyclopediedelaparole_org.yml
  11. 1 1
      config/sync/domain.settings.yml
  12. 0 9
      config/sync/domain_alias.alias.beta_encyclopediedelaparole_org.yml
  13. 0 9
      config/sync/domain_alias.alias.beta_m_encyclopediedelaparole_org.yml
  14. 9 0
      config/sync/domain_alias.alias.dev_expo_encyclopediedelaparole_org.yml
  15. 0 9
      config/sync/domain_alias.alias.edlp_figli_io.yml
  16. 0 9
      config/sync/domain_alias.alias.edlp_m_figli_io.yml
  17. 14 0
      config/sync/system.action.domain_access_add_action.expo_encyclopediedelaparole_org.yml
  18. 14 0
      config/sync/system.action.domain_access_add_editor_action.expo_encyclopediedelaparole_org.yml
  19. 14 0
      config/sync/system.action.domain_access_remove_action.expo_encyclopediedelaparole_org.yml
  20. 14 0
      config/sync/system.action.domain_access_remove_editor_action.expo_encyclopediedelaparole_org.yml
  21. 0 0
      web/modules/custom/edlp_corpus/assets/dist/scripts/corpus.min.js
  22. 7 3
      web/modules/custom/edlp_corpus/assets/scripts/corpus.js
  23. 25 21
      web/modules/custom/edlp_mobile/edlp_mobile.module
  24. 0 0
      web/themes/custom/edlptheme/assets/dist/scripts/main.min.js
  25. 0 0
      web/themes/custom/edlptheme/assets/dist/styles/app.min.css
  26. 44 19
      web/themes/custom/edlptheme/assets/scripts/main.js
  27. 41 0
      web/themes/custom/edlptheme/assets/styles/app.scss
  28. 6 0
      web/themes/custom/edlptheme/assets/styles/base/_layout.scss
  29. 1 1
      web/themes/custom/edlptheme/edlptheme.theme

+ 1 - 0
config/sync/block.block.edlpentreesblock.yml

@@ -24,6 +24,7 @@ visibility:
     id: domain
     domains:
       encyclopediedelaparole_org: encyclopediedelaparole_org
+      expo_encyclopediedelaparole_org: expo_encyclopediedelaparole_org
     negate: false
     context_mapping:
       'entity:domain': '@domain.current_domain_context:entity:domain'

+ 9 - 1
config/sync/block.block.edlpsearchlinkblock.yml

@@ -3,6 +3,7 @@ langcode: fr
 status: true
 dependencies:
   module:
+    - domain
     - edlp_search
   theme:
     - edlptheme
@@ -17,4 +18,11 @@ settings:
   label: 'Edlp search link block'
   provider: edlp_search
   label_display: '0'
-visibility: {  }
+visibility:
+  domain:
+    id: domain
+    domains:
+      encyclopediedelaparole_org: encyclopediedelaparole_org
+      m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
+    negate: false
+    context_mapping: {  }

+ 9 - 1
config/sync/block.block.edlptheme_branding.yml

@@ -3,6 +3,7 @@ langcode: fr
 status: true
 dependencies:
   module:
+    - domain
     - system
   theme:
     - edlptheme
@@ -22,4 +23,11 @@ settings:
   use_site_logo: true
   use_site_name: true
   use_site_slogan: true
-visibility: {  }
+visibility:
+  domain:
+    id: domain
+    domains:
+      encyclopediedelaparole_org: encyclopediedelaparole_org
+      m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
+    negate: false
+    context_mapping: {  }

+ 11 - 2
config/sync/block.block.edlptheme_content.yml

@@ -3,6 +3,7 @@ langcode: fr
 status: true
 dependencies:
   module:
+    - domain
     - system
   theme:
     - edlptheme
@@ -11,7 +12,7 @@ _core:
 id: edlptheme_content
 theme: edlptheme
 region: content
-weight: -2
+weight: -5
 provider: null
 plugin: system_main_block
 settings:
@@ -19,4 +20,12 @@ settings:
   label: 'Main page content'
   provider: system
   label_display: '0'
-visibility: {  }
+visibility:
+  domain:
+    id: domain
+    domains:
+      encyclopediedelaparole_org: encyclopediedelaparole_org
+      m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
+    negate: false
+    context_mapping:
+      'entity:domain': '@domain.current_domain_context:entity:domain'

+ 10 - 2
config/sync/block.block.mainnavigation_2.yml

@@ -5,6 +5,7 @@ dependencies:
   config:
     - system.menu.main
   module:
+    - domain
     - domain_menu_access
   theme:
     - edlptheme
@@ -21,5 +22,12 @@ settings:
   label_display: visible
   level: '1'
   depth: '0'
-  expand_all_items: false
-visibility: {  }
+  expand_all_items: 0
+visibility:
+  domain:
+    id: domain
+    domains:
+      encyclopediedelaparole_org: encyclopediedelaparole_org
+      m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
+    negate: false
+    context_mapping: {  }

+ 1 - 1
config/sync/block.block.messages.yml

@@ -9,7 +9,7 @@ dependencies:
 id: messages
 theme: edlptheme
 region: content
-weight: -4
+weight: -7
 provider: null
 plugin: system_messages_block
 settings:

+ 9 - 1
config/sync/block.block.studiolinkblock.yml

@@ -3,6 +3,7 @@ langcode: fr
 status: true
 dependencies:
   module:
+    - domain
     - edlp_studio
   theme:
     - edlptheme
@@ -17,4 +18,11 @@ settings:
   label: 'Studio link block'
   provider: edlp_studio
   label_display: '0'
-visibility: {  }
+visibility:
+  domain:
+    id: domain
+    domains:
+      encyclopediedelaparole_org: encyclopediedelaparole_org
+      m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
+    negate: false
+    context_mapping: {  }

+ 9 - 1
config/sync/block.block.studiouserlogin.yml

@@ -3,6 +3,7 @@ langcode: fr
 status: true
 dependencies:
   module:
+    - domain
     - edlp_studio
   theme:
     - edlptheme
@@ -17,4 +18,11 @@ settings:
   label: 'Studio User login'
   provider: edlp_studio
   label_display: visible
-visibility: {  }
+visibility:
+  domain:
+    id: domain
+    domains:
+      encyclopediedelaparole_org: encyclopediedelaparole_org
+      m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
+    negate: false
+    context_mapping: {  }

+ 9 - 1
config/sync/block.block.tabs.yml

@@ -3,6 +3,7 @@ langcode: fr
 status: true
 dependencies:
   module:
+    - domain
     - node
     - user
   theme:
@@ -10,7 +11,7 @@ dependencies:
 id: tabs
 theme: edlptheme
 region: content
-weight: -3
+weight: -6
 provider: null
 plugin: local_tasks_block
 settings:
@@ -39,3 +40,10 @@ visibility:
     negate: false
     context_mapping:
       user: '@user.current_user_context:current_user'
+  domain:
+    id: domain
+    domains:
+      encyclopediedelaparole_org: encyclopediedelaparole_org
+      m_encyclopediedelaparole_org: m_encyclopediedelaparole_org
+    negate: false
+    context_mapping: {  }

+ 11 - 0
config/sync/domain.record.expo_encyclopediedelaparole_org.yml

@@ -0,0 +1,11 @@
+uuid: 1b44e5e7-bba8-4a19-9063-535e4ee09615
+langcode: en
+status: true
+dependencies: {  }
+id: expo_encyclopediedelaparole_org
+domain_id: 110224
+hostname: expo.encyclopediedelaparole.org
+name: 'Encyclopédie de la parole EXPO'
+scheme: https
+weight: 3
+is_default: false

+ 1 - 1
config/sync/domain.settings.yml

@@ -1,7 +1,7 @@
 allow_non_ascii: false
 www_prefix: false
 login_paths: /user/login\r\n/user/password
-css_classes: ''
+css_classes: 'domain-[domain:id] domain-[domain:machine-name]'
 _core:
   default_config_hash: cGy1RN-NwgFrdUwA-OY7bvwtQ6Nz6UxhenvnJ4Pp4-k
 langcode: fr

+ 0 - 9
config/sync/domain_alias.alias.beta_encyclopediedelaparole_org.yml

@@ -1,9 +0,0 @@
-uuid: bf2e0afd-4ee3-4d84-910c-1a274091a092
-langcode: fr
-status: true
-dependencies: {  }
-id: beta_encyclopediedelaparole_org
-domain_id: encyclopediedelaparole_org
-pattern: beta.encyclopediedelaparole.org
-redirect: 0
-environment: development

+ 0 - 9
config/sync/domain_alias.alias.beta_m_encyclopediedelaparole_org.yml

@@ -1,9 +0,0 @@
-uuid: 92fa7238-52c4-4bd3-b183-45cdb85a51eb
-langcode: fr
-status: true
-dependencies: {  }
-id: beta_m_encyclopediedelaparole_org
-domain_id: m_encyclopediedelaparole_org
-pattern: beta.m.encyclopediedelaparole.org
-redirect: 0
-environment: testing

+ 9 - 0
config/sync/domain_alias.alias.dev_expo_encyclopediedelaparole_org.yml

@@ -0,0 +1,9 @@
+uuid: cd1a12bc-5ff9-477c-bf94-cc05093961c6
+langcode: en
+status: true
+dependencies: {  }
+id: dev_expo_encyclopediedelaparole_org
+domain_id: expo_encyclopediedelaparole_org
+pattern: dev.expo.encyclopediedelaparole.org
+redirect: 0
+environment: local

+ 0 - 9
config/sync/domain_alias.alias.edlp_figli_io.yml

@@ -1,9 +0,0 @@
-uuid: 2b55dc7d-81c1-4074-918e-78833a72b2a2
-langcode: fr
-status: true
-dependencies: {  }
-id: edlp_figli_io
-domain_id: encyclopediedelaparole_org
-pattern: edlp.figli.io
-redirect: 0
-environment: testing

+ 0 - 9
config/sync/domain_alias.alias.edlp_m_figli_io.yml

@@ -1,9 +0,0 @@
-uuid: 3ea77fdb-0d81-4c7a-8cf4-1fc67c5538ab
-langcode: fr
-status: true
-dependencies: {  }
-id: edlp_m_figli_io
-domain_id: m_encyclopediedelaparole_org
-pattern: edlp.m.figli.io
-redirect: 0
-environment: development

+ 14 - 0
config/sync/system.action.domain_access_add_action.expo_encyclopediedelaparole_org.yml

@@ -0,0 +1,14 @@
+uuid: 68e32c87-ed2f-4047-a098-f779258ea8be
+langcode: en
+status: true
+dependencies:
+  config:
+    - domain.record.expo_encyclopediedelaparole_org
+  module:
+    - domain_access
+id: domain_access_add_action.expo_encyclopediedelaparole_org
+label: 'Add selected content to the Encyclopédie de la parole domain'
+type: node
+plugin: domain_access_add_action
+configuration:
+  domain_id: expo_encyclopediedelaparole_org

+ 14 - 0
config/sync/system.action.domain_access_add_editor_action.expo_encyclopediedelaparole_org.yml

@@ -0,0 +1,14 @@
+uuid: 7ec41e65-c60f-4eb2-8d13-137d765fe086
+langcode: en
+status: true
+dependencies:
+  config:
+    - domain.record.expo_encyclopediedelaparole_org
+  module:
+    - domain_access
+id: domain_access_add_editor_action.expo_encyclopediedelaparole_org
+label: 'Add editors to the Encyclopédie de la parole domain'
+type: user
+plugin: domain_access_add_editor_action
+configuration:
+  domain_id: expo_encyclopediedelaparole_org

+ 14 - 0
config/sync/system.action.domain_access_remove_action.expo_encyclopediedelaparole_org.yml

@@ -0,0 +1,14 @@
+uuid: 0a61de2c-75c7-40a8-83f9-f2b7c2e6b297
+langcode: en
+status: true
+dependencies:
+  config:
+    - domain.record.expo_encyclopediedelaparole_org
+  module:
+    - domain_access
+id: domain_access_remove_action.expo_encyclopediedelaparole_org
+label: 'Remove selected content from the Encyclopédie de la parole domain'
+type: node
+plugin: domain_access_remove_action
+configuration:
+  domain_id: expo_encyclopediedelaparole_org

+ 14 - 0
config/sync/system.action.domain_access_remove_editor_action.expo_encyclopediedelaparole_org.yml

@@ -0,0 +1,14 @@
+uuid: b2943b17-1e04-4fa8-aa3f-f6fc1b3f2757
+langcode: en
+status: true
+dependencies:
+  config:
+    - domain.record.expo_encyclopediedelaparole_org
+  module:
+    - domain_access
+id: domain_access_remove_editor_action.expo_encyclopediedelaparole_org
+label: 'Remove editors from the Encyclopédie de la parole domain'
+type: user
+plugin: domain_access_remove_editor_action
+configuration:
+  domain_id: expo_encyclopediedelaparole_org

File diff suppressed because it is too large
+ 0 - 0
web/modules/custom/edlp_corpus/assets/dist/scripts/corpus.min.js


+ 7 - 3
web/modules/custom/edlp_corpus/assets/scripts/corpus.js

@@ -25,14 +25,15 @@
     var _canvas = _$canvas[0];
     var _ctx = _canvas.getContext('2d');
     var _dpi = window.devicePixelRatio;
+    var _is_expo = $('body').hasClass('domain-expo-encyclopediedelaparole-org');
     var _scene_props = {
       width:window.innerWidth,
       height:window.innerHeight,
       // 'margin_top':90, // with red border on head
-      'margin_top':75, // without red border on head
+      'margin_top': _is_expo ? 0 : 75, // without red border on head
       // 'margin_top':0,
       'margin_right':0,
-      'margin_bottom':65,
+      'margin_bottom': _is_expo ? 0 : 65,
       // 'margin_bottom':0,
       'margin_left':0
     };
@@ -81,6 +82,7 @@
     //  _/ // / / / / /_(__  )
     // /___/_/ /_/_/\__/____/
     function init(){
+      console.log("Corpus init()");
       initCanvas();
       if(_activated){
         loadCorpus();
@@ -888,7 +890,7 @@
     // };
 
     function scrambleCollection(){
-      // console.log('scrambleCollection');
+      console.log('Corpus scrambleCollection');
       for (var i = 0; i < _nodes.length; i++) {
         _nodes[i].scramble();
       }
@@ -1305,7 +1307,9 @@
 
 
   $(document).ready(function($) {
+    console.log("Corpus ready");
     if(drupalSettings.path.isFront && !edlp_mobile.device_is_mobile){
+      console.log("Corpus new edlpCorpus()");
       var edlpcorpus = new EdlpCorpus();
     }
   });

+ 25 - 21
web/modules/custom/edlp_mobile/edlp_mobile.module

@@ -71,6 +71,9 @@ function edlp_mobile_page_attachments(array &$attachments) {
   $desktop_domain = $domain_storage->load('encyclopediedelaparole_org');
   // dpm($desktop_domain, 'desktop_domain');
 
+  $expo_domain = $domain_storage->load('expo_encyclopediedelaparole_org');
+  // dpm($expo_domain, 'expo_domain');
+
   $current_domain = $domain_storage->loadByHostname($current_hostname);
   // dpm($current_domain, 'current_domain');
 
@@ -79,6 +82,7 @@ function edlp_mobile_page_attachments(array &$attachments) {
     $is_mobile_domain = ($current_domain->id() == $mobile_domain->id());
     $mobile_url = $mobile_domain->getHostname();
     $desktop_url = $desktop_domain->getHostname();
+    $expo_url = $expo_domain->getHostname();
   }else{
     // we are not in a main domain, so we look for an alias
     $domain_alias_storage = \Drupal::entityTypeManager()->getStorage('domain_alias');
@@ -93,34 +97,30 @@ function edlp_mobile_page_attachments(array &$attachments) {
     $env_aliases = $domain_alias_storage->loadByEnvironment($env);
     // dpm($env_aliases, '$env_aliases');
     // find out mibile alias and desktop alias
-    // this is dirty
+    // get mobile pattern
+    foreach ($env_aliases as $env_alias_id => $env_alias) {
+      switch ($env_alias->getDomainId()) {
+        case 'm_encyclopediedelaparole_org':
+          $mobile_url = $env_alias->getPattern();
+          break;
+        case 'encyclopediedelaparole_org':
+          $desktop_url = $env_alias->getPattern();
+          break;
+        case 'expo_encyclopediedelaparole_org':
+          $expo_url = $env_alias->getPattern();
+          break;
+      }
+    }
     // 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
-      // we assume that there is only two alias by env (mobile or desktop)
-      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();
-          break;
-        }
-      }
+    }elseif($domain_id == 'expo_encyclopediedelaparole_org'){
+      // current domain/alias is expo
+      $is_mobile_domain = false;
     }else{
       // current domain/alias is desktop
       $is_mobile_domain = false;
-      $desktop_url = $alias->getPattern();
-      // find mobile pattern
-      // we assume that there is only two alias by env (mobile or desktop)
-      foreach ($env_aliases as $env_alias_id => $env_alias) {
-        if($env_alias_id != $alias->id()){
-          // we found the mobile pattern
-          $mobile_url = $env_alias->getPattern();
-          break;
-        }
-      }
     }
   }
 
@@ -135,6 +135,8 @@ function edlp_mobile_page_attachments(array &$attachments) {
   // $desktop_home_path = "???";
   $desktop_home_path = \Drupal::config('domain_site_settings.domainconfigsettings')->get('encyclopediedelaparole_org.site_frontpage', FALSE);
 
+  $expo_home_path = \Drupal::config('domain_site_settings.domainconfigsettings')->get('expo_encyclopediedelaparole_org.site_frontpage', FALSE);
+
   // $redirect = false;
   $js_str = "var edlp_mobile = {\n
     current_url:'".$base_root."',\n
@@ -146,6 +148,8 @@ function edlp_mobile_page_attachments(array &$attachments) {
     mobile_home_path:'".$mobile_home_path."',\n
     desktop_url:'".$desktop_url."',\n
     desktop_home_path:'".$desktop_home_path."',\n
+    expo_url:'".$expo_url."',\n
+    expo_home_path:'".$expo_home_path."',\n
   };";
 
   $attachments['#attached']['html_head'][] = [

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/scripts/main.min.js


File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/styles/app.min.css


+ 44 - 19
web/themes/custom/edlptheme/assets/scripts/main.js

@@ -23,6 +23,7 @@
     var _$log_form;
     var _user_tokens;
     var _states_history = [];
+    var _is_expo = $('body').hasClass('domain-expo-encyclopediedelaparole-org');
 
     //  ___      _ _
     // |_ _|_ _ (_) |_
@@ -1040,7 +1041,11 @@
             .openDocument(e.target_node);
         });
 
-        _randomPlayer = new RandomPlayer(e.playlist);
+      _randomPlayer = new RandomPlayer(e.playlist);
+
+      if (_is_expo) {
+        _randomPlayer.start();
+      }
 
       // mainly for articles link
       initAjaxLinks();
@@ -1167,7 +1172,11 @@
     };
     AudioPlayer.prototype = {
       init(){
-        this.$container_parent = $('header[role="banner"] .region-header');
+        if(!_is_expo){
+          this.$container_parent = $('header[role="banner"] .region-header');
+        }else{
+          this.$container_parent = $('main[role="main"]');
+        }
         // append ui to document
         this.$container.appendTo(this.$container_parent);
         // record timeline width
@@ -1343,6 +1352,11 @@
         this.clearTimeOutToHide();
         // this.audio.play();
 
+        // making sound shorter for debuging purpose
+        // if(_is_expo){
+        //   setTimeout(this.seekToEnd.bind(this), 20000);
+        // }
+
         // Not really needed has we trigger play right after setting the source https://stackoverflow.com/questions/47431439/mp4-video-safari-showing-unhandled-promise-rejection-object-domerror-in-c
         var promise = this.audio.play();
         // console.log('promise', promise);
@@ -1397,6 +1411,12 @@
         console.log("Audio seeking : seek", seek);
         this.audio.currentTime = seek;
       },
+      seekToEnd(){
+        if (this.audio.duration > 40) {
+          console.log("seekToEnd", this.audio.duration);
+          this.audio.currentTime = this.audio.duration - 20;
+        }
+      },
       // audio events
       onPlaying(){
         this.$btns.addClass('is-playing');
@@ -1448,14 +1468,16 @@
         // cartel autoswitch
         this.scndCartel_visible = 0;
         this.$cartel.removeClass('second-visible');
-        // if second cartel has special info ?
-        if (this.$cartel.find('.second-cartel .col-left').children().length > 1
-            || this.$cartel.find('.second-cartel').children('.col-right').length){
-          // init cartel auto switch
-          this.cartelSwitchInterval = setInterval(this.switchCartel.bind(this), this.cartelSwitchIntervalMS);
-        }
-        // call drupal behaviours (for addtoany)
-        Drupal.attachBehaviors(this.$cartel);
+        if(!_is_expo){
+          // if second cartel has special info ?
+          if (this.$cartel.find('.second-cartel .col-left').children().length > 1
+              || this.$cartel.find('.second-cartel').children('.col-right').length){
+            // init cartel auto switch
+            this.cartelSwitchInterval = setInterval(this.switchCartel.bind(this), this.cartelSwitchIntervalMS);
+          }
+          // call drupal behaviours (for addtoany)
+          Drupal.attachBehaviors(this.$cartel);
+        }
         // open automaticly tha article if needed
         this.setAutoOpenArticle();
         if(this.auto_open_article){
@@ -1599,25 +1621,21 @@
         _audioPlayer
           .on('audio-play-next', this.onAudioPlayNext.bind(this))
           .on('audio-ended', this.onAudioPlayerEnded.bind(this))
-          // .on('audio-ended', function(e){
-          //   console.log('RandomPlayer, audio-ended', e);
-          // })
           .on('stop-shuffle', this.stop.bind(this));
 
-
         _$corpus_canvas
           .on('update-random-playlist', this.updatePlaylist.bind(this));
 
         // provide a link to auto start random player
         if(window.location.hash == '#random'){
           this.start();
-          // window.location.hash = '';
         }
       },
       updatePlaylist(e){
-        // debugger;
-        this.playlist = e.playlist;
-        this.shuffle();
+        if (!_is_expo) {
+          this.playlist = e.playlist;
+          this.shuffle();
+        }
       },
       shuffle(){
         var tempPLaylist = [];
@@ -1667,8 +1685,12 @@
       },
       next(){
         console.log('RandomPlayer next', this.active, this.shuffledPlaylist.length);
-        if(this.active && this.shuffledPlaylist.length > 0)
+        if(this.active){
+          if (this.shuffledPlaylist.length == 0) {
+            this.shuffle();
+          }
           _audioPlayer.openDocument(this.shuffledPlaylist.splice(0,1)[0], 'random');
+        }
       },
       onAudioPlayNext(){
         console.log('RandomPlayer : onAudioPlayNext()');
@@ -1680,6 +1702,9 @@
         console.log('RandomPlayer : onAudioPlayerEnded()');
         if(this.active){
           this.next();
+          if(_is_expo){
+            _$corpus_canvas.trigger({'type':'scramble-collection'}); //shuffle-collection scramble-collection
+          }
         }
       }
     };

+ 41 - 0
web/themes/custom/edlptheme/assets/styles/app.scss

@@ -1092,6 +1092,40 @@ main[role="main"]{
     // }
   }
 
+
+  //  ___
+  // | __|_ ___ __  ___
+  // | _|\ \ / '_ \/ _ \
+  // |___/_\_\ .__/\___/
+  //         |_|
+  body.domain-expo-encyclopediedelaparole-org &{
+    position: absolute;
+    box-sizing: content-box;
+    width:550px; height:100px;
+    left: 50vw; top:50vh;
+    transform: translate(-50%, -50%);
+    background-color: rgba(255,255,255, 0.8);
+    outline: 1px solid red;
+    padding:2em 1em 2em 2em; margin:0;
+    .btns,
+    .actions,
+    .favoris{
+      display: none;
+    }
+    .time-line-container{
+      margin:0.80em 0 0;
+    }
+    .time{
+      margin:0.75em 0 0;
+    }
+    .cartel{
+      margin-top: 0;
+      width:calc(100% - 190px);
+    }
+    * {
+      background-color: transparent;
+    }
+  }
 }
 
 
@@ -2309,6 +2343,13 @@ footer{
     }
   }
 
+  body.domain-expo-encyclopediedelaparole-org &{
+    .block-block-edlp-entrees{
+      display: none;
+    }
+  }
+
+
   $icons_w:20px;
   $mobile_icon_w:15px;
   @mixin iconlinkblock($bgimgurl, $bgimgurlactive) {

+ 6 - 0
web/themes/custom/edlptheme/assets/styles/base/_layout.scss

@@ -102,6 +102,12 @@ body.toolbar-horizontal.toolbar-themes.toolbar-no-tabs{
 //     // overflow-y: hidden;
 //   }
 // }
+body.domain-expo-encyclopediedelaparole-org{
+  main[role="main"] .layout-content{
+    padding:0; margin:0;
+    display: none;
+  }
+}
 
 footer[role="contentinfo"]{
   // outline: 1px solid pink;

+ 1 - 1
web/themes/custom/edlptheme/edlptheme.theme

@@ -62,7 +62,7 @@ function edlptheme_preprocess_html(&$vars) {
 }
 
 function edlptheme_preprocess_page(&$vars){
-  // dsm($vars, 'vars');
+  // dpm($vars, 'vars');
 }
 
 function edlptheme_preprocess_node(&$vars){

Some files were not shown because too many files changed in this diff