Skip to content

Commit

Permalink
8.2.2
Browse files Browse the repository at this point in the history
- Fixed module dependency name in the info.yml file (#84) (e2fe84c)
- Changed the newsletter signup block category. (#83) (9c26816)
- D8CORE-1958: changing a span to a div for validation fix (#82) (e97cdff)
  • Loading branch information
imonroe authored Jun 18, 2020
1 parent 79b76a6 commit f6b7039
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Stanford News

8.x-2.2
--------------------------------------------------------------------------------
_Release Date: 2020-06-17_

- Fixed module dependency name in the info.yml file (#84) (e2fe84c)
- Changed the newsletter signup block category. (#83) (9c26816)
- D8CORE-1958: changing a span to a div for validation fix (#82) (e97cdff)

8.x-2.1
--------------------------------------------------------------------------------
_Release Date: 2020-05-20_
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Block/SignupBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @Block(
* id = "signup_block",
* admin_label = @Translation("Newsletter Signup"),
* category = @Translation("Newsletter Signup"),
* category = @Translation("Stanford News"),
* )
*/
class SignupBlock extends BlockBase implements BlockPluginInterface {
Expand Down
9 changes: 4 additions & 5 deletions stanford_news.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Stanford news items and views.'
core_version_requirement: ^8.8 || ^9
package: Stanford
version: 8.x-2.1
version: 8.x-2.2
dependencies:
- allowed_formats:allowed_formats
- auto_entitylabel:auto_entitylabel
Expand Down Expand Up @@ -32,7 +32,7 @@ dependencies:
- paragraphs:paragraphs
- pathauto:pathauto
- rabbit_hole:rabbit_hole
- rabbit_home:rh_node
- rabbit_hole:rh_node
- stanford_media:stanford_media
- stanford_text_editor:stanford_text_editor
- taxonomy_menu:taxonomy_menu
Expand All @@ -43,7 +43,6 @@ dependencies:
- views_block_filter_block:views_block_filter_block
- views_infinite_scroll:views_infinite_scroll
- views_taxonomy_term_name_depth:views_taxonomy_term_name_depth

component-libraries:
news:
paths:
- templates/components
news: { paths: [templates/components] }
4 changes: 2 additions & 2 deletions templates/sections/news-byline-social.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
{% if content.su_news_publishing_date or content.su_news_byline %}
<div {{ region_attributes.su_news_byline.addClass('news-date-pipe-byline') }}>
{%- if content.su_news_publishing_date|render|striptags("<drupal-render-placeholder>")|trim is not empty %}
<span class="su_news_publishing_date-region">{{ content.su_news_publishing_date }}</span>
<div class="su_news_publishing_date-region">{{ content.su_news_publishing_date }}</div>
{% endif %}
{% if content.su_news_publishing_date|render|striptags("<drupal-render-placeholder>")|trim and content.su_news_byline|render|striptags("<drupal-render-placeholder>")|trim %} | {% endif %}
{%- if content.su_news_byline|render|striptags("<drupal-render-placeholder>")|trim is not empty %}
<span class="su_news_byline-region">{{ content.su_news_byline }}</span>
<div class="su_news_byline-region">{{ content.su_news_byline }}</div>
{% endif %}
</div>
{% endif %}
Expand Down

0 comments on commit f6b7039

Please sign in to comment.