| @@ 490-507 (lines=18) @@ | ||
| 487 | /** |
|
| 488 | * Dublin Core's meta datas |
|
| 489 | */ |
|
| 490 | if (static::getModuleOption('dublincore') && isset($story) && is_object($story)) { |
|
| 491 | $configHandler = xoops_getHandler('config'); |
|
| 492 | $xoopsConfigMetaFooter = $configHandler->getConfigsByCat(XOOPS_CONF_METAFOOTER); |
|
| 493 | $content .= '<meta name="DC.Title" content="' . static::getDublinQuotes($story->title()) . "\">\n"; |
|
| 494 | $content .= '<meta name="DC.Creator" content="' . static::getDublinQuotes($story->uname()) . "\">\n"; |
|
| 495 | $content .= '<meta name="DC.Subject" content="' . static::getDublinQuotes($meta_keywords) . "\">\n"; |
|
| 496 | $content .= '<meta name="DC.Description" content="' . static::getDublinQuotes($story->title()) . "\">\n"; |
|
| 497 | $content .= '<meta name="DC.Publisher" content="' . static::getDublinQuotes($xoopsConfig['sitename']) . "\">\n"; |
|
| 498 | $content .= '<meta name="DC.Date.created" scheme="W3CDTF" content="' . date('Y-m-d', $story->created) . "\">\n"; |
|
| 499 | $content .= '<meta name="DC.Date.issued" scheme="W3CDTF" content="' . date('Y-m-d', $story->published) . "\">\n"; |
|
| 500 | $content .= '<meta name="DC.Identifier" content="' . XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid() . "\">\n"; |
|
| 501 | $content .= '<meta name="DC.Source" content="' . XOOPS_URL . "\">\n"; |
|
| 502 | $content .= '<meta name="DC.Language" content="' . _LANGCODE . "\">\n"; |
|
| 503 | $content .= '<meta name="DC.Relation.isReferencedBy" content="' . XOOPS_URL . '/modules/news/index.php?storytopic=' . $story->topicid() . "\">\n"; |
|
| 504 | if (isset($xoopsConfigMetaFooter['meta_copyright'])) { |
|
| 505 | $content .= '<meta name="DC.Rights" content="' . static::getDublinQuotes($xoopsConfigMetaFooter['meta_copyright']) . "\">\n"; |
|
| 506 | } |
|
| 507 | } |
|
| 508 | ||
| 509 | /** |
|
| 510 | * Firefox 2 micro summaries |
|
| @@ 368-385 (lines=18) @@ | ||
| 365 | /** |
|
| 366 | * Dublin Core's meta datas |
|
| 367 | */ |
|
| 368 | if (news_getmoduleoption('dublincore') && isset($story) && is_object($story)) { |
|
| 369 | $configHandler = xoops_getHandler('config'); |
|
| 370 | $xoopsConfigMetaFooter = $configHandler->getConfigsByCat(XOOPS_CONF_METAFOOTER); |
|
| 371 | $content .= '<meta name="DC.Title" content="' . NewsUtility::getDublinQuotes($story->title()) . "\">\n"; |
|
| 372 | $content .= '<meta name="DC.Creator" content="' . NewsUtility::getDublinQuotes($story->uname()) . "\">\n"; |
|
| 373 | $content .= '<meta name="DC.Subject" content="' . NewsUtility::getDublinQuotes($meta_keywords) . "\">\n"; |
|
| 374 | $content .= '<meta name="DC.Description" content="' . NewsUtility::getDublinQuotes($story->title()) . "\">\n"; |
|
| 375 | $content .= '<meta name="DC.Publisher" content="' . NewsUtility::getDublinQuotes($xoopsConfig['sitename']) . "\">\n"; |
|
| 376 | $content .= '<meta name="DC.Date.created" scheme="W3CDTF" content="' . date('Y-m-d', $story->created) . "\">\n"; |
|
| 377 | $content .= '<meta name="DC.Date.issued" scheme="W3CDTF" content="' . date('Y-m-d', $story->published) . "\">\n"; |
|
| 378 | $content .= '<meta name="DC.Identifier" content="' . XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid() . "\">\n"; |
|
| 379 | $content .= '<meta name="DC.Source" content="' . XOOPS_URL . "\">\n"; |
|
| 380 | $content .= '<meta name="DC.Language" content="' . _LANGCODE . "\">\n"; |
|
| 381 | $content .= '<meta name="DC.Relation.isReferencedBy" content="' . XOOPS_URL . '/modules/news/index.php?storytopic=' . $story->topicid() . "\">\n"; |
|
| 382 | if (isset($xoopsConfigMetaFooter['meta_copyright'])) { |
|
| 383 | $content .= '<meta name="DC.Rights" content="' . NewsUtility::getDublinQuotes($xoopsConfigMetaFooter['meta_copyright']) . "\">\n"; |
|
| 384 | } |
|
| 385 | } |
|
| 386 | ||
| 387 | /** |
|
| 388 | * Firefox 2 micro summaries |
|