Skip to content
Snippets Groups Projects
Commit f9adfb4c authored by Alexander Purr's avatar Alexander Purr Committed by Robert Lange
Browse files

refs #18388 [finc] side facet: date-range slider as list item

parent fec70490
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* slider-container element * slider-container element
*/ */
?> ?>
<div class="facet"> <li class="facet">
<?php if (!empty($this->facet['values'][0])): ?> <?php if (!empty($this->facet['values'][0])): ?>
<?php $this->sideFacet()->setAppliedFacet($this->transEsc('Skip to facet', ['%%filter_name%%' => $this->transEsc('Year of Publication')]), $this->escapeHtmlAttr($this->title) . 'from')?> <?php $this->sideFacet()->setAppliedFacet($this->transEsc('Skip to facet', ['%%filter_name%%' => $this->transEsc('Year of Publication')]), $this->escapeHtmlAttr($this->title) . 'from')?>
<?php elseif (!empty($this->facet['values'][1])): ?> <?php elseif (!empty($this->facet['values'][1])): ?>
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
<?php endif; ?> <?php endif; ?>
<input class="btn btn-default" type="submit" value="<?=$this->transEsc('Set')?>"/> <input class="btn btn-default" type="submit" value="<?=$this->transEsc('Set')?>"/>
</form> </form>
</div>
<?php if ($this->facet['type'] == 'date'): ?> <?php if ($this->facet['type'] == 'date'): ?>
<?php $this->headScript()->appendFile('vendor/bootstrap-slider.min.js'); ?> <?php $this->headScript()->appendFile('vendor/bootstrap-slider.min.js'); ?>
<?php $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); ?> <?php $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); ?>
...@@ -83,4 +82,5 @@ JS; ...@@ -83,4 +82,5 @@ JS;
?> ?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?> <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>
<?php endif; ?> <?php endif; ?>
</li>
<!-- finc - recommend - sidefacets - rangeslider - END --> <!-- finc - recommend - sidefacets - rangeslider - END -->
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