Add email tool tracking
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@php
|
||||
$class = '';
|
||||
|
||||
|
||||
if ('center' === $data['alignment']) {
|
||||
$class = 'text-center';
|
||||
} elseif ('left' === $data['alignment']) {
|
||||
|
||||
30
resources/views/vendor/sitemap/image.blade.php
vendored
30
resources/views/vendor/sitemap/image.blade.php
vendored
@@ -1,17 +1,17 @@
|
||||
<image:image>
|
||||
@if (! empty($image->url))
|
||||
<image:loc>{{ url($image->url) }}</image:loc>
|
||||
@endif
|
||||
@if (! empty($image->caption))
|
||||
<image:caption>{{ $image->caption }}</image:caption>
|
||||
@endif
|
||||
@if (! empty($image->geo_location))
|
||||
<image:geo_location>{{ $image->geo_location }}</image:geo_location>
|
||||
@endif
|
||||
@if (! empty($image->title))
|
||||
<image:title>{{ $image->title }}</image:title>
|
||||
@endif
|
||||
@if (! empty($image->license))
|
||||
<image:license>{{ $image->license }}</image:license>
|
||||
@endif
|
||||
@if (!empty($image->url))
|
||||
<image:loc>{{ url($image->url) }}</image:loc>
|
||||
@endif
|
||||
@if (!empty($image->caption))
|
||||
<image:caption>{{ $image->caption }}</image:caption>
|
||||
@endif
|
||||
@if (!empty($image->geo_location))
|
||||
<image:geo_location>{{ $image->geo_location }}</image:geo_location>
|
||||
@endif
|
||||
@if (!empty($image->title))
|
||||
<image:title>{{ $image->title }}</image:title>
|
||||
@endif
|
||||
@if (!empty($image->license))
|
||||
<image:license>{{ $image->license }}</image:license>
|
||||
@endif
|
||||
</image:image>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</news:publication>
|
||||
<news:title>{{ $news->title }}</news:title>
|
||||
<news:publication_date>{{ $news->publicationDate->toW3cString() }}</news:publication_date>
|
||||
@foreach($news->options as $tag => $value)
|
||||
<news:{{$tag}}>{{$value}}</news:{{$tag}}>
|
||||
@endforeach
|
||||
</news:news>
|
||||
@foreach ($news->options as $tag => $value)
|
||||
<news:{{ $tag }}>{{ $value }}</news:{{ $tag }}>
|
||||
@endforeach
|
||||
</news:news>
|
||||
|
||||
13
resources/views/vendor/sitemap/sitemap.blade.php
vendored
13
resources/views/vendor/sitemap/sitemap.blade.php
vendored
@@ -1,6 +1,9 @@
|
||||
<?= '<'.'?'.'xml version="1.0" encoding="UTF-8"?>'."\n"; ?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
|
||||
@foreach($tags as $tag)
|
||||
@include('sitemap::' . $tag->getType())
|
||||
@endforeach
|
||||
<?= '<' . '?' . 'xml version="1.0" encoding="UTF-8"?>' . "\n" ?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
||||
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
|
||||
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
|
||||
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
|
||||
@foreach ($tags as $tag)
|
||||
@include('sitemap::' . $tag->getType())
|
||||
@endforeach
|
||||
</urlset>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?= '<'.'?'.'xml version="1.0" encoding="UTF-8"?>'."\n" ?>
|
||||
<?= '<' . '?' . 'xml version="1.0" encoding="UTF-8"?>' . "\n" ?>
|
||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
@foreach($tags as $tag)
|
||||
@include('sitemap::sitemapIndex/' . $tag->getType())
|
||||
@endforeach
|
||||
@foreach ($tags as $tag)
|
||||
@include('sitemap::sitemapIndex/' . $tag->getType())
|
||||
@endforeach
|
||||
</sitemapindex>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<sitemap>
|
||||
@if (! empty($tag->url))
|
||||
<loc>{{ url($tag->url) }}</loc>
|
||||
@if (!empty($tag->url))
|
||||
<loc>{{ url($tag->url) }}</loc>
|
||||
@endif
|
||||
@if (! empty($tag->lastModificationDate))
|
||||
<lastmod>{{ $tag->lastModificationDate->format(DateTime::ATOM) }}</lastmod>
|
||||
@if (!empty($tag->lastModificationDate))
|
||||
<lastmod>{{ $tag->lastModificationDate->format(DateTime::ATOM) }}</lastmod>
|
||||
@endif
|
||||
</sitemap>
|
||||
|
||||
26
resources/views/vendor/sitemap/url.blade.php
vendored
26
resources/views/vendor/sitemap/url.blade.php
vendored
@@ -1,19 +1,19 @@
|
||||
<url>
|
||||
@if (! empty($tag->url))
|
||||
<loc>{{ url($tag->url) }}</loc>
|
||||
@if (!empty($tag->url))
|
||||
<loc>{{ url($tag->url) }}</loc>
|
||||
@endif
|
||||
@if (count($tag->alternates))
|
||||
@foreach ($tag->alternates as $alternate)
|
||||
<xhtml:link rel="alternate" hreflang="{{ $alternate->locale }}" href="{{ url($alternate->url) }}" />
|
||||
@endforeach
|
||||
@endif
|
||||
@if (! empty($tag->lastModificationDate))
|
||||
<lastmod>{{ $tag->lastModificationDate->format(DateTime::ATOM) }}</lastmod>
|
||||
@endif
|
||||
@if (! empty($tag->changeFrequency))
|
||||
<changefreq>{{ $tag->changeFrequency }}</changefreq>
|
||||
@if (count($tag->alternates))
|
||||
@foreach ($tag->alternates as $alternate)
|
||||
<xhtml:link rel="alternate" hreflang="{{ $alternate->locale }}" href="{{ url($alternate->url) }}" />
|
||||
@endforeach
|
||||
@endif
|
||||
<priority>{{ number_format($tag->priority,1) }}</priority>
|
||||
@if (!empty($tag->lastModificationDate))
|
||||
<lastmod>{{ $tag->lastModificationDate->format(DateTime::ATOM) }}</lastmod>
|
||||
@endif
|
||||
@if (!empty($tag->changeFrequency))
|
||||
<changefreq>{{ $tag->changeFrequency }}</changefreq>
|
||||
@endif
|
||||
<priority>{{ number_format($tag->priority, 1) }}</priority>
|
||||
@each('sitemap::image', $tag->images, 'image')
|
||||
@each('sitemap::video', $tag->videos, 'video')
|
||||
@each('sitemap::news', $tag->news, 'news')
|
||||
|
||||
36
resources/views/vendor/sitemap/video.blade.php
vendored
36
resources/views/vendor/sitemap/video.blade.php
vendored
@@ -2,22 +2,22 @@
|
||||
<video:thumbnail_loc>{{ $video->thumbnailLoc }}</video:thumbnail_loc>
|
||||
<video:title>{{ $video->title }}</video:title>
|
||||
<video:description>{{ $video->description }}</video:description>
|
||||
@if ($video->contentLoc)
|
||||
<video:content_loc>{{ $video->contentLoc }}</video:content_loc>
|
||||
@endif
|
||||
@if ($video->playerLoc)
|
||||
<video:player_loc>{{ $video->playerLoc }}</video:player_loc>
|
||||
@endif
|
||||
@foreach($video->options as $tag => $value)
|
||||
<video:{{$tag}}>{{$value}}</video:{{$tag}}>
|
||||
@endforeach
|
||||
@foreach($video->allow as $tag => $value)
|
||||
<video:{{$tag}} relationship="allow">{{$value}}</video:{{$tag}}>
|
||||
@endforeach
|
||||
@foreach($video->deny as $tag => $value)
|
||||
<video:{{$tag}} relationship="deny">{{$value}}</video:{{$tag}}>
|
||||
@endforeach
|
||||
@foreach($video->tags as $tag)
|
||||
<video:tag>{{ $tag }}</video:tag>
|
||||
@endforeach
|
||||
@if ($video->contentLoc)
|
||||
<video:content_loc>{{ $video->contentLoc }}</video:content_loc>
|
||||
@endif
|
||||
@if ($video->playerLoc)
|
||||
<video:player_loc>{{ $video->playerLoc }}</video:player_loc>
|
||||
@endif
|
||||
@foreach ($video->options as $tag => $value)
|
||||
<video:{{ $tag }}>{{ $value }}</video:{{ $tag }}>
|
||||
@endforeach
|
||||
@foreach ($video->allow as $tag => $value)
|
||||
<video:{{ $tag }} relationship="allow">{{ $value }}</video:{{ $tag }}>
|
||||
@endforeach
|
||||
@foreach ($video->deny as $tag => $value)
|
||||
<video:{{ $tag }} relationship="deny">{{ $value }}</video:{{ $tag }}>
|
||||
@endforeach
|
||||
@foreach ($video->tags as $tag)
|
||||
<video:tag>{{ $tag }}</video:tag>
|
||||
@endforeach
|
||||
</video:video>
|
||||
|
||||
Reference in New Issue
Block a user