Skip to content
This repository was archived by the owner on Dec 24, 2019. It is now read-only.

Conversation

@hinashiki
Copy link

Some people need extension, like #6 , or many media type format.
e.g.

this pull request extend urlset attribute (we can add some attribute, ex. xmlsn:xhtml ) and add new elements to url items using callable.

sample code:

$sitemap = new Sitemap("http://hogehoge.com");
$sitemap->addUrlsetAttribute("xmlns:mobile", "http://www.google.com/schemas/sitemap-mobile/1.0");
$sitemap->addItem("/", 1.0, "hourly", date("Y-m-d H:i:s"), function(\XMLWriter $writer){
  $writer->writeElement("mobile:mobile");
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant