Esempio n. 1
0
 /**
  * Renders the monthly article lists.
  *
  * @param int $currentMonth The current month.
  *
  * @return string (X)HTML.
  */
 protected function renderMonthlyArticleLists($currentMonth)
 {
     $t = '';
     for ($month = $currentMonth; $month >= 1; $month--) {
         $realbloglist = Realblog_Article::findArchivedArticlesInPeriod(mktime(0, 0, 0, $month, 1, $this->year), mktime(0, 0, 0, $month + 1, 1, $this->year));
         $monthName = $this->getMonthName($month);
         if (count($realbloglist) > 0) {
             $t .= '<h4>' . $monthName . ' ' . $this->year . '</h4>' . $this->renderArticleList($realbloglist);
         }
     }
     return $t;
 }