From 8cedb941b30c5df0bcb8368d180da74666262a14 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 8 Apr 2014 11:53:52 -0400 Subject: [PATCH] Eliminated redundant code. --- themes/bootprint/templates/search/results.phtml | 8 ++------ themes/bootstrap/templates/search/results.phtml | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/themes/bootprint/templates/search/results.phtml b/themes/bootprint/templates/search/results.phtml index 8afd4029f58..ee7a34b091f 100644 --- a/themes/bootprint/templates/search/results.phtml +++ b/themes/bootprint/templates/search/results.phtml @@ -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> diff --git a/themes/bootstrap/templates/search/results.phtml b/themes/bootstrap/templates/search/results.phtml index 9175c1b349f..09a89d5ea86 100644 --- a/themes/bootstrap/templates/search/results.phtml +++ b/themes/bootstrap/templates/search/results.phtml @@ -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> -- GitLab