| Current Path : /home/juvelize/www/plugins/content/socialshare/tmpl/ |
| Current File : /home/juvelize/www/plugins/content/socialshare/tmpl/default.php |
<?php
/*
* package: Joomill - Social Share
* copyright: Copyright (c) 2023. Jeroen Moolenschot | Joomill
* license: GNU General Public License version 2 or later
* link: https://www.joomill-extensions.com
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
?>
<div class="share-container <?php if ($view == 'article') { echo $stickyShare; } ?>">
<ul class="socialshare-buttons clearfix">
<li class="socialshare-mobileprefix">
<span class="socialshare-text"><?php echo Text::_($prefixPlatformName); ?></span>
</li>
<?php foreach ($socialPlatforms as $platform => $data): ?>
<?php if ($data['enabled']): ?>
<li class="socialshare-<?php echo $platform; ?>">
<a href="<?php echo $data['url']; ?>"
target="<?php echo $target; ?>"
rel="referrer noopener"
aria-label="<?php echo Text::_($prefixPlatformName); ?> <?php echo $data['text']; ?> <?php if ($target == "_blank") { ?>, opens a new window<?php } ?>"
>
<span class="socialshare-icon <?php echo $displayPlatformIcon; ?>">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="<?php echo $data['iconViewbox']; ?>">
<path d="<?php echo $data['iconPath']; ?>"/>
</svg>
</span>
<span class="socialshare-text <?php echo $displayPlatformName; ?>"><?php echo Text::_($prefixPlatformName); ?> <?php echo $data['text']; ?></span>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>