-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
108 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
web/themes/custom/hoeringsportal/templates/block/block-content--aside-contact-info.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation to display a custom block. | ||
* | ||
* Available variables: | ||
* - block_content: Full custom block entity. | ||
* Only method names starting with "get", "has", or "is" and a few common | ||
* methods such as "id", "label", and "bundle" are available. For example: | ||
* - block_content.getCreatedTime() will return the custom block creation timestamp. | ||
* - block_content.id(): The custom block ID. | ||
* - block_content.bundle(): The type of the custom block, for example, "image" or "text". | ||
* See Drupal\block_content\Entity\BlockContent for a full list of public properties | ||
* and methods for the custom block object. | ||
* - content: All custom block items. Use {{ content }} to print them all, | ||
* or print a subset such as {{ content.field_example }}. Use | ||
* {{ content|without('field_example') }} to temporarily suppress the printing | ||
* of a given child element. | ||
* - attributes: HTML attributes for the containing element. | ||
* - view_mode: View mode; for example, "preview" or "full". | ||
* - logged_in: Flag for authenticated user status. Will be true when the | ||
* current user is a logged-in member. | ||
* - is_admin: Flag for admin user status. Will be true when the current user | ||
* is an administrator. | ||
* | ||
* @see template_preprocess_block_content() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
|
||
<div class="aside-contact-info"> | ||
{% if block_content.field_department.value %} | ||
<div class="text-primary"> | ||
{{ block_content.field_department.value }} | ||
</div> | ||
{% endif %} | ||
{% if block_content.field_title.value %} | ||
<div class="h4"> | ||
{{ block_content.field_title.value }} | ||
</div> | ||
{% endif %} | ||
{% if block_content.field_address.value %} | ||
<div> | ||
{# @TODO Which is better; `nl2br` or `style="white-space: pre-line"` #} | ||
{{ block_content.field_address.value|nl2br }} | ||
</div> | ||
{% endif %} | ||
{% if block_content.field_phone_number.value %} | ||
<div> | ||
{{ 'Phone'|trans }}: <a href="tel:{{ block_content.field_phone_number.value }}">{{ block_content.field_phone_number.value }}</a> | ||
</div> | ||
{% endif %} | ||
{% if block_content.field_email.value %} | ||
<div> | ||
{{ 'Email'|trans }}: <a href="mailto:{{ block_content.field_email.value }}">{{ block_content.field_email.value }}</a> | ||
</div> | ||
{% endif %} | ||
</div> |
69 changes: 0 additions & 69 deletions
69
web/themes/custom/hoeringsportal/templates/field/field--node--field-aside-block.html.twig
This file was deleted.
Oops, something went wrong.