Example #1
0
 public function finalize()
 {
     parent::finalize();
     if ($this->pager !== null) {
         $this->layout->addHtmlHeadEntrySet($this->pager->getHtmlHeadEntrySet());
     }
 }
Example #2
0
 public function finalize()
 {
     parent::finalize();
     if ($this->author->openid_server != '') {
         $this->layout->addHtmlHeadEntry(new SwatLinkHtmlHeadEntry($this->author->openid_server, 'openid.server'));
     }
     if ($this->author->openid_delegate != '') {
         $this->layout->addHtmlHeadEntry(new SwatLinkHtmlHeadEntry($this->author->openid_delegate, 'openid.delegate'));
     }
     if ($this->pager !== null) {
         $this->layout->addHtmlHeadEntrySet($this->pager->getHtmlHeadEntrySet());
     }
 }
Example #3
0
 protected function displayFooter()
 {
     $post_count = $this->loader->getPostCount();
     echo '<div class="footer">';
     $path = $this->app->config->blorg->path . 'tag/' . $this->tag->shortname;
     $this->pager = new SwatPagination();
     $this->pager->display_parts ^= SwatPagination::POSITION;
     $this->pager->total_records = $post_count;
     $this->pager->page_size = self::MAX_POSTS;
     $this->pager->setCurrentPage($this->getArgument('page'));
     /* These strings include a non-breaking space */
     $this->pager->previous_label = Blorg::_('« Newer');
     $this->pager->next_label = Blorg::_('Older »');
     $this->pager->link = $path . '/page%s';
     $this->pager->display();
     echo '<div class="results-message">';
     echo $this->pager->getResultsMessage(Blorg::_('post'), Blorg::_('posts'));
     echo '</div>';
     echo '</div>';
 }