Skip to content

Commit

Permalink
Merge branch 'publications-improvements' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbutura committed Jan 26, 2024
2 parents 2f2af92 + a31d2e4 commit 1f6fb6c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions web/themes/custom/parc/parc.theme
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,11 @@ function parc_preprocess_paragraph__newsletter(&$variables) {
if ($block instanceof BlockContent
&& $block->hasField('field_show_season')
&& $block->get('field_show_season')->value) {
$spring = (new DateTime('March 1'))->format('Y-m-d');
$summer = (new DateTime('June 1'))->format('Y-m-d');
$autumn = (new DateTime('September 1'))->format('Y-m-d');
$winter = (new DateTime('December 1'))->format('Y-m-d');
$year = date('Y', strtotime($date));
$spring = "$year-03-01";
$summer = "$year-06-01";
$autumn = "$year-09-01";
$winter = "$year-12-01";

switch (TRUE) {
case $date >= $spring && $date < $summer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#}

{% if element.field_regulatory_message.0 %}
{% if element.field_key_messages.2 %}
{% if element.field_key_messages.1 %}
{% set showArrow = true %}
{% endif %}
{% else %}
{% if element.field_key_messages.3 %}
{% if element.field_key_messages.2 %}
{% set showArrow = true %}
{% endif %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
font-size: 18px;
height: auto;

&:not(.field-regulatory-message):hover {
--cs-svg-c: var(--cs--item-bg);
Expand All @@ -227,6 +227,7 @@

.field--content {
margin-top: 10px;
margin-bottom: 20px;
margin-right: 20px;
}

Expand Down

0 comments on commit 1f6fb6c

Please sign in to comment.