Skip to content
Snippets Groups Projects
Commit 3f6f5e07 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Bootstrap3 fix (showCart not implemented yet, see searchtools pull request)....

Bootstrap3 fix (showCart not implemented yet, see searchtools pull request). Style fix in CombinedController.php
parent 85e49b19
Branches
Tags
No related merge requests found
...@@ -160,7 +160,7 @@ class CombinedController extends AbstractSearch ...@@ -160,7 +160,7 @@ class CombinedController extends AbstractSearch
$currentOptions = $options->get($current); $currentOptions = $options->get($current);
$supportsCartOptions[] = $currentOptions->supportsCart(); $supportsCartOptions[] = $currentOptions->supportsCart();
if ($currentOptions->supportsCart()) { if ($currentOptions->supportsCart()) {
$supportsCart = true; $supportsCart = true;
} }
list($controller, $action) list($controller, $action)
= explode('-', $currentOptions->getSearchAction()); = explode('-', $currentOptions->getSearchAction());
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
'results' => $results, 'results' => $results,
'params' => $params 'params' => $params
); );
if(isset($this->showCartControls) && !$this->showCartControls) { if(!isset($this->showCartControls) || !$this->showCartControls) {
$viewParams['hideCartControls'] = true; $viewParams['hideCartControls'] = true;
} }
?> ?>
......
<? if (!isset($this->indexStart)) $this->indexStart = 0; ?> <? if (!isset($this->indexStart)) $this->indexStart = 0; ?>
<? $showCheckboxes = (isset($this->showCartControls) && $this->showCartControls) ?> <? $showCheckboxes = !isset($this->hideCartControls) && $this->cart()->isActive() ?>
<? $i = $this->indexStart; foreach ($this->results->getResults() as $current): <? $i = $this->indexStart; foreach ($this->results->getResults() as $current):
$recordNumber = $this->results->getStartRecord()+$i-$this->indexStart; ?> $recordNumber = $this->results->getStartRecord()+$i-$this->indexStart; ?>
<div id="result<?=$i++ ?>" class="row result clearfix"> <div id="result<?=$i++ ?>" class="row result clearfix">
......
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