X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/platform/packages/theme/src/Supports
home
/
gfecatvj
/
sites
/
realesbar
/
platform
/
packages
/
theme
/
src
/
Supports
/
📁
..
📄
AdminBar.php
(2.58 KB)
📄
SiteMapManager.php
(1.42 KB)
Editing: SiteMapManager.php
<?php namespace Botble\Theme\Supports; use AdminBar; use Illuminate\Contracts\Container\BindingResolutionException; use Botble\Sitemap\Sitemap; class SiteMapManager { /** * @var Sitemap */ protected $siteMap; /** * SiteMapManager constructor. * @throws BindingResolutionException */ public function __construct() { // create new site map object $this->siteMap = app()->make('sitemap'); // set cache (key (string), duration in minutes (Carbon|Datetime|int), turn on/off (boolean)) // by default cache is disabled $this->siteMap->setCache('public.sitemap', config('core.base.general.cache_siteMap')); $this->siteMap->add(url('/'), '2020-05-05 10:00', '1.0', 'daily'); AdminBar::setIsDisplay(false); } /** * @param string $url * @param string $date * @param string $priority * @param string $sequence * @return $this */ public function add($url, $date, $priority = '1.0', $sequence = 'daily') { if (!$this->siteMap->isCached()) { $this->siteMap->add($url, $date, $priority, $sequence); } return $this; } /** * @param string $type * @return string */ public function render($type = 'xml') { // show your site map (options: 'xml' (default), 'html', 'txt', 'ror-rss', 'ror-rdf') return $this->siteMap->render($type); } }
Upload File
Create Folder