Skip to content

Commit 034d412

Browse files
committed
Site 1.11.0
1 parent 8f2acbd commit 034d412

File tree

6 files changed

+24
-11
lines changed

6 files changed

+24
-11
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<a name="1.11.0"></a>
2+
# [1.11.0](https://github.com/flextype-plugins/site/compare/v1.10.0...v1.11.0) (2021-01-14)
3+
4+
### Features
5+
6+
* **core** update code base for new Flextype 0.9.16
7+
8+
### Bug Fixes
9+
10+
* **bootstrap** fix and improve bootstrap loading.
11+
112
<a name="1.10.0"></a>
213
# [1.10.0](https://github.com/flextype-plugins/site/compare/v1.9.0...v1.10.0) (2021-01-07)
314

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1 align="center">Site Plugin for <a href="https://flextype.org/">Flextype</a></h1>
22

33
<p align="center">
4-
<a href="https://github.com/flextype-plugins/site/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/site.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/site"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/site"><img src="https://img.shields.io/github/downloads/flextype-plugins/site/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.15-green.svg" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
4+
<a href="https://github.com/flextype-plugins/site/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/site.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/site"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/site"><img src="https://img.shields.io/github/downloads/flextype-plugins/site/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.16-green.svg" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
55
</p>
66

77
Site plugin to display entries content on the website frontend.
@@ -14,7 +14,7 @@ The following dependencies need to be downloaded and installed for Site Plugin.
1414

1515
| Item | Version | Download |
1616
|---|---|---|
17-
| [flextype](https://github.com/flextype/flextype) | 0.9.15 | [download](https://github.com/flextype/flextype/releases) |
17+
| [flextype](https://github.com/flextype/flextype) | 0.9.16 | [download](https://github.com/flextype/flextype/releases) |
1818
| [twig](https://github.com/flextype-plugins/twig) | >=2.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
1919
| [noir](https://github.com/flextype-themes/noir) | >=1.0.0 | [download](https://github.com/flextype-themes/noir/releases) |
2020

@@ -64,7 +64,7 @@ version: 1.0.0
6464
description: Noir theme for Flextype
6565
author:
6666
name: Sergey Romanenko
67-
email: support@flextype.org
67+
email: sergey.romanenko@flextype.org
6868
url: https://flextype.org
6969
homepage: https://github.com/flextype-themes/noir
7070
bugs: https://github.com/flextype-themes/noir/issues

app/Controllers/SiteController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ public function index(Request $request, Response $response, array $args) : Respo
7575
return $response->withJson($entry);
7676
}
7777

78-
79-
$themeBootstrapPath = PATH['project']. '/themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/theme.php';
80-
filesystem()->file($themeBootstrapPath)->exists() and include_once $themeBootstrapPath;
81-
8278
// Set template path for current entry
8379
$path = 'themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/' . (empty($entry['template']) ? 'templates/default' : 'templates/' . $entry['template']) . '.html';
8480

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"authors": [
99
{
1010
"name": "Sergey Romanenko",
11-
"email": "support@flextype.org",
11+
"email": "sergey.romanenko@flextype.org",
1212
"homepage": "https://flextype.org"
1313
}
1414
],

dependencies.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@
2222
* Init themes
2323
*/
2424
flextype()->container()['themes']->init();
25+
26+
/**
27+
* Init current activated theme
28+
*/
29+
$themeBootstrapPath = PATH['project']. '/themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/theme.php';
30+
filesystem()->file($themeBootstrapPath)->exists() and include_once $themeBootstrapPath;

plugin.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: Site
2-
version: 1.10.0
2+
version: 1.11.0
33
description: Site plugin to display entries content on the website frontend.
44
icon:
55
name: globe
66
set: "fontawesome|solid"
77
author:
88
name: Sergey Romanenko
9-
email: support@flextype.org
9+
email: sergey.romanenko@flextype.org
1010
url: https://flextype.org
1111
homepage: https://github.com/flextype-plugins/site
1212
bugs: https://github.com/flextype-plugins/site/issues
1313
license: MIT
1414

1515
dependencies:
16-
flextype: 0.9.15
16+
flextype: 0.9.16
1717
twig: '>=2.0.0'

0 commit comments

Comments
 (0)