Your IP : 216.73.216.43


Current Path : /home/cbequiperp/www/components/com_flexicontent/templates/equipement/
Upload File :
Current File : /home/cbequiperp/www/components/com_flexicontent/templates/equipement/_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-equipement">        
		<h1><?php echo $field->display; ?></h1>		    
    </div>
<?php endforeach; ?>
<?php if ($result=="fr-FR") : ?>
<?php foreach ($this->item->positions['argumentairefr'] as $field) : ?>
    <div class="argumentaire">        
		<?php echo $field->display; ?>		    
    </div>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($result=="en-GB") : ?> 
<?php foreach ($this->item->positions['argumentaireen'] as $field) : ?>
    <div class="argumentaire">        
		<?php echo $field->display; ?>		    
    </div>
<?php endforeach; ?>
<?php endif; ?> 
<?php if ($result=="de-DE") : ?> 
<?php foreach ($this->item->positions['argumentairede'] as $field) : ?>
    <div class="argumentaire">        
		<?php echo $field->display; ?>		    
    </div>
<?php endforeach; ?>
<?php endif; ?>   
<div id="equipement">
    <?php foreach ($this->item->positions['image'] as $field) : ?>
    <div class="image-equipement">        
		    <?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['description'] as $field) : ?>
    <div class="description-equipement">     
		    <?php echo $field->display; ?>		     
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['diaporama'] as $field) : ?>
    <div class="album-equipement">     
		    <?php echo $field->display; ?>		     
    </div>
    <?php endforeach; ?>

   <div class="projet"> 
     [zt_accordions type="accordion"][zt_accordion title="<?php if ($result=="fr-FR") : ?>Vous avez un projet ?<?php endif; ?>
  <?php if ($result=="en-GB") : ?>Ask for a quote<?php endif; ?>
  <?php if ($result=="de-DE") : ?>Fordern Sie ein Angebot an<?php endif; ?>" active="no"]
  <?php foreach ($this->item->positions['devis'] as $field) : ?>
	<i class="fa fa-building" aria-hidden="true"></i>&nbsp;
  <span><?php echo $field->display; ?>
	<?php endforeach; ?>
  [/zt_accordion][/zt_accordions]
  </div>
    
     <?php foreach ($this->item->positions['lien-emballage'] as $field) : ?>
    <div class="emballage-equipement">
    <?php if ($result=="en-GB") : ?><h2>Agrofood packaging</h2><?php endif; ?>
      <?php if ($result!=="en-GB") : ?><h2><?php echo JText::_('FLEXI_EMBALLAGE') ?></h2><?php endif; ?>         
		<?php echo $field->display; ?>		     
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['lien-actualite'] as $field) : ?>
    <div class="actualite-equipement">
      <?php if ($result=="en-GB") : ?><h2>NEWS</h2><?php endif; ?>
      <?php if ($result!=="en-GB") : ?><h2><?php echo JText::_('FLEXI_ACTUALITES') ?></h2><?php endif; ?>    
		  <?php echo $field->display; ?>		     
    </div>
    <?php endforeach; ?> 
</div>


<div id="right">
    <?php foreach ($this->item->positions['video'] as $field) : ?> 
    <div class="video">       
		<?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php foreach ($this->item->positions['aliment'] as $field) : ?>
    <div class="aliment"> 
    <?php if ($result=="en-GB") : ?>
    <h2>Some examples</h2>
    <?php endif; ?>
    <?php if ($result=="fr-FR") : ?>
    <h2>Quelques applications</h2>
    <?php endif; ?>         
		<?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php if ($result=="fr-FR") : ?>
    <?php foreach ($this->item->positions['telechargement-FR'] as $field) : ?>
    <div class="doc">
    <h2><?php echo JText::_('FLEXI_DOC') ?></h2>
    <?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php endif; ?>
    <?php if ($result=="en-GB") : ?>
    <?php foreach ($this->item->positions['telechargement-EN'] as $field) : ?>
    <div class="doc">
    <h2>Documentation to download</h2>
    <?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php endif; ?>  
    <?php if ($result=="de-DE") : ?>
    <?php foreach ($this->item->positions['telechargement-DE'] as $field) : ?>
    <div class="doc">
    <h2><?php echo JText::_('FLEXI_DOC') ?></h2>
    <?php echo $field->display; ?>		    
    </div>
    <?php endforeach; ?>
    <?php endif; ?> 
    <?php foreach ($this->item->positions['navigation'] as $field) : ?>
    <div class="navigation">
    <?php if ($result=="en-GB") : ?><h2>Content</h2><?php endif; ?>
      <?php if ($result!=="en-GB") : ?><h2><?php echo JText::_('FLEXI_NAVIGATION') ?></h2><?php endif; ?>         
		<?php echo $field->display; ?>			     
    </div>
    <?php endforeach; ?>   
</div>
<?php endif; ?>
<div class="clear"></div>
</div>
<?php } ?>