Version Description
Download this release
Release Info
Developer | davidvongries |
Plugin | Kirki |
Version | 4.0.22 |
Comparing to | |
See all releases |
Code changes from version 4.0.21 to 4.0.22
- composer.lock +18 -18
- kirki.php +2 -2
- packages/composer/installed.json +21 -21
- packages/composer/installed.php +9 -9
- packages/kirki-framework/data-option/src/Option.php +5 -0
- packages/kirki-framework/module-css/src/CSS/Generator.php +11 -3
- packages/kirki-framework/module-postmessage/src/Postmessage.php +1 -1
- packages/kirki-framework/module-postmessage/src/postMessage.js +9 -2
- readme.txt +16 -20
composer.lock
CHANGED
@@ -1168,16 +1168,16 @@
|
|
1168 |
},
|
1169 |
{
|
1170 |
"name": "kirki-framework/data-option",
|
1171 |
-
"version": "v1.0.
|
1172 |
"source": {
|
1173 |
"type": "git",
|
1174 |
"url": "https://github.com/kirki-framework/data-option.git",
|
1175 |
-
"reference": "
|
1176 |
},
|
1177 |
"dist": {
|
1178 |
"type": "zip",
|
1179 |
-
"url": "https://api.github.com/repos/kirki-framework/data-option/zipball/
|
1180 |
-
"reference": "
|
1181 |
"shasum": ""
|
1182 |
},
|
1183 |
"require": {
|
@@ -1207,9 +1207,9 @@
|
|
1207 |
],
|
1208 |
"support": {
|
1209 |
"issues": "https://github.com/kirki-framework/data-option/issues",
|
1210 |
-
"source": "https://github.com/kirki-framework/data-option/tree/v1.0.
|
1211 |
},
|
1212 |
-
"time": "2022-
|
1213 |
},
|
1214 |
{
|
1215 |
"name": "kirki-framework/field",
|
@@ -1603,16 +1603,16 @@
|
|
1603 |
},
|
1604 |
{
|
1605 |
"name": "kirki-framework/module-css",
|
1606 |
-
"version": "v1.0.
|
1607 |
"source": {
|
1608 |
"type": "git",
|
1609 |
"url": "https://github.com/kirki-framework/module-css.git",
|
1610 |
-
"reference": "
|
1611 |
},
|
1612 |
"dist": {
|
1613 |
"type": "zip",
|
1614 |
-
"url": "https://api.github.com/repos/kirki-framework/module-css/zipball/
|
1615 |
-
"reference": "
|
1616 |
"shasum": ""
|
1617 |
},
|
1618 |
"require": {
|
@@ -1644,9 +1644,9 @@
|
|
1644 |
],
|
1645 |
"support": {
|
1646 |
"issues": "https://github.com/kirki-framework/module-css/issues",
|
1647 |
-
"source": "https://github.com/kirki-framework/module-css/tree/v1.0.
|
1648 |
},
|
1649 |
-
"time": "2022-02-
|
1650 |
},
|
1651 |
{
|
1652 |
"name": "kirki-framework/module-editor-styles",
|
@@ -1793,16 +1793,16 @@
|
|
1793 |
},
|
1794 |
{
|
1795 |
"name": "kirki-framework/module-postmessage",
|
1796 |
-
"version": "v1.0.
|
1797 |
"source": {
|
1798 |
"type": "git",
|
1799 |
"url": "https://github.com/kirki-framework/module-postMessage.git",
|
1800 |
-
"reference": "
|
1801 |
},
|
1802 |
"dist": {
|
1803 |
"type": "zip",
|
1804 |
-
"url": "https://api.github.com/repos/kirki-framework/module-postMessage/zipball/
|
1805 |
-
"reference": "
|
1806 |
"shasum": ""
|
1807 |
},
|
1808 |
"require": {
|
@@ -1835,9 +1835,9 @@
|
|
1835 |
],
|
1836 |
"support": {
|
1837 |
"issues": "https://github.com/kirki-framework/module-postMessage/issues",
|
1838 |
-
"source": "https://github.com/kirki-framework/module-postMessage/tree/v1.0.
|
1839 |
},
|
1840 |
-
"time": "2022-02-
|
1841 |
},
|
1842 |
{
|
1843 |
"name": "kirki-framework/module-preset",
|
1168 |
},
|
1169 |
{
|
1170 |
"name": "kirki-framework/data-option",
|
1171 |
+
"version": "v1.0.3",
|
1172 |
"source": {
|
1173 |
"type": "git",
|
1174 |
"url": "https://github.com/kirki-framework/data-option.git",
|
1175 |
+
"reference": "9a54f5c553e2f1e84f4ff620e271bfc16ee49ced"
|
1176 |
},
|
1177 |
"dist": {
|
1178 |
"type": "zip",
|
1179 |
+
"url": "https://api.github.com/repos/kirki-framework/data-option/zipball/9a54f5c553e2f1e84f4ff620e271bfc16ee49ced",
|
1180 |
+
"reference": "9a54f5c553e2f1e84f4ff620e271bfc16ee49ced",
|
1181 |
"shasum": ""
|
1182 |
},
|
1183 |
"require": {
|
1207 |
],
|
1208 |
"support": {
|
1209 |
"issues": "https://github.com/kirki-framework/data-option/issues",
|
1210 |
+
"source": "https://github.com/kirki-framework/data-option/tree/v1.0.3"
|
1211 |
},
|
1212 |
+
"time": "2022-02-17T14:41:24+00:00"
|
1213 |
},
|
1214 |
{
|
1215 |
"name": "kirki-framework/field",
|
1603 |
},
|
1604 |
{
|
1605 |
"name": "kirki-framework/module-css",
|
1606 |
+
"version": "v1.0.10",
|
1607 |
"source": {
|
1608 |
"type": "git",
|
1609 |
"url": "https://github.com/kirki-framework/module-css.git",
|
1610 |
+
"reference": "93b97d0e6b09fe4953c69a8ba9bc06884af91b27"
|
1611 |
},
|
1612 |
"dist": {
|
1613 |
"type": "zip",
|
1614 |
+
"url": "https://api.github.com/repos/kirki-framework/module-css/zipball/93b97d0e6b09fe4953c69a8ba9bc06884af91b27",
|
1615 |
+
"reference": "93b97d0e6b09fe4953c69a8ba9bc06884af91b27",
|
1616 |
"shasum": ""
|
1617 |
},
|
1618 |
"require": {
|
1644 |
],
|
1645 |
"support": {
|
1646 |
"issues": "https://github.com/kirki-framework/module-css/issues",
|
1647 |
+
"source": "https://github.com/kirki-framework/module-css/tree/v1.0.10"
|
1648 |
},
|
1649 |
+
"time": "2022-02-17T11:36:45+00:00"
|
1650 |
},
|
1651 |
{
|
1652 |
"name": "kirki-framework/module-editor-styles",
|
1793 |
},
|
1794 |
{
|
1795 |
"name": "kirki-framework/module-postmessage",
|
1796 |
+
"version": "v1.0.6",
|
1797 |
"source": {
|
1798 |
"type": "git",
|
1799 |
"url": "https://github.com/kirki-framework/module-postMessage.git",
|
1800 |
+
"reference": "d543c8d34e7d6fc8c2ce4805d8fc940070a54691"
|
1801 |
},
|
1802 |
"dist": {
|
1803 |
"type": "zip",
|
1804 |
+
"url": "https://api.github.com/repos/kirki-framework/module-postMessage/zipball/d543c8d34e7d6fc8c2ce4805d8fc940070a54691",
|
1805 |
+
"reference": "d543c8d34e7d6fc8c2ce4805d8fc940070a54691",
|
1806 |
"shasum": ""
|
1807 |
},
|
1808 |
"require": {
|
1835 |
],
|
1836 |
"support": {
|
1837 |
"issues": "https://github.com/kirki-framework/module-postMessage/issues",
|
1838 |
+
"source": "https://github.com/kirki-framework/module-postMessage/tree/v1.0.6"
|
1839 |
},
|
1840 |
+
"time": "2022-02-17T12:30:43+00:00"
|
1841 |
},
|
1842 |
{
|
1843 |
"name": "kirki-framework/module-preset",
|
kirki.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The Ultimate WordPress Customizer Framework
|
6 |
* Author: David Vongries
|
7 |
* Author URI: https://davidvongries.com/
|
8 |
-
* Version: 4.0.
|
9 |
* Text Domain: kirki
|
10 |
* Requires at least: 5.2
|
11 |
* Requires PHP: 7.0
|
@@ -44,7 +44,7 @@ require_once __DIR__ . '/inc/bootstrap.php'; // phpcs:ignore WPThemeReview.CoreF
|
|
44 |
|
45 |
// Define the KIRKI_VERSION constant.
|
46 |
if ( ! defined( 'KIRKI_VERSION' ) ) {
|
47 |
-
define( 'KIRKI_VERSION', '4.0.
|
48 |
}
|
49 |
|
50 |
if ( ! function_exists( 'Kirki' ) ) {
|
5 |
* Description: The Ultimate WordPress Customizer Framework
|
6 |
* Author: David Vongries
|
7 |
* Author URI: https://davidvongries.com/
|
8 |
+
* Version: 4.0.22
|
9 |
* Text Domain: kirki
|
10 |
* Requires at least: 5.2
|
11 |
* Requires PHP: 7.0
|
44 |
|
45 |
// Define the KIRKI_VERSION constant.
|
46 |
if ( ! defined( 'KIRKI_VERSION' ) ) {
|
47 |
+
define( 'KIRKI_VERSION', '4.0.22' );
|
48 |
}
|
49 |
|
50 |
if ( ! function_exists( 'Kirki' ) ) {
|
packages/composer/installed.json
CHANGED
@@ -1234,23 +1234,23 @@
|
|
1234 |
},
|
1235 |
{
|
1236 |
"name": "kirki-framework/data-option",
|
1237 |
-
"version": "v1.0.
|
1238 |
-
"version_normalized": "1.0.
|
1239 |
"source": {
|
1240 |
"type": "git",
|
1241 |
"url": "https://github.com/kirki-framework/data-option.git",
|
1242 |
-
"reference": "
|
1243 |
},
|
1244 |
"dist": {
|
1245 |
"type": "zip",
|
1246 |
-
"url": "https://api.github.com/repos/kirki-framework/data-option/zipball/
|
1247 |
-
"reference": "
|
1248 |
"shasum": ""
|
1249 |
},
|
1250 |
"require": {
|
1251 |
"php": ">=7.0"
|
1252 |
},
|
1253 |
-
"time": "2022-
|
1254 |
"type": "library",
|
1255 |
"installation-source": "dist",
|
1256 |
"autoload": {
|
@@ -1276,7 +1276,7 @@
|
|
1276 |
],
|
1277 |
"support": {
|
1278 |
"issues": "https://github.com/kirki-framework/data-option/issues",
|
1279 |
-
"source": "https://github.com/kirki-framework/data-option/tree/v1.0.
|
1280 |
},
|
1281 |
"install-path": "../kirki-framework/data-option"
|
1282 |
},
|
@@ -1696,24 +1696,24 @@
|
|
1696 |
},
|
1697 |
{
|
1698 |
"name": "kirki-framework/module-css",
|
1699 |
-
"version": "v1.0.
|
1700 |
-
"version_normalized": "1.0.
|
1701 |
"source": {
|
1702 |
"type": "git",
|
1703 |
"url": "https://github.com/kirki-framework/module-css.git",
|
1704 |
-
"reference": "
|
1705 |
},
|
1706 |
"dist": {
|
1707 |
"type": "zip",
|
1708 |
-
"url": "https://api.github.com/repos/kirki-framework/module-css/zipball/
|
1709 |
-
"reference": "
|
1710 |
"shasum": ""
|
1711 |
},
|
1712 |
"require": {
|
1713 |
"kirki-framework/util": "*",
|
1714 |
"php": ">=7.0"
|
1715 |
},
|
1716 |
-
"time": "2022-02-
|
1717 |
"type": "library",
|
1718 |
"installation-source": "dist",
|
1719 |
"autoload": {
|
@@ -1740,7 +1740,7 @@
|
|
1740 |
],
|
1741 |
"support": {
|
1742 |
"issues": "https://github.com/kirki-framework/module-css/issues",
|
1743 |
-
"source": "https://github.com/kirki-framework/module-css/tree/v1.0.
|
1744 |
},
|
1745 |
"install-path": "../kirki-framework/module-css"
|
1746 |
},
|
@@ -1898,17 +1898,17 @@
|
|
1898 |
},
|
1899 |
{
|
1900 |
"name": "kirki-framework/module-postmessage",
|
1901 |
-
"version": "v1.0.
|
1902 |
-
"version_normalized": "1.0.
|
1903 |
"source": {
|
1904 |
"type": "git",
|
1905 |
"url": "https://github.com/kirki-framework/module-postMessage.git",
|
1906 |
-
"reference": "
|
1907 |
},
|
1908 |
"dist": {
|
1909 |
"type": "zip",
|
1910 |
-
"url": "https://api.github.com/repos/kirki-framework/module-postMessage/zipball/
|
1911 |
-
"reference": "
|
1912 |
"shasum": ""
|
1913 |
},
|
1914 |
"require": {
|
@@ -1916,7 +1916,7 @@
|
|
1916 |
"kirki-framework/util": "*",
|
1917 |
"php": ">=7.0"
|
1918 |
},
|
1919 |
-
"time": "2022-02-
|
1920 |
"type": "library",
|
1921 |
"installation-source": "dist",
|
1922 |
"autoload": {
|
@@ -1943,7 +1943,7 @@
|
|
1943 |
],
|
1944 |
"support": {
|
1945 |
"issues": "https://github.com/kirki-framework/module-postMessage/issues",
|
1946 |
-
"source": "https://github.com/kirki-framework/module-postMessage/tree/v1.0.
|
1947 |
},
|
1948 |
"install-path": "../kirki-framework/module-postmessage"
|
1949 |
},
|
1234 |
},
|
1235 |
{
|
1236 |
"name": "kirki-framework/data-option",
|
1237 |
+
"version": "v1.0.3",
|
1238 |
+
"version_normalized": "1.0.3.0",
|
1239 |
"source": {
|
1240 |
"type": "git",
|
1241 |
"url": "https://github.com/kirki-framework/data-option.git",
|
1242 |
+
"reference": "9a54f5c553e2f1e84f4ff620e271bfc16ee49ced"
|
1243 |
},
|
1244 |
"dist": {
|
1245 |
"type": "zip",
|
1246 |
+
"url": "https://api.github.com/repos/kirki-framework/data-option/zipball/9a54f5c553e2f1e84f4ff620e271bfc16ee49ced",
|
1247 |
+
"reference": "9a54f5c553e2f1e84f4ff620e271bfc16ee49ced",
|
1248 |
"shasum": ""
|
1249 |
},
|
1250 |
"require": {
|
1251 |
"php": ">=7.0"
|
1252 |
},
|
1253 |
+
"time": "2022-02-17T14:41:24+00:00",
|
1254 |
"type": "library",
|
1255 |
"installation-source": "dist",
|
1256 |
"autoload": {
|
1276 |
],
|
1277 |
"support": {
|
1278 |
"issues": "https://github.com/kirki-framework/data-option/issues",
|
1279 |
+
"source": "https://github.com/kirki-framework/data-option/tree/v1.0.3"
|
1280 |
},
|
1281 |
"install-path": "../kirki-framework/data-option"
|
1282 |
},
|
1696 |
},
|
1697 |
{
|
1698 |
"name": "kirki-framework/module-css",
|
1699 |
+
"version": "v1.0.10",
|
1700 |
+
"version_normalized": "1.0.10.0",
|
1701 |
"source": {
|
1702 |
"type": "git",
|
1703 |
"url": "https://github.com/kirki-framework/module-css.git",
|
1704 |
+
"reference": "93b97d0e6b09fe4953c69a8ba9bc06884af91b27"
|
1705 |
},
|
1706 |
"dist": {
|
1707 |
"type": "zip",
|
1708 |
+
"url": "https://api.github.com/repos/kirki-framework/module-css/zipball/93b97d0e6b09fe4953c69a8ba9bc06884af91b27",
|
1709 |
+
"reference": "93b97d0e6b09fe4953c69a8ba9bc06884af91b27",
|
1710 |
"shasum": ""
|
1711 |
},
|
1712 |
"require": {
|
1713 |
"kirki-framework/util": "*",
|
1714 |
"php": ">=7.0"
|
1715 |
},
|
1716 |
+
"time": "2022-02-17T11:36:45+00:00",
|
1717 |
"type": "library",
|
1718 |
"installation-source": "dist",
|
1719 |
"autoload": {
|
1740 |
],
|
1741 |
"support": {
|
1742 |
"issues": "https://github.com/kirki-framework/module-css/issues",
|
1743 |
+
"source": "https://github.com/kirki-framework/module-css/tree/v1.0.10"
|
1744 |
},
|
1745 |
"install-path": "../kirki-framework/module-css"
|
1746 |
},
|
1898 |
},
|
1899 |
{
|
1900 |
"name": "kirki-framework/module-postmessage",
|
1901 |
+
"version": "v1.0.6",
|
1902 |
+
"version_normalized": "1.0.6.0",
|
1903 |
"source": {
|
1904 |
"type": "git",
|
1905 |
"url": "https://github.com/kirki-framework/module-postMessage.git",
|
1906 |
+
"reference": "d543c8d34e7d6fc8c2ce4805d8fc940070a54691"
|
1907 |
},
|
1908 |
"dist": {
|
1909 |
"type": "zip",
|
1910 |
+
"url": "https://api.github.com/repos/kirki-framework/module-postMessage/zipball/d543c8d34e7d6fc8c2ce4805d8fc940070a54691",
|
1911 |
+
"reference": "d543c8d34e7d6fc8c2ce4805d8fc940070a54691",
|
1912 |
"shasum": ""
|
1913 |
},
|
1914 |
"require": {
|
1916 |
"kirki-framework/util": "*",
|
1917 |
"php": ">=7.0"
|
1918 |
},
|
1919 |
+
"time": "2022-02-17T12:30:43+00:00",
|
1920 |
"type": "library",
|
1921 |
"installation-source": "dist",
|
1922 |
"autoload": {
|
1943 |
],
|
1944 |
"support": {
|
1945 |
"issues": "https://github.com/kirki-framework/module-postMessage/issues",
|
1946 |
+
"source": "https://github.com/kirki-framework/module-postMessage/tree/v1.0.6"
|
1947 |
},
|
1948 |
"install-path": "../kirki-framework/module-postmessage"
|
1949 |
},
|
packages/composer/installed.php
CHANGED
@@ -227,12 +227,12 @@
|
|
227 |
'dev_requirement' => false,
|
228 |
),
|
229 |
'kirki-framework/data-option' => array(
|
230 |
-
'pretty_version' => 'v1.0.
|
231 |
-
'version' => '1.0.
|
232 |
'type' => 'library',
|
233 |
'install_path' => __DIR__ . '/../kirki-framework/data-option',
|
234 |
'aliases' => array(),
|
235 |
-
'reference' => '
|
236 |
'dev_requirement' => false,
|
237 |
),
|
238 |
'kirki-framework/field' => array(
|
@@ -317,12 +317,12 @@
|
|
317 |
'dev_requirement' => false,
|
318 |
),
|
319 |
'kirki-framework/module-css' => array(
|
320 |
-
'pretty_version' => 'v1.0.
|
321 |
-
'version' => '1.0.
|
322 |
'type' => 'library',
|
323 |
'install_path' => __DIR__ . '/../kirki-framework/module-css',
|
324 |
'aliases' => array(),
|
325 |
-
'reference' => '
|
326 |
'dev_requirement' => false,
|
327 |
),
|
328 |
'kirki-framework/module-editor-styles' => array(
|
@@ -353,12 +353,12 @@
|
|
353 |
'dev_requirement' => false,
|
354 |
),
|
355 |
'kirki-framework/module-postmessage' => array(
|
356 |
-
'pretty_version' => 'v1.0.
|
357 |
-
'version' => '1.0.
|
358 |
'type' => 'library',
|
359 |
'install_path' => __DIR__ . '/../kirki-framework/module-postmessage',
|
360 |
'aliases' => array(),
|
361 |
-
'reference' => '
|
362 |
'dev_requirement' => false,
|
363 |
),
|
364 |
'kirki-framework/module-preset' => array(
|
227 |
'dev_requirement' => false,
|
228 |
),
|
229 |
'kirki-framework/data-option' => array(
|
230 |
+
'pretty_version' => 'v1.0.3',
|
231 |
+
'version' => '1.0.3.0',
|
232 |
'type' => 'library',
|
233 |
'install_path' => __DIR__ . '/../kirki-framework/data-option',
|
234 |
'aliases' => array(),
|
235 |
+
'reference' => '9a54f5c553e2f1e84f4ff620e271bfc16ee49ced',
|
236 |
'dev_requirement' => false,
|
237 |
),
|
238 |
'kirki-framework/field' => array(
|
317 |
'dev_requirement' => false,
|
318 |
),
|
319 |
'kirki-framework/module-css' => array(
|
320 |
+
'pretty_version' => 'v1.0.10',
|
321 |
+
'version' => '1.0.10.0',
|
322 |
'type' => 'library',
|
323 |
'install_path' => __DIR__ . '/../kirki-framework/module-css',
|
324 |
'aliases' => array(),
|
325 |
+
'reference' => '93b97d0e6b09fe4953c69a8ba9bc06884af91b27',
|
326 |
'dev_requirement' => false,
|
327 |
),
|
328 |
'kirki-framework/module-editor-styles' => array(
|
353 |
'dev_requirement' => false,
|
354 |
),
|
355 |
'kirki-framework/module-postmessage' => array(
|
356 |
+
'pretty_version' => 'v1.0.6',
|
357 |
+
'version' => '1.0.6.0',
|
358 |
'type' => 'library',
|
359 |
'install_path' => __DIR__ . '/../kirki-framework/module-postmessage',
|
360 |
'aliases' => array(),
|
361 |
+
'reference' => 'd543c8d34e7d6fc8c2ce4805d8fc940070a54691',
|
362 |
'dev_requirement' => false,
|
363 |
),
|
364 |
'kirki-framework/module-preset' => array(
|
packages/kirki-framework/data-option/src/Option.php
CHANGED
@@ -59,6 +59,11 @@ class Option {
|
|
59 |
$parts = \explode( '[', $option );
|
60 |
$value = get_option( $parts[0], [] );
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
foreach ( $parts as $key => $part ) {
|
63 |
/**
|
64 |
* Skip the 1st item, it's already been dealt with
|
59 |
$parts = \explode( '[', $option );
|
60 |
$value = get_option( $parts[0], [] );
|
61 |
|
62 |
+
// If there's no value, return the default.
|
63 |
+
if ( empty( $value ) ) {
|
64 |
+
return $default;
|
65 |
+
}
|
66 |
+
|
67 |
foreach ( $parts as $key => $part ) {
|
68 |
/**
|
69 |
* Skip the 1st item, it's already been dealt with
|
packages/kirki-framework/module-css/src/CSS/Generator.php
CHANGED
@@ -156,9 +156,17 @@ final class Generator {
|
|
156 |
}
|
157 |
|
158 |
// Get the value of this field.
|
159 |
-
$option_type
|
160 |
-
$default
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
// Find the class that will handle the outpout for this field.
|
164 |
$classname = '\Kirki\Module\CSS\Output';
|
156 |
}
|
157 |
|
158 |
// Get the value of this field.
|
159 |
+
$option_type = ( isset( $field['option_type'] ) ) ? $field['option_type'] : 'theme_mod';
|
160 |
+
$default = ( isset( $field['default'] ) ) ? $field['default'] : '';
|
161 |
+
$setting_name = $field['settings'];
|
162 |
+
|
163 |
+
if ( 'option' === $option_type ) {
|
164 |
+
if ( ! empty( $field['option_name'] ) && 0 !== stripos( $setting_name, $field['option_name'] . '[' ) ) {
|
165 |
+
$setting_name = $field['option_name'] . '[' . $field['settings'] . ']';
|
166 |
+
}
|
167 |
+
}
|
168 |
+
|
169 |
+
self::$value = apply_filters( 'kirki_get_value', get_theme_mod( $field['settings'], $default ), $setting_name, $default, $option_type );
|
170 |
|
171 |
// Find the class that will handle the outpout for this field.
|
172 |
$classname = '\Kirki\Module\CSS\Output';
|
packages/kirki-framework/module-postmessage/src/Postmessage.php
CHANGED
@@ -95,7 +95,7 @@ class Postmessage {
|
|
95 |
*/
|
96 |
public function postmessage() {
|
97 |
|
98 |
-
wp_enqueue_script( 'kirki_auto_postmessage', URL::get_from_path( __DIR__ . '/postMessage.js' ), [ 'jquery', 'customize-preview', 'wp-hooks' ], '
|
99 |
|
100 |
$fields = $this->fields;
|
101 |
|
95 |
*/
|
96 |
public function postmessage() {
|
97 |
|
98 |
+
wp_enqueue_script( 'kirki_auto_postmessage', URL::get_from_path( __DIR__ . '/postMessage.js' ), [ 'jquery', 'customize-preview', 'wp-hooks' ], '1.0.6', true );
|
99 |
|
100 |
$fields = $this->fields;
|
101 |
|
packages/kirki-framework/module-postmessage/src/postMessage.js
CHANGED
@@ -340,7 +340,13 @@ jQuery( document ).ready( function() {
|
|
340 |
} );
|
341 |
kirkiPostMessage.styleTag.addData( field.settings, styles );*/
|
342 |
|
343 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
value.bind( function( newVal ) {
|
345 |
styles = '';
|
346 |
_.each( field.js_vars, function( output ) {
|
@@ -353,7 +359,8 @@ jQuery( document ).ready( function() {
|
|
353 |
kirkiPostMessage[ output.function ].fromOutput( output, newVal, field.type );
|
354 |
}
|
355 |
} );
|
356 |
-
|
|
|
357 |
} );
|
358 |
} );
|
359 |
} );
|
340 |
} );
|
341 |
kirkiPostMessage.styleTag.addData( field.settings, styles );*/
|
342 |
|
343 |
+
var fieldSetting = field.settings;
|
344 |
+
|
345 |
+
if ("option" === field.option_type && field.option_name && 0 !== fieldSetting.indexOf(field.option_name + '[')) {
|
346 |
+
fieldSetting = field.option_name + "[" + fieldSetting + "]";
|
347 |
+
}
|
348 |
+
|
349 |
+
wp.customize( fieldSetting, function( value ) {
|
350 |
value.bind( function( newVal ) {
|
351 |
styles = '';
|
352 |
_.each( field.js_vars, function( output ) {
|
359 |
kirkiPostMessage[ output.function ].fromOutput( output, newVal, field.type );
|
360 |
}
|
361 |
} );
|
362 |
+
|
363 |
+
kirkiPostMessage.styleTag.addData(fieldSetting, styles);
|
364 |
} );
|
365 |
} );
|
366 |
} );
|
readme.txt
CHANGED
@@ -3,21 +3,23 @@ Contributors: davidvongries, aristath, dannycooper, wplemon, igmoweb
|
|
3 |
Tags: customizer, options framework, theme, mods, toolkit, gutenberg
|
4 |
Requires at least: 5.2
|
5 |
Tested up to: 5.9
|
6 |
-
Stable tag: 4.0.
|
7 |
License: MIT
|
8 |
License URI: https://opensource.org/licenses/MIT
|
9 |
|
10 |
-
The
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
[![Build Status](https://travis-ci.org/aristath/kirki.svg?branch=develop)](https://travis-ci.org/aristath/kirki) [![Code Climate](https://codeclimate.com/github/aristath/kirki/badges/gpa.svg)](https://codeclimate.com/github/aristath/kirki) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/66d6d8b6a4654cd18686ed1cd9f1bfb3)](https://www.codacy.com/app/aristath/kirki?utm_source=github.com&utm_medium=referral&utm_content=aristath/kirki&utm_campaign=Badge_Grade) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/aristath/kirki/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/aristath/kirki/?branch=develop)
|
15 |
|
|
|
|
|
16 |
[Kirki](https://kirki.org/?utm_source=repo&utm_medium=description&utm_campaign=kirki) allows theme developers to build themes quicker & more easily.
|
17 |
|
18 |
With over **30 custom controls** ranging from simple sliders to complex typography controls with Google-Fonts integration and features like automatic CSS & `postMessage` script generation, Kirki makes theme development a breeze.
|
19 |
|
20 |
-
### Features ###
|
21 |
* Increased Performance
|
22 |
* Simplified API
|
23 |
* Automatic CSS Generation
|
@@ -28,8 +30,7 @@ With over **30 custom controls** ranging from simple sliders to complex typograp
|
|
28 |
* Improved Page Speed
|
29 |
* & more!
|
30 |
|
31 |
-
### Controls ###
|
32 |
-
|
33 |
* [Background Customizer Control](https://kirki.org/docs/controls/background)
|
34 |
* [Code Customizer Control](https://kirki.org/docs/controls/code)
|
35 |
* [Checkbox Customizer Control](https://kirki.org/docs/controls/checkbox)
|
@@ -62,30 +63,25 @@ With over **30 custom controls** ranging from simple sliders to complex typograp
|
|
62 |
* [Typography Customizer Control](https://kirki.org/docs/controls/typography)
|
63 |
* [Upload Customizer Control](https://kirki.org/docs/controls/upload)
|
64 |
|
65 |
-
###
|
66 |
-
|
67 |
-
[Page Builder Framework](https://wp-pagebuilderframework.com?utm_source=kirki&utm_medium=repo&utm_campaign=wpbf)'s customizer settings are a prime example of what can be achieved with Kirki.
|
68 |
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
-
|
72 |
|
|
|
73 |
You can find detailed documentation on how to use Kirki on [kirki.org](https://kirki.org/?utm_source=repo&utm_medium=description&utm_campaign=kirki)
|
74 |
|
75 |
-
### Kirki PRO ###
|
76 |
-
|
77 |
-
Kirki PRO is currently in development. You can [sign up for the waiting list](https://kirki.org/pricing/?utm_source=repo&utm_medium=description&utm_campaign=kirki) here to be notified about updates.
|
78 |
-
|
79 |
-
### Disclaimer ###
|
80 |
-
|
81 |
-
Theme developers should be familiar with the Customizer API before starting to build a 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.
|
82 |
-
|
83 |
== Installation ==
|
84 |
-
|
85 |
Simply install as a normal WordPress plugin and activate.
|
86 |
|
87 |
If you want to integrate Kirki in your theme or plugin, please read the instructions on [our documentation site](https://kirki.org/docs/integration).
|
88 |
|
89 |
== Changelog ==
|
90 |
-
|
91 |
[See the changelogs here](https://github.com/kirki-framework/kirki/blob/master/CHANGELOG.md).
|
3 |
Tags: customizer, options framework, theme, mods, toolkit, gutenberg
|
4 |
Requires at least: 5.2
|
5 |
Tested up to: 5.9
|
6 |
+
Stable tag: 4.0.22
|
7 |
License: MIT
|
8 |
License URI: https://opensource.org/licenses/MIT
|
9 |
|
10 |
+
The Ultimate Customizer Framework for WordPress Theme Developers
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
[![Build Status](https://travis-ci.org/aristath/kirki.svg?branch=develop)](https://travis-ci.org/aristath/kirki) [![Code Climate](https://codeclimate.com/github/aristath/kirki/badges/gpa.svg)](https://codeclimate.com/github/aristath/kirki) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/66d6d8b6a4654cd18686ed1cd9f1bfb3)](https://www.codacy.com/app/aristath/kirki?utm_source=github.com&utm_medium=referral&utm_content=aristath/kirki&utm_campaign=Badge_Grade) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/aristath/kirki/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/aristath/kirki/?branch=develop)
|
15 |
|
16 |
+
**NEW - [Kirki PRO](https://kirki.org/extensions/?utm_source=repo&utm_medium=description&utm_campaign=kirki) is now available!**
|
17 |
+
|
18 |
[Kirki](https://kirki.org/?utm_source=repo&utm_medium=description&utm_campaign=kirki) allows theme developers to build themes quicker & more easily.
|
19 |
|
20 |
With over **30 custom controls** ranging from simple sliders to complex typography controls with Google-Fonts integration and features like automatic CSS & `postMessage` script generation, Kirki makes theme development a breeze.
|
21 |
|
22 |
+
### Features ✅ ###
|
23 |
* Increased Performance
|
24 |
* Simplified API
|
25 |
* Automatic CSS Generation
|
30 |
* Improved Page Speed
|
31 |
* & more!
|
32 |
|
33 |
+
### Controls 🎛️ ###
|
|
|
34 |
* [Background Customizer Control](https://kirki.org/docs/controls/background)
|
35 |
* [Code Customizer Control](https://kirki.org/docs/controls/code)
|
36 |
* [Checkbox Customizer Control](https://kirki.org/docs/controls/checkbox)
|
63 |
* [Typography Customizer Control](https://kirki.org/docs/controls/typography)
|
64 |
* [Upload Customizer Control](https://kirki.org/docs/controls/upload)
|
65 |
|
66 |
+
### Kirki PRO Extensions 🏆 ###
|
67 |
+
Create the WordPress experience your customers deserve with [Kirki PRO Extensions](https://kirki.org/extensions/?utm_source=repo&utm_medium=description&utm_campaign=kirki).
|
|
|
68 |
|
69 |
+
## PRO Features ##
|
70 |
+
* Tabs
|
71 |
+
* Responsive Controls
|
72 |
+
* Input Slider
|
73 |
+
* Headlines & Dividers
|
74 |
+
* Margin & Padding Controls
|
75 |
|
76 |
+
Learn more about [Kirki PRO](https://kirki.org/extensions/?utm_source=repo&utm_medium=description&utm_campaign=kirki).
|
77 |
|
78 |
+
### Documentation 📖 ###
|
79 |
You can find detailed documentation on how to use Kirki on [kirki.org](https://kirki.org/?utm_source=repo&utm_medium=description&utm_campaign=kirki)
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
== Installation ==
|
|
|
82 |
Simply install as a normal WordPress plugin and activate.
|
83 |
|
84 |
If you want to integrate Kirki in your theme or plugin, please read the instructions on [our documentation site](https://kirki.org/docs/integration).
|
85 |
|
86 |
== Changelog ==
|
|
|
87 |
[See the changelogs here](https://github.com/kirki-framework/kirki/blob/master/CHANGELOG.md).
|