@@ 68-74 (lines=7) @@ | ||
65 | $writer->namespaceMap[$namespace] = ''; |
|
66 | $writer->setIndent(true); |
|
67 | $writer->startElement('{' . $namespace . '}' . 'urlset'); |
|
68 | if (isset($config['content_types']['blogEntry'])) { |
|
69 | foreach ($config['content_types']['blogEntry']['all'] as $id) { |
|
70 | $writer->startElement('url'); |
|
71 | $writer->writeElement('loc', $baseUrl . '/blog.' . $id . '.html'); |
|
72 | $writer->endElement(); |
|
73 | } |
|
74 | } |
|
75 | if (isset($config['content_types']['page'])) { |
|
76 | foreach ($config['content_types']['page']['all'] as $id) { |
|
77 | $writer->startElement('url'); |
|
@@ 75-81 (lines=7) @@ | ||
72 | $writer->endElement(); |
|
73 | } |
|
74 | } |
|
75 | if (isset($config['content_types']['page'])) { |
|
76 | foreach ($config['content_types']['page']['all'] as $id) { |
|
77 | $writer->startElement('url'); |
|
78 | $writer->writeElement('loc', $baseUrl . '/' . $id . '.html'); |
|
79 | $writer->endElement(); |
|
80 | } |
|
81 | } |
|
82 | $writer->endElement(); |
|
83 | $content = $writer->outputMemory(); |
|
84 |