Skip to content

Commit

Permalink
Merge pull request #2057 from aristath/develop
Browse files Browse the repository at this point in the history
3.0.36
  • Loading branch information
aristath authored Feb 17, 2019
2 parents d5676d5 + 449c95b commit 511be5e
Show file tree
Hide file tree
Showing 212 changed files with 2,553 additions and 2,764 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
vendor/
node_modules/
assets/vendor/
*.min.js
controls/js/script.js
tests/
modules/webfont-loader/vendor-typekit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ build/logs
###################
.phpcs.xml
phpcs.xml
.css.map
7 changes: 4 additions & 3 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

<file>.</file>

<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>docs/</exclude-pattern>

<!-- Include the WordPress ruleset. -->
<rule ref="WordPress"/>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Aristeides Stathopoulos
Copyright (c) 2019 Ari Stathopoulos (@aristath)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
42 changes: 38 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Kirki #
**Contributors:** [aristath](https://profiles.wordpress.org/aristath), [fovoc](https://profiles.wordpress.org/fovoc), [igmoweb](https://profiles.wordpress.org/igmoweb)
**Contributors:** [aristath](https://profiles.wordpress.org/aristath), [wplemon](https://profiles.wordpress.org/wplemon), [igmoweb](https://profiles.wordpress.org/igmoweb)
**Tags:** customizer,options framework, theme, mods, toolkit, gutenberg
**Donate link:** https://aristath.github.io/donate
**Requires at least:** 4.9
**Tested up to:** 5.0
**Stable tag:** 3.0.35.3
**Stable tag:** 3.0.36
**License:** MIT
**License URI:** https://opensource.org/licenses/MIT

Expand All @@ -19,9 +19,16 @@ Using Kirki theme developers can create rich experiences for the WordPress Custo

Included are more than 30 custom control types ranging from simple sliders to complex typography controls with Google-Fonts integration, automatic CSS generation, `postMessage` scripts automatically generated, tooltips and a lot of extras that make developing themes a lot faster for developers and meaningful for users.

We advise you to familiarise yourself with the Customizer API before you start writing your theme using Kirki. An excellent handbook for the WordPress Customizer can be found on the [developer.wordpress.org](https://developer.wordpress.org/themes/customize-api/) website.
Premium controls are also available for premium themes:

You can find detailed documentation on how to use Kirki on [https://aristath.github.io/kirki/](https://aristath.github.io/kirki/)
* [Kirki WCAG Text Colorpicker](https://wplemon.com/downloads/kirki-wcag-text-colorpicker/)
* [Kirki WCAG Links Colorpicker](https://wplemon.com/downloads/kirki-wcag-link-colorpicker/)
* [Kirki Box Model](https://wplemon.com/downloads/kirki-box-model/)
* [Kirki Box Shadow](https://wplemon.com/downloads/kirki-box-shadow/)

Theme developers should be familiar with the Customizer API before you start writing your theme using Kirki. An excellent handbook for the WordPress Customizer can be found on the [developer.wordpress.org](https://developer.wordpress.org/themes/customize-api/) website.

You can find detailed documentation on how to use Kirki on [aristath.github.io/kirki/](https://aristath.github.io/kirki/)

[Development and issues on github](https://github.com/aristath/kirki).

Expand All @@ -33,6 +40,33 @@ If you want to integrate Kirki in your theme or plugin, please read the instruct

## Changelog ##

### 3.0.36 ###

Feb. 17, 2019, dev time > 100h

This updates represents a big performance improvement both for the frontend and the customizer.
In the frontend the google-fonts are now loaded more efficiently and the `font-display` property was added to `@font-face` CSS from the google API responses.
In the customizer the `postMessage` module was completely rewritten.

* Fix: `active_callback` argument for `dropdown-pages` control. [#2055](https://github.com/aristath/kirki/issues/2055)
* Fix: `color ` control issues when inside a repeater. [#2059](https://github.com/aristath/kirki/issues/2059)
* Fix: Updated Google Fonts
* Fix: No longer enqueueing an empty stylesheet in order to add styles inline.
* Fix: Gutenberg implementation improvements.
* New: Google Fonts are now embedded inside the dynamic-css instead of using the webfont-loader script when not in the customizer.
* New: Google Fonts are now always used locally when possible, the google-CDN is only used as a fallback.
* New: Performance improvement by using `font-display:swap` for google-fonts.
* New: Added `kirki_googlefonts_font_display` filter.
* New: Added a new `link` section-type.
* New: Completely refactored the `postMessage` module. The new implementation is JS-based instead of PHP and is a lot more performant.
* New: Added telemetry module. See [aristath.github.io/kirki/docs/modules/telemetry](https://aristath.github.io/kirki/docs/modules/telemetry.html) for details.
* New: Improved CSS loading method. Styles are now added inline.
* New: Introduced a `kirki_output_inline_styles` filter - can be used by themes that want to enqueue a dynamic stylesheet with a URL `example.com/?action=kirki-styles` instead of the inline method.
* Deprecated: Removed the "host locally" option from typography controls. This is now the default behaviour and significantly improves performance. Option is no longer necessary.
* Deprecated: Removed the `Kirki_CSS_To_File` class.
* Reprecated: Removed the `Kirki_Modules_Webfonts_Local` class.
* Deprecated: Removed the `Kirki_Fonts_Google_Local` class.

### 3.0.35.3 ###

Dec. 26, 2018, dev time: 1h
Expand Down
Empty file removed assets/css/kirki-styles.css
Empty file.
46 changes: 19 additions & 27 deletions assets/vendor/selectWoo/kirki.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion assets/vendor/selectWoo/kirki.css.map

This file was deleted.

8 changes: 4 additions & 4 deletions class-kirki-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* @package Kirki
* @category Core
* @author Aristeides Stathopoulos
* @copyright Copyright (c) 2017, Aristeides Stathopoulos
* @author Ari Stathopoulos (@aristath)
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
Expand Down Expand Up @@ -55,7 +55,7 @@ protected function autoload( $class_name ) {

// Check if we've got it cached and ready.
if ( isset( $this->cached_paths[ $class_name ] ) && file_exists( $this->cached_paths[ $class_name ] ) ) {
include_once $this->cached_paths[ $class_name ];
include_once $this->cached_paths[ $class_name ]; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude
return;
}

Expand All @@ -65,7 +65,7 @@ protected function autoload( $class_name ) {
$path = wp_normalize_path( $path );
if ( file_exists( $path ) ) {
$this->cached_paths[ $class_name ] = $path;
include_once $path;
include_once $path; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude
return;
}
}
Expand Down
10 changes: 1 addition & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,9 @@
"email": "[email protected]",
"homepage": "https://aristath.github.io",
"role":"Developer"
},
{
"name": "fovoc",
"email": "[email protected]",
"homepage": "https://github.com/fovoc",
"role":"Developer"
}
],
"autoload": {
"files": ["kirki.php"]
},
"include-path": [".", "core"],
"require": {
"php": ">=5.2"
},
Expand Down
4 changes: 2 additions & 2 deletions controls/class-kirki-controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
* @copyright Copyright (c) 2017, Aristeides Stathopoulos
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
* @license https://opensource.org/licenses/MIT
* @since 3.0.17
*/
Expand Down Expand Up @@ -64,7 +64,7 @@ public function underscore_templates() {
foreach ( $this->templates as $template ) {
if ( file_exists( $this->views_path . $template . '.php' ) ) {
echo '<script type="text/html" id="tmpl-kirki-input-' . esc_attr( $template ) . '">';
include $this->views_path . $template . '.php';
include $this->views_path . $template . '.php'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude
echo '</script>';
}
}
Expand Down
Loading

0 comments on commit 511be5e

Please sign in to comment.