Skip to content

Commit

Permalink
Site 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Apr 28, 2020
1 parent e44b5b8 commit ab1cfe8
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a name="1.0.0"></a>
# [1.0.0](https://github.com/flextype-plugins/site) (2020-04-28)
* Initial Release
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ version: 1.0.0
description: Noir theme for Flextype
author:
name: Sergey Romanenko
email: [email protected]
url: http://romanenko.digital
email: [email protected]
url: https://flextype.org
homepage: https://github.com/flextype-themes/noir
bugs: https://github.com/flextype-themes/noir/issues
license: MIT
Expand All @@ -94,7 +94,7 @@ Theme name: Noir
Theme version: 1.0.0
```

You can also reach these same values from a Flextype plugin(s) with PHP syntax:
You can also reach these same values from a Flextype theme(s) with PHP syntax:

Usage:

Expand All @@ -105,7 +105,7 @@ $theme_version = $flextype->registry->get('themes.noir.manifest.version');

### Accessing Theme Configuration

Themes have default and site configuration files, named `settings.yaml` located in `/project/themes/<themename>/` and in `/project/config/themes/<themename>/`
Themes have default and project configuration files, named `settings.yaml` located in `/project/themes/<themename>/` and in `/project/config/themes/<themename>/`

For example, let us consider the Noir theme and there is a file called `settings.yaml` in the themes site settings folder. The contents of this configuration file look like this:

Expand All @@ -115,7 +115,7 @@ enabled: true

Let us add some custom theme settings.

Open `/site/config/themes/noir/settings.yaml` and add new variable with value `highlight: red`
Open `/project/config/themes/noir/settings.yaml` and add new variable with value `highlight: red`

```yaml
enabled: true
Expand All @@ -125,7 +125,7 @@ highlight: red
Then in your theme templates you can access these variable using the `registry.themes.noir` object:

```twig
<h1 style="color:{{ registry.themes.noir.settings.highlight }}">
<h1 style="color:{{ registry.get('themes.noir.settings.highlight') }}">
BUILD FAST, FLEXIBLE, EASIER TO MANAGE WEBSITES WITH FLEXTYPE.
</h1>
```
Expand Down
2 changes: 1 addition & 1 deletion app/Controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* @link http://digital.flextype.org
* @link https://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* @link http://digital.flextype.org
* @link https://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "Sergey Romanenko",
"email": "[email protected]",
"homepage": "http://digital.flextype.org"
"homepage": "https://flextype.org"
}
],
"support": {
Expand Down
2 changes: 1 addition & 1 deletion dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* @link http://digital.flextype.org
* @link https://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion middlewares.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Flextype (http://flextype.org)
* Flextype (https://flextype.org)
* Founded by Sergey Romanenko and maintained by Flextype Community.
*/

Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: fas fa-globe
author:
name: Sergey Romanenko
email: [email protected]
url: http://flextype.org
url: https://flextype.org
homepage: https://github.com/flextype-plugins/site
bugs: https://github.com/flextype-plugins/site/issues
license: MIT
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* @link http://digital.flextype.org
* @link https://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down

0 comments on commit ab1cfe8

Please sign in to comment.