Skip to content

Commit a783691

Browse files
author
olaru
committed
JSON-LD directories added and updated find some unused img classes and removed
1 parent a93364a commit a783691

340 files changed

Lines changed: 4602 additions & 230 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"php": "~8.5.0",
3030
"doctrine/data-fixtures": "^2.2",
3131
"doctrine/doctrine-fixtures-bundle": "^4.3",
32-
"dotkernel/dot-errorhandler": "^4.4.0",
32+
"dotkernel/dot-errorhandler": "^5.0.0",
3333
"dotkernel/dot-cache": "^4.0",
3434
"ramsey/uuid": "^4.5.0",
3535
"ramsey/uuid-doctrine": "^2.1.0",

src/App/src/ConfigProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function getTemplates(): array
134134
'paths' => [
135135
'app' => [__DIR__ . '/../templates/app'],
136136
'error' => [__DIR__ . '/../templates/error'],
137-
'jsonld' => [__DIR__ . '/../templates/jsonld'],
137+
'jsonld' => [__DIR__ . '/../templates/JSON-LD'],
138138
'layout' => [__DIR__ . '/../templates/layout'],
139139
'partial' => [__DIR__ . '/../templates/partial'],
140140
],

src/App/templates/jsonld/index.jsonld.twig renamed to src/App/templates/JSON-LD/index.jsonld.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@
9898
}
9999
]
100100
}
101-
</script>
101+
</script>

src/App/templates/app/index.html.twig

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '@layout/default.html.twig' %}
2-
{% block json_ld %} {% include '@jsonld/index.jsonld.twig'%} {% endblock %}
2+
{% block json_ld %} {{ include('@jsonld/index.jsonld.twig') }} {% endblock %}
33
{% block title %}A PSR-15 compliant application{% endblock %}
44

55
{% block content %}
@@ -110,15 +110,15 @@
110110
</div>
111111
</div>
112112

113-
<div class="card" style="--accent:var(--periwinkle)">
113+
<div class="card" style="--accent:var(--brand-red)">
114114
<div class="card-top">
115115
<div><span class="kicker">Skeleton</span><h3>Admin</h3></div>
116116
</div>
117117
<div class="badges">
118-
<img alt="PHP" src="https://img.shields.io/packagist/dependency-v/dotkernel/admin/php?style=flat&label=php&color=D6D2CC">
119-
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/admin?style=flat&label=&color=D6D2CC">
120-
<img alt="License" src="https://img.shields.io/github/license/dotkernel/admin?style=flat&label=&color=D6D2CC">
121-
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/admin?style=flat&label=%E2%98%85&color=D6D2CC">
118+
<img alt="PHP" src="https://img.shields.io/packagist/dependency-v/dotkernel/admin/php?style=flat&label=php&color=F2ABB6">
119+
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/admin?style=flat&label=&color=F2ABB6">
120+
<img alt="License" src="https://img.shields.io/github/license/dotkernel/admin?style=flat&label=&color=F2ABB6">
121+
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/admin?style=flat&label=%E2%98%85&color=F2ABB6">
122122
</div>
123123
<p class="desc">A ready-to-go admin skeleton for managing your platform's records with a simple, table-based approach - plus the tools to build reports and dashboards.</p>
124124
<div class="card-btns">
@@ -128,15 +128,15 @@
128128
</div>
129129
</div>
130130

131-
<div class="card" style="--accent:var(--teal)">
131+
<div class="card" style="--accent:var(--brand-red)">
132132
<div class="card-top">
133133
<div><span class="kicker">Skeleton</span><h3>Queue</h3></div>
134134
</div>
135135
<div class="badges">
136-
<img alt="PHP" src="https://img.shields.io/packagist/php-v/dotkernel/queue?style=flat&label=php&color=E8B3BE">
137-
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/queue?style=flat&label=&color=E8B3BE">
138-
<img alt="License" src="https://img.shields.io/github/license/dotkernel/queue?style=flat&label=&color=E8B3BE">
139-
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/queue?style=flat&label=%E2%98%85&color=E8B3BE">
136+
<img alt="PHP" src="https://img.shields.io/packagist/php-v/dotkernel/queue?style=flat&label=php&color=F2ABB6">
137+
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/queue?style=flat&label=&color=F2ABB6">
138+
<img alt="License" src="https://img.shields.io/github/license/dotkernel/queue?style=flat&label=&color=F2ABB6">
139+
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/queue?style=flat&label=%E2%98%85&color=F2ABB6">
140140
</div>
141141
<p class="desc">Asynchronous task queuing built on Symfony Messenger, wired into the Laminas Service Manager container via netglue/laminas-messenger.</p>
142142
<div class="card-btns">
@@ -159,15 +159,15 @@
159159

