public function postsAction() { $this->_helper->layout->setLayout('kebudayaan'); $page = $this->getParam('page'); $cultureDb = new Model_DbTable_Destination(); $culture = $cultureDb->getAllPublished($this->_languageId); $paginator = Zend_Paginator::factory($culture); $paginator->setCurrentPageNumber($page); $paginator->setItemCountPerPage(8); $this->view->paginator = $paginator; $this->view->culture_chunk = array_chunk(iterator_to_array($paginator), 2); $this->view->langId = $this->_languageId; array_unshift($this->_meta, "artikel kebudayaan"); $this->view->headTitle()->prepend($this->_languageId == 1 ? 'Kebudayaan' : 'Culture'); $this->view->headMeta()->appendName('keyword', join(', ', $this->_meta)); $this->view->headMeta()->appendName('description', 'Media jelajah kebudayaan indonesia'); $this->view->headLink()->headLink(array('rel' => 'canonical', 'href' => Zend_Controller_Front::getInstance()->getRequest()->getScheme() . '://' . Zend_Controller_Front::getInstance()->getRequest()->getHttpHost() . $this->view->url(array(), $this->_languageId == 1 ? 'kebudayaan' : 'culture', true)), 'PREPEND'); }
public function postsAction() { $this->_helper->layout->setLayout('kebudayaan'); $sortBy = $this->_getParam('sortby'); $sortOrder = $this->_getParam('sortorder', 'desc'); $destTitle = $this->_getParam('destTitle'); $texthomelink = $this->view->translate('id_menu_home'); $title = $this->view->translate('Culture'); $links = array($texthomelink => $this->view->baseUrl('/'), $title => ''); $this->view->pageTitle = $title; Zend_Registry::set('breadcrumb', $links); $cultureDb = new Model_DbTable_Destination(); $culture = $cultureDb->getAllPublished($this->_languageId); $this->view->pageTitle = $this->view->translate('Culture'); $this->view->culture = $culture; $this->view->count = count($culture); }