Skip to content

Commit

Permalink
Remove PHP logic to set column width
Browse files Browse the repository at this point in the history
  • Loading branch information
ciar4n committed Jun 18, 2017
1 parent d2ce0ba commit dcaa65b
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions templates/aurora/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,6 @@
// Load optional RTL Bootstrap CSS
//JHtml::_('bootstrap.loadCss', false, $this->direction);

// Adjusting content width
if ($this->countModules('sidebar-left') && $this->countModules('sidebar-right'))
{
$col = $this->params->get('sidebarLeftWidth', 3) + $this->params->get('sidebarLeftWidth', 3);
$col = 12 - $col;
$col = 'col-md-' . $col;
}
elseif (!$this->countModules('sidebar-left') && $this->countModules('sidebar-right'))
{
$col = 12 - $this->params->get('sidebarRightWidth', 3);
$col = 'col-md-' . $col;
}
elseif ($this->countModules('sidebar-left') && !$this->countModules('sidebar-right'))
{
$col = 12 - $this->params->get('sidebarLeftWidth', 3);
$col = 'col-md-' . $col;
}
else
{
$col = 'col-md-12';
}

// Logo file or site title param
if ($this->params->get('logoFile'))
{
Expand Down Expand Up @@ -159,7 +137,7 @@
</div>
<?php endif; ?>

<main id="content" role="main" class="<?php echo $col; ?> content">
<main id="content" role="main" class="col content">

<?php if ($this->countModules('main-top')) : ?>
<div class="row">
Expand Down

0 comments on commit dcaa65b

Please sign in to comment.