Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update epic highlighted #982

Merged
merged 37 commits into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
bf5c439
OEL-60: Drupal 9 Compatibility fixes.
escuriola Jul 8, 2021
24c4227
OEL-60: Run Toolkit tests as kernel tests in Drupal 8.9.
claudiu-cristea Jul 19, 2021
9d95e7f
OEL-60: Class minor refactor.
escuriola Jul 19, 2021
0ba4307
OEL-60: Removing unuseful assert messages.
escuriola Jul 19, 2021
97d7454
OEL-60: Changes to review and improve code format.
escuriola Jul 20, 2021
90bdc38
OEL-60: Change oe_multilingual required dependency to another branch.
escuriola Jul 22, 2021
08f2a0c
OEL-60: Add reference to OEL-337 branch for ecl-twig-loader at compos…
abel-santos-corral Aug 3, 2021
c462a4a
OEL-60: Move tests to tests/src folder.
yenyasinn Aug 17, 2021
1e42a32
OEL-60: Use PHPUnit 7.5 and higher.
yenyasinn Aug 19, 2021
9878241
OEL-60: Remove drupal/typed_link since it is used in oe_paragraphs.
yenyasinn Aug 28, 2021
a67144b
OEL-60: Updating with latest 3.x changes.
upchuk Sep 30, 2021
f168edd
OEL-60: Updating with latest 3.x changes.
upchuk Oct 27, 2021
e76113d
OEL-60: Fixing the PHPUnit batch extension.
upchuk Oct 27, 2021
2a5393a
OEL-60: Fixing test module dependencies.
upchuk Oct 27, 2021
8947057
OEL-60: Fixing frontpage Views title in test.
upchuk Oct 29, 2021
d29b5a0
OEL-60: Fixing expected oEmbed local thumbnail name.
upchuk Oct 29, 2021
8c8aa09
Merge pull request #880 from openeuropa/OEL-60
imanoleguskiza Nov 8, 2021
5082905
EWPP-1649: Update ECL version to 3.1.1.
sergepavle Oct 21, 2021
cfa94ef
EWPP-1649: Apply changes in site header regarding sitename.
sergepavle Oct 22, 2021
b0482ed
EWPP-1649: Fix Kernel tests.
sergepavle Oct 22, 2021
1a021ea
EWPP-1649: Fix tests related to datepicker.
sergepavle Oct 22, 2021
3895ad3
EWPP-1649: Apply ECL 3.1.2 version.
sergepavle Oct 25, 2021
6e23e54
Prepare release 3.0.0-beta5.
imanoleguskiza Oct 29, 2021
fc620d0
Merge pull request #978 from openeuropa/EWPP-0000-release-3.0.x
imanoleguskiza Nov 8, 2021
d423f60
Prepare release 3.0.0-alpha6.
imanoleguskiza Nov 8, 2021
221690d
Merge pull request #979 from openeuropa/release-3.0.0-beta6
upchuk Nov 8, 2021
21e6c75
EWPP-1050: Show Turkey address correctly.
yenyasinn Oct 25, 2021
d3309cc
Merge pull request #972 from openeuropa/EWPP-1050
upchuk Nov 10, 2021
d1e1ca9
EWPP-1557: Translate "@date in" to Arabic and Turkish languages.
yenyasinn Sep 24, 2021
6290fab
EWPP-1557: Remove spaces from the test string.
yenyasinn Sep 27, 2021
83e429f
EWPP-1557: Use simple method to render element.
yenyasinn Oct 5, 2021
208e5f2
EWPP-1557: Use Unit instead of Kernel test.
yenyasinn Oct 13, 2021
3580a88
Merge pull request #958 from openeuropa/EWPP-1557
upchuk Nov 10, 2021
a6b1cbb
EWPP-1597: Passing icon info to the list item block button link.
upchuk Oct 24, 2021
06511d9
Merge pull request #970 from openeuropa/EWPP-1597
upchuk Nov 10, 2021
7a1c769
EWPP-755: Merge branch '3.x' into update-EPIC-Highlighted.
22Alexandra Nov 11, 2021
44338de
EWPP-755: Update list item assertion.
imanoleguskiza Nov 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
# Changelog