160160
<div class="products-grid other-skeletons-grid">
161161

162-
<div class="card" style="--accent:var(--rose)">
162+
<div class="card" style="--accent:var(--brand-red)">
163163
<div class="card-top">
164164
<div><span class="kicker">Skeleton . Didactic</span><h3>Light</h3></div>
165165
</div>
166166
<div class="badges">
167-
<img alt="PHP" src="https://img.shields.io/packagist/php-v/dotkernel/light?style=flat&label=php&color=F6D6DA">
168-
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/light?style=flat&label=&color=F6D6DA">
169-
<img alt="License" src="https://img.shields.io/github/license/dotkernel/light?style=flat&label=&color=F6D6DA">
170-
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/light?style=flat&label=%E2%98%85&color=F6D6DA">
167+
<img alt="PHP" src="https://img.shields.io/packagist/php-v/dotkernel/light?style=flat&label=php&color=F2ABB6">
168+
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/light?style=flat&label=&color=F2ABB6">
169+
<img alt="License" src="https://img.shields.io/github/license/dotkernel/light?style=flat&label=&color=F2ABB6">
170+
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/light?style=flat&label=%E2%98%85&color=F2ABB6">
171171
</div>
172172
<p class="desc">A minimal, PSR-15 compliant skeleton built for learning purposes - a simple, didactic example of how to put together a basic website, not a Headless Platform component.</p>
173173
<div class="card-btns">
@@ -177,15 +177,15 @@
177177
</div>
178178
</div>
179179

180-
<div class="card" style="--accent:var(--sage)">
180+
<div class="card" style="--accent:var(--brand-red)">
181181
<div class="card-top">
182182
<div><span class="kicker">Skeleton . Standalone</span><h3>Frontend</h3></div>
183183
</div>
184184
<div class="badges">
185-
<img alt="PHP" src="https://img.shields.io/packagist/php-v/dotkernel/frontend?style=flat&label=php&color=E39AA8">
186-
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/frontend?style=flat&label=&color=E39AA8">
187-
<img alt="License" src="https://img.shields.io/github/license/dotkernel/frontend?style=flat&label=&color=E39AA8">
188-
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/frontend?style=flat&label=%E2%98%85&color=E39AA8">
185+
<img alt="PHP" class="badge-fetch" src="https://img.shields.io/packagist/php-v/dotkernel/frontend?style=flat&label=php&color=F2ABB6">
186+
<img alt="Packagist" class="badge-fetch" src="https://img.shields.io/packagist/v/dotkernel/frontend?style=flat&label=&color=F2ABB6">
187+
<img alt="License" class="badge-fetch" src="https://img.shields.io/github/license/dotkernel/frontend?style=flat&label=&color=F2ABB6">
188+
<img alt="Stars" class="badge-fetch" src="https://img.shields.io/github/stars/dotkernel/frontend?style=flat&label=%E2%98%85&color=F2ABB6">
189189
</div>
190190
<p class="desc">A web starter skeleton for building frontend applications on Mezzio and Laminas - a standalone alternative, separate from the Headless Platform.</p>
191191
<div class="card-btns">

src/App/templates/layout/default.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet" />
1818
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600" rel="stylesheet">
1919
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600" rel="stylesheet">
20+
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Barlow:wght@400;500;600;700&display=swap" rel="stylesheet"/>
2021
<link href="{{ asset('css/app.css') }}" rel="stylesheet" />
2122
{% block json_ld %}{% endblock %}
2223
{% block stylesheets %}{% endblock %}

