Add (post manage)

Add (post country viewing)
This commit is contained in:
2023-07-28 02:29:11 +08:00
parent e70195f4f7
commit ded1643e5f
49 changed files with 4484 additions and 3844 deletions

View File

@@ -0,0 +1,3 @@
<div class="editor-code">
<code class="code__content">{{ htmlspecialchars($data['code']) }}</code>
</div>

View File

@@ -0,0 +1 @@
<div class="editor-delimiter" style="text-align: center;">***</div>

View File

@@ -0,0 +1,6 @@
@php
$level = $data['level'] ?? 1;
$tag = "h{$level}";
@endphp
<{{ $tag }}>{{ $data['text'] ?? '' }}</{{ $tag }}>

View File

@@ -0,0 +1,21 @@
@php
$classes = '';
if ($data['stretched']) {
$classes .= ' image--stretched';
}
if ($data['withBorder']) {
$classes .= ' image--bordered';
}
if ($data['withBackground']) {
$classes .= ' image--backgrounded';
}
@endphp
<figure class="image {{ $classes }}">
<img src="{{ $data['file']['url'] }}" alt="{{ $data['caption'] ?: '' }}">
@if (!empty($data['caption']))
<footer class="image-caption">
{{ $data['caption'] }}
</footer>
@endif
</figure>

View File

@@ -0,0 +1,18 @@
<a class="embed-link" href="{{ $data['link'] }}" target="_blank" rel="nofollow">
@php $metaImageUrl = $data['meta']['image']['url'] ?? '' @endphp
@if ($metaImageUrl)
<img class="embed-link__image" src="{{ $metaImageUrl }}">
@endif
<div class="embed-link__title">
{{ $data['meta']['title'] }}
</div>
<div class="embed-link__description">
{{ $data['meta']['description'] }}
</div>
<span class="embed-link__domain">
{{ parse_url($data['link'], PHP_URL_HOST) }}
</span>
</a>

View File

@@ -0,0 +1,12 @@
@php
$tag = 'ul';
if ('ordered' === $data['type']) {
$tag = 'ol';
}
@endphp
<{{ $tag }}>
@foreach ($data['items'] as $item)
<li>{{ $item }}</li>
@endforeach
</{{ $tag }}>

View File

@@ -0,0 +1 @@
<p style="color: red">{{ "{$type}: " . __('Block Not Found!') }}</p>

View File

@@ -0,0 +1,3 @@
<p>
{{ $data['text'] }}
</p>

View File

@@ -0,0 +1,18 @@
@php
$class = '';
if ('center' === $data['alignment']) {
$class = 'text-center';
} elseif ('left' === $data['alignment']) {
$class = 'text-left';
} else {
$class = 'text-right';
}
@endphp
<blockquote class="editor-quote">
<p class="{{ $class }}">{{ $data['text'] }}</p>
@if (!empty($data['caption']))
<small class="{{ $class }}"> {{ $data['caption'] }}</small>
@endif
</blockquote>

View File

@@ -0,0 +1,5 @@
<div
style="min-height: 200px; background-color: #1e2128; font-family: Menlo, Monaco, Consolas, Courier New, monospace;
font-size: 14px; line-height: 1.6; letter-spacing: -0.2px; color: #e2e2e2; padding: 10px 12px;">
{{ $data['html'] }}
</div>

View File

@@ -0,0 +1,11 @@
<table class="table">
@foreach ($data['content'] as $row)
<tr>
@php $tag = ($loop->first && $data['withHeadings']) ? 'th' : 'td'; @endphp
@foreach ($row as $cell)
<{{ $tag }}> {{ $cell }} </{{ $tag }}>
@endforeach
</tr>
@endforeach
</table>