Skip to content

Commit

Permalink
[TASK] Add country to contact widget
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenWouters committed Jul 16, 2020
1 parent 2e023bb commit bd4de51
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ services:
address: ''
postalCode: ''
place: ''
country: ''
tel: ''
mail: ''
website: ''
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Widgets for the TYPO3 Dashboard
This extension contains several widgets, which can be used on the Dashboard for TYPO3. To use
these widgets you need to install the TYPO3 core-extension called dashboard.
these widgets you need to install the TYPO3 core-extension called dashboard.

The extension only contains widgets showing data that is available in core extensions. So for
these widgets no 3rd party extensions are needed.

## Overview of widgets
This extension currently contains the following widgets:
*
* **Contact information**, Will show contact information of your supplier;

## I miss widgets!
Do you have an idea for a widget showing information that is available by core extensions, please
create a new widget request with your ideas.
create a new widget request with your ideas.

[Request new widget](https://github.com/FriendsOfTYPO3/widgets/issues/new?labels=widget&template=widget-request.md)

Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<source>Contact information</source>
</trans-unit>
<trans-unit id="widgets.dashboard.widget.contact.description" xml:space="preserve">
<source>Will show contact information of supplier</source>
<source>Will show contact information of your supplier</source>
</trans-unit>
</body>
</file>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Templates/Widget/ContactWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<f:if condition="{options.postalCode} || {options.place}">
{options.postalCode} {options.place} <br/>
</f:if>
<f:if condition="{options.country}">
{options.country} <br/>
</f:if>
</p>
<f:if condition="{options.tel} || {options.mail}">
<p>
Expand Down

0 comments on commit bd4de51

Please sign in to comment.