| Current Path : /home/cbequiperp/www/components/com_flexicontent/templates/actualite/ |
| Current File : /home/cbequiperp/www/components/com_flexicontent/templates/actualite/item - Copie.php |
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
$tmpl = $this->tmpl;
$html5 = $this->params->get('htmlmode', 0);
if ($html5) {
echo $this->loadTemplate('html5');
} else {
if (isset($this->item->toc)) {
$this->item->fields['text']->display = $this->item->toc . $this->item->fields['text']->display;
}
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'.$this->item->id;
$page_classes .= ' fctype'.$this->item->type_id;
$page_classes .= ' fcmaincat'.$this->item->catid;
?>
<div id="fiche-produit" >
<?php if ($this->item->event->beforeDisplayContent) : ?>
<!-- BOF beforeDisplayContent -->
<div class="fc_beforeDisplayContent group">
<?php echo $this->item->event->beforeDisplayContent; ?>
</div>
<!-- EOF beforeDisplayContent -->
<?php endif; ?>
<?php
$pdfbutton = flexicontent_html::pdfbutton( $this->item, $this->params );
$mailbutton = flexicontent_html::mailbutton( FLEXI_ITEMVIEW, $this->params, $this->item->categoryslug, $this->item->slug );
$printbutton = flexicontent_html::printbutton( $this->print_link, $this->params );
$editbutton = flexicontent_html::editbutton( $this->item, $this->params );
$statebutton = flexicontent_html::statebutton( $this->item, $this->params );
$approvalbutton = flexicontent_html::approvalbutton( $this->item, $this->params );
if ($pdfbutton || $mailbutton || $printbutton || $editbutton || $statebutton || $approvalbutton) {
?>
<!-- --------------------------Boutons------------------------------ -->
<div class="buttons">
<?php echo $pdfbutton; ?>
<?php echo $mailbutton; ?>
<?php echo $printbutton; ?>
<?php echo $editbutton; ?>
<?php echo $statebutton; ?>
<?php echo $approvalbutton; ?>
</div>
<!-- --------------------------------------------------------------- -->
<?php } ?>
<?php if ( $this->params->get( 'show_page_heading', 1 ) && $this->params->get('page_heading') != $this->item->title ) : ?>
<!-- Titre page -->
<h1 class="componentheading">
<?php echo $this->params->get('page_heading'); ?>
</h1>
<!-- --------------------------------------------------------------- -->
<?php endif; ?>
<?php if ($this->params->get('show_title', 1)) : ?>
<div id="titre-produit">
<h2>
<?php if ( mb_strlen($this->item->title, 'utf-8') > $this->params->get('title_cut_text',200) ) :
echo mb_substr ($this->item->title, 0, $this->params->get('title_cut_text',200), 'utf-8') . ' ...';
else :
echo $this->item->title;
endif;
?>
</h2>
</div>
<div class="informations-produit">
<table>
<tr>
<td class="titre-informations">
<?php echo JText::_('FLEXI_INFORMATIONS') ?>
</td>
</tr>
<?php if (isset($this->item->positions['signal'])) : ?>
<tr>
<td class="signal">
<?php foreach ($this->item->positions['signal'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
</td>
</tr>
<?php endif; ?>
<?php if (isset($this->item->positions['puissance'])) : ?>
<tr>
<td class="puissance">
<?php foreach ($this->item->positions['puissance'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
</td>
</tr>
<?php endif; ?>
<tr>
<td class="informations">
<?php foreach ($this->item->positions['prolongateur'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?><br />
<?php foreach ($this->item->positions['gaine'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?><br />
<?php foreach ($this->item->positions['frein'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?><br />
<?php foreach ($this->item->positions['connecteur'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?><br />
<?php foreach ($this->item->positions['longueur'] as $field) : ?>
<?php if ($field->label) : ?>
<?php echo $field->label; ?>
<?php endif; ?>
<?php echo $field->display; ?> m
<?php endforeach; ?>
</td>
</tr>
<tr>
<td>
<?php foreach ($this->item->positions['informations'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
</td>
</tr>
</table>
</div>
<div id="image-produit">
<?php foreach ($this->item->positions['image'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
</div>
<div class="informations-produit">
<table>
<tr>
<td class="titre-informations"><?php echo JText::_('FLEXI_VARIANTES') ?></td>
</tr>
<tr>
<td class="informations">
<?php foreach ($this->item->positions['normes'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
</td>
</tr>
</table>
</div>
<div class="mention-produit"><?php echo JText::_('FLEXI_STOCK') ?></div>
<div class="informations-produit">
<table>
<tr>
<td class="titre-informations">
<?php echo JText::_('FLEXI_COMMANDE') ?>
</td>
</tr>
<tr>
<td class="informations">
<?php foreach ($this->item->positions['reference'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
</td>
</tr>
</table>
</div>
<div class="copyright-produit">
<?php echo JText::_('FLEXI_ASSEMBLAGE') ?><?php foreach ($this->item->positions['marque'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?><br />
<?php foreach ($this->item->positions['marque'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?><?php echo JText::_('FLEXI_MARQUE_DEPOSEE') ?><br />
<?php echo JText::_('FLEXI_COPYRIGHT') ?><br />
</div>
<?php endif; ?>
<div id="retour">
<table class="retour">
<tr>
<td>
<a href="javascript:history.back();"><?php echo JText::_('FLEXI_RETOUR') ?>
</td>
</tr>
</table>
</div>
<div class="clear"></div>
</div>
<?php } ?>