## [3.0.0-beta5](https://github.com/openeuropa/oe_theme/tree/3.0.0-beta6) (2021-11-08)

[Full Changelog](https://github.com/openeuropa/oe_theme/compare/3.0.0-beta5...3.0.0-beta6)

**Merged pull requests:**

- OEL-60: Drupal 9 Compatibility fixes. [\#880](https://github.com/openeuropa/oe_theme/pull/880) ([escuriola](https://github.com/escuriola))

## [3.0.0-beta5](https://github.com/openeuropa/oe_theme/tree/3.0.0-beta5) (2021-10-29)

[Full Changelog](https://github.com/openeuropa/oe_theme/compare/3.0.0-beta4...3.0.0-beta5)

**Merged pull requests:**

- Prepare release 3.0.0-beta5. [\#975](https://github.com/openeuropa/oe_theme/pull/975) ([imanoleguskiza](https://github.com/imanoleguskiza))
- EWPP-1649: Update ECL version. [\#968](https://github.com/openeuropa/oe_theme/pull/968) ([sergepavle](https://github.com/sergepavle))
- EWPP-1432: Update field_group module to 3.2. [\#923](https://github.com/openeuropa/oe_theme/pull/923) ([yenyasinn](https://github.com/yenyasinn))
- EWPP-1579: Update to ECL 3.0.3. [\#953](https://github.com/openeuropa/oe_theme/pull/953) ([22Alexandra](https://github.com/22Alexandra))

## [3.0.0-beta4](https://github.com/openeuropa/oe_theme/tree/3.0.0-beta4) (2021-09-27)

[Full Changelog](https://github.com/openeuropa/oe_theme/compare/3.0.0-beta3...3.0.0-beta4)

**Merged pull requests:**

- Prepare release 3.0.0-beta4. [\#961](https://github.com/openeuropa/oe_theme/pull/961) ([imanoleguskiza](https://github.com/imanoleguskiza))
- Epic ewpp 1360 news v3 [\#957](https://github.com/openeuropa/oe_theme/pull/957) ([22Alexandra](https://github.com/22Alexandra))
- Update epic news [\#956](https://github.com/openeuropa/oe_theme/pull/956) ([22Alexandra](https://github.com/22Alexandra))
- EWPP-1486: Theme publication collection related fields. [\#945](https://github.com/openeuropa/oe_theme/pull/945) ([nagyad](https://github.com/nagyad))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://drone.fpfis.eu/api/badges/openeuropa/oe_theme/status.svg?branch=master)](https://drone.fpfis.eu/openeuropa/oe_theme)
[![Packagist](https://img.shields.io/packagist/v/openeuropa/oe_theme.svg)](https://packagist.org/packages/openeuropa/oe_theme)

Drupal 8 theme based on the [Europa Component Library][1] (ECL).
Drupal 8 and 9 theme based on the [Europa Component Library][1] (ECL).

**Table of contents:**

Expand Down
2 changes: 1 addition & 1 deletion behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default:
suites:
default:
paths:
- %paths.base%/tests/features
- "%paths.base%/tests/features"
contexts:
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MarkupContext
Expand Down
30 changes: 16 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"prefer-stable": true,
"require": {
"php": ">=7.3",
"drupal/core": "^8.9.14",
"drupal/core": "^8.9.14 || ^9.1",
"drupal/smart_trim": "^1.2",
"drupal/twig_field_value": "^2.0",
"drupal/ui_patterns": "^1.0",
"openeuropa/ecl-twig-loader": "^3.0",
"openeuropa/ecl-twig-loader": "^3.1",
"openeuropa/oe_time_caching": "~1.0",
"ralouphie/mimey": "^2.1"
},
Expand All @@ -20,7 +20,7 @@
"consolidation/annotated-command": "^2.8.2",
"consolidation/robo": "~1.4",
"cweagans/composer-patches": "~1.6.7",
"drupal/core-composer-scaffold": "^8.8",
"drupal/core-composer-scaffold": "^8.9 || ^9.1",
"drupal/address": "~1.9",
"drupal/composite_reference": "~1.0-alpha1",
"drupal/config_devel": "~1.2",
Expand All @@ -36,34 +36,36 @@
"drupal/inline_entity_form": "~1.0-rc9",
"drupal/json_field": "^1.0.0-rc2",
"drupal/renderviz": "^1.0@alpha",
"drupal/styleguide": "~1.0-alpha3",
"drupal/styleguide": "~1.0@beta",
"drush/drush": "~10.3",
"drupal/typed_link": "^2.0",
"drush/drush": "~9.0",
"easyrdf/easyrdf": "1.0.0 as 0.9.1",
"friends-of-behat/service-container-extension": "^1.0",
"guzzlehttp/guzzle": "~6.3",
"instaclick/php-webdriver": "^1.4.7",
"nikic/php-parser": "~3.0",
"openeuropa/behat-transformation-context": "~0.1",
"openeuropa/code-review": "~1.5",
"openeuropa/drupal-core-require-dev": "^8.9.14",
"openeuropa/code-review": "~1.6",
"openeuropa/drupal-core-require-dev": "^8.9 || ^9.1",
"openeuropa/oe_content": "~2.6",
"openeuropa/oe_corporate_blocks": "~4.0",
"openeuropa/oe_corporate_countries": "~2.0",
"openeuropa/oe_media": "~1.12",
"openeuropa/oe_multilingual": "~1.8",
"openeuropa/oe_paragraphs": "~1.10",
"openeuropa/oe_search": "~1.0",
"openeuropa/oe_webtools": "~1.10",
"openeuropa/oe_search": "1.x-dev",
"openeuropa/oe_webtools": "~1.12",
"openeuropa/oe_contact_forms": "~1.1",
"openeuropa/rdf_skos": "~1.0",
"openeuropa/task-runner-drupal-project-symlink": "^1.0",
"phpunit/phpunit": "~6.0",
"symfony/dom-crawler": "~3.4"
"phpspec/prophecy-phpunit": "^1 || ^2",
"phpunit/phpunit": "^7.5 || ^8 || ^9"
},
"_readme": [
"We explicitly require consolidation/robo to allow lower 'composer update --prefer-lowest' to complete successfully.",
"We explicitly require consolidation/annotated-command to allow lower 'composer update --prefer-lowest' to complete successfully."
"We explicitly require consolidation/annotated-command to allow lower 'composer update --prefer-lowest' to complete successfully.",
"We explicity require drupal/core to allow lower 'composer update --prefer-lowest' to complete successfully.",
"openeuropa/oe_search is used from a branch because of major upgrading is pending. Change again when it released.",
"openeuropa/ecl-twig-loader is used from a branch because it must be upgrade to be D9 compatible. Change again when it released."
],
"conflict": {
"openeuropa/oe_corporate_blocks": "<3.0.0",
Expand All @@ -80,7 +82,7 @@
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\oe_theme\\": "./tests/",
"Drupal\\Tests\\oe_theme\\": "./tests/src/",
"Drupal\\Tests\\oe_content\\": "./build/modules/contrib/oe_content/tests/src/",
"Drupal\\Tests\\oe_media\\": "./build/modules/contrib/oe_media/tests/src/"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: OpenEuropa Theme Contact Forms
type: module
description: Companion module for the OE Contact Forms module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- oe_contact_forms:oe_contact_forms
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Call for proposals Content
type: module
description: Companion module for the OE Call for proposals Content module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- extra_field:extra_field
- field_group:field_group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
{{ date }}
{% else %}
{% set _link %}
{% include '@ecl-twig/link' with {
{%- include '@ecl-twig/link' with {
link: {
type: 'standalone',
label: link.title,
path: link.url,
icon_position: 'after'
},
icon: get_link_icon(link.url)
} %}
} -%}
{% endset %}
{{ '@date in'|t({'@date': date }) }} {{ _link }}
{{ '@date in @journal'|t({'@date': date, '@journal': _link|create_markup}) }}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Call for tenders Content
type: module
description: Companion module for the OE Call for tenders content module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- extra_field:extra_field
- field_group:field_group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Consultation Content
type: module
description: Companion module for the OE Content Consultation module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1

dependencies:
- drupal:datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Content Entity Contact
description: Companion module for the OE Content Entity Contact module
package: OpenEuropa
type: module
core: 8.x
core_version_requirement: ^8.9 || ^9.1

dependencies:
- oe_theme:oe_theme_helper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Content Entity Organisation
description: Companion module for the OE Content Entity Organisation module
package: OpenEuropa
type: module
core: 8.x
core_version_requirement: ^8.9 || ^9.1

dependencies:
- oe_theme:oe_theme_helper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Content Entity Venue
description: Companion module for the OE Content Entity Venue module
package: OpenEuropa
type: module
core: 8.x
core_version_requirement: ^8.9 || ^9.1

dependencies:
- oe_theme:oe_theme_helper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Event Content
type: module
description: Companion module for the OE Content Event module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- extra_field:extra_field
- oe_content:oe_content_event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme News Content
type: module
description: Companion module for the OE Content News module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- extra_field:extra_field
- oe_content_news:oe_content_news
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Organisation Content
type: module
description: Companion module for the OE Organisation Content module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- oe_content:oe_content_organisation
- oe_content:oe_content_organisation_person_reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Organisation Reference
type: module
description: Companion module for the OE Organisation Reference module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- oe_content:oe_content_organisation_reference

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: OpenEuropa Theme Page Content
type: module
description: Companion module for the OE Content Page module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- oe_content_page:oe_content_page
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Person Content
type: module
description: Companion module for the OE Content Person module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1

dependencies:
- extra_field:extra_field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: OpenEuropa Theme Policy Content
type: module
description: Companion module for the OE Content Policy module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- oe_content:oe_content_policy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Project Content
type: module
description: Companion module for the OE Content Project module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- extra_field:extra_field
- field_group:field_group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Publication Content
type: module
description: Companion module for the OE Content Publication module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- extra_field:extra_field
- oe_content:oe_content_publication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Document reference
type: module
description: Companion module for the OE Content Entity Document reference module
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- oe_content:oe_content_sub_entity_document_reference
- oe_theme:oe_theme_content_publication
Expand Down
2 changes: 1 addition & 1 deletion modules/oe_theme_demo/oe_theme_demo.info.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: OpenEuropa Theme Demo
description: OpenEuropa Theme Demo
type: module
core: 8.x
core_version_requirement: ^8.9 || ^9.1
package: OpenEuropa
dependencies:
- drupal:block
Expand Down
2 changes: 1 addition & 1 deletion modules/oe_theme_helper/oe_theme_helper.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: OpenEuropa Theme Helper
type: module
description: OpenEuropa theme helpers and tools.
package: OpenEuropa
core: 8.x
core_version_requirement: ^8.9 || ^9.1
dependencies:
- drupal:node
- ui_patterns:ui_patterns_library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ protected function viewElement(AddressInterface $address, $langcode) {
else {
$format_string = $address_format->getFormat() . "\n" . '%country';
}
$format_string = str_replace([',', ' - '], "\n", $format_string);
/*
* Remove extra characters from address format since address fields are
* optional.
*
* @see \CommerceGuys\Addressing\AddressFormat\AddressFormatRepository::getDefinitions()
*/
$format_string = str_replace([',', ' - ', '/'], "\n", $format_string);

$items = $this->extractAddressItems($format_string, $address_elements);

Expand Down
Loading