function _xmlsitemap_get_blurb in XML sitemap 2.x
Same name and namespace in other branches
- 8 xmlsitemap.module \_xmlsitemap_get_blurb()
- 6.2 xmlsitemap.inc \_xmlsitemap_get_blurb()
- 7.2 xmlsitemap.inc \_xmlsitemap_get_blurb()
Get Blurb.
Fetch a short blurb string about module maintainership and sponsors. This message will be FALSE in 'official' releases.
@static string $blurb Blurb message.
Parameters
mixed $check_version: Check version.
Return value
string String with $blurb.
1 call to _xmlsitemap_get_blurb()
- xmlsitemap_help in ./
xmlsitemap.module - Implements hook_help().
File
- ./
xmlsitemap.module, line 2263 - xmlsitemap XML sitemap
Code
function _xmlsitemap_get_blurb($check_version = TRUE) {
static $blurb;
if (!isset($blurb)) {
$blurb = FALSE;
if (!$check_version || ($version = _xmlsitemap_get_version()) && preg_match('/dev|unstable|alpha|beta|HEAD/i', $version)) {
$sponsors = [
\Drupal::linkGenerator()
->generate('Symantec', Url::fromUri('http://www.symantec.com/', [
'attributes' => [
'target' => 'blank',
],
])),
\Drupal::linkGenerator()
->generate('WebWise Solutions', Url::fromUri('http://www.webwiseone.com/', [
'attributes' => [
'target' => 'blank',
],
])),
\Drupal::linkGenerator()
->generate('Volacci', Url::fromUri('http://www.volacci.com/', [
'attributes' => [
'target' => 'blank',
],
])),
\Drupal::linkGenerator()
->generate('lanetro', Url::fromUri('http://www.lanetro.com/', [
'attributes' => [
'target' => 'blank',
],
])),
\Drupal::linkGenerator()
->generate('Coupons Dealuxe', Url::fromUri('http://couponsdealuxe.com/', [
'attributes' => [
'target' => 'blank',
],
])),
];
// Don't extract the following string for translation.
$blurb = '<div class="description"><p>Thank you for helping test the XML sitemap module rewrite. Please consider helping offset developer free time by <a href="http://davereid.chipin.com/" target="blank">donating</a> or if your company is interested in sponsoring the rewrite or a specific feature, please <a href="http://davereid.net/contact" target="blank">contact the developer</a>. Thank you to the following current sponsors: ' . implode(', ', $sponsors) . ', and all the individuals that have donated. This message will not be seen in the stable versions.</p></div>';
// http://drupalmodules.com/module/xml-sitemap
}
}
return $blurb;
}