mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
40 lines
1,003 B
PHP
40 lines
1,003 B
PHP
<?php
|
|
|
|
/* -------------------------------------------------------
|
|
*
|
|
* LiveStreet Engine Social Networking
|
|
* Copyright © 2008 Mzhelskiy Maxim
|
|
*
|
|
* --------------------------------------------------------
|
|
*
|
|
* Official site: www.livestreet.ru
|
|
* Contact e-mail: rus.engine@gmail.com
|
|
*
|
|
* GNU General Public License, version 2:
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
*
|
|
* ---------------------------------------------------------
|
|
*/
|
|
|
|
class PluginPage_HookSitemap extends Hook {
|
|
|
|
/**
|
|
* Цепляем обработчики на хуки
|
|
*
|
|
* @return void
|
|
*/
|
|
public function RegisterHook() {
|
|
$this->AddHook('sitemap_index_counters', 'SitemapIndex');
|
|
}
|
|
|
|
/**
|
|
* Добавляем ссылку на Sitemap страниц в Sitemap Index
|
|
*
|
|
* @param array $aCounters
|
|
* @return void
|
|
*/
|
|
public function SitemapIndex($aCounters) {
|
|
$aCounters['pages'] = ceil($this->PluginSitemap_Page_GetActivePagesCount() / Config::Get('plugin.sitemap.objects_per_page'));
|
|
}
|
|
|
|
} |