Browse Source

contact on footer #1870

bach 2 years ago
parent
commit
3290b6b1a0

+ 50 - 0
config/sync/block.block.contact.yml

@@ -0,0 +1,50 @@
+uuid: fc884273-8af4-4868-a415-631b39081904
+langcode: en
+status: true
+dependencies:
+  content:
+    - 'block_content:simple_text:e202a879-0a6d-4819-a171-15dfac8d7567'
+  module:
+    - block_content
+    - context
+    - system
+  theme:
+    - materiotheme
+id: contact
+theme: materiotheme
+region: footer_right
+weight: 0
+provider: null
+plugin: 'block_content:e202a879-0a6d-4819-a171-15dfac8d7567'
+settings:
+  id: 'block_content:e202a879-0a6d-4819-a171-15dfac8d7567'
+  label: contact
+  label_display: '0'
+  provider: block_content
+  status: true
+  info: ''
+  view_mode: full
+visibility:
+  user_status:
+    id: user_status
+    negate: false
+    context_mapping:
+      user: '@user.current_user_context:current_user'
+    user_status:
+      viewing_profile: '0'
+      logged_viewing_profile: '0'
+      own_page_true: '0'
+      field_value: '0'
+    user_fields: uid
+  context_all:
+    id: context_all
+    negate: null
+    values: ''
+  context:
+    id: context
+    negate: null
+    values: ''
+  request_path:
+    id: request_path
+    negate: false
+    pages: '<front>'

+ 8 - 0
config/sync/block_content.type.simple_text.yml

@@ -0,0 +1,8 @@
+uuid: 37e411ea-165c-49d4-b221-259d2ea47d6e
+langcode: fr
+status: true
+dependencies: {  }
+id: simple_text
+label: 'simple text'
+revision: 0
+description: ''

+ 38 - 0
config/sync/core.entity_form_display.block_content.simple_text.default.yml

@@ -0,0 +1,38 @@
+uuid: d2556aa1-b23d-4a56-95d5-6976b3c54f97
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.simple_text
+    - field.field.block_content.simple_text.field_content
+  module:
+    - text
+id: block_content.simple_text.default
+targetEntityType: block_content
+bundle: simple_text
+mode: default
+content:
+  field_content:
+    type: text_textarea
+    weight: 26
+    region: content
+    settings:
+      rows: 5
+      placeholder: ''
+    third_party_settings: {  }
+  info:
+    type: string_textfield
+    weight: -5
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+  langcode:
+    type: language_select
+    weight: 2
+    region: content
+    settings:
+      include_locked: true
+    third_party_settings: {  }
+hidden: {  }

+ 25 - 0
config/sync/core.entity_view_display.block_content.simple_text.default.yml

@@ -0,0 +1,25 @@
+uuid: ec0f0af6-3391-462b-bed2-d723667bd0a3
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.simple_text
+    - field.field.block_content.simple_text.field_content
+  module:
+    - text
+id: block_content.simple_text.default
+targetEntityType: block_content
+bundle: simple_text
+mode: default
+content:
+  field_content:
+    type: text_default
+    label: hidden
+    settings: {  }
+    third_party_settings: {  }
+    weight: 0
+    region: content
+hidden:
+  langcode: true
+  search_api_excerpt: true
+  synonyms: true

+ 12 - 0
config/sync/core.entity_view_mode.block_content.full.yml

@@ -0,0 +1,12 @@
+uuid: d4ebf9a7-228e-446f-9999-f0f87e764b8e
+langcode: en
+status: false
+dependencies:
+  module:
+    - block_content
+_core:
+  default_config_hash: 4tedlMuvQjDOdvHdw86_e-2Rt78aR7TGFMfOK8Ejppg
+id: block_content.full
+label: Full
+targetEntityType: block_content
+cache: true

+ 1 - 0
config/sync/core.extension.yml

@@ -21,6 +21,7 @@ module:
   better_messages: 0
   betterlogin: 0
   block: 0
+  block_content: 0
   breakpoint: 0
   bulkdelete: 0
   checklistapi: 0

+ 30 - 0
config/sync/field.field.block_content.simple_text.field_content.yml

