Updating files and added php formatting
First commit to the new repo so I'm doing a bit of housecleaning, which is cleaning up some old files, adding some changes that had been made elsewhere and adding a php format config file to normalize formatting across multiple projects.
This commit is contained in:
parent
a66377e597
commit
b5877e2385
8 changed files with 340 additions and 194 deletions
74
.php-cs-fixer.php
Normal file
74
.php-cs-fixer.php
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$config = new PhpCsFixer\Config();
|
||||||
|
return $config
|
||||||
|
->setRiskyAllowed(true)
|
||||||
|
->setRules([
|
||||||
|
'@PSR12' => true,
|
||||||
|
'array_indentation' => true,
|
||||||
|
'array_syntax' => [
|
||||||
|
'syntax' => 'short',
|
||||||
|
],
|
||||||
|
'combine_consecutive_unsets' => true,
|
||||||
|
'method_chaining_indentation' => true,
|
||||||
|
'class_attributes_separation' => [
|
||||||
|
'elements' => [
|
||||||
|
'const' => 'none',
|
||||||
|
'method' => 'one',
|
||||||
|
'property' => 'none',
|
||||||
|
'trait_import' => 'none',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'multiline_whitespace_before_semicolons' => [
|
||||||
|
'strategy' => 'no_multi_line',
|
||||||
|
],
|
||||||
|
'single_quote' => false,
|
||||||
|
|
||||||
|
'binary_operator_spaces' => [
|
||||||
|
'default' => 'single_space',
|
||||||
|
'operators' => [
|
||||||
|
'=' => 'align_single_space_minimal',
|
||||||
|
'=>' => 'align_single_space_minimal',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'braces' => [
|
||||||
|
'allow_single_line_closure' => true,
|
||||||
|
],
|
||||||
|
'concat_space' => [
|
||||||
|
'spacing' => 'one',
|
||||||
|
],
|
||||||
|
'declare_equal_normalize' => true,
|
||||||
|
'function_typehint_space' => true,
|
||||||
|
'single_line_comment_style' => [
|
||||||
|
'comment_types' => [
|
||||||
|
'hash',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'include' => true,
|
||||||
|
'lowercase_cast' => true,
|
||||||
|
'no_extra_blank_lines' => [
|
||||||
|
'tokens' => [
|
||||||
|
'curly_brace_block',
|
||||||
|
'extra',
|
||||||
|
'parenthesis_brace_block',
|
||||||
|
'throw',
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'no_multiline_whitespace_around_double_arrow' => true,
|
||||||
|
'no_spaces_around_offset' => true,
|
||||||
|
'no_unused_imports' => true,
|
||||||
|
'no_whitespace_before_comma_in_array' => true,
|
||||||
|
'no_whitespace_in_blank_line' => true,
|
||||||
|
'object_operator_without_whitespace' => true,
|
||||||
|
'single_blank_line_before_namespace' => true,
|
||||||
|
'ternary_operator_spaces' => true,
|
||||||
|
'trim_array_spaces' => true,
|
||||||
|
'unary_operator_spaces' => true,
|
||||||
|
'whitespace_after_comma_in_array' => true,
|
||||||
|
'single_line_after_imports' => true,
|
||||||
|
'ordered_imports' => [
|
||||||
|
'sort_algorithm' => 'none',
|
||||||
|
],
|
||||||
|
//Other rules here...
|
||||||
|
])
|
||||||
|
->setLineEnding("\n");
|
|
@ -1,64 +1,82 @@
|
||||||
{
|
{
|
||||||
|
"index-content-no-image": "The path of the <a href='#'>righteous</a> man is beset on ALL sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.",
|
||||||
"index-content": "<img src='/assets/images/global/default-avi.png'><br>The path of the <a href='#'>righteous</a> man is beset on ALL sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. <code>And I will strike down upon thee with great vengeance</code> and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.",
|
"index-content": "<img src='/assets/images/global/default-avi.png'><br>The path of the <a href='#'>righteous</a> man is beset on ALL sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. <code>And I will strike down upon thee with great vengeance</code> and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.",
|
||||||
"content": "<img src='/assets/images/global/default-avi.png'><br>The path of the <a href='#'>righteous</a> man is beset on ALL sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. <code>And I will strike down upon thee with great vengeance</code> and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.<pre><code>server\n { listen 80; server_name yourcoolassdomain.com; \n\tlocation / \n\t\t{ \n\t\t\tproxy_pass https://127.0.0.1:2314; \n\t\t\tproxy_http_version 1.1; \n\t\t\tproxy_set_header \n\t\t\tUpgrade $http_upgrade; \n\t\t\tproxy_set_header Connection 'upgrade'; \n\t\t\tproxy_set_header Host $host; \n\t\t\tproxy_cache_bypass $http_upgrade; \n\t\t} \n\t} </code></pre>",
|
"content": "<img src='/assets/images/global/default-avi.png'><sup>this is mini text</sup><br>The path of the <a href='#'>righteous</a> man is beset on ALL sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. <code>And I will strike down upon thee with great vengeance</code> and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.<pre><code>server\n { listen 80; server_name yourcoolassdomain.com; \n\tlocation / \n\t\t{ \n\t\t\tproxy_pass https://127.0.0.1:2314; \n\t\t\tproxy_http_version 1.1; \n\t\t\tproxy_set_header \n\t\t\tUpgrade $http_upgrade; \n\t\t\tproxy_set_header Connection 'upgrade'; \n\t\t\tproxy_set_header Host $host; \n\t\t\tproxy_cache_bypass $http_upgrade; \n\t\t} \n\t} </code></pre><br><iframe src='https://www.youtube.com/embed/dHtB3Gg5hCg' title='YouTube video player' width='100%' height='400'></iframe>",
|
||||||
"feature": "/assets/video/blog/2022/01/one.mp4, /assets/images/blog/2022/03/01.jpg, /assets/images/blog/2022/03/02.jpg, /assets/images/blog/2022/03/03.jpg",
|
"feature": "/assets/video/blog/2022/01/one.mp4, /assets/images/blog/2022/03/01.jpg, /assets/images/blog/2022/03/02.jpg, /assets/images/blog/2022/03/03.jpg",
|
||||||
"files": "/assets/docs/blog/2022/01/one.pdf, /assets/docs/blog/2022/01/two.txt, /assets/docs/blog/2022/01/three.rtf, /assets/sound/blog/2022/01/one.mp3, /assets/sound/blog/2022/01/two.mp3,",
|
"files": "/assets/docs/blog/2022/01/one.pdf, /assets/docs/blog/2022/01/two.txt, /assets/docs/blog/2022/01/three.rtf, /assets/sound/blog/2022/01/one.mp3, /assets/sound/blog/2022/01/two.mp3,",
|
||||||
"meta": {
|
"meta": {
|
||||||
"who": "Are0h",
|
"who": "Are0h",
|
||||||
"when": "6 hours ago",
|
"when": "2022 Jan Sun 30",
|
||||||
"tags": [
|
"tags": [
|
||||||
{ "label": "star trek discovery", "slug": "star-trek-discovery" },
|
{
|
||||||
{ "label": " sonequa martin-green", "slug": "sonequa-martin-green" },
|
"label": "star trek discovery",
|
||||||
{ "label": " faves", "slug": "faves" },
|
"slug": "star-trek-discovery"
|
||||||
{ "label": " damn", "slug": "damn" },
|
},
|
||||||
{ "label": " sci-fi", "slug": "sci-fi" },
|
{
|
||||||
{ "label": " tv", "slug": "tv" }
|
"label": " sonequa martin-green",
|
||||||
|
"slug": "sonequa-martin-green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": " faves",
|
||||||
|
"slug": "faves"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": " damn",
|
||||||
|
"slug": "damn"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": " sci-fi",
|
||||||
|
"slug": "sci-fi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": " tv",
|
||||||
|
"slug": "tv"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"recent_posts": [
|
"recent_posts": [
|
||||||
{
|
{
|
||||||
"title": "Teyonah Parris",
|
"title": "Teyonah Parris",
|
||||||
"slug": "teyonah-parris",
|
"slug": "teyonah-parris",
|
||||||
"feature": "content/blog-images/2018/11/chi-raq.jpg",
|
"feature": "/assets/video/blog/2022/01/one.mp4, /assets/images/blog/2022/03/01.jpg, /assets/images/blog/2022/03/02.jpg, /assets/images/blog/2022/03/03.jpg",
|
||||||
"path": "2020/06",
|
"path": "2020/06",
|
||||||
"created": "2018 Nov 11th"
|
"created": "2018 Nov 11th"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Aja Naomi-King",
|
"title": "Aja Naomi-King",
|
||||||
"slug": "aja-naomi-king",
|
"slug": "aja-naomi-king",
|
||||||
"feature": "content/blog-images/2018/11/chi-raq.jpg",
|
"feature": "/assets/images/blog/2022/03/01.jpg, /assets/images/blog/2022/03/02.jpg, /assets/images/blog/2022/03/03.jpg",
|
||||||
"path": "2020/06",
|
"path": "2020/06",
|
||||||
"created": "2018 Nov 11th"
|
"created": "2018 Nov 11th"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Sonequa Martin-Green",
|
"title": "Sonequa Martin-Green",
|
||||||
"slug": "sonequa-martin-green",
|
"slug": "sonequa-martin-green",
|
||||||
"feature": "content/blog-images/2018/11/chi-raq.jpg",
|
"feature": "/assets/images/blog/2022/03/02.jpg, /assets/images/blog/2022/03/03.jpg",
|
||||||
"path": "2020/06",
|
"path": "2020/06",
|
||||||
"created": "2018 Nov 11th"
|
"created": "2018 Nov 11th"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Jameela Jamil",
|
"title": "Jameela Jamil",
|
||||||
"slug": "jameela-jamil",
|
"slug": "jameela-jamil",
|
||||||
"feature": "content/blog-images/2018/11/chi-raq.jpg",
|
"feature": "/assets/images/blog/2022/03/03.jpg",
|
||||||
"path": "2020/06",
|
"path": "2020/06",
|
||||||
"created": "2018 Nov 11th"
|
"created": "2018 Nov 11th"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "I/'m so behind",
|
"title": "I/'m so behind",
|
||||||
"slug": "im-so-behind",
|
"slug": "im-so-behind",
|
||||||
"feature": "content/blog-images/2018/11/chi-raq.jpg",
|
"feature": "/assets/images/blog/2022/03/03.jpg",
|
||||||
"path": "2020/06",
|
"path": "2020/06",
|
||||||
"created": "2018 Nov 11th"
|
"created": "2018 Nov 11th"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"featured_posts": [
|
"featured_posts": [
|
||||||
{
|
{
|
||||||
"id": 6,
|
"id": 6,
|
||||||
"uuid": "e322f21e-3317-4795-a7e8-a280c4611406",
|
"uuid": "e322f21e-3317-4795-a7e8-a280c4611406",
|
||||||
"title": "Roberta MF Draper",
|
"title": "Roberta MF Draper",
|
||||||
"feature": "/assets/images/blog/2020/06/bobbie-draper-the-expanse-1170x585.jpg",
|
"feature": "/src/themes/theme-rikc03/rikc03/assets/images/test/2018/05/nxt_08202016dg_2622.jpg",
|
||||||
"path": "2020/06",
|
"path": "2020/06",
|
||||||
"layout": "page",
|
"layout": "page",
|
||||||
"tags": "faves, damn, the expanse, sci-fi, frankie adams",
|
"tags": "faves, damn, the expanse, sci-fi, frankie adams",
|
||||||
|
@ -74,7 +92,39 @@
|
||||||
"id": 4,
|
"id": 4,
|
||||||
"uuid": "9051e9df-c723-42c6-bf77-59f5bb8caeac",
|
"uuid": "9051e9df-c723-42c6-bf77-59f5bb8caeac",
|
||||||
"title": "Michael MF Burnam",
|
"title": "Michael MF Burnam",
|
||||||
"feature": "/assets/images/blog/2020/06/Sonequa-Martin-Green-as-Michael-Burnham-in-Star-Trek-Discovery-season-3.jpg",
|
"feature": "/src/themes/theme-rikc03/rikc03/assets/images/test/2018/05/13603447_1213326028679516_1212043235232357993_o.jpg",
|
||||||
|
"path": "2020/06",
|
||||||
|
"layout": "page",
|
||||||
|
"tags": "star trek discovery, sonequa martin-green, faves, damn, sci-fi, tv",
|
||||||
|
"author": "Are0h",
|
||||||
|
"deleted": false,
|
||||||
|
"menu": true,
|
||||||
|
"featured": true,
|
||||||
|
"published": true,
|
||||||
|
"slug": "michael-mf-burnam",
|
||||||
|
"content": "Yall acting like Michael won/'t give you those hands."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"uuid": "e322f21e-3317-4795-a7e8-a280c4611406",
|
||||||
|
"title": "Roberta MF Draper",
|
||||||
|
"feature": "/assets/video/blog/2022/01/one.mp4",
|
||||||
|
"path": "2020/06",
|
||||||
|
"layout": "page",
|
||||||
|
"tags": "faves, damn, the expanse, sci-fi, frankie adams",
|
||||||
|
"author": "Are0h",
|
||||||
|
"deleted": false,
|
||||||
|
"menu": false,
|
||||||
|
"featured": true,
|
||||||
|
"published": true,
|
||||||
|
"slug": "roberta-mf-draper",
|
||||||
|
"content": "Even Amos doesn/'t want any smoke with Mars/' Finest. She will fuck your whole shit up. Bad. \r\n\r\nRENDER ON SAVE WORKS!\r\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"uuid": "9051e9df-c723-42c6-bf77-59f5bb8caeac",
|
||||||
|
"title": "Michael MF Burnam",
|
||||||
|
"feature": "/src/themes/theme-rikc03/rikc03/assets/images/test/2018/05/13603447_1213326028679516_1212043235232357993_o.jpg",
|
||||||
"path": "2020/06",
|
"path": "2020/06",
|
||||||
"layout": "page",
|
"layout": "page",
|
||||||
"tags": "star trek discovery, sonequa martin-green, faves, damn, sci-fi, tv",
|
"tags": "star trek discovery, sonequa martin-green, faves, damn, sci-fi, tv",
|
||||||
|
|
|
@ -9,25 +9,48 @@
|
||||||
"default_avi": "/assets/images/global/default-avi.png",
|
"default_avi": "/assets/images/global/default-avi.png",
|
||||||
"bucket": [{ "item": "one" }, { "item": "two" }, { "item": "three" }],
|
"bucket": [{ "item": "one" }, { "item": "two" }, { "item": "three" }],
|
||||||
"tag_list": [
|
"tag_list": [
|
||||||
{ "title": "Swaggy Disgust", "slug": "swaggy-disgust", "path": "2020/06" }
|
{
|
||||||
|
"title": "Swaggy Disgust",
|
||||||
|
"slug": "swaggy-disgust",
|
||||||
|
"path": "2020/06",
|
||||||
|
"feature": "/src/themes/theme-rikc03/rikc03/assets/images/test/2018/05/PREACHER_S2_207_SP_03.jpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Swaggy Disgust 2",
|
||||||
|
"slug": "swaggy-disgust-2",
|
||||||
|
"path": "2020/06",
|
||||||
|
"feature": "/src/themes/theme-rikc03/rikc03/assets/images/test/2018/05/nxt_08202016dg_2622.jpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Swaggy Disgust",
|
||||||
|
"slug": "swaggy-disgust",
|
||||||
|
"path": "2020/06",
|
||||||
|
"feature": "/src/themes/theme-rikc03/rikc03/assets/images/test/2018/05/PREACHER_S2_207_SP_03.jpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Swaggy Disgust 2",
|
||||||
|
"slug": "swaggy-disgust-2",
|
||||||
|
"path": "2020/06",
|
||||||
|
"feature": "/src/themes/theme-rikc03/rikc03/assets/images/test/2018/05/nxt_08202016dg_2622.jpg"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"menu": [
|
"menu": [
|
||||||
{
|
{
|
||||||
"title": "This is the first page",
|
"title": "First",
|
||||||
"id": "3",
|
"id": "3",
|
||||||
"slug": "page-one",
|
"slug": "page-one",
|
||||||
"uuid": "b60d6843-e957-43ac-8425-65145142236c",
|
"uuid": "b60d6843-e957-43ac-8425-65145142236c",
|
||||||
"path": "2021/04"
|
"path": "2021/04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "This is the second page",
|
"title": "Second",
|
||||||
"id": "4",
|
"id": "4",
|
||||||
"slug": "page-two",
|
"slug": "page-two",
|
||||||
"uuid": "b60d6843-e957-43ac-8425-65145142236d",
|
"uuid": "b60d6843-e957-43ac-8425-65145142236d",
|
||||||
"path": "2021/04"
|
"path": "2021/04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "This is the second page",
|
"title": "Third",
|
||||||
"id": "5",
|
"id": "5",
|
||||||
"slug": "page-three",
|
"slug": "page-three",
|
||||||
"uuid": "b60d6843-e957-43ac-8425-65145142236d",
|
"uuid": "b60d6843-e957-43ac-8425-65145142236d",
|
||||||
|
|
|
@ -25,7 +25,7 @@ class ThemeEngine
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
$this->loader = new \Twig\Loader\FilesystemLoader(
|
$this->loader = new \Twig\Loader\FilesystemLoader(
|
||||||
$themePath.'/'.$path[4]
|
$themePath . '/' . $path[4]
|
||||||
);
|
);
|
||||||
$this->twig = new \Twig\Environment($this->loader, []);
|
$this->twig = new \Twig\Environment($this->loader, []);
|
||||||
$this->router($_SERVER['REQUEST_URI']);
|
$this->router($_SERVER['REQUEST_URI']);
|
||||||
|
@ -36,7 +36,7 @@ class ThemeEngine
|
||||||
$pageInfo = [
|
$pageInfo = [
|
||||||
'keywords' => $this->settings['keywords'],
|
'keywords' => $this->settings['keywords'],
|
||||||
'description' => $this->settings['description'],
|
'description' => $this->settings['description'],
|
||||||
'image' => $this->themeAssetPath.'/assets/images/global/default-bg.jpg',
|
'image' => $this->themeAssetPath . '/assets/images/global/default-bg.jpg',
|
||||||
];
|
];
|
||||||
|
|
||||||
$featureList = explode(',', $this->posts['feature']);
|
$featureList = explode(',', $this->posts['feature']);
|
||||||
|
@ -66,14 +66,14 @@ class ThemeEngine
|
||||||
$recent = $this->posts['recent_posts'];
|
$recent = $this->posts['recent_posts'];
|
||||||
$featured = $this->posts['featured_posts'];
|
$featured = $this->posts['featured_posts'];
|
||||||
$template = 'index.twig';
|
$template = 'index.twig';
|
||||||
$content = $this->posts['index-content'];
|
$content = $this->posts['index-content-no-image'];
|
||||||
|
|
||||||
$pageOptions = [
|
$pageOptions = [
|
||||||
'debug' => true, // for theme kit
|
'debug' => true, // for theme kit
|
||||||
'theme' => $this->themeFolder, // for theme kit
|
'theme' => $this->themeFolder, // for theme kit
|
||||||
'title' => 'This is Fipamo',
|
'title' => 'This is Fipamo',
|
||||||
'dynamicRender' => $this->settings['dynamicRender'],
|
'dynamicRender' => $this->settings['dynamicRender'],
|
||||||
'background' => $this->themeAssetPath.'/assets/images/global/default-bg.jpg',
|
'background' => $this->themeAssetPath . '/assets/images/global/default-bg.jpg',
|
||||||
'recent' => $recent,
|
'recent' => $recent,
|
||||||
'featured' => $featured,
|
'featured' => $featured,
|
||||||
'info' => $pageInfo,
|
'info' => $pageInfo,
|
||||||
|
@ -86,13 +86,13 @@ class ThemeEngine
|
||||||
case '/page':
|
case '/page':
|
||||||
$content = $this->posts['content'];
|
$content = $this->posts['content'];
|
||||||
$meta = $this->posts['meta'];
|
$meta = $this->posts['meta'];
|
||||||
$template = $request.'.twig';
|
$template = $request . '.twig';
|
||||||
$pageOptions = [
|
$pageOptions = [
|
||||||
'debug' => true, // for theme kit
|
'debug' => true, // for theme kit
|
||||||
'theme' => $this->themeFolder, // for theme kit
|
'theme' => $this->themeFolder, // for theme kit
|
||||||
'title' => 'Page Title',
|
'title' => 'Page Title',
|
||||||
'dynamicRender' => $this->settings['dynamicRender'],
|
'dynamicRender' => $this->settings['dynamicRender'],
|
||||||
'background' => $this->themeAssetPath.'/assets/images/global/default-bg.jpg',
|
'background' => $this->themeAssetPath . '/assets/images/global/default-bg.jpg',
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
'meta' => $meta,
|
'meta' => $meta,
|
||||||
'info' => $pageInfo,
|
'info' => $pageInfo,
|
||||||
|
@ -109,12 +109,10 @@ class ThemeEngine
|
||||||
'theme' => $this->themeFolder, // for theme kit
|
'theme' => $this->themeFolder, // for theme kit
|
||||||
'title' => 'Pages Tagged as Tag',
|
'title' => 'Pages Tagged as Tag',
|
||||||
'dynamicRender' => $this->settings['dynamicRender'],
|
'dynamicRender' => $this->settings['dynamicRender'],
|
||||||
'background' => $this->themeAssetPath.'/assets/images/global/default-bg.jpg',
|
'background' => $this->themeAssetPath . '/assets/images/global/default-bg.jpg',
|
||||||
'tag_list' => $tags,
|
'tag_list' => $tags,
|
||||||
'info' => $pageInfo,
|
'info' => $pageInfo,
|
||||||
'menu' => $menu,
|
'menu' => $menu,
|
||||||
'media' => $images,
|
|
||||||
'files' => $files,
|
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case '/archive':
|
case '/archive':
|
||||||
|
@ -125,12 +123,10 @@ class ThemeEngine
|
||||||
'theme' => $this->themeFolder, // for theme kit
|
'theme' => $this->themeFolder, // for theme kit
|
||||||
'title' => 'Archive',
|
'title' => 'Archive',
|
||||||
'dynamicRender' => $this->settings['dynamicRender'],
|
'dynamicRender' => $this->settings['dynamicRender'],
|
||||||
'background' => $this->themeAssetPath.'/assets/images/global/default-bg.jpg',
|
'background' => $this->themeAssetPath . '/assets/images/global/default-bg.jpg',
|
||||||
'archives' => $archive['archives'],
|
'archives' => $archive['archives'],
|
||||||
'info' => $pageInfo,
|
'info' => $pageInfo,
|
||||||
'menu' => $menu,
|
'menu' => $menu,
|
||||||
'media' => $images,
|
|
||||||
'files' => $files,
|
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -144,7 +140,7 @@ class ThemeEngine
|
||||||
'theme' => $this->themeFolder, // for theme kit
|
'theme' => $this->themeFolder, // for theme kit
|
||||||
'title' => 'Uh oh',
|
'title' => 'Uh oh',
|
||||||
'dynamicRender' => $this->settings['dynamicRender'],
|
'dynamicRender' => $this->settings['dynamicRender'],
|
||||||
'background' => $this->themeAssetPath.'/assets/images/global/default-bg.jpg',
|
'background' => $this->themeAssetPath . '/assets/images/global/default-bg.jpg',
|
||||||
'info' => $pageInfo,
|
'info' => $pageInfo,
|
||||||
'content' => "Uh Oh, so there's a problem.",
|
'content' => "Uh Oh, so there's a problem.",
|
||||||
'menu' => $menu,
|
'menu' => $menu,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "vendor/autoload.php";
|
require 'vendor/autoload.php';
|
||||||
|
|
||||||
use engine\StartKit as StartKit;
|
use engine\StartKit;
|
||||||
|
|
||||||
new StartKit();
|
new StartKit();
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
{{ title }}
|
{{ title }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block mainContent %}
|
{% block mainContent %}
|
||||||
<section>
|
<section>
|
||||||
<div class="page-title">
|
<div class="page-title">
|
||||||
<span>{{title}}</span>
|
<span>{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<article>
|
<article>
|
||||||
|
@ -15,23 +15,23 @@
|
||||||
{% for item in archives %}
|
{% for item in archives %}
|
||||||
<div class="archive-item">
|
<div class="archive-item">
|
||||||
<span class="year">
|
<span class="year">
|
||||||
{{item.year}}
|
{{ item.year }}
|
||||||
</span>
|
</span>
|
||||||
{% for data in item.year_data %}
|
{% for data in item.year_data %}
|
||||||
<div class="archive-month">
|
<div class="archive-month">
|
||||||
<span class="month">
|
<span class="month">
|
||||||
{{data.full_month}}
|
{{ data.full_month }}
|
||||||
</span>
|
</span>
|
||||||
{% for page in data.pages %}
|
{% for page in data.pages %}
|
||||||
{% if dynamicRender is defined %}
|
{% if dynamicRender is defined %}
|
||||||
{% if dynamicRender == 'true' %}
|
{% if dynamicRender == 'true' %}
|
||||||
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug }}">{{page.title}}</a><br />
|
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug }}">{{ page.title }}</a><br/>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug~".html" }}">{{page.title}}</a><br />
|
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug~".html" }}">{{ page.title }}</a><br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug~".html" }}">{{page.title}}</a><br />
|
<a href="{{ "/"~item.year~"/"~data.month~"/"~page.slug~".html" }}">{{ page.title }}</a><br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,4 +42,4 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -4,15 +4,15 @@
|
||||||
{{ title }}
|
{{ title }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block mainContent %}
|
{% block mainContent %}
|
||||||
<section>
|
<section>
|
||||||
<div class="page-title">
|
<div class="page-title">
|
||||||
<span>{{title}}</span>
|
<span>{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<article>
|
<article>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<p>{{content | raw}}</p>
|
<p>{{ content | raw }}</p>
|
||||||
<div>
|
<div>
|
||||||
<div class="page_files">
|
<div class="page_files">
|
||||||
<div class="page_doc">
|
<div class="page_doc">
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
{% for doc in files %}
|
{% for doc in files %}
|
||||||
{% if doc.type != "mp3" %}
|
{% if doc.type != "mp3" %}
|
||||||
{% set path = doc.file|split('/') %}
|
{% set path = doc.file|split('/') %}
|
||||||
<a href="{{doc.file}}">{{path[6]}}</a>
|
<a href="{{ doc.file }}">{{ path[6] }}</a>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
{% for doc in files %}
|
{% for doc in files %}
|
||||||
{% if doc.type == "mp3" %}
|
{% if doc.type == "mp3" %}
|
||||||
<audio controls>
|
<audio controls>
|
||||||
<source src="{{doc.file}}" type="audio/mpeg">
|
<source src="{{ doc.file }}" type="audio/mpeg">
|
||||||
Your browser does not support the audio element.
|
Your browser does not support the audio element.
|
||||||
</audio>
|
</audio>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -39,8 +39,11 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
{{meta['who']}} dropped this {{ meta['when'] }}<br />
|
{{ meta['who'] }}
|
||||||
<strong>tags: </strong>
|
dropped this
|
||||||
|
{{ meta['when'] }}<br/>
|
||||||
|
<strong>tags:
|
||||||
|
</strong>
|
||||||
{% for tag in meta['tags'] %}
|
{% for tag in meta['tags'] %}
|
||||||
{% if dynamicRender is defined %}
|
{% if dynamicRender is defined %}
|
||||||
{% if dynamicRender == 'true' %}
|
{% if dynamicRender == 'true' %}
|
||||||
|
|
Loading…
Reference in a new issue