public function frontendHead() { if (!$this->getSettings('status')) { return false; } if (!shopPhmask::getDomainSetting('status') || wa()->getUser()->isAuth() && shopPhmask::getDomainSetting('no_auth')) { return false; } $view = wa()->getView(); $view->assign('maska', shopPhmask::getDomainSetting('maska')); $view->assign('selector', shopPhmask::getDomainSetting('selector')); $template_path = wa()->getAppPath('plugins/phmask/templates/FrontendHead.html', 'shop'); $html = $view->fetch($template_path); return $html; }