Sindbad~EG File Manager

Current Path : /var/www/ispania.gr/templates/rslibro/positions/
Upload File :
Current File : /var/www/ispania.gr/templates/rslibro/positions/all-content.php

<?php 
/**
 * @package RSLibro!
 * @copyright (C) 2016 www.rsjoomla.com
 * @license GPL, http://www.gnu.org/licenses/gpl-3.0.html
 */

defined('_JEXEC') or die;

$app				= JFactory::getApplication();
$columnLeftModules	= JModuleHelper::getModules('column-left');
$columnRightModules	= JModuleHelper::getModules('column-right');
$hasLeftColumn 		= $this->countModules('column-left');
$hasRightColumn		= $this->countModules('column-right');
$isHomeHidden		= $template->isHomeHidden();

// don't display RSDirectory! Filtering Module in entry view
if (($app->input->get('option') == 'com_rsdirectory') && ($app->input->get('view') == 'entry')) {
	foreach ($columnLeftModules as $module) {
		if ($module->module == 'mod_rsdirectory_filtering') {
			$hasLeftColumn--;
		}
	}
	foreach ($columnRightModules as $module) {
		if ($module->module == 'mod_rsdirectory_filtering') {
			$hasRightColumn--;
		}
	}
}

if ($hasLeftColumn && $hasRightColumn) { // 3 columns
	// if the component is set to be hidden on the homepage
	// the left and right columns will span each half width (span6)
	$columnSpan 	= ($isHomeHidden ? 'span4' : 'span3');
	$contentSpan 	= 'span6';
	$contentPadding = 'rstpl-padding-top';

	$hideAllContent = false;
} elseif ($hasLeftColumn || $hasRightColumn) { // 2 columns
	// if the component is set to be hidden on the homepage
	// the left or right column will span the whole width (span12)
	$columnSpan 	= ($isHomeHidden ? 'span12' : 'span3');
	$contentSpan 	= 'span9';
	$contentPadding = 'rstpl-padding';

	$hideAllContent = false;
} else { // 1 column
	$contentSpan 	= 'span12';
	$contentPadding = 'rstpl-padding';

	// if the component is set to be hidden on the homepage
	// hides all content if there are no left or right columns to display
	$hideAllContent = $isHomeHidden;
}
if (!$hideAllContent) {
?>

<section class="rstpl-all-content-position">
	<div class="container">
		<div class="row-fluid">
		<?php if ($hasLeftColumn) { ?>
	<!-- Start Left Column -->
		<div class="<?php echo $columnSpan; ?> column-left">
			<aside id="secondary_left">
				<jdoc:include type="modules" name="column-left" style="rsleft"/>
			</aside>
		</div>
	<!-- End Left Column -->
		<?php } ?>
		<div class="<?php echo $contentSpan; ?>">
			<?php if ($this->countModules('inner-before-content')) { ?>
	<!-- Start Inner Before Content -->
			<div class="row-fluid rstpl-inner-before-content-position">
				<div class="span12">
					<jdoc:include type="modules" name="inner-before-content" style="rscontent" />
				</div>
			</div>
			<div class="clearfix"></div>
	<!-- End Inner Before Content -->
			<?php } ?>
			<?php if (!$isHomeHidden) { ?>
				<jdoc:include type="message" />
	<!-- Start Content -->
				<div id="rstpl-<?php echo $template->getOption(); ?>" class="rstpl-content"> 
				<main id="main">
					<jdoc:include type="component" />
				</main>
				</div>
	<!-- End Content -->
			<?php } ?>
			
			<?php if ($this->countModules('inner-after-content')) { ?>
	<!-- Start Inner After Content -->
			<div class="clearfix"></div>
			<div class="row-fluid rstpl-inner-after-content-position">
				<div class="span12">
					<jdoc:include type="modules" name="inner-after-content" style="rscontent" />
				</div>
			</div>
	<!-- End Inner After Content -->
			<?php } ?>
		</div>
		<?php if ($hasRightColumn) { ?>
	<!-- Start Right Column -->
		<div class="<?php echo $columnSpan; ?> column-right">
			<aside id="secondary_right">
					<jdoc:include type="modules" name="column-right" style="rsright"/>
			</aside>
		</div>
	<!-- End Right Column -->
		<?php } ?>
		</div>
	</div>
</section>
<?php } ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists