Your IP : 216.73.217.112


Current Path : /home/zieirix/www/components/com_faqbookpro/views/sections/tmpl/
Upload File :
Current File : /home/zieirix/www/components/com_faqbookpro/views/sections/tmpl/default_columns.php

<?php
/**
* @title				Minitek FAQ Book
* @copyright   	Copyright (C) 2011-2020 Minitek, All rights reserved.
* @license   		GNU General Public License version 3 or later.
* @author url   https://www.minitek.gr/
* @developers   Minitek.gr
*/

defined('_JEXEC') or die;

?><div class="fbContent_sections"><?php

	if ($this->params->get('show_page_title')):
		?><h2 class="fbContent_title"><?php
			echo $this->escape($this->params->get('page_title'));
		?></h2><?php
	endif;

	if ($this->params->get('sections_page_description', false) && $this->params->get('menu-meta_description'))
	{
		?><div class="fbContent_sections_desc"><?php
			echo $this->params->get('menu-meta_description');
		?></div><?php
	}

	if ($this->sections)
	{
		?><div class="fb_columns clearfix"><?php
			$i = 0;
			foreach ($this->sections as $key=>$section)
			{
				$sectionParams = json_decode($section->attribs, false);
				$section_class = (isset($sectionParams->section_class)) ? $sectionParams->section_class : '';
				$section_image = (isset($sectionParams->section_image)) ? $sectionParams->section_image : false;

				?><div class="fb_column <?php echo $section_class; ?>" style="width:<?php echo number_format(100/$this->params->get('sections_cols', 3), 2); ?>%;">
					<div class="fb_column_inner"><?php

						if ($section_image && $this->params->get('sections_image', true))
						{
							?><a href="<?php echo JRoute::_(FAQBookProHelperRoute::getSectionRoute($section->id)); ?>" class="fb_column_image">
								<img src="<?php echo $section_image; ?>" alt="<?php echo $section->title; ?>" /></a><?php
						}

						if ($this->params->get('sections_title', true))
						{
							?><h3 class="fb_column_header">
								<a href="<?php echo JRoute::_(FAQBookProHelperRoute::getSectionRoute($section->id)); ?>"><?php
									echo $section->title;
								?></a><?php
								if ($this->params->get('sections_section_count', true))
								{
									?> <small>(<?php echo (int)$section->q_count; ?>)</small><?php
								}
							?></h3><?php
						}

						if ($this->params->get('sections_description', true))
						{
							?><div class="fb_column_desc"><?php
								echo JHtml::_('content.prepare', $section->description);
							?></div><?php
						}

						if ($this->params->get('sections_topics', true))
						{
							if (count($section->topics))
							{
								?><div class="fb_column_topics"><?php
									foreach ($section->topics as $topic)
									{
										?><div class="fb_column_topic">
											<a href="<?php echo JRoute::_(FAQBookProHelperRoute::getTopicRoute($topic->id)); ?>"><?php
												if ($topic->icon_class)
												{
													?><i class="fa fa-<?php echo $topic->icon_class; ?>"></i><?php
												}
												echo $topic->title;
											?></a><?php
											if ($this->params->get('sections_topics_count', true))
											{
												?> <small>(<?php echo (int)$topic->q_count; ?>)</small><?php
											}
										?></div><?php
									}
								?></div><?php
							}
						}
					?></div>
				</div><?php

				$i++;
				if (($i)%$this->params->get('sections_cols', 3)==0)
				{
					?><div class="clearfix"> </div><?php
				}
			}
		?></div><?php
	}

	if ($this->params->get('sections_custom', ''))
	{
		?><div class="fbContent_sections_custom"><?php
			echo $this->params->get('sections_custom');
		?></div><?php
	}
?></div>