| Current Path : /home/cbequiperp/www/components/com_flexicontent/templates/boulangerie/ |
| Current File : /home/cbequiperp/www/components/com_flexicontent/templates/boulangerie/item.php |
<?php
/**
* @version 1.5 stable $Id: item.php 1641 2013-03-01 05:03:40Z ggppdk $
* @package Joomla
* @subpackage FLEXIcontent
* @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr
* @license GNU/GPL v2
*
* FLEXIcontent is a derivative work of the excellent QuickFAQ component
* @copyright (C) 2008 Christoph Lukes
* see www.schlu.net for more information
*
* FLEXIcontent is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
// first define the template name
$tmpl = $this->tmpl; // for backwards compatiblity
// 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($this->item->toc)) {
$this->item->fields['text']->display = $this->item->toc . $this->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'.$this->item->id;
$page_classes .= ' fctype'.$this->item->type_id;
$page_classes .= ' fcmaincat'.$this->item->catid;
?>
<?php
$lang = JFactory::getLanguage();
$result = $lang->getTag();
?>
<div id="fiche" >
<?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_title', 1)) : ?>
<!-- -------------------Titre item---------------------------------- -->
<h1>
<?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;
?>
</h1>
<!-- --------------------------------------------------------------- -->
<?php endif; ?>
[zt_columns]
[zt_column md="6"]
<?php foreach ($this->item->positions['image'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
<table class="tarif">
<tr>
<?php foreach ($this->item->positions['prix'] as $field) : ?>
<td class="prix">
<?php echo $field->display; ?>
</td>
<?php endforeach; ?>
<?php foreach ($this->item->positions['promo'] as $field) : ?>
<td class="promo">
| <?php echo $field->display; ?>
</td>
<?php endforeach; ?>
<?php foreach ($this->item->positions['remise'] as $field) : ?>
<td class="remise">
<div class="pastille"><?php echo $field->display; ?></div>
</td>
<?php endforeach; ?>
</tr>
</table>
[/zt_column]
[zt_column md="6"]
<div id="boulangerie">[zt_accordions type="accordion"][zt_accordion title="<?php if ($result=="fr-FR") : ?>Demander un devis<?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>
<span><?php echo $field->display; ?>
<?php endforeach; ?>
[/zt_accordion][/zt_accordions]</div>
<br />
<?php foreach ($this->item->positions['description'] as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>
<div class="back"></div><a href="javascript:history.back();">
<?php if ($result=="fr-FR") : ?>Retour à la sélection<?php endif; ?>
<?php if ($result=="en-GB") : ?>Back to selection<?php endif; ?>
<?php if ($result=="de-DE") : ?>Zurück zur Auswahl<?php endif; ?>
</a></div>
[/zt_column]
[/zt_columns]
<hr class="separateur">
</div>
<div class="clear"></div>
</div>
<?php } /* EOF if html5 */ ?>