Skip to content

Commit

Permalink
remove redundant conditions
Browse files Browse the repository at this point in the history
for product left & right sections
  • Loading branch information
maks feltrin committed Aug 17, 2015
1 parent bafb1fb commit cb69dc5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions upload/catalog/view/theme/default/template/product/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
<?php } ?>
<div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>
<div class="row">
<?php if ($column_left && $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
<?php } elseif ($column_left || $column_right) { ?>
<?php if ($column_left || $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
<?php } else { ?>
<?php $class = 'col-sm-8'; ?>
Expand Down Expand Up @@ -121,9 +119,7 @@
<?php } ?>
</div>
</div>
<?php if ($column_left && $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
<?php } elseif ($column_left || $column_right) { ?>
<?php if ($column_left || $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
<?php } else { ?>
<?php $class = 'col-sm-4'; ?>
Expand Down Expand Up @@ -605,4 +601,4 @@ $(document).ready(function() {
});
});
//--></script>
<?php echo $footer; ?>
<?php echo $footer; ?>

0 comments on commit cb69dc5

Please sign in to comment.