| @@ 96-102 (lines=7) @@ | ||
| 93 | 'totalCount' => $countQuery->count(), |
|
| 94 | 'pageSize' => $this->_option['entries_per_page'], |
|
| 95 | ]); |
|
| 96 | for ($i = 1; $i <= $pages->pageCount; $i++) { |
|
| 97 | $items[] = [ |
|
| 98 | 'loc' => Yii::$app->urlManager->hostInfo |
|
| 99 | . Url::to(['view', 'type' => 'p', 'slug' => $postType->slug, 'page' => $i]), |
|
| 100 | 'lastmod' => $lastmod->format('r'), |
|
| 101 | ]; |
|
| 102 | } |
|
| 103 | } |
|
| 104 | } |
|
| 105 | } |
|
| @@ 135-141 (lines=7) @@ | ||
| 132 | 'pageSize' => $this->_option['entries_per_page'], |
|
| 133 | ]); |
|
| 134 | ||
| 135 | for ($i = 1; $i <= $pages->pageCount; $i++) { |
|
| 136 | $items[] = [ |
|
| 137 | 'loc' => Yii::$app->urlManager->hostInfo |
|
| 138 | . Url::to(['view', 'type' => 'c', 'slug' => $taxonomy->slug, 'page' => $i]), |
|
| 139 | 'lastmod' => $lastmod->format('r'), |
|
| 140 | ]; |
|
| 141 | } |
|
| 142 | } |
|
| 143 | } |
|
| 144 | } |
|
| @@ 157-163 (lines=7) @@ | ||
| 154 | ||
| 155 | if ($lastMedia = $query->orderBy(['id' => SORT_DESC])->one()) { |
|
| 156 | $lastmod = new \DateTime($lastMedia->modified, new \DateTimeZone(Option::get('time_zone'))); |
|
| 157 | for ($i = 1; $i <= $pages->pageCount; $i++) { |
|
| 158 | $items[] = [ |
|
| 159 | 'loc' => Yii::$app->urlManager->hostInfo |
|
| 160 | . Url::to(['view', 'type' => 'm', 'slug' => 'media', 'page' => $i]), |
|
| 161 | 'lastmod' => $lastmod->format('r'), |
|
| 162 | ]; |
|
| 163 | } |
|
| 164 | } |
|
| 165 | } |
|
| 166 | ||