| @@ 126-132 (lines=7) @@ | ||
| 123 | // a. We use plain PMF urls w/o any SEO schema |
|
| 124 | $link = str_replace($_SERVER['SCRIPT_NAME'], '/index.php', $item['url']); |
|
| 125 | // b. We use SEO PMF urls |
|
| 126 | if (PMF_SITEMAP_GOOGLE_USE_SEO) { |
|
| 127 | if (isset($item['thema'])) { |
|
| 128 | $oL = new PMF_Link($link, $faqConfig); |
|
| 129 | $oL->itemTitle = $item['thema']; |
|
| 130 | $link = $oL->toString(); |
|
| 131 | } |
|
| 132 | } |
|
| 133 | $sitemap .= buildSitemapNode( |
|
| 134 | $faqConfig->getDefaultUrl().$link, |
|
| 135 | PMF_Date::createIsoDate($item['date'], DATE_W3C), |
|
| @@ 127-133 (lines=7) @@ | ||
| 124 | foreach ($records as $item) { |
|
| 125 | $link = str_replace($_SERVER['SCRIPT_NAME'], '/index.php', $item['record_link']); |
|
| 126 | ||
| 127 | if (PMF_RSS_USE_SEO) { |
|
| 128 | if (isset($item['record_title'])) { |
|
| 129 | $oLink = new PMF_Link($link, $faqConfig); |
|
| 130 | $oLink->itemTitle = $item['record_title']; |
|
| 131 | $link = $oLink->toString(); |
|
| 132 | } |
|
| 133 | } |
|
| 134 | ||
| 135 | $rss->startElement('item'); |
|
| 136 | $rss->writeElement('title', html_entity_decode($item['record_title']. |
|
| @@ 108-114 (lines=7) @@ | ||
| 105 | foreach ($rssData as $item) { |
|
| 106 | // Get the url |
|
| 107 | $link = '/index.php?action=news&newsid='.$item['id'].'&newslang='.$item['lang']; |
|
| 108 | if (PMF_RSS_USE_SEO) { |
|
| 109 | if (isset($item['header'])) { |
|
| 110 | $oLink = new PMF_Link($link, $faqConfig); |
|
| 111 | $oLink->itemTitle = $item['header']; |
|
| 112 | $link = $oLink->toString(); |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||
| 116 | $rss->startElement('item'); |
|
| 117 | $rss->writeElement('title', html_entity_decode($item['header'], ENT_COMPAT, 'UTF-8')); |
|