Your IP : 216.73.216.41


Current Path : /home/purehotels/public_html/templates/purehotels/html/com_k2/Press/
Upload File :
Current File : /home/purehotels/public_html/templates/purehotels/html/com_k2/Press/item.php

<?php
/**
 * @version		2.6.x
 * @package		K2
 * @author		JoomlaWorks http://www.joomlaworks.net
 * @copyright	Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */


// no direct access
defined('_JEXEC') or die;



$document = JFactory::getDocument();
$document->addScript('https://maps.googleapis.com/maps/api/js');


$gallery ='';
$json = 'media/k2/gallerychamp/item'.$this->item->id.'/ordering.json';
if(file_exists($json)){
    $ordering = json_decode(file_get_contents($json));
    $ordering = $ordering->ordering;
    $gallery = $ordering;
}
?>

<article id="default" class="article article-2 ">
		
	<div class="headingImage">
		<?php if (strlen($gallery) > 0): ?>
			<?php
			$image = new JImage('media/k2/gallerychamp/item'.$this->item->id.'/main/'.$gallery[0]);
			$image = $image->createThumbs('700x260', JImage::CROP_RESIZE)[0]->getPath();
			?>
			<img src="<?php echo $image; ?>" alt="" style="width: 100%;">
		<?php endif; ?>
	</div>

	<div class="intranett-article">
		<?php if($this->item->params->get('itemTitle')): ?>
			<h2 class="title">
				<?php echo $this->item->title; ?>
			</h2>
		<?php endif; ?>

		<?php if(isset($this->item->editLink)): ?>
		<!-- Item edit link -->
		<span class="itemEditLink">
			<a class="btn modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
				<?php echo JText::_('K2_EDIT_ITEM'); ?>
			</a>
		</span>
		<?php endif; ?>

		<div class="textWrapper">
					
			<?php if (strlen($this->item->introtext) > 2): ?>
				<div class="introtext">
					<?php echo $this->item->introtext; ?>
				</div>
			<?php endif; ?>
			<?php if (strlen($this->item->fulltext) > 2): ?>
				<div class="fulltext col2">
					<?php echo $this->item->fulltext; ?>
				</div>
			<?php endif; ?>

		</div>
	</div>
</article>