@@ -0,0 +1,30 @@
+uuid: 87d1d773-5611-4742-b8b0-3bf0b9c131c5
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.simple_text
+    - field.storage.block_content.field_content
+  module:
+    - allowed_formats
+    - text
+    - unique_content_field_validation
+third_party_settings:
+  unique_content_field_validation:
+    unique: false
+    unique_text: ''
+  allowed_formats:
+    allowed_formats:
+      - wysiwyg
+id: block_content.simple_text.field_content
+field_name: field_content
+entity_type: block_content
+bundle: simple_text
+label: content
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: text_long

+ 21 - 0
config/sync/field.storage.block_content.body.yml

@@ -0,0 +1,21 @@
+uuid: 7b136ed4-4dcf-4714-97e7-f8a39ddad814
+langcode: en
+status: true
+dependencies:
+  module:
+    - block_content
+    - text
+_core:
+  default_config_hash: eS0snV_L3dx9shtWRTzm5eblwOJ7qKWC9IE-4GMTDFc
+id: block_content.body
+field_name: body
+entity_type: block_content
+type: text_with_summary
+settings: {  }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: true
+custom_storage: false

+ 23 - 0
config/sync/field.storage.block_content.field_content.yml

@@ -0,0 +1,23 @@
+uuid: fd58add2-4eea-48f9-9906-5d71ef633695
+langcode: fr
+status: true
+dependencies:
+  module:
+    - block_content
+    - field_permissions
+    - text
+third_party_settings:
+  field_permissions:
+    permission_type: public
+id: block_content.field_content
+field_name: field_content
+entity_type: block_content
+type: text_long
+settings: {  }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 20 - 0
config/sync/gdpr_fields.gdpr_fields_config.block_content.yml

@@ -0,0 +1,20 @@
+uuid: f9da6281-d96d-4b08-bdaa-96e14520257a
+langcode: fr
+status: true
+dependencies: {  }
+id: block_content
+filenames:
+  simple_text: ''
+bundles:
+  simple_text:
+    field_content:
+      bundle: simple_text
+      name: field_content
+      enabled: false
+      rta: 'no'
+      rtf: 'no'
+      anonymizer: ''
+      notes: ''
+      relationship: 0
+      sars_filename: ''
+      entity_type_id: block_content

+ 16 - 0
config/sync/language.content_settings.block_content.simple_text.yml

@@ -0,0 +1,16 @@
+uuid: 4541a5bf-0673-49e4-a18b-145df1900799
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.simple_text
+  module:
+    - content_translation
+third_party_settings:
+  content_translation:
+    enabled: true
+id: block_content.simple_text
+target_entity_type_id: block_content
+target_bundle: simple_text
+default_langcode: site_default
+language_alterable: false

+ 2 - 0
config/sync/language/en/block.block.simplenewssubscription.yml

@@ -0,0 +1,2 @@
+settings:
+  label: 'Subscribe to our monthly newsletter.'

+ 1 - 0
config/sync/language/fr/core.entity_view_mode.block_content.full.yml

@@ -0,0 +1 @@
+label: Complet

+ 49 - 0
config/sync/language/fr/views.view.block_content.yml

@@ -0,0 +1,49 @@
+label: 'Bibliothèque de blocs personnalisés'
+description: 'Trouver et gérer les blocs personnalisés.'
+display:
+  default:
+    display_title: 'Par défaut'
+    display_options:
+      title: 'Bibliothèque de blocs personnalisés'
+      fields:
+        info:
+          label: 'Description du bloc'
+          separator: ', '
+        type:
+          label: 'Type de bloc'
+          separator: ', '
+        changed:
+          label: 'Mis à jour'
+        operations:
+          label: Actions
+      pager:
+        options:
+          tags:
+            next: 'Suivant ›'
+            previous: '‹ Précédent'
+          expose:
+            items_per_page_label: 'Éléments par page'
+            items_per_page_options_all_label: '- Tout -'
+            offset_label: Décalage
+      exposed_form:
+        options:
+          submit_button: Appliquer
+          reset_button_label: Réinitialiser
+          exposed_sorts_label: 'Trier par'
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      empty:
+        area_text_custom:
+          content: 'Il n''y a pas de bloc personnalisé disponible.'
+      filters:
+        info:
+          expose:
+            label: 'Description du bloc'
+        type:
+          expose:
+            label: 'Type de bloc'
+  page_1:
+    display_title: Page
+    display_options:
+      menu:
+        title: 'Bibliothèque de blocs personnalisés'

