Your IP : 216.73.216.147


Current Path : /home/lejardintz/www/templates/as002085/html/mod_as_articles_newsflash/
Upload File :
Current File : /home/lejardintz/www/templates/as002085/html/mod_as_articles_newsflash/_achievements.php

<?php

/*******************************************************************************************/
/*
/*		Designed by 'AS Designing'
/*		Web: http://www.asdesigning.com
/*		Web: http://www.astemplates.com
/*		License: GNU/GPL
/*
/******************************************************************************************/

defined('_JEXEC') or die;

$item_heading = $params->get('item_heading', 'h4');
$item_images = json_decode($item->images);

if($layout!='edit')
{
	$canEdit = $item->params->get('access-edit');
	JHtml::addIncludePath(JPATH_BASE.'/components/com_content/helpers');
}

if($layout!='edit') :
	if ($canEdit) : ?>
	<!-- Icons -->
	<div class="item_icons btn-group pull-right">
		<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="fa fa-cog"></i> <span class="caret"></span> </a>
		<ul class="dropdown-menu">
			<?php if ($canEdit) : ?>
			<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $item, $params); ?> </li>
			<?php endif; ?>
		</ul>
	</div>
	<?php endif;
endif;

if ($params->get('intro_image') && $item_images->image_intro_caption): ?>
<div class="radial-progress" data-progress="<?php echo htmlspecialchars($item_images->image_intro_caption); ?>">
	<div class="circle">
		<div class="mask full">
			<div class="fill"></div>
		</div>
		<div class="mask half">
			<div class="fill"></div>
			<div class="fill fix"></div>
		</div>
	</div>
	<div class="inset">
		<div class="percentage">
			<div class="numbers">
				<span>-</span>
				<?php for ($num = 0; $num <= 100; $num++) 
				{
					echo "<span>".$num."%</span>";
				} 
				?>
			</div>
		</div>
	</div>
</div>
<?php endif; ?>

<div class="item_content">
	<!-- Item title -->
	<?php if ($params->get('item_title')) : ?>
		<<?php echo $item_heading; ?> class="item_title item_title__<?php echo $params->get('moduleclass_sfx'); ?>">
			<?php if ($params->get('link_titles') && $item->link != '') : ?>
                <a href="<?php echo $item->link;?>"><?php echo $item->title;?></a>
                <?php else :
                echo wrap_with_span($item->title);
            endif; ?>
		</<?php echo $item_heading; ?>>
	<?php endif;

	if (!$params->get('intro_only'))
	{
		echo $item->afterDisplayTitle;
	}

	if ($params->get('show_tags', 1) && !empty($item->tags))
	{
		$item->tagLayout = new JLayoutFile('joomla.content.tags');
		echo $item->tagLayout->render($item->tags->itemTags);
	}

	if ($params->get('published')) : ?>
	<time datetime="<?php echo JHtml::_('date', $item->publish_up, 'Y-m-d H:i'); ?>" class="item_published">
		<?php echo JHtml::_('date', $item->publish_up, JText::_('DATE_FORMAT_LC1')); ?>
	</time>
	<?php endif;

	echo $item->beforeDisplayContent;

	if ($params->get('show_introtext')) : ?>
	<!-- Introtext -->
	<div class="item_introtext">
		<?php echo $item->introtext; ?>
	</div>
	<?php endif; ?>

	<!-- Read More link -->
	<?php if (isset($item->link) && $item->readmore != 0 && $params->get('readmore')) :
		$readMoreText = JText::_('MOD_ARTICLES_NEWS_READMORE');
			if ($item->alternative_readmore){
				$readMoreText = $item->alternative_readmore;
			}
		echo '<a class="btn btn-info readmore" href="'.$item->link.'"><span>'. $readMoreText .'</span></a>';
	endif; ?>
</div>
<div class="clearfix"></div>