facet['type']
? function ($val) {
return substr($val, 0, 10);
}
: function ($val) {
return preg_replace('/[^\d]*/', '', $val);
};
$cleanValues = array_map($sanitize, $this->facet['values'] ?? []);
$safeBaseId = $this->escapeHtmlAttr($this->title);
?>
facet['type'] == 'date'): ?>
headScript()->appendFile('vendor/bootstrap-slider.min.js'); ?>
headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); ?>
(int)$min,
'max' => (int)$max,
'handle' => 'square',
'tooltip' => 'hide',
'value' => [(int)$low, (int)$high],
'id' => $safeBaseId . '_slider_control',
];
$sliderOptionsJson = json_encode($sliderOptions);
$script = <<
=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>