Пример #1
0
 public function initContent()
 {
     parent::initContent();
     $egmultishop = new egmultishop();
     $context = Context::getContext();
     $id_url = egmultishop::getUrlId($context->shop->id);
     $page = $egmultishop->getMultishopPage('contacts', null, false);
     $page = $egmultishop->replaceCeoContact($page);
     $add1 = $egmultishop->replaceCeoContact('%addr1');
     $add2 = $egmultishop->replaceCeoContact('%chema');
     $this->context->smarty->assign(array('page' => $page, 'add1' => $add1, 'add2' => $add2));
     $this->setTemplate('contacts.tpl');
 }
Пример #2
0
 public function initContent()
 {
     parent::initContent();
     $egmultishop = new egmultishop();
     $context = Context::getContext();
     $id_url = egmultishop::getUrlId($context->shop->id);
     //$page = $egmultishop->getMultishopPage('deliverycondition',$id_url);
     $sub_domain = egmultishop::getSubdomain();
     $page = $egmultishop->getMultishopPageDomain('deliverycondition', $sub_domain, false);
     if ($page == "") {
         $page = $egmultishop->getMultishopPage('deliverycondition_df', null, false);
     }
     $page = $egmultishop->replaceCeoContact($page);
     $this->context->smarty->assign(array('page' => $page));
     $this->setTemplate('delivery.tpl');
 }
Пример #3
0
 public function initContent()
 {
     parent::initContent();
     $egmultishop = new egmultishop();
     $context = Context::getContext();
     $id_url = egmultishop::getUrlId($context->shop->id);
     //$page = $egmultishop->getMultishopPage('shipself',$id_url);
     $sub_domain = egmultishop::getSubdomain();
     $page = $egmultishop->getMultishopPageDomain('shipself', $sub_domain, false);
     if ($page == "") {
         $page = $egmultishop->getMultishopPage('shipself_df', null, false);
         $shipselfPage = $egmultishop->getShipselfCwarNearInfo($id_url);
         $page = $egmultishop->replaceCeoContact($page);
     } else {
         $page = $egmultishop->replaceCeoContact($page);
         $map = $egmultishop->replaceCeoContact('%chema');
     }
     $this->context->smarty->assign(array('page' => $page, 'map' => $map, 'shipselfPage' => $shipselfPage));
     $this->setTemplate('shipself.tpl');
 }
Пример #4
0
 public function hookDisplayTopColumn($params)
 {
     $mshop = new egmultishop();
     $npage = "npage";
     //page for all
     if (egmarketing::isMarketingSite() > 0) {
         $npage = "mpage";
         //page for main cities
     }
     $page = $mshop->getMultishopPage($npage);
     $page = $mshop->replaceCeoWords($page);
     $this->smarty->assign(array('page' => $page));
     return $this->display(__FILE__, 'page.tpl');
 }