diff --git a/composer.json b/composer.json
index 30ed24a0e..f82bb52a1 100644
--- a/composer.json
+++ b/composer.json
@@ -60,9 +60,6 @@
"drupal/diff": {
"Back button for comparison page": "https://www.drupal.org/files/issues/back_button_for-2853193-4.patch"
},
- "drupal/amp": {
- "Missing schema": "https://www.drupal.org/files/issues/missing_schema_for-2878769-3.patch"
- },
"drupal/entity_browser": {
"Provide inline entity form FieldWidgetDisplay": "https://www.drupal.org/files/issues/2019-07-04/2858438_17.patch",
"Re-order + remove broken with the Entity Reference (and File) widget": "https://www.drupal.org/files/issues/2020-03-30/2851580-83.patch"
@@ -82,8 +79,6 @@
"require": {
"composer/installers": "^1.2",
"cweagans/composer-patches": "^1.6.5",
- "drupal/amp": "1.2",
- "drupal/amptheme": "^1.1",
"marc1706/fast-image-size": "^1.1.0",
"oomphinc/composer-installers-extender": "^1.1",
"drupal/access_unpublished": "^1.0-alpha8",
@@ -137,6 +132,7 @@
"drupal/slick": "^2.0-rc3",
"drupal/slick_media": "^2.0-alpha2",
"drupal/thunder_admin": "^3.0",
+ "drupal/thunder_amp": "^1.0-beta2",
"drupal/thunder_fia": "^1.0",
"drupal/token": "^1.0",
"drupal/update_helper": "^1.3",
@@ -170,8 +166,5 @@
"drupal/config_profile": "^1.0",
"mglaman/phpstan-drupal": "~0.12.0",
"phpstan/phpstan-deprecation-rules": "~0.12.0"
- },
- "conflict": {
- "masterminds/html5": "^2.4.0"
}
}
diff --git a/drupal-org.make b/drupal-org.make
index 3cc57f644..2c72e8aff 100644
--- a/drupal-org.make
+++ b/drupal-org.make
@@ -119,6 +119,8 @@ projects[thunder_admin][type] = theme
projects[thunder_admin][version] = 3
projects[thunder_fia][type] = module
projects[thunder_fia][version] = 1
+projects[thunder_amp][type] = module
+projects[thunder_amp][version] = 1
projects[token][type] = module
projects[token][version] = 1
projects[update_helper][type] = module
diff --git a/themes/thunder_amp/README.md b/themes/thunder_amp/README.md
deleted file mode 100644
index bc5992b7f..000000000
--- a/themes/thunder_amp/README.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Thunder AMP Subtheme
-
-This Thunder AMP theme includes config and templates to use AMP with the
-Thunder distribution.
-If you install this theme, two things will happen:
-1. During the installation, the directory `config/optional` of this theme will be read
-and included in the config. This configures the view modes for article, paragraphs, media and blocks.
-2. The thunder profile will automatically configure
-the AMP settings (to be found in "Configuration/Content authoring/AMP Configuration")
-and set this theme as the AMP theme.
-
-If you already created the view mode AMP for the article, you will have to manually set paragraphs
-to `Rendered entity` with the view mode `AMP`.
-
-Please refer to the README at the root of amptheme for full installation
-instructions to get your site ready for AMP.
-
-To create your own custom subtheme, refer to the AMP subtheme example.
-You can either use `amptheme` as the base and include configs of this theme as you whish,
-or set `thunder_amp` as the base, in which case you get all configs set by this theme
-and the profile automatically.
-In either case, you have to set your subtheme at `/admin/config/content/amp` manually.
-
-Make sure to follow guidelines at https://www.ampproject.org/ on allowed styles
-and markup in order to have valid HTML. Please note that CSS and JS added in a
-libraries.yml file will not be loaded on AMP-enabled pages.
diff --git a/themes/thunder_amp/config/optional/core.entity_view_display.media.gallery.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_display.media.gallery.amp.yml
deleted file mode 100644
index d8119eb1a..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_display.media.gallery.amp.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.amp
- - field.field.media.gallery.field_media_images
- - media.type.gallery
- enforced:
- theme:
- - thunder_amp
-id: media.gallery.amp
-targetEntityType: media
-bundle: gallery
-mode: amp
-content:
- field_media_images:
- weight: 0
- label: hidden
- settings:
- view_mode: amp
- link: false
- third_party_settings: { }
- type: entity_reference_entity_view
-hidden:
- created: true
- langcode: true
- name: true
- thumbnail: true
- uid: true
diff --git a/themes/thunder_amp/config/optional/core.entity_view_display.media.image.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_display.media.image.amp.yml
deleted file mode 100644
index 88cb30f44..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_display.media.image.amp.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.media.amp
- - field.field.media.image.field_copyright
- - field.field.media.image.field_description
- - field.field.media.image.field_expires
- - field.field.media.image.field_image
- - field.field.media.image.field_source
- - field.field.media.image.field_tags
- - image.style.media_image_tablet
- - media.type.image
- module:
- - amp
- enforced:
- module:
- - amp
- theme:
- - thunder_amp
-id: media.image.amp
-targetEntityType: media
-bundle: image
-mode: amp
-content:
- field_copyright:
- weight: 1
- label: hidden
- settings:
- link_to_entity: false
- third_party_settings: { }
- type: string
- field_image:
- weight: 0
- label: hidden
- settings:
- image_style: media_image_tablet
- image_link: ''
- amp_layout: responsive
- amp_fixed_height: 300
- third_party_settings: { }
- type: amp_image
-hidden:
- created: true
- field_brands: true
- field_channel: true
- field_description: true
- field_events: true
- field_expires: true
- field_people: true
- field_source: true
- field_tags: true
- langcode: true
- name: true
- thumbnail: true
- uid: true
diff --git a/themes/thunder_amp/config/optional/core.entity_view_display.node.article.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_display.node.article.amp.yml
deleted file mode 100644
index 1b9694b09..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_display.node.article.amp.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.node.amp
- - field.field.node.article.field_channel
- - field.field.node.article.field_meta_tags
- - field.field.node.article.field_paragraphs
- - field.field.node.article.field_seo_title
- - field.field.node.article.field_tags
- - field.field.node.article.field_teaser_media
- - field.field.node.article.field_teaser_text
- - node.type.article
- module:
- - entity_reference_revisions
- - user
- enforced:
- theme:
- - thunder_amp
-id: node.article.amp
-targetEntityType: node
-bundle: article
-mode: amp
-content:
- field_paragraphs:
- type: entity_reference_revisions_entity_view
- weight: 0
- label: hidden
- settings:
- view_mode: amp
- link: ''
- third_party_settings: { }
- field_tags:
- type: entity_reference_label
- weight: 1
- label: hidden
- settings:
- link: true
- third_party_settings: { }
- links:
- weight: 2
- settings: { }
- third_party_settings: { }
-hidden:
- field_channel: true
- field_meta_tags: true
- field_seo_title: true
- field_teaser_media: true
- field_teaser_text: true
- langcode: true
diff --git a/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.gallery.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.gallery.amp.yml
deleted file mode 100644
index 6b6b5697e..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.gallery.amp.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.paragraph.amp
- - field.field.paragraph.gallery.field_media
- - paragraphs.paragraphs_type.gallery
- enforced:
- theme:
- - thunder_amp
-id: paragraph.gallery.amp
-targetEntityType: paragraph
-bundle: gallery
-mode: amp
-content:
- field_media:
- type: entity_reference_entity_view
- weight: 0
- label: hidden
- settings:
- view_mode: amp
- link: false
- third_party_settings: { }
-hidden:
- created: true
- uid: true
diff --git a/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.image.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.image.amp.yml
deleted file mode 100644
index 9aee9b364..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.image.amp.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.paragraph.amp
- - field.field.paragraph.image.field_image
- - paragraphs.paragraphs_type.image
- enforced:
- theme:
- - thunder_amp
-id: paragraph.image.amp
-targetEntityType: paragraph
-bundle: image
-mode: amp
-content:
- field_image:
- type: entity_reference_entity_view
- weight: 0
- label: hidden
- settings:
- view_mode: amp
- link: false
- third_party_settings: { }
-hidden:
- created: true
- uid: true
diff --git a/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.video.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.video.amp.yml
deleted file mode 100644
index 44663d015..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_display.paragraph.video.amp.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.paragraph.amp
- - field.field.paragraph.video.field_video
- - paragraphs.paragraphs_type.video
- enforced:
- theme:
- - thunder_amp
-id: paragraph.video.amp
-targetEntityType: paragraph
-bundle: video
-mode: amp
-content:
- field_video:
- type: entity_reference_entity_view
- weight: 0
- label: hidden
- settings:
- view_mode: amp
- link: false
- third_party_settings: { }
-hidden:
- created: true
- uid: true
diff --git a/themes/thunder_amp/config/optional/core.entity_view_mode.media.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_mode.media.amp.yml
deleted file mode 100644
index 542519797..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_mode.media.amp.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-langcode: en
-status: true
-dependencies:
- module:
- - media
- enforced:
- theme:
- - thunder_amp
-id: media.amp
-label: AMP
-targetEntityType: media
-cache: true
diff --git a/themes/thunder_amp/config/optional/core.entity_view_mode.paragraph.amp.yml b/themes/thunder_amp/config/optional/core.entity_view_mode.paragraph.amp.yml
deleted file mode 100644
index f559c72f6..000000000
--- a/themes/thunder_amp/config/optional/core.entity_view_mode.paragraph.amp.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-langcode: en
-status: true
-dependencies:
- module:
- - paragraphs
- enforced:
- theme:
- - thunder_amp
-id: paragraph.amp
-label: AMP
-targetEntityType: paragraph
-cache: true
diff --git a/themes/thunder_amp/logo.svg b/themes/thunder_amp/logo.svg
deleted file mode 100644
index 3e7f3b9c9..000000000
--- a/themes/thunder_amp/logo.svg
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
diff --git a/themes/thunder_amp/screenshot.png b/themes/thunder_amp/screenshot.png
deleted file mode 100644
index 828bde704..000000000
Binary files a/themes/thunder_amp/screenshot.png and /dev/null differ
diff --git a/themes/thunder_amp/templates/amp-css/amp-custom-styles.html.twig b/themes/thunder_amp/templates/amp-css/amp-custom-styles.html.twig
deleted file mode 100644
index c31d552c0..000000000
--- a/themes/thunder_amp/templates/amp-css/amp-custom-styles.html.twig
+++ /dev/null
@@ -1,477 +0,0 @@
-/* ---------- Layout ----------- */
-
-html {
- height: 100%;
-}
-
-body {
- min-height: 100%;
-}
-
-.amp-header__content,
-.amp-main__content,
-.amp-footer__content {
- margin: 0 auto;
- max-width: 620px;
-}
-
-.amp-main {
- min-height: 300px;
-}
-
-.amp-main__content {
- padding-top: 20px;
- padding-bottom: 40px;
-}
-
-.layout-container {
- max-width: 860px;
- margin-left: auto;
- margin-right: auto;
- box-sizing: border-box;
-}
-
-/* ---------- Typography ----------- */
-
-body {
- font-family: Georgia, "Times New Roman", Times, serif;
- font-size: 100%;
- line-height: 1.5;
- word-wrap: break-word;
-}
-
-/* --- Links --- */
-
-a,
-a.link {
- text-decoration: none;
- border-bottom: 1px dotted;
-}
-
-a:hover,
-a:active,
-a:focus,
-.link:hover,
-.link:active,
-.link:focus {
- text-decoration: none;
- border-bottom-style: solid;
-}
-
-.link {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-}
-
-h1 a,
-h2 a {
- border-bottom: none;
-}
-
-/* --- Headings --- */
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-.heading-a,
-.heading-b,
-.heading-c,
-.heading-d,
-.heading-e,
-.heading-f {
- font-weight: inherit;
- margin: 1rem 0 0.5rem;
-}
-
-h1,
-.heading-a {
- font-size: 1.2rem;
- color: #000;
-}
-
-h2,
-.heading-b {
- font-size: 1rem;
-}
-
-h3,
-.heading-c {
- font-size: 0.9375rem;
-}
-
-h4,
-.heading-d {
- font-size: 0.875rem;
-}
-
-h5,
-h6,
-.heading-e,
-.heading-f {
- text-transform: uppercase;
- letter-spacing: 0.1em;
-}
-
-h5,
-.heading-e {
- font-size: 0.75rem;
-}
-
-h6,
-.heading-f {
- font-size: 0.625rem;
-}
-
-/* --- Text --- */
-
-p {
- margin: 0 0 1rem;
-}
-
-del {
- text-decoration: line-through;
-}
-
-blockquote {
- background: #f7f7f7;
- border-left: 1px solid #bbb; /* LTR */
- font-style: italic;
- margin: 1.3125rem 10px;
- padding: 0.4375rem 10px;
-}
-
-[dir="rtl"] blockquote {
- border-left: none;
- border-right: 1px solid #bbb;
-}
-
-blockquote:before {
- color: #bbb;
- content: "\201C";
- font-size: 2.625rem;
- line-height: 0.1;
- margin-right: 0.153125rem; /* LTR */
- vertical-align: -0.30625rem;
-}
-
-[dir="rtl"] blockquote:before {
- content: "\201D";
- margin-left: 0.153125rem;
- margin-right: 0;
-}
-
-blockquote:after {
- color: #bbb;
- content: "\201D";
- font-size: 2.625rem;
- line-height: 0.1;
- vertical-align: -0.39375rem;
-}
-
-[dir="rtl"] blockquote:after {
- content: "\201C";
-}
-
-blockquote > p:first-child {
- display: inline;
-}
-
-img {
- max-width: 100%;
- height: auto;
-}
-
-ul, ol {
- margin: 0;
- padding: 0 0 0.21875rem 0.875rem; /* LTR */
-}
-
-[dir="rtl"] ul,
-[dir="rtl"] ol {
- padding: 0 0.875rem 0.21875rem 0;
-}
-
-ol ol,
-ul ul {
- margin: 0;
- padding: 0 0 0.21875rem 0.875rem; /* LTR */
-}
-
-[dir="rtl"] ol ol,
-[dir="rtl"] ul ul {
- padding: 0 0.875rem 0.21875rem 0;
-}
-
-/* ---------- Colors ----------- */
-
-body {
- background: #292929;
- color: #3b3b3b;
-}
-
-.amp-header {
- background-color: #1d84c3;
- background-image: -webkit-linear-gradient(top, #055a8e 0%, #1d84c3 100%);
- background-image: linear-gradient(to bottom, #055a8e 0%, #1d84c3 100%);
-}
-
-.amp-main {
- background-color: #ffffff;
-}
-
-.amp-footer {
- background: #292929;
-}
-
-a,
-.link {
- color: #0071b3;
-}
-
-a:hover,
-a:focus,
-.link:hover,
-.link:focus {
- color: #018fe2;
-}
-
-a:active,
-.link:active {
- color: #23aeff;
-}
-
-.amp-header,
-.amp-header a,
-.amp-header li a.is-active,
-.site-branding__text,
-.site-branding,
-.site-branding__text a,
-.site-branding a {
- color: #fffeff;
-}
-
-/* ---------- Utility classes ----------- */
-
-.hidden {
- display: none;
-}
-
-.visually-hidden {
- position: absolute;
- clip: rect(1px, 1px, 1px, 1px);
- overflow: hidden;
- height: 1px;
- width: 1px;
- word-wrap: normal;
-}
-
-.visually-hidden.focusable:active,
-.visually-hidden.focusable:focus {
- position: static;
- clip: auto;
- overflow: visible;
- height: auto;
- width: auto;
-}
-
-.invisible {
- visibility: hidden;
-}
-
-.clearfix:after {
- content: "";
- display: table;
- clear: both;
-}
-
-/* ---------- Header ----------- */
-
-.amp-header {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-}
-
-.amp-header__content {
- padding: 0.75rem .9375rem 0.75rem;
-}
-
-
-.amp-header a {
- border-bottom: none;
-}
-
-.brand {
- margin: 0.375rem auto 0.375rem;
-}
-
-.site-branding__logo {
- display: inline-block;
- margin-right: 0.875rem; /* LTR */
- margin-bottom: 0.25rem;
- width: 6rem;
-}
-
-[dir="rtl"] .site-branding__logo {
- margin-right: 0;
- margin-left: 1em;
-}
-
-.site-branding__text {
- display: inline-block;
- vertical-align: top;
-}
-
-.site-branding__name {
- font-size: 1.375rem;
- color: #686868;
- line-height: 1;
-}
-
-.site-branding__slogan {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-size: 0.8125rem;
- margin-top: 7px;
- word-spacing: 0.1em;
- font-style: italic;
-}
-
-/* ---------- Footer ----------- */
-
-.amp-footer {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-}
-
-.amp-footer__content {
- color: #c0c0c0;
- color: rgba(255, 255, 255, 0.65);
- font-size: 0.75rem;
- padding: 2rem 1rem 2rem;
-}
-
-.amp-footer a,
-.amp-footer a.is-active {
- color: #fcfcfc;
- color: rgba(255, 255, 255, 0.8);
-}
-
-.amp-footer a:hover,
-.amp-footer a:focus {
- color: #fefefe;
- color: rgba(255, 255, 255, 0.95);
-}
-
-
-/* ---------- Skip Link ----------- */
-
-.amp-skip-link {
- left: 50%;
- -webkit-transform: translateX(-50%);
- -ms-transform: translateX(-50%);
- transform: translateX(-50%);
- z-index: 50;
- background: #444;
- background: rgba(0, 0, 0, 0.6);
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-size: 0.94em;
- line-height: 1.7em;
- padding: 1px 10px 2px;
- border-radius: 0 0 10px 10px;
- border-bottom-width: 0;
- outline: 0;
-}
-
-.amp-skip-link.visually-hidden.focusable:focus {
- position: absolute;
- color: #fff;
-}
-
-/* ---------- Messages ----------- */
-
-.messages__wrapper {
- padding: 20px 0 5px 8px;
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- margin: 8px 0;
-}
-
-[dir="rtl"] .messages__wrapper {
- padding: 20px 8px 5px 0;
-}
-
-.messages {
- background: no-repeat 10px 17px; /* LTR */
- border: 1px solid;
- border-width: 1px 1px 1px 0; /* LTR */
- border-radius: 2px;
- padding: 15px 20px 15px 35px; /* LTR */
- word-wrap: break-word;
- overflow-wrap: break-word;
-}
-
-[dir="rtl"] .messages {
- border-width: 1px 0 1px 1px;
- background-position: right 10px top 17px;
- padding-left: 20px;
- padding-right: 35px;
- text-align: right;
-}
-.messages + .messages {
- margin-top: 1.538em;
-}
-
-.messages__list {
- list-style: none;
- padding: 0;
- margin: 0;
-}
-
-.messages__item + .messages__item {
- margin-top: 0.769em;
-}
-
-/* See .color-success in Seven's colors.css */
-.messages--status {
- color: #325e1c;
- background-color: #f3faef;
- border-color: #c9e1bd #c9e1bd #c9e1bd transparent; /* LTR */
- background-image: url(../../../../../../core/misc/icons/73b355/check.svg);
- box-shadow: -8px 0 0 #77b259; /* LTR */
-}
-
-[dir="rtl"] .messages--status {
- border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
- box-shadow: 8px 0 0 #77b259;
- margin-left: 0;
-}
-
-/* See .color-warning in Seven's colors.css */
-.messages--warning {
- background-color: #fdf8ed;
- background-image: url(../../../../../../core/misc/icons/e29700/warning.svg);
- border-color: #f4daa6 #f4daa6 #f4daa6 transparent; /* LTR */
- color: #734c00;
- box-shadow: -8px 0 0 #e09600; /* LTR */
-}
-
-[dir="rtl"] .messages--warning {
- border-color: #f4daa6 transparent #f4daa6 #f4daa6;
- box-shadow: 8px 0 0 #e09600;
-}
-
-/* See .color-error in Seven's colors.css */
-.messages--error {
- background-color: #fcf4f2;
- color: #a51b00;
- background-image: url(../../../../../../core/misc/icons/e32700/error.svg);
- border-color: #f9c9bf #f9c9bf #f9c9bf transparent; /* LTR */
- box-shadow: -8px 0 0 #e62600; /* LTR */
-}
-
-[dir="rtl"] .messages--error {
- border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
- box-shadow: 8px 0 0 #e62600;
-}
-
-.messages--error p.error {
- color: #a51b00;
-}
diff --git a/themes/thunder_amp/templates/block/block--system-branding-block.html.twig b/themes/thunder_amp/templates/block/block--system-branding-block.html.twig
deleted file mode 100644
index b83ad6be5..000000000
--- a/themes/thunder_amp/templates/block/block--system-branding-block.html.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends "block.html.twig" %}
-{#
-/**
- * @file
- * Theme implementation for a branding block.
- *
- * Each branding element variable (logo, name, slogan) is only available if
- * enabled in the block configuration.
- *
- * Available variables:
- * - site_logo: Logo for site as defined in Appearance or theme settings.
- * - site_logo_height: Height of the logo, if available.
- * - site_logo_width: Width of the logo, if available.
- * - site_name: Name for site as defined in Site information settings.
- * - site_slogan: Slogan for site as defined in Site information settings.
- */
-#}
-{% set attributes = attributes.addClass('site-branding', 'clearfix') %}
-{% block content %}
- {% if site_logo and site_logo_height and site_logo_width %}
-
-
- {{ path }} -#} -