Skip to content

Commit

Permalink
Actually disable sidebar in template
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Dec 26, 2015
1 parent 7cdecf4 commit a7fa5da
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/Template/Layout/default.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,22 @@

<div class="container-fluid">
<div class="row">
<div class="col-xs-0 col-sm-2 col-lg-2">
<?= $this->element('sidebar'); ?>
</div>
<div class="col-xs-12 col-sm-10 col-lg-10">
<?= $this->Flash->render(); ?>
<?= $this->fetch('content'); ?>
<?= $this->fetch('action_link_forms'); ?>
</div>
<?php if ($disableSidebar) : ?>
<div class="col-sm-12">
<?= $this->Flash->render(); ?>
<?= $this->fetch('content'); ?>
<?= $this->fetch('action_link_forms'); ?>
</div>
<?php else : ?>
<div class="col-xs-0 col-sm-2 col-lg-2">
<?= $this->element('sidebar'); ?>
</div>
<div class="col-xs-12 col-sm-10 col-lg-10">
<?= $this->Flash->render(); ?>
<?= $this->fetch('content'); ?>
<?= $this->fetch('action_link_forms'); ?>
</div>
<?php endif; ?>
</div>
</div>

Expand Down

0 comments on commit a7fa5da

Please sign in to comment.