+ 13 - 0
config/sync/structure_sync.data.yml

@@ -107,3 +107,16 @@ menus:
     weight: '-49'
     langcode: en
     uuid: 5b14e014-7aba-4e1b-a619-45177584cf80
+blocks:
+  -
+    info: contact
+    langcode: en
+    uuid: e202a879-0a6d-4819-a171-15dfac8d7567
+    bundle: simple_text
+    revision_id: null
+    rev_id_current: null
+    fields:
+      field_content:
+        -
+          value: "<p>contact <a href=\"mailto:hello@materio.com\" title=\"hello@materio.com\">hello@materio.com</a> | développé par&nbsp;<a href=\"https://figureslibres.cc/\" rel=\"noopener\" target=\"_blank\" title=\"figureslibres.cc\">figureslibres.cc</a></p>\r\n"
+          format: wysiwyg

+ 543 - 0
config/sync/views.view.block_content.yml

@@ -0,0 +1,543 @@
+uuid: 02f3741b-e9fd-4deb-8502-696f2e2f86f7
+langcode: en
+status: true
+dependencies:
+  module:
+    - block_content
+    - user
+_core:
+  default_config_hash: jvd5Pu6jy-lra4oMr-mR7zuY6CVDv9CaNeoj0Y70gV4
+id: block_content
+label: 'Custom block library'
+module: views
+description: 'Find and manage custom blocks.'
+tag: default
+base_table: block_content_field_data
+base_field: id
+display:
+  default:
+    id: default
+    display_title: Default
+    display_plugin: default
+    position: 0
+    display_options:
+      title: 'Custom block library'
+      fields:
+        info:
+          id: info
+          table: block_content_field_data
+          field: info
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: null
+          entity_field: info
+          plugin_id: field
+          label: 'Block description'
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: string
+          settings:
+            link_to_entity: true
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+        type:
+          id: type
+          table: block_content_field_data
+          field: type
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: block_content
+          entity_field: type
+          plugin_id: field
+          label: 'Block type'
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: target_id
+          type: entity_reference_label
+          settings:
+            link: false
+          group_column: target_id
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+        changed:
+          id: changed
+          table: block_content_field_data
+          field: changed
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: block_content
+          entity_field: changed
+          plugin_id: field
+          label: Updated
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          type: timestamp
+          settings:
+            date_format: short
+            custom_date_format: ''
+            timezone: ''
+        operations:
+          id: operations
+          table: block_content
+          field: operations
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: block_content
+          plugin_id: entity_operations
+          label: Operations
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          destination: true
+      pager:
+        type: mini
+        options:
+          offset: 0
+          items_per_page: 50
+          total_pages: null
+          id: 0
+          tags:
+            next: 'Next ›'
+            previous: '‹ Previous'
+          expose:
+            items_per_page: false
+            items_per_page_label: 'Items per page'
+            items_per_page_options: '5, 10, 25, 50'
+            items_per_page_options_all: false
+            items_per_page_options_all_label: '- All -'
+            offset: false
+            offset_label: Offset
+      exposed_form:
+        type: basic
+        options:
+          submit_button: Apply
+          reset_button: true
+          reset_button_label: Reset
+          exposed_sorts_label: 'Sort by'
+          expose_sort_order: true
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      access:
+        type: perm
+        options:
+          perm: 'administer blocks'
+      cache:
+        type: tag
+        options: {  }
+      empty:
+        area_text_custom:
+          id: area_text_custom
+          table: views
+          field: area_text_custom
+          relationship: none
+          group_type: group
+          admin_label: ''
+          plugin_id: text_custom
+          empty: true
+          content: 'There are no custom blocks available.'
+          tokenize: false
+        block_content_listing_empty:
+          id: block_content_listing_empty
+          table: block_content
+          field: block_content_listing_empty
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: block_content
+          plugin_id: block_content_listing_empty
+          label: ''
+          empty: true
+      sorts: {  }
+      arguments: {  }
+      filters:
+        info:
+          id: info
+          table: block_content_field_data
+          field: info
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: block_content
+          entity_field: info
+          plugin_id: string
+          operator: contains
+          value: ''
+          group: 1
+          exposed: true
+          expose:
+            operator_id: info_op
+            label: 'Block description'
+            description: ''
+            use_operator: false
+            operator: info_op
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: info
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              administrator: '0'
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+        type:
+          id: type
+          table: block_content_field_data
+          field: type
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: block_content
+          entity_field: type
+          plugin_id: bundle
+          operator: in
+          value: {  }
+          group: 1
+          exposed: true
+          expose:
+            operator_id: type_op
+            label: 'Block type'
+            description: ''
+            use_operator: false
+            operator: type_op
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: type
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              administrator: '0'
+            reduce: false
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+        reusable:
+          id: reusable
+          table: block_content_field_data
+          field: reusable
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: block_content
+          entity_field: reusable
+          plugin_id: boolean
+          operator: '='
+          value: '1'
+          group: 1
+          exposed: false
+          expose:
+            operator_id: ''
+            label: ''
+            description: ''
+            use_operator: false
+            operator: ''
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: ''
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+      style:
+        type: table
+        options:
+          grouping: {  }
+          row_class: ''
+          default_row_class: true
+          columns:
+            info: info
+            type: type
+            changed: changed
+            operations: operations
+          default: changed
+          info:
+            info:
+              sortable: true
+              default_sort_order: asc
+              align: ''
+              separator: ''
+              empty_column: false
+              responsive: ''
+            type:
+              sortable: true
+              default_sort_order: asc
+              align: ''
+              separator: ''
+              empty_column: false
+              responsive: ''
+            changed:
+              sortable: true
+              default_sort_order: desc
+              align: ''
+              separator: ''
+              empty_column: false
+              responsive: ''
+            operations:
+              sortable: false
+              default_sort_order: asc
+              align: ''
+              separator: ''
+              empty_column: false
+              responsive: ''
+          override: true
+          sticky: false
+          summary: ''
+          empty_table: true
+          caption: ''
+          description: ''
+      row:
+        type: fields
+      query:
+        type: views_query
+        options:
+          query_comment: ''
+          disable_sql_rewrite: false
+          distinct: false
+          replica: false
+          query_tags: {  }
+      relationships: {  }
+      header: {  }
+      footer: {  }
+      display_extenders: {  }
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - url.query_args
+        - user.permissions
+      tags: {  }
+  page_1:
+    id: page_1
+    display_title: Page
+    display_plugin: page
+    position: 1
+    display_options:
+      display_extenders: {  }
+      path: admin/structure/block/block-content
+      menu:
+        type: tab
+        title: 'Custom block library'
+        description: ''
+        weight: 0
+        menu_name: admin
+        parent: block.admin_display
+        context: '0'
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - url.query_args
+        - user.permissions
+      tags: {  }

