Skip to content

Commit

Permalink
Merge pull request #35 from contao-themes-net/update-social-feed-temp…
Browse files Browse the repository at this point in the history
…late

Update social feed template
  • Loading branch information
MDevster authored Dec 9, 2021
2 parents e37dc75 + 1b2ccec commit 253f633
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [1.7.1](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.7.1) – 2021-12-03

- [fix] update social feed template

## [1.7.0](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.7.0) – 2021-11-19

- [feature] add new header layout to show logo and navigation below each other
Expand Down
2 changes: 1 addition & 1 deletion src/Module/NatureThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class NatureThemeSetup extends \BackendModule
{
const VERSION = '1.7.0';
const VERSION = '1.7.1';

protected $strTemplate = 'be_naturetheme_setup';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<div class="social_feed_element extended arc_<?= $this->archive->id ?> block<?= $this->class ?>" itemscope itemtype="http://schema.org/Article">
<div class="inner">

<div class="icon">
{{picture::<?php echo \StringUtil::binToUuid($this->sfFbAccountPicture); ?>}}
</div>
<?php if($this->accountPicture): ?>
<div class="icon">
<?php $this->insert('picture_default', $this->accountPicture); ?>
</div>
<?php endif; ?>

<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?= $this->datetime ?>" itemprop="datePublished">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<div class="inner">

<a href="<?= $this->url ?>" target="_blank">
<div class="icon">
{{picture::<?php echo \StringUtil::binToUuid($this->sfFbAccountPicture); ?>}}
</div>
<?php if($this->accountPicture): ?>
<div class="icon">
<?php $this->insert('picture_default', $this->accountPicture); ?>
</div>
<?php endif; ?>

<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?= $this->datetime ?>" itemprop="datePublished">
Expand All @@ -15,6 +17,8 @@
<i class="fab fa-instagram" aria-hidden="true"></i>
<?php elseif($this->socialFeedType == "Twitter"): ?>
<i class="fab fa-twitter" aria-hidden="true"></i>
<?php elseif($this->socialFeedType == "LinkedIn"): ?>
<i class="fab fa-linkedin" aria-hidden="true"></i>
<?php endif; ?>
</p>
<?php endif; ?>
Expand Down
5 changes: 5 additions & 0 deletions src/Resources/public/scss/parts/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,11 @@ body:not(.home) #header .inside {
background: $boxes-background;
}

i {
margin-left: 10px;
font-size: 1.2rem;
}

.title {
margin-bottom: 15px;
text-transform: uppercase;
Expand Down

0 comments on commit 253f633

Please sign in to comment.