diff --git a/app/Console/Commands/Sitemap.php b/app/Console/Commands/Sitemap.php new file mode 100644 index 00000000..8af2be4d --- /dev/null +++ b/app/Console/Commands/Sitemap.php @@ -0,0 +1,33 @@ + false, + 'cache_key' => 'laravel-sitemap.'.config('app.url'), + 'cache_duration' => 3600, + 'escaping' => true, + 'use_limit_size' => false, + 'max_size' => null, + 'use_styles' => true, + 'styles_location' => '/vendor/sitemap/styles/', + 'use_gzip' => false +]; diff --git a/public/vendor/sitemap/styles/google-news.xsl b/public/vendor/sitemap/styles/google-news.xsl new file mode 100644 index 00000000..5bfaf909 --- /dev/null +++ b/public/vendor/sitemap/styles/google-news.xsl @@ -0,0 +1,133 @@ + + + + + + +XML Sitemap (for Google News) + + + + + + +
+

XML Sitemap (for Google News)

+

Generated by ultrono-sitemap. This is styled xml sitemap (for Google News), sorted by update date.

+

This sitemap contains URLs.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
URLTitlePublisherLanguageGenresAccessUpdated at
+ +
+ + +
+
diff --git a/public/vendor/sitemap/styles/mobile.xsl b/public/vendor/sitemap/styles/mobile.xsl new file mode 100644 index 00000000..22b25748 --- /dev/null +++ b/public/vendor/sitemap/styles/mobile.xsl @@ -0,0 +1,123 @@ + + + + + + +XML Sitemap (for Feature Phones) + + + + + + +
+

XML Sitemap (for Feature Phones)

+

Generated by ultrono-sitemap. This is styled xml sitemap (for feature phones).

+

This sitemap contains URLs.

+ + + + + + + + + + + + + +
URL
+ +
+ + +
+
diff --git a/public/vendor/sitemap/styles/sitemapindex.xsl b/public/vendor/sitemap/styles/sitemapindex.xsl new file mode 100644 index 00000000..59ad71ac --- /dev/null +++ b/public/vendor/sitemap/styles/sitemapindex.xsl @@ -0,0 +1,125 @@ + + + + + + +XML Sitemap Index + + + + + + +
+

XML Sitemap Index

+

Generated by ultrono-sitemap. This is styled xml sitemapindex, sorted by update date.

+

This sitemap contains URLs.

+ + + + + + + + + + + + + + + +
URLUpdated at
+ +
+ + +
+
diff --git a/public/vendor/sitemap/styles/xml.xsl b/public/vendor/sitemap/styles/xml.xsl new file mode 100644 index 00000000..b568b6db --- /dev/null +++ b/public/vendor/sitemap/styles/xml.xsl @@ -0,0 +1,133 @@ + + + + + + +XML Sitemap + + + + + + +
+

XML Sitemap

+

Generated by ultrono/laravel-sitemap. This is styled xml sitemap, sorted by update date.

+

This sitemap contains URLs.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
URLAlternatesImagesVideosPriorityUpdate freqUpdated at
+ +
+ + +
+
diff --git a/resources/views/vendor/sitemap/google-news.php b/resources/views/vendor/sitemap/google-news.php new file mode 100644 index 00000000..f7335899 --- /dev/null +++ b/resources/views/vendor/sitemap/google-news.php @@ -0,0 +1,48 @@ +'."\n" ?> +'."\n"; +} ?> + + + + + '.date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])).''."\n"; + } + ?> + '."\n"; + } + } + ?> + + + + + + + + '.$item['googlenews']['access'].''."\n"; + } + + if (isset($item['googlenews']['keywords'])) { + echo "\t\t".''.implode(',', $item['googlenews']['keywords']).''."\n"; + } + + if (isset($item['googlenews']['genres'])) { + echo "\t\t".''.implode(',', $item['googlenews']['genres']).''."\n"; + } + + if (isset($item['googlenews']['stock_tickers'])) { + echo "\t\t".''.implode(',', $item['googlenews']['stock_tickers']).''."\n"; + } + ?> + + + + diff --git a/resources/views/vendor/sitemap/html.php b/resources/views/vendor/sitemap/html.php new file mode 100644 index 00000000..d6f86d60 --- /dev/null +++ b/resources/views/vendor/sitemap/html.php @@ -0,0 +1,17 @@ + + + + <?= $channel['title'] ?> + + +

