/** * Many CSS frameworks use families of classes, which are built up from a base family name. For example, * Bootstrap uses 'col-lg-6' to represent a column that is 6 units wide on large screens and Foundation * uses 'large-6' to do the same thing. This utility removes classes that start with a particular prefix * to remove whatever sizing class was specified. * * @param string $strPrefix */ public function RemoveCssClassesByPrefix($strPrefix) { if (!$strPrefix) { return; } $strClasses = $this->GetHtmlAttribute('class'); if ($strClasses && QHtml::RemoveClassesByPrefix($strClasses, $strPrefix)) { $this->SetHtmlAttribute('class', $strClasses); } }