_doc->getOption('isRoot')) { return $this; } $config = $this->getConfig(); $footerWidth = (int) $config->footerWidth; $footerCount = (int) $config->footerCount; $footerInterval = (int) $config->footerInterval; $item = [ 'itemWidth' => floor($footerWidth / $footerCount), 'list' => $this->_getDataObj()->getDataPartnersList(), 'size' => $config->logo->toArray(), ]; $this->_doc->assign('FOOTER_SPONSOR', new Qs_Doc_Item($item)); $this->_doc->addScript('js/jquery.bxslider.js'); $this->_doc->addStylesheet('css/thirdpart/jquery.bxslider.css'); $this->_doc->addScript('js/jquery.easing.js'); $this->_doc->addScript('js/jquery.fitvids.js'); $this->_doc->addScript('js/app/sponsor/slider.js'); $this->_doc->addInitObject('app.sponsor.Slider', [[ 'countChild' => $footerCount, 'alias' => 'sponsor', 'pause' => $footerInterval * 1000, 'slideWidth' => $item['itemWidth'], ]]); return $this; } }