Skip to content
Snippets Groups Projects
Commit 8cedb941 authored by Demian Katz's avatar Demian Katz
Browse files

Eliminated redundant code.

parent 18d3b146
No related merge requests found
......@@ -94,13 +94,9 @@
<? endforeach; ?>
<? else: ?>
<form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-home')?>">
<? if ($this->cart()->isActive()): ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?>
<? endif; ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?>
<?=$this->render('search/list-' . $this->params->getView() . '.phtml')?>
<? if ($this->cart()->isActive()): ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_'))?>
<? endif; ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_'))?>
<?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?>
</form>
......
......@@ -94,13 +94,9 @@
<? endforeach; ?>
<? else: ?>
<form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-home')?>">
<? if ($this->cart()->isActive()): ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?>
<? endif; ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?>
<?=$this->render('search/list-' . $this->params->getView() . '.phtml')?>
<? if ($this->cart()->isActive()): ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_'))?>
<? endif; ?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_'))?>
<?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?>
</form>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment