Skip to content

Commit

Permalink
update social feed templates
Browse files Browse the repository at this point in the history
  • Loading branch information
seibtph committed Feb 3, 2020
1 parent f815840 commit 3ae8367
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/Module/OddThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class OddThemeSetup extends \BackendModule
{
const VERSION = '1.1.5';
const VERSION = '1.1.6';

protected $strTemplate = 'be_oddtheme_setup';

Expand Down
30 changes: 0 additions & 30 deletions src/Resources/contao/templates/modules/news_social_feed.html5

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<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->hasMetaFields): ?>
<p class="info"><time datetime="<?= $this->datetime ?>" itemprop="datePublished">
<?= $this->date ?></time> <?= $this->author ?> <?= $this->commentCount ?>
<?php if($this->socialFeedType == "Facebook" || $this->socialFeedType == ""): ?>
<i class="fab fa-facebook" aria-hidden="true"></i>
<?php elseif($this->socialFeedType == "Instagram"): ?>
<i class="fab fa-instagram" aria-hidden="true"></i>
<?php elseif($this->socialFeedType == "Twitter"): ?>
<i class="fab fa-twitter" aria-hidden="true"></i>
<?php endif; ?>
</p>
<?php endif; ?>

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

<?php if ($this->addImage): ?>
<?php if ($this->sfImages): ?>
<?php $this->insert('image', $this->arrData); ?>
<?php endif; ?>
<?php endif; ?>

<div class="ce_text block" itemprop="description">
<p><?= preg_replace('#(?:<br\s*/?>\s*?){2,}#', '</p><p>', $this->teaser) ?></p>
</div>

<a href="<?= $this->url ?>" target="_blank" class="more" rel="noreferrer noopener">
<?= $GLOBALS['TL_LANG']['MSC']['more'] ?>
</a>

</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
<?php if ($this->hasMetaFields): ?>
<p class="info"><time datetime="<?= $this->datetime ?>" itemprop="datePublished">
<?= $this->date ?></time> <?= $this->author ?> <?= $this->commentCount ?>
<?php if($this->socialFeedType == "Facebook" || $this->socialFeedType == ""): ?><i class="fab fa-facebook" aria-hidden="true"></i><?php elseif($this->socialFeedType == "Instagram"): ?><i class="fab fa-instagram" aria-hidden="true"></i><?php endif; ?>
<?php if($this->socialFeedType == "Facebook" || $this->socialFeedType == ""): ?>
<i class="fab fa-facebook" aria-hidden="true"></i>
<?php elseif($this->socialFeedType == "Instagram"): ?>
<i class="fab fa-instagram" aria-hidden="true"></i>
<?php elseif($this->socialFeedType == "Twitter"): ?>
<i class="fab fa-twitter" aria-hidden="true"></i>
<?php endif; ?>
</p>
<?php endif; ?>

Expand Down

0 comments on commit 3ae8367

Please sign in to comment.