<?php

/**
 * Snippet to implement a LinkedIn share button.
 *
 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @package clearFusionCMS\module\social
 * @copyright Copyright (c) 2013 clearFusionCMS. All rights reserved.
 * @link http://clearfusioncms.com
 */

/** @var $tplEngine cfTemplateEngine */
$link = isset($link) ? $link : $tplEngine->controller->getRequest()->getSelf(true);

echo '<div class="cfSocialLinkedIn"><script type="IN/Share" data-url="' . $link . '" data-counter="top"></script></div>';
$tplEngine->getCodeBuffer()->requireCore()->bufferHeadJS('system/modules/social/js/social.js');
