Your IP : 216.73.216.43


Current Path : /home/cbequiperp/www/components/com_flexicontent/templates/boulangerie/
Upload File :
Current File : /home/cbequiperp/www/components/com_flexicontent/templates/boulangerie/category_items.php

<?php
/**
 * @version 1.5 stable $Id: category_items.php 1689 2013-06-23 20:39:55Z 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;
$user = JFactory::getUser();
?> 
<div id="boulangerie">
<?php
	// Form for (a) Text search, Field Filters, Alpha-Index, Items Total Statistics, Selectors(e.g. per page, orderby)
	// If customizing via CSS rules or JS scripts is not enough, then please copy the following file here to customize the HTML too 
	include(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'tmpl_common'.DS.'listings_filter_form_b.php'); 
?>
</div>

<div id="liste-equipements">

<?php

// routine to determine all used columns for this table
$show_title  = $this->params->get('show_title', 1);
$link_titles = $this->params->get('link_titles', 0);
$layout = $this->params->get('clayout', 'default');
$fbypos = flexicontent_tmpl::getFieldsByPositions($layout, 'category');
$columns = array();
foreach ($this->items as $item) :
	if (isset($item->positions['table'])) :
		foreach ($fbypos['table']->fields as $f) :
			if ( ! @ $columns[$f] ) :
				$columns[$f] = @ $item->fields[$f]->label;
			endif;
		endforeach;
	endif;
endforeach;
$items = & $this->items;
// Decide whether to show the edit column
$buttons_exists = false;
if ( $user->id ) :	
	$show_editbutton = $this->params->get('show_editbutton', 1);
	foreach ($items as $item) :	
		if ( $show_editbutton ) :
			if ($item->editbutton = flexicontent_html::editbutton( $item, $this->params )) :
				$buttons_exists = true;
				$item->editbutton = '<div class="fc_edit_link_nopad">'.$item->editbutton.'</div>';
			endif;
			if ($item->statebutton = flexicontent_html::statebutton( $item, $this->params )) :
				$buttons_exists = true;
				$item->statebutton = '<div class="fc_state_toggle_link_nopad">'.$item->statebutton.'</div>';
			endif;
		endif;		
		if ($item->approvalbutton = flexicontent_html::approvalbutton( $item, $this->params )) :
			$buttons_exists = true;
			$item->approvalbutton = '<div class="fc_approval_request_link_nopad">'.$item->approvalbutton.'</div>';
		endif;		
	endforeach;	
endif;
// Decide whether to show the comments column
$comments_non_zero = false;
if ( $this->params->get('show_comments_count', 0) ) :
	if ( isset($this->comments) && count($this->comments) ) :
		$comments_non_zero = true;
	endif;
endif;

// Check to enable show title if not other columns were configured
if (!$show_title && !count($columns)) :
	echo '<span style="font-weight:bold; color:red;">'.JText::_('FLEXI_TPL_NO_COLUMNS_SELECT_FORCING_DISPLAY_ITEM_TITLE').'</span>';
	$this->params->set('show_title', 1);
endif;
?>

<table class="resultat">
	<tbody>
	<?php foreach ($items as $i => $item) : ?>
		<tr>		
		<?php
		$fc_item_classes = 'sectiontableentry';
		
		$markup_tags = '<span class="fc_mublock">';
		foreach($item->css_markups as $grp => $css_markups) {
			if ( empty($css_markups) )  continue;
			$fc_item_classes .= ' fc'.implode(' fc', $css_markups);
			
			$ecss_markups  = $item->ecss_markups[$grp];
			$title_markups = $item->title_markups[$grp];
			foreach($css_markups as $mui => $css_markup) {
				$markup_tags .= '<span class="fc_markup mu' . $css_markups[$mui] . $ecss_markups[$mui] .'">' .$title_markups[$mui]. '</span>';
			}
		}
		$markup_tags .= '</span>';
		?>
		<td class="vignette-equipement">			
        <?php if (isset($items[$i]->positions['image'])) : ?>
				<?php foreach ($items[$i]->positions['image'] as $field) : ?>
				<?php echo $field->display; ?>				
				<?php endforeach; ?>
				<?php endif; ?>				
    </td>
    <td class="liste-equipement">
			<?php if ($show_title) : ?>
				<?php if ($link_titles) : ?>
				<h3 ><a class="fc_item_title" href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); ?>">
			<?php echo $item->title; ?></a></h3>
				<?php else : echo $item->title; endif; ?>
			<?php endif; ?>
			<?php echo $markup_tags; ?>
		<br />		
    <?php if (isset($items[$i]->positions['intro'])) : ?>
				<?php foreach ($items[$i]->positions['intro'] as $field) : ?>
				<?php echo $field->display; ?>
				<?php endforeach; ?>
				<?php endif; ?>
    </td>			
		</tr>
	<?php endforeach; ?>			
	</tbody>
</table>
<span class="fc_item_separator_row"></span>
</div>
<div id="right">
  <?php if (isset($items[$i]->positions['navigation'])) : ?>
				<?php foreach ($items[$i]->positions['navigation'] as $field) : ?>
        <div class="navigation">
    <h2> <?php echo JText::_('FLEXI_NAVIGATION') ?></h2>       
		    <?php echo $field->display; ?>		     
    </div>
				<?php endforeach; ?>
				<?php endif; ?>
</div>