Your IP : 216.73.216.43


Current Path : /home/cbequiperp/www/components/com_flexicontent/templates/aliment/
Upload File :
Current File : /home/cbequiperp/www/components/com_flexicontent/templates/aliment/item.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
// first define the template name
$tmpl = $this->tmpl; // for backwards compatiblity
$item = $this->item;  // an alias

// USE HTML5 or XHTML
$html5			= $this->params->get('htmlmode', 0); // 0 = XHTML , 1 = HTML5
if ($html5) {  /* BOF html5  */
	echo $this->loadTemplate('html5');
} else {
// Prepend toc (Table of contents) before item's description (toc will usually float right)
// By prepend toc to description we make sure that it get's displayed at an appropriate place
if (isset($item->toc)) {
	$item->fields['text']->display = $item->toc . $item->fields['text']->display;
}
// Set the class for controlling number of columns in custom field blocks
switch ($this->params->get( 'columnmode', 2 )) {
	case 0: $columnmode = 'singlecol'; break;
	case 1: $columnmode = 'doublecol'; break;
	default: $columnmode = ''; break;
}

$page_classes  = '';
$page_classes .= $this->pageclass_sfx ? ' page'.$this->pageclass_sfx : '';
$page_classes .= ' fcitems fcitem'.$item->id;
$page_classes .= ' fctype'.$item->type_id;
$page_classes .= ' fcmaincat'.$item->catid;
$microdata_itemtype = $this->params->get( 'microdata_itemtype');
$microdata_itemtype_code = $microdata_itemtype ? 'itemscope itemtype="http://schema.org/'.$microdata_itemtype.'"' : '';
?>

<div id="flexicontent" class="flexicontent <?php echo $page_classes; ?>" <?php echo $microdata_itemtype_code; ?> >	
	<?php if ( $this->params->get( 'show_page_heading', 1 ) && $this->params->get('page_heading') != $item->title ) : ?>
	<!-- BOF page title -->
	<h1 class="componentheading">
		<?php echo $this->params->get('page_heading'); ?>
	</h1>
	<!-- EOF page title -->
	<?php endif; ?>

	<?php if ($this->params->get('show_title', 1)) : ?>
	<!-- BOF item title -->
	<h1 class="contentheading"><span class="fc_item_title">
		<?php
		if ( mb_strlen($item->title, 'utf-8') > $this->params->get('title_cut_text',200) ) :
			echo mb_substr ($item->title, 0, $this->params->get('title_cut_text',200), 'utf-8') . ' ...';
		else :
			echo $item->title;
		endif;
		?>
	</span></h1>
	<!-- EOF item title -->
	<?php endif; ?>
<div style="width=30%;float:left;padding-right:25px;">
	<div id="image-produit">
    <?php foreach ($this->item->positions['image'] as $field) : ?>
		<?php echo $field->display; ?>
    <?php endforeach; ?>
  </div>
  <div id="image-produit">
    <?php foreach ($this->item->positions['video'] as $field) : ?>
    <br />
		<?php echo $field->display; ?>
    <br />
    <?php endforeach; ?>
  </div>
</div>
  	<div>
    <?php foreach ($this->item->positions['description'] as $field) : ?>
		<?php echo $field->display; ?>
    <?php endforeach; ?>
  </div>
  <div style="margin-bottom:15px;">  
    <?php foreach ($this->item->positions['lien'] as $field) : ?><br />
    <span><?php echo JText::_('FLEXI_ENSAVOIRPLUS') ?></span>
		<?php echo $field->display; ?>
    <?php endforeach; ?>
  </div>
  <div>
    <?php foreach ($this->item->positions['doc'] as $field) : ?><br />
    <span><?php echo JText::_('FLEXI_DOWNLOAD') ?></span>
		<?php echo $field->display; ?>
    <?php endforeach; ?>
  </div>
</div>
<?php } /* EOF if html5  */ ?>