<?php
/**
 * @package	Jticketing
 * @copyright Copyright (C) 2009 -2010 Techjoomla, Tekdi Web Solutions . All rights reserved.
 * @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     http://www.techjoomla.com
 */

// no direct access
	defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Language\Text;
jimport( 'joomla.utilities.date');
if(!defined('DS')){
       define('DS',DIRECTORY_SEPARATOR);
}

$tjStrapperPath = JPATH_SITE . '/media/techjoomla_strapper/tjstrapper.php';

if (File::exists($tjStrapperPath))
{
	require_once $tjStrapperPath;
	TjStrapper::loadTjAssets('com_jlike');
}

?>

<div class="techjoomla-bootstrap">
<?php
$likecount='';

if($mostlikes){
foreach($mostlikes as $likedata)
{
?>
		<div class="well" style="margin:1px;">
			<a href="<?php echo $likedata->url;?>"><?php echo $likedata->title;?></a>
					<?php
					if($showlikescount)
					{
							if($likedata->like_cnt >1)
								$likecount=Text::sprintf( 'MOD_JLIKE_LIKES_COUNT', $likedata->like_cnt );
							else
								$likecount=Text::sprintf( 'MOD_JLIKE_LIKES_ONECOUNT', $likedata->like_cnt );
							echo $likecount;
					}
					?>
				<div class="com_jlike_clear_both"></div>
		</div>

<?php
}
}
else
{?>
		<div class="alert alert-info"><?php echo Text::_('NO_DATA');?></div>
<?php
}
?>

</div>



