<?php

defined('_JEXEC') or die('Restricted access');

?>
<div class="ja-social-share-inner layout-<?php echo $layout; ?> size-<?php echo $buttonSize ?>">
    <?php if ($showCount): ?>
        <div class="total-share"><span><?php echo $textTotal ?></span></div>
    <?php endif; ?>
    <ul class="ja-button-list size-<?php echo $buttonSize ?> style-<?php echo $buttonStyle ?><?php echo $showText?' show-text':''; ?>">
        <?php foreach($buttons as $button) : ?>
            <li class="ja-button-share">
                <a 
                    href="javascript:;" 
                    data-href="<?php echo $button['url'] ?>"
                    data-service="<?php echo $button['service'] ?>"
                    onclick="jasocialshare(this)"
                    title="<?php echo $button['service'] ?>"
                    class="button-<?php echo $button['service']?>"
                >
                    <span class="service-icon <?php echo $button['service'] ?>-icon">
                        <?php echo $this->getIcon($button['service']) ?>
                    </span>
                    <?php if ($showText): ?>
                        <span class= "service-text">
                            <?php echo $button['service'] ?>
                        </span>
                    <?php endif ?>
                </a>
            </li>
        <?php endforeach?>
    </ul>
</div>