Skip to content

Commit

Permalink
Merge branch 'fisharebest:main' into new-reports
Browse files Browse the repository at this point in the history
  • Loading branch information
sevtor authored Nov 15, 2024
2 parents c0a6b02 + 94582e9 commit 87a1b89
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions app/Module/SiteMapModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,9 @@ public function getAdminAction(ServerRequestInterface $request): ResponseInterfa

$sitemap_url = route('sitemap-index');

// This list comes from https://en.wikipedia.org/wiki/Sitemaps
$submit_urls = [
'Bing/Yahoo' => Html::url('https://www.bing.com/webmaster/ping.aspx', ['siteMap' => $sitemap_url]),
'Google' => Html::url('https://www.google.com/webmasters/tools/ping', ['sitemap' => $sitemap_url]),
];

return $this->viewResponse('modules/sitemap/config', [
'all_trees' => $this->tree_service->all(),
'sitemap_url' => $sitemap_url,
'submit_urls' => $submit_urls,
'title' => $this->title(),
]);
}
Expand Down
15 changes: 0 additions & 15 deletions resources/views/modules/sitemap/config.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use Illuminate\Support\Collection;
/**
* @var Collection<int,Tree> $all_trees
* @var string $sitemap_url
* @var array<string,string> $submit_urls
* @var string $title
*/

Expand Down Expand Up @@ -46,17 +45,3 @@ use Illuminate\Support\Collection;
<p>
<?= I18N::translate('URL') ?> — <a href="<?= e($sitemap_url) ?>"><?= e($sitemap_url) ?></a>
</p>

<p>
<?= I18N::translate('To tell search engines that sitemaps are available, you can use the following links.') ?>
</p>

<ul>
<?php foreach ($submit_urls as $search_engine => $url) : ?>
<li>
<a href="<?= e($url) ?>">
<?= e($search_engine) ?>
</a>
</li>
<?php endforeach ?>
</ul>

0 comments on commit 87a1b89

Please sign in to comment.