$activeIsLink, 'titleKey' => $titleKey, ]); $block->fill($crumbs); return $block->render(); } public static function contactMask($contact) { return mb_substr($contact, 0, 2) . "xxxxx"; } public static function renderMacro($content, $macro, $key) { return str_ireplace('{' . $key . '}', htmlspecialchars($content, ENT_QUOTES, 'UTF-8', false), $macro); } /** * URL главной страницы * @param array $opts доп. параметры * @return string */ public static function indexUrl(array $opts = []) { $opts = array_merge([ 'geo' => false, ], $opts); if ($opts['geo']) { return Geo::url(Geo::filterUrl()); } return Url::route('index'); } }