示例#1
0
 public function getComingSoonPageHtml()
 {
     $this->_beforeShow();
     $this->assign('msgTitle', frameGmp::_()->getModule('options')->get('msg_title'));
     $this->assign('msgTitleColor', frameGmp::_()->getModule('options')->get('msg_title_color'));
     $this->assign('msgTitleFont', frameGmp::_()->getModule('options')->get('msg_title_font'));
     $msgTitleStyle = array();
     if (!empty($this->msgTitleColor)) {
         $msgTitleStyle['color'] = $this->msgTitleColor;
     }
     if (!empty($this->msgTitleFont)) {
         $msgTitleStyle['font-family'] = $this->msgTitleFont;
         $this->_styles[] = 'http://fonts.googleapis.com/css?family=' . $this->msgTitleFont . '&subset=latin,cyrillic-ext';
     }
     $this->assign('msgTitleStyle', utilsGmp::arrToCss($msgTitleStyle));
     $this->assign('msgText', frameGmp::_()->getModule('options')->get('msg_text'));
     $this->assign('msgTextColor', frameGmp::_()->getModule('options')->get('msg_text_color'));
     $this->assign('msgTextFont', frameGmp::_()->getModule('options')->get('msg_text_font'));
     $msgTextStyle = array();
     if (!empty($this->msgTextColor)) {
         $msgTextStyle['color'] = $this->msgTextColor;
     }
     if (!empty($this->msgTextFont)) {
         $msgTextStyle['font-family'] = $this->msgTextFont;
         if ($this->msgTitleFont != $this->msgTextFont) {
             $this->_styles[] = 'http://fonts.googleapis.com/css?family=' . $this->msgTextFont . '&subset=latin,cyrillic-ext';
         }
     }
     $this->assign('msgTextStyle', utilsGmp::arrToCss($msgTextStyle));
     if ($this->_useSubscribeForm && frameGmp::_()->getModule('options')->get('sub_enable')) {
         $this->_scripts[] = frameGmp::_()->getModule('subscribe')->getModPath() . 'js/frontend.subscribe.js';
         $this->assign('subscribeForm', frameGmp::_()->getModule('subscribe')->getController()->getView()->getUserForm());
     }
     $this->assign('countDownTimerHtml', dispatcherGmp::applyFilters('countDownTimerHtml', ''));
     $this->assign('progressBarHtml', dispatcherGmp::applyFilters('progressBarHtml', ''));
     $this->assign('contactFormHtml', dispatcherGmp::applyFilters('contactFormHtml', ''));
     $this->assign('googleMapsHtml', dispatcherGmp::applyFilters('googleMapsHtml', ''));
     if ($this->_useSocIcons) {
         $this->assign('socIcons', frameGmp::_()->getModule('social_icons')->getController()->getView()->getFrontendContent());
     }
     if (file_exists($this->getModule()->getModDir() . 'css/style.css')) {
         $this->_styles[] = $this->getModule()->getModPath() . 'css/style.css';
     }
     $this->assign('logoPath', $this->getModule()->getLogoImgPath());
     $this->assign('bgCssAttrs', dispatcherGmp::applyFilters('tplBgCssAttrs', $this->getModule()->getBgCssAttrs()));
     $this->assign('styles', dispatcherGmp::applyFilters('tplStyles', $this->_styles));
     $this->assign('scripts', dispatcherGmp::applyFilters('tplScripts', $this->_scripts));
     $this->assign('initJsVars', dispatcherGmp::applyFilters('tplInitJsVars', $this->initJsVars()));
     $this->assign('messages', frameGmp::_()->getRes()->getMessages());
     $this->assign('errors', frameGmp::_()->getRes()->getErrors());
     return parent::getContent($this->getCode() . 'GMPHtml');
 }
示例#2
0
 public function getBgCssAttrs()
 {
     return utilsGmp::arrToCss($this->getBgCssAttrsArray());
 }