src/Rhyme/WMassArtsHub/Module/Profile/HeaderSearchFilter.php line 31

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (C) 2021 Rhyme Digital, LLC.
  4.  *
  5.  * @link       https://rhyme.digital
  6.  * @license    http://www.gnu.org/licenses/lgpl-3.0.html LGPL
  7.  */
  8. namespace Rhyme\WMassArtsHub\Module\Profile;
  9. /**
  10.  * Class HeaderSearchFilter
  11.  * @package Rhyme\WMassArtsHub\Module
  12.  */
  13. class HeaderSearchFilter extends Filter
  14. {
  15.     /**
  16.      * Template
  17.      * @var string
  18.      */
  19.     protected $strTemplate 'mod_artshub_profile_filter_headerSearch';
  20.     /**
  21.      *
  22.      */
  23.     protected function compile()
  24.     {
  25.         parent::compile();
  26.         // Make sure this module has an ID
  27.         $arrCssID = (array)$this->cssID;
  28.         $arrCssID[0] = $arrCssID[0] ?: 'profilesearch'.$this->id;
  29.         $this->cssID $arrCssID;
  30.         $this->Template->defaultSearchText 'Search profiles here...';
  31.         $GLOBALS['TL_JAVASCRIPT']['profileFilterAjax'] = 'web/bundles/rhymewmassartshub/assets/js/frontend/profileFilter/ajax.js|static';
  32.     }
  33. }