mirror of
https://github.com/flextype/flextype.git
synced 2025-08-11 15:44:49 +02:00
Flextype Core: typo updates
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
## [0.8.4] - 2019-01-xx
|
||||
|
||||
## [0.8.3] - 2019-01-16
|
||||
### Added
|
||||
- Admin Panel: New Gorgeous Light Theme for Admin panel!
|
||||
|
@@ -7,3 +7,4 @@ Flextype is an open source project and community contributions are essential to
|
||||
* Find and [report issues.](https://github.com/flextype/flextype/issues)
|
||||
* Link back to [Flextype](http://flextype.org).
|
||||
* [Donate to keep Flextype free.](http://flextype.org/about/sponsors)
|
||||
* [Join Flextype International Translator Team](https://crowdin.com/project/flextype/invite)
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<a href="https://github.com/flextype/flextype/releases"><img alt="undefined" src="https://img.shields.io/github/release/flextype/flextype.svg?label=version"></a>
|
||||
<a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a>
|
||||
<a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/github/downloads/flextype/flextype/total.svg?colorB=blue" alt="Total downloads"></a>
|
||||
<a href="https://crowdin.com/project/flextype"><img src="https://d322cqt584bo4o.cloudfront.net/flextype/localized.svg" alt="Crowdin"></a>
|
||||
<a href="https://crowdin.com/project/flextype"><img src="https://d322cqt584bo4o.cloudfront.net/flextype/localized.svg" alt="Crowdin"></a>
|
||||
<a href="https://discordapp.com/invite/CCKPKVG"><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&colorB=728ADA&label=Discord%20Chat" alt="Discord"></a>
|
||||
</p>
|
||||
|
||||
|
@@ -118,7 +118,7 @@ class Entries
|
||||
/**
|
||||
* Get current entry
|
||||
*
|
||||
* $entry = Entries::getCurrentPage();
|
||||
* $entry = Entries::getCurrentEntry();
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
|
@@ -144,7 +144,7 @@ class Flextype
|
||||
*/
|
||||
private static function setConfig() : void
|
||||
{
|
||||
// Set empty site settings array
|
||||
// Set empty settings array
|
||||
Registry::set('settings', []);
|
||||
|
||||
// Set settings files path
|
||||
|
@@ -216,7 +216,7 @@ class Images
|
||||
* @param array $params Image params
|
||||
* @return string
|
||||
*/
|
||||
public static function getImageUrl($path, array $params)
|
||||
public static function getImageUrl(string $path, array $params) : string
|
||||
{
|
||||
if (file_exists(PATH['entries'] . '/' . $path)) {
|
||||
return Http::getBaseUrl() . '/site/cache/glide/' . Images::$server->makeImage($path, $params);
|
||||
@@ -237,7 +237,7 @@ class Images
|
||||
* @param array $attributes Image html attributes
|
||||
* @return string
|
||||
*/
|
||||
public static function getImage($path, array $params, array $attributes = [])
|
||||
public static function getImage(string $path, array $params, array $attributes = []) : string
|
||||
{
|
||||
if (file_exists(PATH['entries'] . '/' . $path)) {
|
||||
return '<img '.Html::attributes($attributes).' src="'. Images::getImageUrl($path, $params) .'">';
|
||||
|
Reference in New Issue
Block a user