* @license PHP License * @package WB * @subpackage datasource */ WBClass::load('WBDatasource_Sitemap' ); /** * Datasource Sitemap Extra * * Add some extra pages to sitemap * * @version 0.1.0 * @package WB * @subpackage datasource */ class WBDatasource_Sitemap_Extra extends WBDatasource_Sitemap { /** * Default configuration * * @var array */ protected $config = array( 'priority' => 1.0, 'pages' => array() ); /** * Find all the URLs * * Get recent blog posts */ public function find() { $this->setPriority($this->config['priority']); foreach ($this->config['pages'] as $p) { $this->setPath($p); $this->notify(); } } }