<?php
/**
 * sh404SEF - SEO extension for Joomla!
 *
 * @author      Yannick Gaultier
 * @copyright   (c) Yannick Gaultier 2014
 * @package     sh404SEF
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @version     4.4.4.1791
 * @date		2014-07-01
 */

/**
 * Input:
 * 
 * $displayData['layout']
 * $displayData['loadScript']
 * $displayData['url']
 * $displayData['languageTag']
 */
// Security check to ensure this file is being included by a parent file.
if (!defined('_JEXEC')) die('Direct Access to this location is not allowed.');

$layout = empty($displayData['layout']) || $displayData['layout'] == 'none' ? '' : 'data-counter="' . $displayData['layout'] . '"';
?>

<!-- LinkedIn share button -->
<?php if(!empty($displayData['loadScript'])) : ?>
<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: <?php echo $displayData['languageTag']; ?></script>
<?php endif; ?>
<script type="IN/Share" data-url="<?php echo $displayData['url']; ?>" <?php echo $layout; ?>></script>
<!-- End LinkedIn share button -->