Skip to content

Commit

Permalink
[TASK] socialmedia, add new myNewsDesk icon (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
myroslav321 authored and dmh committed Nov 2, 2017
1 parent b38edc5 commit a6172ee
Show file tree
Hide file tree
Showing 10 changed files with 621 additions and 550 deletions.
10 changes: 10 additions & 0 deletions Configuration/FlexForms/flexform_socialIcons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@
</config>
</TCEforms>
</youtubeLink>
<mynewsdeskLink>
<TCEforms>
<label>
LLL:EXT:theme_t3kit/Resources/Private/Language/ContentElements.xlf:socialIcons.flexform.mynewsdeskLink
</label>
<config>
<type>input</type>
</config>
</TCEforms>
</mynewsdeskLink>
</el>
</ROOT>
</sDEF>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# customsubcategory=socialmedia_pinterest=Pinterest
# customsubcategory=socialmedia_instagram=Instagram
# customsubcategory=socialmedia_youtube=YouTube
# customsubcategory=socialmedia_mynewsdesk=Mynewsdesk


# Facebook
Expand Down Expand Up @@ -88,3 +89,11 @@ themes.configuration.socialmedia.useYoutube = 1

# cat=socialmedia,advanced/socialmedia_youtube/; type=string; label= Youtube: Pagelink
themes.configuration.socialmedia.youtubeLink = https://www.youtube.com/user/typo3/

# Mynewsdesk
#############################################
# cat=socialmedia,advanced/socialmedia_mynewsdesk/; type=options[Show=1,Hide=0]; label= Mynewsdesk: Activate?!
themes.configuration.socialmedia.useMynewsdesk = 1

# cat=socialmedia,advanced/socialmedia_mynewsdesk/; type=string; label= Mynewsdesk: Pagelink
themes.configuration.socialmedia.mynewsdeskLink = https://www.mynewsdesk.com/
3 changes: 3 additions & 0 deletions Resources/Private/Language/ContentElements.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@
<trans-unit id="socialIcons.flexform.youtubeLink">
<source>Youtube: Pagelink</source>
</trans-unit>
<trans-unit id="socialIcons.flexform.mynewsdeskLink">
<source>Mynewsdesk: Pagelink</source>
</trans-unit>

<!--CopyrightText Element-->
<trans-unit id="copyrightText.title">
Expand Down
12 changes: 12 additions & 0 deletions Resources/Private/Partials/ContentElements/Socialmedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@
</f:else>
</f:if>
</f:if>
<f:if condition="{theme:constant(constant:'themes.configuration.socialmedia.useMynewsdesk')}">
<f:if condition="{settings.mynewsdeskLink}">
<f:then>
<a class="social-icons__item" href="{settings.mynewsdeskLink}"
target="_blank" title="Mynewsdesk"><span class="icons icon-t3-mynewsdesk"></span></a>
</f:then>
<f:else>
<a class="social-icons__item" href="{theme:constant(constant:'themes.configuration.socialmedia.mynewsdeskLink')}"
target="_blank" title="Mynewsdesk"><span class="icons icon-t3-mynewsdesk"></span></a>
</f:else>
</f:if>
</f:if>
</div>

<!-- theme_t3kit: Partials/Footer/Socialmedia.html [end] -->
Expand Down
1 change: 1 addition & 0 deletions Resources/Public/IconFonts/fonts/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Public/IconFonts/fonts/icons.ttf
Binary file not shown.
Binary file modified Resources/Public/IconFonts/fonts/icons.woff
Binary file not shown.
Loading

0 comments on commit a6172ee

Please sign in to comment.