Ejemplo n.º 1
0
 public static function getAllCMSTitles()
 {
     $titles = array_merge(OvicBlockCMSModel::getCMSTitles(OvicBlockCMSModel::LEFT_COLUMN), OvicBlockCMSModel::getCMSTitles(OvicBlockCMSModel::RIGHT_COLUMN), OvicBlockCMSModel::getCMSTitles(OvicBlockCMSModel::CMS_POS));
     foreach ($titles as $key => $title) {
         unset($titles[$key]['category_link'], $titles[$key]['category_name'], $titles[$key]['categories'], $titles[$key]['name']);
     }
     return $titles;
 }
Ejemplo n.º 2
0
 public function hookCMSPOS()
 {
     if (!$this->isCached('cmspos.tpl', $this->getCacheId(3))) {
         $cms_titles = OvicBlockCMSModel::getCMSTitles(3);
         $this->smarty->assign(array('cms_titles' => $cms_titles));
     }
     return $this->display(__FILE__, 'cmspos.tpl', $this->getCacheId(3));
 }