Your IP : 216.73.216.43


Current Path : /home/cbequiperp/www/components/com_flexicontent/templates/emballage/
Upload File :
Current File : /home/cbequiperp/www/components/com_flexicontent/templates/emballage/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.'"' : '';
?>
 <?php
  $lang = JFactory::getLanguage();
  $result = $lang->getTag(); 
  ?>
  
<div id="flexicontent" class="flexicontent <?php echo $page_classes; ?>" <?php echo $microdata_itemtype_code; ?> >

	
  <?php if ($item->event->beforeDisplayContent) : ?>
		<!-- BOF beforeDisplayContent -->
		<div class="fc_beforeDisplayContent group">
			<?php echo $item->event->beforeDisplayContent; ?>
		</div>
		<!-- EOF beforeDisplayContent -->
	<?php endif; ?>
	
	<?php if (JRequest::getCmd('print')) : ?>
		<!-- BOF Print handling -->
		<?php if ($this->params->get('print_behaviour', 'auto') == 'auto') : ?>
			<script type="text/javascript">window.addEvent('domready', function() { window.print(); });</script>
		<?php	elseif ($this->params->get('print_behaviour') == 'button') : ?>
			<input type='button' id='printBtn' name='printBtn' value='<?php echo JText::_('Print');?>' class='btn btn-info' onclick='this.style.display="none"; window.print(); return false;'>
		<?php endif; ?>
		<!-- EOF Print handling -->
		
	<?php else : ?>
	
		<?php
		$pdfbutton = flexicontent_html::pdfbutton( $item, $this->params );
		$mailbutton = flexicontent_html::mailbutton( FLEXI_ITEMVIEW, $this->params, $item->categoryslug, $item->slug, 0, $item );
		$printbutton = flexicontent_html::printbutton( $this->print_link, $this->params );
		$editbutton = flexicontent_html::editbutton( $item, $this->params );
		$statebutton = flexicontent_html::statebutton( $item, $this->params );
		$approvalbutton = flexicontent_html::approvalbutton( $item, $this->params );
		?>
		
		<?php if ($pdfbutton || $mailbutton || $printbutton || $editbutton || $statebutton || $approvalbutton) : ?>
		<!-- BOF buttons -->
		<div class="buttons">
			<?php echo $pdfbutton; ?>
			<?php echo $mailbutton; ?>
			<?php echo $printbutton; ?>
			<?php echo $editbutton; ?>
			<?php echo $statebutton; ?>
			<?php echo $approvalbutton; ?>
		</div>
		<!-- EOF buttons -->
		<?php endif; ?>
	<?php endif; ?>
  	

<?php if ($this->params->get('show_title', 1)) : ?>
<?php foreach ($this->item->positions['titre'] as $field) : ?>
    <div class="titre-emballage">        
		<h1><?php echo $field->display; ?></h1>		    
    </div>
<?php endforeach; ?>
[zt_columns][zt_column md="3"]
<?php foreach ($this->item->positions['image'] as $field) : ?>
    <div class="image-emballage">        
		    <?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
[/zt_column][zt_column md="9"]
<div id="emballages">[zt_accordions type="toggle"][zt_accordion title="<?php echo JText::_('FLEXI_DIMENSIONS') ?>" active="yes"]
    <?php foreach ($this->item->positions['longueur'] as $field) : ?>
    <div class="detail-emballage">        
		    <?php echo JText::_('FLEXI_LONGUEUR') ?><?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['largeur'] as $field) : ?>
    <div class="detail-emballage">        
		    <?php echo JText::_('FLEXI_LARGEUR') ?><?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['hauteur'] as $field) : ?>
    <div class="detail-emballage">        
		    <?php echo JText::_('FLEXI_HAUTEUR') ?><?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['diametre'] as $field) : ?>
    <div class="detail-emballage">        
		    <?php echo JText::_('FLEXI_DIAMETRE') ?><?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['volume'] as $field) : ?>
    <div class="detail-emballage">        
		    <?php echo JText::_('FLEXI_VOLUME') ?><?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?> 
    [/zt_accordion][zt_accordion title="<?php echo JText::_('FLEXI_FORMES_TITRE') ?>" active="no"]
    <?php foreach ($this->item->positions['forme'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['couvercle'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['compartiment'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['materiau'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['monomateriau'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_MONOMATERIAU') ?>		    
    </div>
    <?php endforeach; ?>
    [/zt_accordion][zt_accordion title="<?php echo JText::_('FLEXI_CARACTERISTIQUES') ?>" active="no"]
    <?php foreach ($this->item->positions['atmosphere'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_ATMOSPHERE') ?>			    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['pasteurisation'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_PASTEURISATION') ?>			    
    </div>
    <?php endforeach; ?>
      <?php foreach ($this->item->positions['sterilisation'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_STERILISATION') ?>			    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['operculable'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_OPERCULABLE') ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['microndable'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_MICRONDABLE') ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['four'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_FOUR') ?>			    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['surgelation'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_SURGELATION') ?>			    
    </div>
    <?php endforeach; ?>
    
    <?php foreach ($this->item->positions['imprimable'] as $field) : ?>
    <div class="detail-emballage">        
		    <i class="fa fa-check"></i>&nbsp;<?php echo JText::_('FLEXI_IMPRIMABLE') ?>			    
    </div>
    <?php endforeach; ?>
    
    [/zt_accordion][zt_accordion title="<?php echo JText::_('FLEXI_APPLICATIONS_TITRE') ?>" active="no"]
     <?php foreach ($this->item->positions['application'] as $field) : ?>
    <div class="detail-emballage">        
		    <?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?> 
    [/zt_accordion][/zt_accordions]</div>
[/zt_column][/zt_columns]

<?php foreach ($this->item->positions['description'] as $field) : ?>
<div class="description-emballage">     
		    <?php echo $field->display; ?>		     
</div>
<?php endforeach; ?>
<?php foreach ($this->item->positions['video'] as $field) : ?> 
<div class="video">       
<?php echo $field->display; ?>		    
</div>
<?php endforeach; ?>
<?php foreach ($this->item->positions['album'] as $field) : ?>
<div class="album">       
<?php echo $field->display; ?>		    
</div>
<?php endforeach; ?>
<?php foreach ($this->item->positions['diaporama'] as $field) : ?>
<div class="diaporama">       
<?php echo $field->display; ?>		    
</div>
<?php endforeach; ?>
<?php foreach ($this->item->positions['doc'] as $field) : ?>
<div class="doc"> 
<h2> <?php echo JText::_('FLEXI_DOC') ?></h2>       
<?php echo $field->display; ?>		    
</div>
<?php endforeach; ?>   
</div> 

<div class="actualite-emballage"> 
<div style="box-sizing: border-box !important;margin-top:20px;width:100%;text-align:right;">&larr;&nbsp;</i><a href="javascript:history.back();"><?php echo JText::_('FLEXI_RETOUR') ?></a></div>
</div>
<div class="actualite-emballage"></div>

<?php endif; ?>
<div class="clear"></div>
</div>
<?php } ?>