示例#1
0
文件: Cat.php 项目: sshegde123/wmp8
 protected function _prepareLayout()
 {
     $post = $this->getCategory();
     $breadcrumbs = $this->getCrumbs();
     if ($breadcrumbs) {
         $breadcrumbs->addCrumb('mdlblog', array('label' => self::$_helper->getTitle(), 'title' => $this->__('Return to %s', self::$_helper->getTitle()), 'link' => $this->getBlogUrl()));
         $breadcrumbs->addCrumb('blog_page', array('label' => $post->getTitle(), 'title' => $post->getTitle()));
     }
     parent::_prepareMetaData($post);
 }
示例#2
0
 protected function _prepareLayout()
 {
     if ($this->isBlogPage() && ($breadcrumbs = $this->getCrumbs())) {
         parent::_prepareMetaData(self::$_helper);
         $tag = $this->getRequest()->getParam('tag', false);
         if ($tag) {
             $tag = urldecode($tag);
             $breadcrumbs->addCrumb('mdlblog', array('label' => self::$_helper->getTitle(), 'title' => $this->__('Return to ' . self::$_helper->getTitle()), 'link' => $this->getBlogUrl()));
             $breadcrumbs->addCrumb('blog_tag', array('label' => $this->__('Tagged with "%s"', self::$_helper->convertSlashes($tag)), 'title' => $this->__('Tagged with "%s"', $tag)));
         } else {
             $breadcrumbs->addCrumb('mdlblog', array('label' => self::$_helper->getTitle()));
         }
     }
 }
示例#3
0
文件: Post.php 项目: sshegde123/wmp8
 protected function _prepareHead()
 {
     parent::_prepareMetaData($this->getPost());
     return $this;
 }