$description=t("The sitemap has not been generated yet. Run cron, or <a href='@generate'>generate</a> the sitemap manually.",array('@generate'=>$GLOBALS['base_url'].'/admin/config/search/simplesitemap'));
...
...
@@ -80,7 +80,7 @@ function simple_sitemap_schema() {
drupal_set_message(t("You can now include content into the <a href='@sitemap_url' target='_blank'>XML sitemap</a> by visiting the corresponding entity type edit pages (e.g. <a href='@content_type_url' target='_blank'>content type</a>, <a href='@taxonomy_vocabulary_url' target='_blank'>taxonomy vocabulary</a>, <a href='@menu_url' target='_blank'>menu</a> and <a href='@user_url' target='_blank'>user</a> pages.)<br/>Custom links can be added on <a href='@config_url' target='_blank'>this configuration page</a>.",array('@sitemap_url'=>"$base_url/sitemap.xml",'@content_type_url'=>"$base_url/admin/structure/types",'@taxonomy_vocabulary_url'=>"$base_url/admin/structure/taxonomy",'@menu_url'=>"$base_url/admin/structure/menu",'@user_url'=>"$base_url/admin/config/people/accounts",'@config_url'=>"$base_url/admin/config/search/simplesitemap/custom")));
$message=t("You may want to <a href='@url'>regenerate</a> your XML sitemap now.",array('@url'=>$GLOBALS['base_url'].'/admin/config/search/simplesitemap'));
if($sitemap->get_setting('cron_generate')){
if($sitemap->getSetting('cron_generate')){
$message.='</br>'.t('Otherwise the sitemap will be rebuilt on next cron run.');
@@ -16,7 +16,7 @@ use Drupal\Component\Utility\Html;
classBatch{
private$batch;
private$batch_info;
private$batchInfo;
constPLUGIN_ERROR_MESSAGE="The simple_sitemap @plugin plugin has been omitted, as it does not return the required numeric array of path data sets. Each data sets must contain the required path element (relative path string or Drupal\\Core\\Url object) and optionally other elements, like lastmod.";
constPATH_DOES_NOT_EXIST="The path @faulty_path has been omitted from the XML sitemap, as it does not exist.";
...
...
@@ -31,10 +31,10 @@ class Batch {
'error_message'=>t('An error occurred'),
'progress_message'=>t('Processing @current out of @total link types.'),
if(!\Drupal::service('path.validator')->isValid($custom_path['path'])){//todo: Change to different function, as this also checks if current user has access. The user however varies depending if process was started from the web interface or via cron/drush.