<?php
/**
* Copyright (C) 2021 Rhyme Digital, LLC.
*
* @link https://rhyme.digital
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
namespace Rhyme\WMassArtsHub\Module\Profile;
/**
* Class HeaderSearchFilter
* @package Rhyme\WMassArtsHub\Module
*/
class HeaderSearchFilter extends Filter
{
/**
* Template
* @var string
*/
protected $strTemplate = 'mod_artshub_profile_filter_headerSearch';
/**
*
*/
protected function compile()
{
parent::compile();
// Make sure this module has an ID
$arrCssID = (array)$this->cssID;
$arrCssID[0] = $arrCssID[0] ?: 'profilesearch'.$this->id;
$this->cssID = $arrCssID;
$this->Template->defaultSearchText = 'Search profiles here...';
$GLOBALS['TL_JAVASCRIPT']['profileFilterAjax'] = 'web/bundles/rhymewmassartshub/assets/js/frontend/profileFilter/ajax.js|static';
}
}