Skip to content

Commit

Permalink
Add template.
Browse files Browse the repository at this point in the history
  • Loading branch information
chimir committed Nov 23, 2016
1 parent 5233459 commit cd8e52a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/social_likes_widget.tpl.php
@@ -0,0 +1,26 @@
<div class="social-likes <?php print $element['#look']; ?>"
<?php if ($element['#url']): ?>
data-url="<?php print $element['#url']; ?>"
<?php endif; ?>
<?php if ($element['#title']): ?>
data-title="<?php print $element['#title']; ?>"
<?php endif; ?>
>
<?php foreach ($element['#websites'] as $website): ?>
<div data-service="<?php print $website; ?>"
<?php if ($website == 'twitter'): ?>
<?php if ($element['#via']): ?>
data-via="<?php print $element['#via']; ?>"
<?php endif; ?>
<?php if ($element['#related']): ?>
data-related="<?php print $element['#related']; ?>"
<?php endif; ?>
<?php endif; ?>
<?php if ($website == 'pinterest'): ?>
data-media="<?php print $element['#image_url']; ?>"
<?php endif; ?>
>
<?php print $element['#labels'] == FALSE ? $element['#label'][$website] : ''; ?>
</div>
<?php endforeach; ?>
</div>

0 comments on commit cd8e52a

Please sign in to comment.