src/Blog/src/ConfigProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function getTemplates(): array
108108
return [
109109
'paths' => [
110110
'page' => [__DIR__ . '/../templates/page'],
111-
'jsonld' => [__DIR__ . '/../templates/page/jsonld'],
111+
'jsonld' => [__DIR__ . '/../templates/page/JSON-LD'],
112112
],
113113
];
114114
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<script type="application/ld+json">
2+
{
3+
"@context": "https://schema.org",
4+
"@type": "BlogPosting",
5+
"@id": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}#article",
6+
"mainEntityOfPage": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}",
7+
"headline": "{{ article.title }}",
8+
"description": "{{ article.excerpt }}",
9+
"datePublished": "{{ article.postDate|date('c') }}",
10+
"dateModified": "{{ article.postDate|date('c') }}",
11+
"articleSection": "{{ article.category.name }}",
12+
"author": {
13+
"@type": "Person",
14+
"name": "{{ article.author.name }}",
15+
"url": "{{ absolute_url(path('page::author-resource', {slug: article.author.slug})) }}"
16+
},
17+
"publisher": {
18+
"@type": "Organization",
19+
"name": "Dotkernel",
20+
"url": "{{ absolute_url('/') }}",
21+
"logo": {
22+
"@type": "ImageObject",
23+
"url": "{{ absolute_url(asset('images/app/dotkernel-logo.png')) }}"
24+
}
25+
}
26+
}
27+
</script>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<script type="application/ld+json">
2+
{
3+
"@context": "https://schema.org",
4+
"@type": "BlogPosting",
5+
"@id": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}#article",
6+
"mainEntityOfPage": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}",
7+
"headline": "{{ article.title }}",
8+
"description": "{{ article.excerpt }}",
9+
"datePublished": "{{ article.postDate|date('c') }}",
10+
"dateModified": "{{ article.postDate|date('c') }}",
11+
"articleSection": "{{ article.category.name }}",
12+
"author": {
13+
"@type": "Person",
14+
"name": "{{ article.author.name }}",
15+
"url": "{{ absolute_url(path('page::author-resource', {slug: article.author.slug})) }}"
16+
},
17+
"publisher": {
18+
"@type": "Organization",
19+
"name": "Dotkernel",
20+
"url": "{{ absolute_url('/') }}",
21+
"logo": {
22+
"@type": "ImageObject",
23+
"url": "{{ absolute_url(asset('images/app/dotkernel-logo.png')) }}"
24+
}
25+
}
26+
}
27+
</script>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<script type="application/ld+json">
2+
{
3+
"@context": "https://schema.org",
4+
"@type": "BlogPosting",
5+
"@id": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}#article",
6+
"mainEntityOfPage": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}",
7+
"headline": "{{ article.title }}",
8+
"description": "{{ article.excerpt }}",
9+
"datePublished": "{{ article.postDate|date('c') }}",
10+
"dateModified": "{{ article.postDate|date('c') }}",
11+
"articleSection": "{{ article.category.name }}",
12+
"author": {
13+
"@type": "Person",
14+
"name": "{{ article.author.name }}",
15+
"url": "{{ absolute_url(path('page::author-resource', {slug: article.author.slug})) }}"
16+
},
17+
"publisher": {
18+
"@type": "Organization",
19+
"name": "Dotkernel",
20+
"url": "{{ absolute_url('/') }}",
21+
"logo": {
22+
"@type": "ImageObject",
23+
"url": "{{ absolute_url(asset('images/app/dotkernel-logo.png')) }}"
24+
}
25+
}
26+
}
27+
</script>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<script type="application/ld+json">
2+
{
3+
"@context": "https://schema.org",
4+
"@type": "BlogPosting",
5+
"@id": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}#article",
6+
"mainEntityOfPage": "{{ absolute_url(path('page::blog-resource', {categorySlug: article.category.slug, slug: article.slug})) }}",
7+
"headline": "{{ article.title }}",
8+
"description": "{{ article.excerpt }}",
9+
"datePublished": "{{ article.postDate|date('c') }}",
10+
"dateModified": "{{ article.postDate|date('c') }}",
11+
"articleSection": "{{ article.category.name }}",
12+
"author": {
13+
"@type": "Person",
14+
"name": "{{ article.author.name }}",
15+
"url": "{{ absolute_url(path('page::author-resource', {slug: article.author.slug})) }}"
16+
},
17+
"publisher": {
18+
"@type": "Organization",
19+
"name": "Dotkernel",
20+
"url": "{{ absolute_url('/') }}",
21+
"logo": {
22+
"@type": "ImageObject",
23+
"url": "{{ absolute_url(asset('images/app/dotkernel-logo.png')) }}"
24+
}
25+
}
26+
}
27+
</script>

0 commit comments

Comments
 (0)