Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
seibtph authored and Philipp Seibt committed Dec 3, 2018
1 parent c7c0c27 commit e262e8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Resources/contao/Modules/SocialFeedSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SocialFeedSetup extends \BackendModule
/**
* social-feed-bundle version
*/
const VERSION = '2.1.2';
const VERSION = '2.1.3';

/**
* Template
Expand Down
12 changes: 8 additions & 4 deletions src/Resources/contao/templates/modules/news_social_feed.html5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="social_feed_element arc_<?= $this->archive->id ?> block<?= $this->class ?> <?= $this->sfElementWidth ?>" itemscope itemtype="http://schema.org/Article">
<div class="inner">

<a href="<?= $this->sfFbLink ?>" target="_blank">
<a href="<?= $this->url ?>" target="_blank">
<div class="icon">
{{picture::<?php echo \StringUtil::binToUuid($this->sfFbAccountPicture); ?>}}
</div>
Expand All @@ -12,11 +12,15 @@
<?php endif; ?>

<div class="title"><?= $this->sfFbAccount ?></div>
</a>

<?php if ($this->addImage && $this->sfImages): ?>
<?php $this->insert('image', $this->arrData); ?>
<?php endif; ?>
<?php if($this->arrData['url'] == ""): ?><a href="<?= $this->url ?>" target="_blank"><?php endif; ?>
<?php if ($this->addImage && $this->sfImages): ?>
<?php $this->insert('image', $this->arrData); ?>
<?php endif; ?>
<?php if($this->arrData['url'] == ""): ?></a><?php endif; ?>

<a href="<?= $this->url ?>" target="_blank">
<div class="ce_text block" itemprop="description">
<?= $this->teaser ?>
</div>
Expand Down

0 comments on commit e262e8f

Please sign in to comment.