+ 2 - 0
web/modules/custom/materio_commerce/src/EventSubscriber/MaterioCommerceOrderEventsSubscriber.php

@@ -53,6 +53,8 @@ class MaterioCommerceOrderEventsSubscriber implements EventSubscriberInterface {
       }
 
       $sku = $purchased_entity->getSku();
+      // todo update skus with new product types (no-sub)
+      // !! no needs of member type anymore
       switch ($sku) {
         case 'web-monthly':
         case 'web-annual':

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.css


BIN
web/themes/custom/materiotheme/assets/dist/main.css.gz


+ 13 - 12
web/themes/custom/materiotheme/assets/styles/main.scss

@@ -3002,18 +3002,19 @@ footer[role="contentinfo"]{
 
   #footer-right{
     text-align: right;
-    nav.block-menu.menu--footer{
-      display: inline-block;
-      font-size: 0.756em;
-      ul.menu{
-        padding:0; margin:0;
-        display: flex;
-        flex-flow: row nowrap;
-        li.menu-item{
-          padding: 0.5em;
-        }
-      }
-    }
+    font-size: 0.756em;
+    // nav.block-menu.menu--footer{
+    //   display: inline-block;
+    //   font-size: 0.756em;
+    //   ul.menu{
+    //     padding:0; margin:0;
+    //     display: flex;
+    //     flex-flow: row nowrap;
+    //     li.menu-item{
+    //       padding: 0.5em;
+    //     }
+    //   }
+    // }
   }
 }
 

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