+ + + \ No newline at end of file diff --git a/resources/views/vendor/sitemap/ror-rdf.php b/resources/views/vendor/sitemap/ror-rdf.php new file mode 100644 index 00000000..9c3838f0 --- /dev/null +++ b/resources/views/vendor/sitemap/ror-rdf.php @@ -0,0 +1,18 @@ +'."\n"; ?> + + + <?= $channel['title'] ?> + + sitemap + + + + + <?= $item['title'] ?> + + + + + + + \ No newline at end of file diff --git a/resources/views/vendor/sitemap/ror-rss.php b/resources/views/vendor/sitemap/ror-rss.php new file mode 100644 index 00000000..c4795cc1 --- /dev/null +++ b/resources/views/vendor/sitemap/ror-rss.php @@ -0,0 +1,17 @@ +'."\n"; ?> + + + <?= $channel['title'] ?> + + + + + <?= $item['title'] ?> + + + + sitemap + + + + \ No newline at end of file diff --git a/resources/views/vendor/sitemap/sitemapindex.php b/resources/views/vendor/sitemap/sitemapindex.php new file mode 100644 index 00000000..948376b4 --- /dev/null +++ b/resources/views/vendor/sitemap/sitemapindex.php @@ -0,0 +1,14 @@ +'."\n"; ?> +'."\n"; +} ?> + + + + + + + + + + \ No newline at end of file diff --git a/resources/views/vendor/sitemap/txt.php b/resources/views/vendor/sitemap/txt.php new file mode 100644 index 00000000..ee4de9d3 --- /dev/null +++ b/resources/views/vendor/sitemap/txt.php @@ -0,0 +1,5 @@ +'."\n" ?> +'."\n"; +} ?> + + + + + + + + diff --git a/resources/views/vendor/sitemap/xml.php b/resources/views/vendor/sitemap/xml.php new file mode 100644 index 00000000..23f3ec9d --- /dev/null +++ b/resources/views/vendor/sitemap/xml.php @@ -0,0 +1,118 @@ +'."\n" ?> +'."\n"; +} ?> + + + + +'."\n"; + } +} + +if (! empty($item['alternates'])) { + foreach ($item['alternates'] as $alternate) { + echo "\t\t".''."\n"; + } +} + +if ($item['priority'] !== null) { + echo "\t\t".''.$item['priority'].''."\n"; +} + +if ($item['lastmod'] !== null) { + echo "\t\t".''.date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])).''."\n"; +} + +if ($item['freq'] !== null) { + echo "\t\t".''.$item['freq'].''."\n"; +} + +if (! empty($item['images'])) { + foreach ($item['images'] as $image) { + echo "\t\t".''."\n"; + echo "\t\t\t".''.$image['url'].''."\n"; + if (isset($image['title'])) { + echo "\t\t\t".''.$image['title'].''."\n"; + } + if (isset($image['caption'])) { + echo "\t\t\t".''.$image['caption'].''."\n"; + } + if (isset($image['geo_location'])) { + echo "\t\t\t".''.$image['geo_location'].''."\n"; + } + if (isset($image['license'])) { + echo "\t\t\t".''.$image['license'].''."\n"; + } + echo "\t\t".''."\n"; + } +} + +if (! empty($item['videos'])) { + foreach ($item['videos'] as $video) { + echo "\t\t".''."\n"; + if (isset($video['thumbnail_loc'])) { + echo "\t\t\t".''.$video['thumbnail_loc'].''."\n"; + } + if (isset($video['title'])) { + echo "\t\t\t".''."\n"; + } + if (isset($video['description'])) { + echo "\t\t\t".''."\n"; + } + if (isset($video['content_loc'])) { + echo "\t\t\t".''.$video['content_loc'].''."\n"; + } + if (isset($video['duration'])) { + echo "\t\t\t".''.$video['duration'].''."\n"; + } + if (isset($video['expiration_date'])) { + echo "\t\t\t".''.$video['expiration_date'].''."\n"; + } + if (isset($video['rating'])) { + echo "\t\t\t".''.$video['rating'].''."\n"; + } + if (isset($video['view_count'])) { + echo "\t\t\t".''.$video['view_count'].''."\n"; + } + if (isset($video['publication_date'])) { + echo "\t\t\t".''.$video['publication_date'].''."\n"; + } + if (isset($video['family_friendly'])) { + echo "\t\t\t".''.$video['family_friendly'].''."\n"; + } + if (isset($video['requires_subscription'])) { + echo "\t\t\t".''.$video['requires_subscription'].''."\n"; + } + if (isset($video['live'])) { + echo "\t\t\t".''.$video['live'].''."\n"; + } + if (isset($video['player_loc'])) { + echo "\t\t\t".''.$video['player_loc']['player_loc'].''."\n"; + } + if (isset($video['restriction'])) { + echo "\t\t\t".''.$video['restriction']['restriction'].''."\n"; + } + if (isset($video['gallery_loc'])) { + echo "\t\t\t".''.$video['gallery_loc']['gallery_loc'].''."\n"; + } + if (isset($video['price'])) { + echo "\t\t\t".''.$video['price']['price'].''."\n"; + } + if (isset($video['uploader'])) { + echo "\t\t\t".''.$video['uploader']['uploader'].''."\n"; + } + echo "\t\t".''."\n"; + } +} + +?> + + + +