Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #110 from jaric/master
Browse files Browse the repository at this point in the history
added property xmlns:xhtml="http://www.w3.org/1999/xhtml" in <urlset>
  • Loading branch information
Roumen Damianoff authored Jun 17, 2016
2 parents c39282d + f9d5064 commit e9e8afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/google-news.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?= '<'.'?'.'xml version="1.0" encoding="UTF-8"?>'."\n" ?>
<?php if ($style != null) echo '<'.'?'.'xml-stylesheet href="'.$style.'" type="text/xsl"?>'."\n"; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<?php foreach($items as $item) : ?>
<url>
<loc><?= $item['loc'] ?></loc>
Expand Down

0 comments on commit e9e8afe

Please sign in to comment.