Changeset 3406713
- Timestamp:
- 12/01/2025 10:39:17 AM (13 days ago)
- Location:
- kirki
- Files:
-
- 4 added
- 48 deleted
- 86 edited
- 1 copied
-
tags/5.1.1 (copied) (copied from kirki/trunk)
-
tags/5.1.1/composer.json (deleted)
-
tags/5.1.1/composer.lock (deleted)
-
tags/5.1.1/kirki-composer/autoload.php (modified) (1 diff)
-
tags/5.1.1/kirki-composer/composer/ClassLoader.php (modified) (4 diffs)
-
tags/5.1.1/kirki-composer/composer/InstalledVersions.php (modified) (4 diffs)
-
tags/5.1.1/kirki-composer/composer/autoload_psr4.php (modified) (2 diffs)
-
tags/5.1.1/kirki-composer/composer/autoload_static.php (modified) (3 diffs)
-
tags/5.1.1/kirki-composer/composer/installed.json (modified) (1 diff)
-
tags/5.1.1/kirki-composer/composer/installed.php (modified) (2 diffs)
-
tags/5.1.1/kirki-composer/composer/installers (deleted)
-
tags/5.1.1/kirki-packages/compatibility/src/Field.php (modified) (3 diffs)
-
tags/5.1.1/kirki-packages/compatibility/src/Values.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-color-palette/src/Field/Color_Palette.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-color-palette/src/KirkiColorPaletteControl.js (modified) (3 diffs)
-
tags/5.1.1/kirki-packages/control-dashicons/src/Control/Dashicons.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-dashicons/src/Util/Dashicons.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-editor/src/control.js (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-generic/dist/control.js (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-generic/dist/control.js.map (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-generic/src/control.js (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-react-colorful/src/Field/CSS/ReactColorful.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-react-select/src/KirkiSelectControl.js (modified) (2 diffs)
-
tags/5.1.1/kirki-packages/control-repeater/src/Control/Repeater.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/control-repeater/src/control.js (modified) (2 diffs)
-
tags/5.1.1/kirki-packages/control-slider/src/KirkiSliderControl.js (modified) (3 diffs)
-
tags/5.1.1/kirki-packages/field-background/src/Background.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/field/src/Field.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/googlefonts/Gruntfile.js (deleted)
-
tags/5.1.1/kirki-packages/l10n/src/L10n.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/module-css/src/CSS.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/module-css/src/CSS/Generator.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/module-css/src/CSS/Output.php (modified) (1 diff)
-
tags/5.1.1/kirki-packages/module-field-dependencies/src/Field_Dependencies.php (modified) (4 diffs)
-
tags/5.1.1/kirki-packages/module-field-dependencies/src/control.js (modified) (1 diff)
-
tags/5.1.1/kirki-packages/module-webfonts/src/Webfonts/Async.php (modified) (3 diffs)
-
tags/5.1.1/kirki-packages/module-webfonts/src/Webfonts/Embed.php (modified) (2 diffs)
-
tags/5.1.1/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js (modified) (1 diff)
-
tags/5.1.1/kirki-packages/util/src/Helper.php (modified) (2 diffs)
-
tags/5.1.1/kirki.php (modified) (3 diffs)
-
tags/5.1.1/languages (added)
-
tags/5.1.1/languages/kirki.mo (added)
-
tags/5.1.1/pro-src/packages/kirki-pro-headline-divider/.gitignore (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-headline-divider/composer.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-headline-divider/composer.lock (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-headline-divider/package.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-input-slider/.gitignore (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-input-slider/composer.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-input-slider/composer.lock (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-input-slider/package.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-input-slider/src/KirkiInputSliderControl.js (modified) (3 diffs)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/.gitignore (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/composer.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/composer.lock (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/package.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Margin.php (modified) (1 diff)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Padding.php (modified) (1 diff)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingControl.js (modified) (3 diffs)
-
tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingForm.js (modified) (2 diffs)
-
tags/5.1.1/pro-src/packages/kirki-pro-responsive/.gitignore (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-responsive/composer.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-responsive/composer.lock (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-responsive/package.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-responsive/src/Init.php (modified) (2 diffs)
-
tags/5.1.1/pro-src/packages/kirki-pro-tabs/.gitignore (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-tabs/composer.json (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-tabs/composer.lock (deleted)
-
tags/5.1.1/pro-src/packages/kirki-pro-tabs/edd/EDD_SL_Plugin_Updater.php (modified) (1 diff)
-
tags/5.1.1/pro-src/packages/kirki-pro-tabs/package.json (deleted)
-
tags/5.1.1/readme.txt (modified) (1 diff)
-
trunk/composer.json (deleted)
-
trunk/composer.lock (deleted)
-
trunk/kirki-composer/autoload.php (modified) (1 diff)
-
trunk/kirki-composer/composer/ClassLoader.php (modified) (4 diffs)
-
trunk/kirki-composer/composer/InstalledVersions.php (modified) (4 diffs)
-
trunk/kirki-composer/composer/autoload_psr4.php (modified) (2 diffs)
-
trunk/kirki-composer/composer/autoload_static.php (modified) (3 diffs)
-
trunk/kirki-composer/composer/installed.json (modified) (1 diff)
-
trunk/kirki-composer/composer/installed.php (modified) (2 diffs)
-
trunk/kirki-composer/composer/installers (deleted)
-
trunk/kirki-packages/compatibility/src/Field.php (modified) (3 diffs)
-
trunk/kirki-packages/compatibility/src/Values.php (modified) (1 diff)
-
trunk/kirki-packages/control-color-palette/src/Field/Color_Palette.php (modified) (1 diff)
-
trunk/kirki-packages/control-color-palette/src/KirkiColorPaletteControl.js (modified) (3 diffs)
-
trunk/kirki-packages/control-dashicons/src/Control/Dashicons.php (modified) (1 diff)
-
trunk/kirki-packages/control-dashicons/src/Util/Dashicons.php (modified) (1 diff)
-
trunk/kirki-packages/control-editor/src/control.js (modified) (1 diff)
-
trunk/kirki-packages/control-generic/dist/control.js (modified) (1 diff)
-
trunk/kirki-packages/control-generic/dist/control.js.map (modified) (1 diff)
-
trunk/kirki-packages/control-generic/src/control.js (modified) (1 diff)
-
trunk/kirki-packages/control-react-colorful/src/Field/CSS/ReactColorful.php (modified) (1 diff)
-
trunk/kirki-packages/control-react-select/src/KirkiSelectControl.js (modified) (2 diffs)
-
trunk/kirki-packages/control-repeater/src/Control/Repeater.php (modified) (1 diff)
-
trunk/kirki-packages/control-repeater/src/control.js (modified) (2 diffs)
-
trunk/kirki-packages/control-slider/src/KirkiSliderControl.js (modified) (3 diffs)
-
trunk/kirki-packages/field-background/src/Background.php (modified) (1 diff)
-
trunk/kirki-packages/field/src/Field.php (modified) (1 diff)
-
trunk/kirki-packages/googlefonts/Gruntfile.js (deleted)
-
trunk/kirki-packages/l10n/src/L10n.php (modified) (1 diff)
-
trunk/kirki-packages/module-css/src/CSS.php (modified) (1 diff)
-
trunk/kirki-packages/module-css/src/CSS/Generator.php (modified) (1 diff)
-
trunk/kirki-packages/module-css/src/CSS/Output.php (modified) (1 diff)
-
trunk/kirki-packages/module-field-dependencies/src/Field_Dependencies.php (modified) (4 diffs)
-
trunk/kirki-packages/module-field-dependencies/src/control.js (modified) (1 diff)
-
trunk/kirki-packages/module-webfonts/src/Webfonts/Async.php (modified) (3 diffs)
-
trunk/kirki-packages/module-webfonts/src/Webfonts/Embed.php (modified) (2 diffs)
-
trunk/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js (modified) (1 diff)
-
trunk/kirki-packages/util/src/Helper.php (modified) (2 diffs)
-
trunk/kirki.php (modified) (3 diffs)
-
trunk/languages (added)
-
trunk/languages/kirki.mo (added)
-
trunk/pro-src/packages/kirki-pro-headline-divider/.gitignore (deleted)
-
trunk/pro-src/packages/kirki-pro-headline-divider/composer.json (deleted)
-
trunk/pro-src/packages/kirki-pro-headline-divider/composer.lock (deleted)
-
trunk/pro-src/packages/kirki-pro-headline-divider/package.json (deleted)
-
trunk/pro-src/packages/kirki-pro-input-slider/.gitignore (deleted)
-
trunk/pro-src/packages/kirki-pro-input-slider/composer.json (deleted)
-
trunk/pro-src/packages/kirki-pro-input-slider/composer.lock (deleted)
-
trunk/pro-src/packages/kirki-pro-input-slider/package.json (deleted)
-
trunk/pro-src/packages/kirki-pro-input-slider/src/KirkiInputSliderControl.js (modified) (3 diffs)
-
trunk/pro-src/packages/kirki-pro-margin-padding/.gitignore (deleted)
-
trunk/pro-src/packages/kirki-pro-margin-padding/composer.json (deleted)
-
trunk/pro-src/packages/kirki-pro-margin-padding/composer.lock (deleted)
-
trunk/pro-src/packages/kirki-pro-margin-padding/package.json (deleted)
-
trunk/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Margin.php (modified) (1 diff)
-
trunk/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Padding.php (modified) (1 diff)
-
trunk/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingControl.js (modified) (3 diffs)
-
trunk/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingForm.js (modified) (2 diffs)
-
trunk/pro-src/packages/kirki-pro-responsive/.gitignore (deleted)
-
trunk/pro-src/packages/kirki-pro-responsive/composer.json (deleted)
-
trunk/pro-src/packages/kirki-pro-responsive/composer.lock (deleted)
-
trunk/pro-src/packages/kirki-pro-responsive/package.json (deleted)
-
trunk/pro-src/packages/kirki-pro-responsive/src/Init.php (modified) (2 diffs)
-
trunk/pro-src/packages/kirki-pro-tabs/.gitignore (deleted)
-
trunk/pro-src/packages/kirki-pro-tabs/composer.json (deleted)
-
trunk/pro-src/packages/kirki-pro-tabs/composer.lock (deleted)
-
trunk/pro-src/packages/kirki-pro-tabs/edd/EDD_SL_Plugin_Updater.php (modified) (1 diff)
-
trunk/pro-src/packages/kirki-pro-tabs/package.json (deleted)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kirki/tags/5.1.1/kirki-composer/autoload.php
r2947788 r3406713 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 21 8 } 22 9 -
kirki/tags/5.1.1/kirki-composer/composer/ClassLoader.php
r2947788 r3406713 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */46 private static $includeFile;47 48 45 /** @var ?string */ 49 46 private $vendorDir; … … 110 107 { 111 108 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure();113 109 } 114 110 … … 430 426 { 431 427 if ($file = $this->findFile($class)) { 432 $includeFile = self::$includeFile; 433 $includeFile($file); 428 includeFile($file); 434 429 435 430 return true; … … 561 556 return false; 562 557 } 563 564 /**565 * @return void566 */567 private static function initializeIncludeClosure()568 {569 if (self::$includeFile !== null) {570 return;571 }572 573 /**574 * Scope isolated include.575 *576 * Prevents access to $this/self from included files.577 *578 * @param string $file579 * @return void580 */581 self::$includeFile = \Closure::bind(static function($file) {582 include $file;583 }, null, null);584 }585 558 } 559 560 /** 561 * Scope isolated include. 562 * 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 568 */ 569 function includeFile($file) 570 { 571 include $file; 572 } -
kirki/tags/5.1.1/kirki-composer/composer/InstalledVersions.php
r2947788 r3406713 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( (string)$constraint);122 $constraint = $parser->parseConstraints($constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 334 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 333 self::$installed = $installed[count($installed) - 1]; … … 343 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 344 342 if (substr(__DIR__, -8, 1) !== 'C') { 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 343 self::$installed = require __DIR__ . '/installed.php'; 348 344 } else { 349 345 self::$installed = array(); 350 346 } 351 347 } 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 348 $installed[] = self::$installed; 356 349 357 350 return $installed; -
kirki/tags/5.1.1/kirki-composer/composer/autoload_psr4.php
r3056602 r3406713 7 7 8 8 return array( 9 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),10 9 'Kirki\\Util\\' => array($baseDir . '/kirki-packages/util/src'), 11 10 'Kirki\\Settings\\' => array($baseDir . '/kirki-packages/settings/src'), … … 16 15 'Kirki\\Compatibility\\' => array($baseDir . '/kirki-packages/compatibility/src'), 17 16 'Kirki\\' => array($baseDir . '/kirki-packages/control-base/src', $baseDir . '/kirki-packages/control-checkbox/src', $baseDir . '/kirki-packages/control-code/src', $baseDir . '/kirki-packages/control-color/src', $baseDir . '/kirki-packages/control-color-palette/src', $baseDir . '/kirki-packages/control-cropped-image/src', $baseDir . '/kirki-packages/control-custom/src', $baseDir . '/kirki-packages/control-dashicons/src', $baseDir . '/kirki-packages/control-date/src', $baseDir . '/kirki-packages/control-dimension/src', $baseDir . '/kirki-packages/control-editor/src', $baseDir . '/kirki-packages/control-generic/src', $baseDir . '/kirki-packages/control-image/src', $baseDir . '/kirki-packages/control-multicheck/src', $baseDir . '/kirki-packages/control-palette/src', $baseDir . '/kirki-packages/control-radio/src', $baseDir . '/kirki-packages/control-react-colorful/src', $baseDir . '/kirki-packages/control-react-select/src', $baseDir . '/kirki-packages/control-repeater/src', $baseDir . '/kirki-packages/control-select/src', $baseDir . '/kirki-packages/control-slider/src', $baseDir . '/kirki-packages/control-sortable/src', $baseDir . '/kirki-packages/control-upload/src', $baseDir . '/kirki-packages/field/src', $baseDir . '/kirki-packages/googlefonts/src', $baseDir . '/kirki-packages/l10n/src', $baseDir . '/kirki-packages/module-panels/src', $baseDir . '/kirki-packages/module-sections/src', $baseDir . '/kirki-packages/url-getter/src'), 18 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),19 17 ); -
kirki/tags/5.1.1/kirki-composer/composer/autoload_static.php
r3056602 r3406713 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( 10 'P' =>11 array (12 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57,13 ),14 10 'K' => 15 11 array ( … … 23 19 'Kirki\\' => 6, 24 20 ), 25 'C' =>26 array (27 'Composer\\Installers\\' => 20,28 ),29 21 ); 30 22 31 23 public static $prefixDirsPsr4 = array ( 32 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>33 array (34 0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',35 ),36 24 'Kirki\\Util\\' => 37 25 array ( … … 109 97 28 => __DIR__ . '/../..' . '/kirki-packages/url-getter/src', 110 98 ), 111 'Composer\\Installers\\' =>112 array (113 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',114 ),115 99 ); 116 100 -
kirki/tags/5.1.1/kirki-composer/composer/installed.json
r3056602 r3406713 1 1 { 2 "packages": [ 3 { 4 "name": "composer/installers", 5 "version": "v2.2.0", 6 "version_normalized": "2.2.0.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/composer/installers.git", 10 "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/composer/installers/zipball/c29dc4b93137acb82734f672c37e029dfbd95b35", 15 "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35", 16 "shasum": "" 17 }, 18 "require": { 19 "composer-plugin-api": "^1.0 || ^2.0", 20 "php": "^7.2 || ^8.0" 21 }, 22 "require-dev": { 23 "composer/composer": "1.6.* || ^2.0", 24 "composer/semver": "^1 || ^3", 25 "phpstan/phpstan": "^0.12.55", 26 "phpstan/phpstan-phpunit": "^0.12.16", 27 "symfony/phpunit-bridge": "^5.3", 28 "symfony/process": "^5" 29 }, 30 "time": "2022-08-20T06:45:11+00:00", 31 "type": "composer-plugin", 32 "extra": { 33 "class": "Composer\\Installers\\Plugin", 34 "branch-alias": { 35 "dev-main": "2.x-dev" 36 }, 37 "plugin-modifies-install-path": true 38 }, 39 "installation-source": "dist", 40 "autoload": { 41 "psr-4": { 42 "Composer\\Installers\\": "src/Composer/Installers" 43 } 44 }, 45 "notification-url": "https://packagist.org/downloads/", 46 "license": [ 47 "MIT" 48 ], 49 "authors": [ 50 { 51 "name": "Kyle Robinson Young", 52 "email": "[email protected]", 53 "homepage": "https://github.com/shama" 54 } 55 ], 56 "description": "A multi-framework Composer library installer", 57 "homepage": "https://composer.github.io/installers/", 58 "keywords": [ 59 "Dolibarr", 60 "Eliasis", 61 "Hurad", 62 "ImageCMS", 63 "Kanboard", 64 "Lan Management System", 65 "MODX Evo", 66 "MantisBT", 67 "Mautic", 68 "Maya", 69 "OXID", 70 "Plentymarkets", 71 "Porto", 72 "RadPHP", 73 "SMF", 74 "Starbug", 75 "Thelia", 76 "Whmcs", 77 "WolfCMS", 78 "agl", 79 "annotatecms", 80 "attogram", 81 "bitrix", 82 "cakephp", 83 "chef", 84 "cockpit", 85 "codeigniter", 86 "concrete5", 87 "croogo", 88 "dokuwiki", 89 "drupal", 90 "eZ Platform", 91 "elgg", 92 "expressionengine", 93 "fuelphp", 94 "grav", 95 "installer", 96 "itop", 97 "known", 98 "kohana", 99 "laravel", 100 "lavalite", 101 "lithium", 102 "magento", 103 "majima", 104 "mako", 105 "matomo", 106 "mediawiki", 107 "miaoxing", 108 "modulework", 109 "modx", 110 "moodle", 111 "osclass", 112 "pantheon", 113 "phpbb", 114 "piwik", 115 "ppi", 116 "processwire", 117 "puppet", 118 "pxcms", 119 "reindex", 120 "roundcube", 121 "shopware", 122 "silverstripe", 123 "sydes", 124 "sylius", 125 "tastyigniter", 126 "wordpress", 127 "yawik", 128 "zend", 129 "zikula" 130 ], 131 "support": { 132 "issues": "https://github.com/composer/installers/issues", 133 "source": "https://github.com/composer/installers/tree/v2.2.0" 134 }, 135 "funding": [ 136 { 137 "url": "https://packagist.com", 138 "type": "custom" 139 }, 140 { 141 "url": "https://github.com/composer", 142 "type": "github" 143 }, 144 { 145 "url": "https://tidelift.com/funding/github/packagist/composer/composer", 146 "type": "tidelift" 147 } 148 ], 149 "install-path": "./installers" 150 }, 151 { 152 "name": "dealerdirect/phpcodesniffer-composer-installer", 153 "version": "v1.0.0", 154 "version_normalized": "1.0.0.0", 155 "source": { 156 "type": "git", 157 "url": "https://github.com/PHPCSStandards/composer-installer.git", 158 "reference": "4be43904336affa5c2f70744a348312336afd0da" 159 }, 160 "dist": { 161 "type": "zip", 162 "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", 163 "reference": "4be43904336affa5c2f70744a348312336afd0da", 164 "shasum": "" 165 }, 166 "require": { 167 "composer-plugin-api": "^1.0 || ^2.0", 168 "php": ">=5.4", 169 "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" 170 }, 171 "require-dev": { 172 "composer/composer": "*", 173 "ext-json": "*", 174 "ext-zip": "*", 175 "php-parallel-lint/php-parallel-lint": "^1.3.1", 176 "phpcompatibility/php-compatibility": "^9.0", 177 "yoast/phpunit-polyfills": "^1.0" 178 }, 179 "time": "2023-01-05T11:28:13+00:00", 180 "type": "composer-plugin", 181 "extra": { 182 "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" 183 }, 184 "installation-source": "dist", 185 "autoload": { 186 "psr-4": { 187 "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" 188 } 189 }, 190 "notification-url": "https://packagist.org/downloads/", 191 "license": [ 192 "MIT" 193 ], 194 "authors": [ 195 { 196 "name": "Franck Nijhof", 197 "email": "[email protected]", 198 "homepage": "http://www.frenck.nl", 199 "role": "Developer / IT Manager" 200 }, 201 { 202 "name": "Contributors", 203 "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" 204 } 205 ], 206 "description": "PHP_CodeSniffer Standards Composer Installer Plugin", 207 "homepage": "http://www.dealerdirect.com", 208 "keywords": [ 209 "PHPCodeSniffer", 210 "PHP_CodeSniffer", 211 "code quality", 212 "codesniffer", 213 "composer", 214 "installer", 215 "phpcbf", 216 "phpcs", 217 "plugin", 218 "qa", 219 "quality", 220 "standard", 221 "standards", 222 "style guide", 223 "stylecheck", 224 "tests" 225 ], 226 "support": { 227 "issues": "https://github.com/PHPCSStandards/composer-installer/issues", 228 "source": "https://github.com/PHPCSStandards/composer-installer" 229 }, 230 "install-path": "../dealerdirect/phpcodesniffer-composer-installer" 231 }, 232 { 233 "name": "phpcompatibility/php-compatibility", 234 "version": "9.3.5", 235 "version_normalized": "9.3.5.0", 236 "source": { 237 "type": "git", 238 "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", 239 "reference": "9fb324479acf6f39452e0655d2429cc0d3914243" 240 }, 241 "dist": { 242 "type": "zip", 243 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243", 244 "reference": "9fb324479acf6f39452e0655d2429cc0d3914243", 245 "shasum": "" 246 }, 247 "require": { 248 "php": ">=5.3", 249 "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" 250 }, 251 "conflict": { 252 "squizlabs/php_codesniffer": "2.6.2" 253 }, 254 "require-dev": { 255 "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" 256 }, 257 "suggest": { 258 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", 259 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 260 }, 261 "time": "2019-12-27T09:44:58+00:00", 262 "type": "phpcodesniffer-standard", 263 "installation-source": "dist", 264 "notification-url": "https://packagist.org/downloads/", 265 "license": [ 266 "LGPL-3.0-or-later" 267 ], 268 "authors": [ 269 { 270 "name": "Wim Godden", 271 "homepage": "https://github.com/wimg", 272 "role": "lead" 273 }, 274 { 275 "name": "Juliette Reinders Folmer", 276 "homepage": "https://github.com/jrfnl", 277 "role": "lead" 278 }, 279 { 280 "name": "Contributors", 281 "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" 282 } 283 ], 284 "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", 285 "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", 286 "keywords": [ 287 "compatibility", 288 "phpcs", 289 "standards" 290 ], 291 "support": { 292 "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues", 293 "source": "https://github.com/PHPCompatibility/PHPCompatibility" 294 }, 295 "install-path": "../phpcompatibility/php-compatibility" 296 }, 297 { 298 "name": "phpcompatibility/phpcompatibility-paragonie", 299 "version": "1.3.2", 300 "version_normalized": "1.3.2.0", 301 "source": { 302 "type": "git", 303 "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", 304 "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26" 305 }, 306 "dist": { 307 "type": "zip", 308 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", 309 "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", 310 "shasum": "" 311 }, 312 "require": { 313 "phpcompatibility/php-compatibility": "^9.0" 314 }, 315 "require-dev": { 316 "dealerdirect/phpcodesniffer-composer-installer": "^0.7", 317 "paragonie/random_compat": "dev-master", 318 "paragonie/sodium_compat": "dev-master" 319 }, 320 "suggest": { 321 "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 322 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 323 }, 324 "time": "2022-10-25T01:46:02+00:00", 325 "type": "phpcodesniffer-standard", 326 "installation-source": "dist", 327 "notification-url": "https://packagist.org/downloads/", 328 "license": [ 329 "LGPL-3.0-or-later" 330 ], 331 "authors": [ 332 { 333 "name": "Wim Godden", 334 "role": "lead" 335 }, 336 { 337 "name": "Juliette Reinders Folmer", 338 "role": "lead" 339 } 340 ], 341 "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.", 342 "homepage": "http://phpcompatibility.com/", 343 "keywords": [ 344 "compatibility", 345 "paragonie", 346 "phpcs", 347 "polyfill", 348 "standards", 349 "static analysis" 350 ], 351 "support": { 352 "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues", 353 "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie" 354 }, 355 "install-path": "../phpcompatibility/phpcompatibility-paragonie" 356 }, 357 { 358 "name": "phpcompatibility/phpcompatibility-wp", 359 "version": "2.1.4", 360 "version_normalized": "2.1.4.0", 361 "source": { 362 "type": "git", 363 "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", 364 "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5" 365 }, 366 "dist": { 367 "type": "zip", 368 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5", 369 "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5", 370 "shasum": "" 371 }, 372 "require": { 373 "phpcompatibility/php-compatibility": "^9.0", 374 "phpcompatibility/phpcompatibility-paragonie": "^1.0" 375 }, 376 "require-dev": { 377 "dealerdirect/phpcodesniffer-composer-installer": "^0.7" 378 }, 379 "suggest": { 380 "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 381 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 382 }, 383 "time": "2022-10-24T09:00:36+00:00", 384 "type": "phpcodesniffer-standard", 385 "installation-source": "dist", 386 "notification-url": "https://packagist.org/downloads/", 387 "license": [ 388 "LGPL-3.0-or-later" 389 ], 390 "authors": [ 391 { 392 "name": "Wim Godden", 393 "role": "lead" 394 }, 395 { 396 "name": "Juliette Reinders Folmer", 397 "role": "lead" 398 } 399 ], 400 "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.", 401 "homepage": "http://phpcompatibility.com/", 402 "keywords": [ 403 "compatibility", 404 "phpcs", 405 "standards", 406 "static analysis", 407 "wordpress" 408 ], 409 "support": { 410 "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues", 411 "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP" 412 }, 413 "install-path": "../phpcompatibility/phpcompatibility-wp" 414 }, 415 { 416 "name": "squizlabs/php_codesniffer", 417 "version": "3.7.2", 418 "version_normalized": "3.7.2.0", 419 "source": { 420 "type": "git", 421 "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", 422 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" 423 }, 424 "dist": { 425 "type": "zip", 426 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", 427 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", 428 "shasum": "" 429 }, 430 "require": { 431 "ext-simplexml": "*", 432 "ext-tokenizer": "*", 433 "ext-xmlwriter": "*", 434 "php": ">=5.4.0" 435 }, 436 "require-dev": { 437 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 438 }, 439 "time": "2023-02-22T23:07:41+00:00", 440 "bin": [ 441 "bin/phpcs", 442 "bin/phpcbf" 443 ], 444 "type": "library", 445 "extra": { 446 "branch-alias": { 447 "dev-master": "3.x-dev" 448 } 449 }, 450 "installation-source": "dist", 451 "notification-url": "https://packagist.org/downloads/", 452 "license": [ 453 "BSD-3-Clause" 454 ], 455 "authors": [ 456 { 457 "name": "Greg Sherwood", 458 "role": "lead" 459 } 460 ], 461 "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", 462 "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", 463 "keywords": [ 464 "phpcs", 465 "standards", 466 "static analysis" 467 ], 468 "support": { 469 "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", 470 "source": "https://github.com/squizlabs/PHP_CodeSniffer", 471 "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" 472 }, 473 "install-path": "../squizlabs/php_codesniffer" 474 }, 475 { 476 "name": "wp-coding-standards/wpcs", 477 "version": "2.3.0", 478 "version_normalized": "2.3.0.0", 479 "source": { 480 "type": "git", 481 "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", 482 "reference": "7da1894633f168fe244afc6de00d141f27517b62" 483 }, 484 "dist": { 485 "type": "zip", 486 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", 487 "reference": "7da1894633f168fe244afc6de00d141f27517b62", 488 "shasum": "" 489 }, 490 "require": { 491 "php": ">=5.4", 492 "squizlabs/php_codesniffer": "^3.3.1" 493 }, 494 "require-dev": { 495 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", 496 "phpcompatibility/php-compatibility": "^9.0", 497 "phpcsstandards/phpcsdevtools": "^1.0", 498 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 499 }, 500 "suggest": { 501 "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." 502 }, 503 "time": "2020-05-13T23:57:56+00:00", 504 "type": "phpcodesniffer-standard", 505 "installation-source": "dist", 506 "notification-url": "https://packagist.org/downloads/", 507 "license": [ 508 "MIT" 509 ], 510 "authors": [ 511 { 512 "name": "Contributors", 513 "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors" 514 } 515 ], 516 "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions", 517 "keywords": [ 518 "phpcs", 519 "standards", 520 "wordpress" 521 ], 522 "support": { 523 "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues", 524 "source": "https://github.com/WordPress/WordPress-Coding-Standards", 525 "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" 526 }, 527 "install-path": "../wp-coding-standards/wpcs" 528 }, 529 { 530 "name": "wptrt/wpthemereview", 531 "version": "dev-develop", 532 "version_normalized": "dev-develop", 533 "source": { 534 "type": "git", 535 "url": "https://github.com/WPTT/WPThemeReview.git", 536 "reference": "15684d0852fe90d807c2ae7746dea1302b74b4bd" 537 }, 538 "dist": { 539 "type": "zip", 540 "url": "https://api.github.com/repos/WPTT/WPThemeReview/zipball/15684d0852fe90d807c2ae7746dea1302b74b4bd", 541 "reference": "15684d0852fe90d807c2ae7746dea1302b74b4bd", 542 "shasum": "" 543 }, 544 "require": { 545 "php": ">=5.4", 546 "phpcompatibility/phpcompatibility-wp": "^2.0", 547 "squizlabs/php_codesniffer": "^3.3.1", 548 "wp-coding-standards/wpcs": "^2.2.0" 549 }, 550 "require-dev": { 551 "dealerdirect/phpcodesniffer-composer-installer": "^0.7", 552 "php-parallel-lint/php-console-highlighter": "^0.5", 553 "php-parallel-lint/php-parallel-lint": "^1.0", 554 "phpcompatibility/php-compatibility": "^9.0", 555 "phpcsstandards/phpcsdevtools": "^1.0", 556 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0", 557 "roave/security-advisories": "dev-master" 558 }, 559 "suggest": { 560 "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." 561 }, 562 "time": "2021-06-22T06:10:49+00:00", 563 "default-branch": true, 564 "type": "phpcodesniffer-standard", 565 "installation-source": "dist", 566 "notification-url": "https://packagist.org/downloads/", 567 "license": [ 568 "MIT" 569 ], 570 "authors": [ 571 { 572 "name": "Theme Review Team", 573 "homepage": "https://make.wordpress.org/themes/handbook/", 574 "role": "Strategy and rule setting" 575 }, 576 { 577 "name": "Ulrich Pogson", 578 "homepage": "https://github.com/grappler", 579 "role": "Lead developer" 580 }, 581 { 582 "name": "Juliette Reinders Folmer", 583 "homepage": "https://github.com/jrfnl", 584 "role": "Lead developer" 585 }, 586 { 587 "name": "Denis Žoljom", 588 "homepage": "https://github.com/dingo-d", 589 "role": "Plugin integration lead" 590 }, 591 { 592 "name": "Contributors", 593 "homepage": "https://github.com/WPTRT/WPThemeReview/graphs/contributors" 594 } 595 ], 596 "description": "PHP_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org", 597 "homepage": "https://make.wordpress.org/themes/handbook/review/", 598 "keywords": [ 599 "phpcs", 600 "standards", 601 "themes", 602 "wordpress" 603 ], 604 "support": { 605 "issues": "https://github.com/WPTRT/WPThemeReview/issues", 606 "source": "https://github.com/WPTRT/WPThemeReview" 607 }, 608 "install-path": "../wptrt/wpthemereview" 609 } 610 ], 611 "dev": true, 612 "dev-package-names": [ 613 "composer/installers", 614 "dealerdirect/phpcodesniffer-composer-installer", 615 "phpcompatibility/php-compatibility", 616 "phpcompatibility/phpcompatibility-paragonie", 617 "phpcompatibility/phpcompatibility-wp", 618 "squizlabs/php_codesniffer", 619 "wp-coding-standards/wpcs", 620 "wptrt/wpthemereview" 621 ] 2 "packages": [], 3 "dev": false, 4 "dev-package-names": [] 622 5 } -
kirki/tags/5.1.1/kirki-composer/composer/installed.php
r3056602 r3406713 8 8 'install_path' => __DIR__ . '/../../', 9 9 'aliases' => array(), 10 'dev' => true,10 'dev' => false, 11 11 ), 12 12 'versions' => array( 13 'composer/installers' => array(14 'pretty_version' => 'v2.2.0',15 'version' => '2.2.0.0',16 'reference' => 'c29dc4b93137acb82734f672c37e029dfbd95b35',17 'type' => 'composer-plugin',18 'install_path' => __DIR__ . '/./installers',19 'aliases' => array(),20 'dev_requirement' => true,21 ),22 'dealerdirect/phpcodesniffer-composer-installer' => array(23 'pretty_version' => 'v1.0.0',24 'version' => '1.0.0.0',25 'reference' => '4be43904336affa5c2f70744a348312336afd0da',26 'type' => 'composer-plugin',27 'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer',28 'aliases' => array(),29 'dev_requirement' => true,30 ),31 13 'kirki-framework/kirki' => array( 32 14 'pretty_version' => '5.0.0', … … 38 20 'dev_requirement' => false, 39 21 ), 40 'phpcompatibility/php-compatibility' => array(41 'pretty_version' => '9.3.5',42 'version' => '9.3.5.0',43 'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',44 'type' => 'phpcodesniffer-standard',45 'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility',46 'aliases' => array(),47 'dev_requirement' => true,48 ),49 'phpcompatibility/phpcompatibility-paragonie' => array(50 'pretty_version' => '1.3.2',51 'version' => '1.3.2.0',52 'reference' => 'bba5a9dfec7fcfbd679cfaf611d86b4d3759da26',53 'type' => 'phpcodesniffer-standard',54 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-paragonie',55 'aliases' => array(),56 'dev_requirement' => true,57 ),58 'phpcompatibility/phpcompatibility-wp' => array(59 'pretty_version' => '2.1.4',60 'version' => '2.1.4.0',61 'reference' => 'b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5',62 'type' => 'phpcodesniffer-standard',63 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-wp',64 'aliases' => array(),65 'dev_requirement' => true,66 ),67 'squizlabs/php_codesniffer' => array(68 'pretty_version' => '3.7.2',69 'version' => '3.7.2.0',70 'reference' => 'ed8e00df0a83aa96acf703f8c2979ff33341f879',71 'type' => 'library',72 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',73 'aliases' => array(),74 'dev_requirement' => true,75 ),76 'wp-coding-standards/wpcs' => array(77 'pretty_version' => '2.3.0',78 'version' => '2.3.0.0',79 'reference' => '7da1894633f168fe244afc6de00d141f27517b62',80 'type' => 'phpcodesniffer-standard',81 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs',82 'aliases' => array(),83 'dev_requirement' => true,84 ),85 'wptrt/wpthemereview' => array(86 'pretty_version' => 'dev-develop',87 'version' => 'dev-develop',88 'reference' => '15684d0852fe90d807c2ae7746dea1302b74b4bd',89 'type' => 'phpcodesniffer-standard',90 'install_path' => __DIR__ . '/../wptrt/wpthemereview',91 'aliases' => array(92 0 => '9999999-dev',93 ),94 'dev_requirement' => true,95 ),96 22 ), 97 23 ); -
kirki/tags/5.1.1/kirki-packages/compatibility/src/Field.php
r3056602 r3406713 32 32 public $description; 33 33 public $help; 34 public $compiler; 34 35 35 36 protected $args = array(); … … 375 376 if ( 'theme_mods' === $this->option_type ) { 376 377 /* translators: %1$s represents the field ID where the error occurs. */ 377 _doing_it_wrong( __METHOD__, sprintf( esc_html ( 'Typo found in field %s - "theme_mods" vs "theme_mod"', 'kirki' ), esc_html( $this->settings ) ), '3.0.10' );378 _doing_it_wrong( __METHOD__, sprintf( esc_html__( 'Typo found in field %s - "theme_mods" vs "theme_mod"', 'kirki' ), esc_html( $this->settings ) ), '3.0.10' ); 378 379 $this->option_type = 'theme_mod'; 379 380 } … … 577 578 578 579 // Set transport to refresh initially. 579 // Serves as a fallback in case we fail tto auto-calculate js_vars.580 // Serves as a fallback in case we failed to auto-calculate js_vars. 580 581 $this->transport = 'refresh'; 581 582 -
kirki/tags/5.1.1/kirki-packages/compatibility/src/Values.php
r2925264 r3406713 102 102 * @static 103 103 * @access public 104 * @param array $field The field ar uments.104 * @param array $field The field arguments. 105 105 * @return string|array 106 106 */ -
kirki/tags/5.1.1/kirki-packages/control-color-palette/src/Field/Color_Palette.php
r2925264 r3406713 126 126 * Set the flag to use "global" and "multiline". 127 127 */ 128 $pattern = '/^(\#[\da-f]{3}|\#[\da-f]{6}|\#[\da-f]{8}|rgba\(((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*,\s*){2}((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*)(,\s*(0\.\d+|1))\)|rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)|hsla\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsl\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|hsva\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsv\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\))$/'; 128 //$pattern = '/^(\#[\da-f]{3}|\#[\da-f]{6}|\#[\da-f]{8}|rgba\(((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*,\s*){2}((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*)(,\s*(0\.\d+|1))\)|rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)|hsla\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsl\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|hsva\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsv\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\))$/'; 129 $pattern = '/^(\#[\da-f]{3}|\#[\da-f]{6}|\#[\da-f]{8}|rgba\(((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*,\s*){2}((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*)(,\s*(0\.\d+|1))\)|rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)|hsla\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsl\(\s*((\d{1,2}|[1-2]\d{2]|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|hsva\(\s*((\d{1,2}|[1-2]\d{2]|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsv\(\s*((\d{1,2}|[1-2]\d{2]|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|--[\w-]+|var\(--[\w-]+(,\s*.+)?\))$/'; 129 130 131 130 132 \preg_match( $pattern, $value, $matches ); 131 133 -
kirki/tags/5.1.1/kirki-packages/control-color-palette/src/KirkiColorPaletteControl.js
r2925264 r3406713 1 1 import KirkiColorPaletteForm from './KirkiColorPaletteForm'; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 66 77 const control = this; 67 78 68 ReactDOM.render(79 const reactElement = ( 69 80 <KirkiColorPaletteForm 70 81 {...control.params} 71 82 control={control} 72 83 customizerSetting={control.setting} 73 setNotificationContainer={control.setNotificationCo tainer}84 setNotificationContainer={control.setNotificationContainer} 74 85 value={control.params.value} 75 />, 76 control.container[0] 86 /> 77 87 ); 88 89 wpReactRender(control.container[0], reactElement) 78 90 79 91 if (false !== control.params.choices.allowCollapse) { … … 101 113 102 114 /** 103 * This method will be overrid en by the rendered component.115 * This method will be overridden by the rendered component. 104 116 */ 105 117 updateComponentState: (val) => { }, -
kirki/tags/5.1.1/kirki-packages/control-dashicons/src/Control/Dashicons.php
r2925264 r3406713 114 114 'widgets': '<?php esc_html_e( 'Widgets', 'kirki' ); ?>', 115 115 'notifications': '<?php esc_html_e( 'Notifications', 'kirki' ); ?>', 116 'misc': '<?php esc_html_e( 'Miscel aneous', 'kirki' ); ?>'116 'misc': '<?php esc_html_e( 'Miscellaneous', 'kirki' ); ?>' 117 117 }; 118 118 #> -
kirki/tags/5.1.1/kirki-packages/control-dashicons/src/Util/Dashicons.php
r2925264 r3406713 35 35 'tinymce' => [ 'editor-bold', 'editor-italic', 'editor-ul', 'editor-ol', 'editor-ol-rtl', 'editor-quote', 'editor-alignleft', 'editor-aligncenter', 'editor-alignright', 'editor-insertmore', 'editor-spellcheck', 'editor-expand', 'editor-contract', 'editor-kitchensink', 'editor-underline', 'editor-justify', 'editor-textcolor', 'editor-paste-word', 'editor-paste-text', 'editor-removeformatting', 'editor-video', 'editor-customchar', 'editor-outdent', 'editor-indent', 'editor-help', 'editor-strikethrough', 'editor-unlink', 'editor-rtl', 'editor-ltr', 'editor-break', 'editor-code', 'editor-paragraph', 'editor-table' ], 36 36 'posts' => [ 'align-left', 'align-right', 'align-center', 'align-none', 'lock', 'unlock', 'calendar', 'calendar-alt', 'visibility', 'hidden', 'post-status', 'edit', 'trash', 'sticky' ], 37 'sorting' => [ 'external', 'arrow-up', 'arrow-down', 'arrow-right', 'arrow-left', 'arrow-up-alt', 'arrow-down-alt', 'arrow-right-alt', 'arrow-left-alt', 'arrow-up-alt2', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-left-alt2', 'sort', 'leftright', 'randomize', 'list-view', 'ex erpt-view', 'grid-view', 'move' ],37 'sorting' => [ 'external', 'arrow-up', 'arrow-down', 'arrow-right', 'arrow-left', 'arrow-up-alt', 'arrow-down-alt', 'arrow-right-alt', 'arrow-left-alt', 'arrow-up-alt2', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-left-alt2', 'sort', 'leftright', 'randomize', 'list-view', 'excerpt-view', 'grid-view', 'move' ], 38 38 'social' => [ 'share', 'share-alt', 'share-alt2', 'twitter', 'rss', 'email', 'email-alt', 'email-alt2', 'facebook', 'facebook-alt', 'googleplus', 'networking', 'instagram' ], 39 39 'wordpress_org' => [ 'hammer', 'art', 'migrate', 'performance', 'universal-access', 'universal-access-alt', 'tickets', 'nametag', 'clipboard', 'heart', 'megaphone', 'schedule', 'tide', 'rest-api', 'code-standards' ], -
kirki/tags/5.1.1/kirki-packages/control-editor/src/control.js
r2925264 r3406713 17 17 }; 18 18 19 // Overwrite the default param aters if choices is defined.19 // Overwrite the default parameters if choices is defined. 20 20 if ( wp.editor && wp.editor.initialize ) { 21 21 wp.editor.initialize( id, jQuery.extend( {}, defaultParams, control.params.choices ) ); -
kirki/tags/5.1.1/kirki-packages/control-generic/dist/control.js
r2925264 r3406713 1 wp.customize.controlConstructor["kirki-generic"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(i){ var c=(i=i||this).params;i.container.find("input, textarea").on("change input",(function(){var e=jQuery(this).val();"kirki-generic"===c.type&&c.choices&&"number"===c.choices.type&&(c.choices.min=parseFloat(c.choices.min),c.choices.max=parseFloat(c.choices.max),e<c.choices.min?e=c.choices.min:e>c.choices.max&&(e=c.choices.max)),i.setting.set(e)}))}});1 wp.customize.controlConstructor["kirki-generic"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(i){let e=i??this,c=e.params;e.container.find("input, textarea").on("change input",function(){let i=jQuery(this).val();"kirki-generic"===c.type&&c.choices&&"number"===c.choices.type&&(c.choices.min=parseFloat(c.choices.min),c.choices.max=parseFloat(c.choices.max),i<c.choices.min?i=c.choices.min:i>c.choices.max&&(i=c.choices.max)),e.setting.set(i)})}}); 2 2 //# sourceMappingURL=control.js.map -
kirki/tags/5.1.1/kirki-packages/control-generic/dist/control.js.map
r2925264 r3406713 1 {"mappings":"A AAAA,GAAGC,UAAUC,mBAAmB,iBAC9BF,GAAGC,UAAUE,oBAAoBC,OAAO,CACtCC,iBAAkB,SAAUC,GAE1B,IAAMC,GADND,EAAUA,GAAWE,MACED,OAEvBD,EAAQG,UAAUC,KAAK,mBAAmBC,GAAG,gBAAgB,WAC3D,IAAMC,EAAQC,OAAOL,MAAMM,MAGzB,kBAAoBP,EAAOQ,MAC3BR,EAAOS,SACP,WAAaT,EAAOS,QAAQD,OAE5BR,EAAOS,QAAQC,IAAMC,WAAWX,EAAOS,QAAQC,KAC/CV,EAAOS,QAAQG,IAAMD,WAAWX,EAAOS,QAAQG,KAE3CP,EAAQL,EAAOS,QAAQC,IACzBL,EAAQL,EAAOS,QAAQC,IACdL,EAAQL,EAAOS,QAAQG,MAChCP,EAAQL,EAAOS,QAAQG,MAI3Bb,EAAQc,QAAQC,IAAIT","sources":["packages/kirki-framework/control-generic/src/control.js"],"sourcesContent":["wp.customize.controlConstructor[\"kirki-generic\"] =\n wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function (control) {\n control = control || this;\n const params = control.params;\n\n control.container.find(\"input, textarea\").on(\"change input\", function () {\n const value = jQuery(this).val();\n\n if (\n \"kirki-generic\" === params.type &&\n params.choices &&\n \"number\" === params.choices.type\n ) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n\n if (value < params.choices.min) {\n value = params.choices.min;\n } else if (value > params.choices.max) {\n value = params.choices.max;\n }\n }\n\n control.setting.set(value);\n });\n },\n });\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","params","this","container","find","on","value","jQuery","val","type","choices","min","parseFloat","max","setting","set"],"version":3,"file":"control.js.map"}1 {"mappings":"ACAA,GAAG,SAAS,CAAC,kBAAkB,CAAC,gBAAgB,CAC9C,GAAG,SAAS,CAAC,mBAAmB,CAAC,MAAM,CAAC,CACtC,iBAAkB,SAAU,CAAQ,EAClC,IAAM,EAAU,GAAY,IAAI,CAC1B,EAAS,EAAQ,MAAM,CAE7B,EAAQ,SAAS,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,eAAgB,WAC3D,IAAI,EAAQ,OAAO,IAAI,EAAE,GAAG,EAG1B,CAAA,kBAAoB,EAAO,IAAI,EAC/B,EAAO,OAAO,EACd,WAAa,EAAO,OAAO,CAAC,IAAI,GAEhC,EAAO,OAAO,CAAC,GAAG,CAAG,WAAW,EAAO,OAAO,CAAC,GAAG,EAClD,EAAO,OAAO,CAAC,GAAG,CAAG,WAAW,EAAO,OAAO,CAAC,GAAG,EAE9C,EAAQ,EAAO,OAAO,CAAC,GAAG,CAC5B,EAAQ,EAAO,OAAO,CAAC,GAAG,CACjB,EAAQ,EAAO,OAAO,CAAC,GAAG,EACnC,CAAA,EAAQ,EAAO,OAAO,CAAC,GAAG,AAAH,GAI3B,EAAQ,OAAO,CAAC,GAAG,CAAC,EACtB,EACF,CACF","sources":["<anon>","kirki-packages/control-generic/src/control.js"],"sourcesContent":["(function () {\nwp.customize.controlConstructor[\"kirki-generic\"] = wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function(_control) {\n const control = _control ?? this;\n const params = control.params;\n control.container.find(\"input, textarea\").on(\"change input\", function() {\n let value = jQuery(this).val();\n if (\"kirki-generic\" === params.type && params.choices && \"number\" === params.choices.type) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n if (value < params.choices.min) value = params.choices.min;\n else if (value > params.choices.max) value = params.choices.max;\n }\n control.setting.set(value);\n });\n }\n});\n\n})();\n//# sourceMappingURL=control.js.map\n","wp.customize.controlConstructor[\"kirki-generic\"] =\n wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function (_control) {\n const control = _control ?? this;\n const params = control.params;\n\n control.container.find(\"input, textarea\").on(\"change input\", function () {\n let value = jQuery(this).val();\n\n if (\n \"kirki-generic\" === params.type &&\n params.choices &&\n \"number\" === params.choices.type\n ) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n\n if (value < params.choices.min) {\n value = params.choices.min;\n } else if (value > params.choices.max) {\n value = params.choices.max;\n }\n }\n\n control.setting.set(value);\n });\n },\n });\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","_control","control","params","container","find","on","value","jQuery","val","type","choices","min","parseFloat","max","setting","set"],"version":3,"file":"control.js.map"} -
kirki/tags/5.1.1/kirki-packages/control-generic/src/control.js
r2925264 r3406713 1 1 wp.customize.controlConstructor["kirki-generic"] = 2 2 wp.customize.kirkiDynamicControl.extend({ 3 initKirkiControl: function ( control) {4 con trol = control ||this;3 initKirkiControl: function (_control) { 4 const control = _control ?? this; 5 5 const params = control.params; 6 6 7 7 control.container.find("input, textarea").on("change input", function () { 8 const value = jQuery(this).val();8 let value = jQuery(this).val(); 9 9 10 10 if ( -
kirki/tags/5.1.1/kirki-packages/control-react-colorful/src/Field/CSS/ReactColorful.php
r2925264 r3406713 14 14 15 15 /** 16 * Outp out overrides.16 * Output overrides. 17 17 */ 18 18 class ReactColorful extends Output { -
kirki/tags/5.1.1/kirki-packages/control-react-select/src/KirkiSelectControl.js
r2925264 r3406713 1 1 /* global wp, jQuery, React, ReactDOM, _ */ 2 2 import KirkiSelectForm from "./KirkiSelectForm"; 3 4 const wpReactRender = ( target, reactNode ) => { 5 if ( target ) { 6 7 if ( wp.element.createRoot ) { 8 wp.element.createRoot( target ).render( wp.element.reactNode ); 9 } else { 10 wp.element.render( reactNode, target ); 11 } 12 } 13 }; 3 14 4 15 /** … … 88 99 /> 89 100 ); 90 ReactDOM.render(form, control.container[0]);101 wpReactRender(control.container[0], form); 91 102 }, 92 103 -
kirki/tags/5.1.1/kirki-packages/control-repeater/src/Control/Repeater.php
r2925264 r3406713 250 250 /** 251 251 * Render the control's content. 252 * Allows the content to be overrid en without having to rewrite the wrapper in $this->render().252 * Allows the content to be overridden without having to rewrite the wrapper in $this->render(). 253 253 * 254 254 * @access protected -
kirki/tags/5.1.1/kirki-packages/control-repeater/src/control.js
r2925264 r3406713 645 645 */ 646 646 setValue: function (newValue, refresh, filtering) { 647 // We need to filter the values after the first load to remove data requ rired for diplay but that we don't want to save in DB647 // We need to filter the values after the first load to remove data required for display but that we don't want to save in DB 648 648 var filteredValue = newValue, 649 649 filter = []; … … 671 671 672 672 if (refresh) { 673 // Check acive_callback in every change 674 KirkiRepeaterDependencies.init(); 673 675 // Trigger the change event on the hidden field so 674 676 // previewer refresh the website on Customizer -
kirki/tags/5.1.1/kirki-packages/control-slider/src/KirkiSliderControl.js
r2925264 r3406713 1 1 import KirkiSliderForm from './KirkiSliderForm'; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 66 77 const control = this; 67 78 68 ReactDOM.render(79 const reactElement = ( 69 80 <KirkiSliderForm 70 81 {...control.params} 71 82 control={control} 72 83 customizerSetting={control.setting} 73 setNotificationContainer={control.setNotificationCo tainer}84 setNotificationContainer={control.setNotificationContainer} 74 85 value={control.params.value} 75 />, 76 control.container[0] 86 /> 77 87 ); 88 89 wpReactRender(control.container[0], reactElement); 78 90 79 91 if (false !== control.params.choices.allowCollapse) { … … 101 113 102 114 /** 103 * This method will be overrid en by the rendered component.115 * This method will be overridden by the rendered component. 104 116 */ 105 117 updateComponentState: (val) => { }, -
kirki/tags/5.1.1/kirki-packages/field-background/src/Background.php
r2925264 r3406713 377 377 378 378 // Set transport to refresh initially. 379 // Serves as a fallback in case we fail tto auto-calculate js_vars.379 // Serves as a fallback in case we failed to auto-calculate js_vars. 380 380 $this->transport = 'refresh'; 381 381 -
kirki/tags/5.1.1/kirki-packages/field/src/Field.php
r2925264 r3406713 113 113 add_action( 'customize_register', [ $this, 'add_control' ] ); 114 114 115 // Add default filters. Can be overrid en in child classes.115 // Add default filters. Can be overridden in child classes. 116 116 add_filter( 'kirki_field_add_setting_args', [ $this, 'filter_setting_args' ], 10, 2 ); 117 117 add_filter( 'kirki_field_add_control_args', [ $this, 'filter_control_args' ], 10, 2 ); -
kirki/tags/5.1.1/kirki-packages/l10n/src/L10n.php
r2925264 r3406713 60 60 $this->languages_path = $languages_path; 61 61 // This will only work if we're inside a plugin. 62 add_action( ' plugins_loaded', [ $this, 'load_textdomain' ] );62 add_action( 'init', [ $this, 'load_textdomain' ] ); 63 63 64 64 // If we got this far, then Kirki is embedded in a plugin. -
kirki/tags/5.1.1/kirki-packages/module-css/src/CSS.php
r2925264 r3406713 245 245 * Why not simply excluding all admin area except gutenberg editing interface? 246 246 * Because it would be nice to let the possibility open 247 * if a 3rd party plugin will output gutenberg s yles somewhere in admin area.247 * if a 3rd party plugin will output gutenberg styles somewhere in admin area. 248 248 * 249 249 * Example of possibility: -
kirki/tags/5.1.1/kirki-packages/module-css/src/CSS/Generator.php
r2925264 r3406713 169 169 self::$value = apply_filters( 'kirki_get_value', get_theme_mod( $field['settings'], $default ), $setting_name, $default, $option_type ); 170 170 171 // Find the class that will handle the outp out for this field.171 // Find the class that will handle the output for this field. 172 172 $classname = '\Kirki\Module\CSS\Output'; 173 173 $field_output_classes = apply_filters( 'kirki_output_control_classnames', [] ); -
kirki/tags/5.1.1/kirki-packages/module-css/src/CSS/Output.php
r2925264 r3406713 254 254 /** 255 255 * Inside gutenberg editing screen, prepend `.editor-styles-wrapper` to the element 256 * so that it doesn't pol ute elements other than inside the editing content.256 * so that it doesn't pollute elements other than inside the editing content. 257 257 */ 258 258 if ( isset( $_GET['editor'] ) && 1 === (int) $_GET['editor'] ) { -
kirki/tags/5.1.1/kirki-packages/module-field-dependencies/src/Field_Dependencies.php
r2925264 r3406713 29 29 30 30 /** 31 * An array of all repeater controls available. 32 * Regardless if it has [active_callback] or not. 33 * 34 * @access private 35 * @since 4.1.1 36 * @var array 37 */ 38 private $repeater_controls = []; 39 40 /** 31 41 * Constructor. 32 42 * … … 42 52 43 53 /** 54 * Collect all Repeater Controls in a new dependencies array 55 * other than [kirkiControlDependencies] 56 * to fix the issue that we can't find the repeater control 57 * in the array [kirkiControlDependencies] because 58 * it doesn't have [active_callback] array 59 * 60 * Now, We can use [active_callback] array in the repeater's childern 61 * 62 * @access private 63 * @since 4.1.1 64 * @param array $args The field arguments. 65 * @return void 66 */ 67 private function field_add_repeater_controls( $args ) { 68 $type = isset( $args['type'] ) ? $args['type'] : ''; 69 if ( in_array( $type, array( 'repeater', 'kirki-repeater' ), true ) ) { 70 $this->repeater_controls[$args['settings']] = '__return_true'; 71 } 72 73 } 74 75 /** 44 76 * Filter control arguments. 45 77 * … … 50 82 */ 51 83 public function field_add_control_args( $args ) { 84 85 // Collect a list of all Repeater Controls available 86 $this->field_add_repeater_controls( $args ); 52 87 53 88 if ( isset( $args['active_callback'] ) ) { … … 105 140 wp_enqueue_script( 'kirki_field_dependencies', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.js' ), [ 'jquery', 'customize-base', 'customize-controls' ], '4.0', true ); 106 141 wp_localize_script( 'kirki_field_dependencies', 'kirkiControlDependencies', $this->dependencies ); 142 wp_localize_script( 'kirki_field_dependencies', 'kirkiRepeaterControlsAvailable', $this->repeater_controls ); 107 143 108 144 } -
kirki/tags/5.1.1/kirki-packages/module-field-dependencies/src/control.js
r2925264 r3406713 319 319 }; 320 320 321 322 /** 323 * Enable [active_callback] for repeater's controls 324 * This function MUST be here to use [kirkiControlDependencies] passed from [Field_Dependencies.php] 325 * 326 * @author: Kirki 327 * @since 4.1.1 328 */ 329 var KirkiRepeaterDependencies = { 330 331 repeatersControls: {}, 332 333 repeatersActiveCallbackFields: {}, 334 listenTo: {}, 335 336 init: function() { 337 var self = this; 338 339 /* 1. Collect All Repeaters */ 340 _.each( window.kirkiRepeaterControlsAvailable, function (repDetails, repeaterID) { 341 342 var control = wp.customize.control(repeaterID); 343 344 if( control && control.params && control.params.type && control.params.type === 'repeater' ) { 345 346 self.repeatersControls[ control.id ] = self.repeatersControls[ control.id ] || []; 347 348 self.repeatersControls[ control.id ] = { 349 'user_entries': JSON.parse( decodeURI( control.setting.get() ) ) /* @see function [getValue] in [wp.customize.controlConstructor.repeater] located in [controls/js/script.js] */ 350 }; 351 352 } 353 354 } ); 355 356 /* 2. Collect Active Callbacks Arrays for each Available Repeater */ 357 _.each( self.repeatersControls, function( repDetails, repID ) { 358 359 var repControl = wp.customize.control( repID ), 360 repUserEntries = (! _.isUndefined( repDetails ) && !_.isUndefined( repDetails['user_entries'] ) && ! _.isEmpty( repDetails['user_entries'] ) ) ? repDetails['user_entries'] : null; 361 362 if( ! _.isUndefined( repControl ) && ! _.isNull( repUserEntries ) ) { 363 364 _.each(repUserEntries, function(rowValue, rowIndex) { 365 366 _.each(rowValue, function(eleValue, eleID) { 367 368 if( !_.isUndefined( repControl.params.fields[ eleID ] ) ) { 369 370 var eleDetails = repControl.params.fields[ eleID ]; 371 372 self.showRepeaterControl( repControl.id, eleDetails, rowValue ); 373 374 } 375 376 }); 377 378 }); 379 380 self.repeatersActiveCallbackFields[ repControl.id ] = self.repeatersActiveCallbackFields[ repControl.id ] || []; 381 self.repeatersActiveCallbackFields[ repControl.id ] = self.listenTo; 382 /* Destroy it */ 383 self.listenTo = {}; 384 385 } 386 387 } ); 388 389 390 /* 3. Iterate inside every user entry and Apply [showRepeaterControl] on each slave element */ 391 _.each( self.repeatersActiveCallbackFields, function( required_fields, repID ) { 392 393 objRepeaterControl = wp.customize.control( repID ); 394 395 if( ! _.isUndefined( objRepeaterControl ) ) { 396 397 var repUserEntries = JSON.parse( decodeURI( objRepeaterControl.setting.get() ) ), /* @see function [getValue] in [wp.customize.controlConstructor.repeater] located in [controls/js/script.js] */ 398 repFields = objRepeaterControl.params.fields; 399 400 _.each(repUserEntries, function(rowValue, rowIndex) { 401 402 _.each( required_fields, function( slaves, master ) { 403 404 _.each( slaves, function( slave ) { 405 406 var objSlave = repFields[ slave ], 407 setActiveState, 408 isDisplayed; 409 410 isDisplayed = function() { 411 return self.showRepeaterControl( repID, objSlave, rowValue ); 412 }; 413 414 setActiveState = function() { 415 if( isDisplayed() ) { 416 jQuery(objRepeaterControl.selector).find( '[data-row="' + rowIndex + '"] .repeater-field-' + slave ).removeClass('inactive').addClass('active').slideDown('fast'); 417 } 418 else { 419 jQuery(objRepeaterControl.selector).find( '[data-row="' + rowIndex + '"] .repeater-field-' + slave ).removeClass('active').addClass('inactive').slideUp('fast'); 420 } 421 }; 422 423 setActiveState(); 424 425 426 } ); 427 428 }); 429 430 }); 431 432 } 433 434 } ); 435 436 }, 437 438 439 /** 440 * Should we show the control? 441 * 442 * @since 4.0.22 443 * 444 * @param {string} repeaterID - The repeater ID 445 * @param {string|object} control - The control-id or the control object. 446 * @param {object} rowEntries - The user entry for a repeater block 447 * @returns {bool} 448 */ 449 showRepeaterControl: function( repeaterID, control, rowEntries ) { 450 451 var self = this, 452 show = true, 453 454 isOption = ( 455 ! _.isUndefined( control ) && /* Fix: Multiple Repeaters with no active_callback */ 456 ! _.isUndefined( control.id ) && /* Fix: Multiple Repeaters with no active_callback */ 457 control.id && // Check if id exists. 458 control.type && // Check if tpe exists. 459 ! _.isEmpty( control.type ) // Check if control's type is not empty. 460 ), 461 i; 462 463 // Exit early if control not found or if "required" argument is not defined. 464 if ( 'undefined' === typeof control || 'undefined' === typeof control.active_callback || ( control.active_callback && _.isEmpty( control.active_callback ) ) ) { 465 return true; 466 } 467 468 // Loop control requirements. 469 for ( i = 0; i < control.active_callback.length; i++ ) { 470 if ( ! self.checkCondition( repeaterID, control.active_callback[ i ], control, rowEntries, isOption, 'AND' ) ) { 471 show = false; 472 } 473 } 474 return show; 475 }, 476 477 /** 478 * Check a condition. 479 * 480 * @param {string} repeaterID - The repeater ID 481 * @param {Object} requirement - The requirement, inherited from showRepeaterControl - Represents the Active Callack Array. 482 * @param {Object} control - The repeater's control object. 483 * @param {object} rowEntries - The user entry for a repeater block 484 * @param {bool} isOption - Whether it's an option or not. 485 * @param {string} relation - Can be one of 'AND' or 'OR'. 486 */ 487 checkCondition: function( repeaterID, requirement, control, rowEntries, isOption, relation ) { 488 var self = this, 489 childRelation = ( 'AND' === relation ) ? 'OR' : 'AND', 490 nestedItems, 491 requirementSettingValue, 492 i; 493 494 495 496 // If an array of other requirements nested, we need to process them separately. 497 if ( 'undefined' !== typeof requirement[0] && 'undefined' === typeof requirement.setting ) { 498 499 nestedItems = []; 500 501 // Loop sub-requirements. 502 for ( i = 0; i < requirement.length; i++ ) { 503 nestedItems.push( self.checkCondition( repeaterID, requirement[ i ], control, rowEntries, isOption, childRelation ) ); 504 } 505 506 507 // OR relation. Check that true is part of the array. 508 if ( 'OR' === childRelation ) { 509 return ( -1 !== nestedItems.indexOf( true ) ); 510 } 511 512 // AND relation. Check that false is not part of the array. 513 return ( -1 === nestedItems.indexOf( false ) ); 514 } 515 516 517 // Early exit if setting is not defined. 518 if ( ! requirement.setting in rowEntries ) { 519 return true; 520 } 521 522 /* Requirement Setting User Value */ 523 requirementSettingValue = rowEntries[ requirement.setting ]; 524 525 // console.log( requirementSettingValue ); 526 527 /** 528 * Output: listenTo 529 * 530 * Master_#1 => array( 531 * 0: Slave #1, 532 * 1: Slave #2 533 * ) 534 * 535 */ 536 self.listenTo[ requirement.setting ] = self.listenTo[ requirement.setting ] || []; 537 538 if ( -1 === self.listenTo[ requirement.setting ].indexOf( control.id ) ) { 539 540 self.listenTo[ requirement.setting ].push( control.id ); 541 542 } 543 544 return self.evaluate( 545 requirement.value, 546 requirementSettingValue, 547 requirement.operator 548 ); 549 550 }, 551 552 /** 553 * Figure out if the 2 values have the relation we want. 554 * 555 * @since 4.0.22 556 * @param {mixed} value1 - The 1st value. 557 * @param {mixed} value2 - The 2nd value. 558 * @param {string} operator - The comparison to use. 559 * @returns {bool} 560 */ 561 evaluate: function( value1, value2, operator ) { 562 var found = false; 563 564 if ( '===' === operator ) { 565 return value1 === value2; 566 } 567 if ( '==' === operator || '=' === operator || 'equals' === operator || 'equal' === operator ) { 568 return value1 == value2; 569 } 570 if ( '!==' === operator ) { 571 return value1 !== value2; 572 } 573 if ( '!=' === operator || 'not equal' === operator ) { 574 return value1 != value2; 575 } 576 if ( '>=' === operator || 'greater or equal' === operator || 'equal or greater' === operator ) { 577 return value2 >= value1; 578 } 579 if ( '<=' === operator || 'smaller or equal' === operator || 'equal or smaller' === operator ) { 580 return value2 <= value1; 581 } 582 if ( '>' === operator || 'greater' === operator ) { 583 return value2 > value1; 584 } 585 if ( '<' === operator || 'smaller' === operator ) { 586 return value2 < value1; 587 } 588 if ( 'contains' === operator || 'in' === operator ) { 589 if ( _.isArray( value1 ) && _.isArray( value2 ) ) { 590 _.each( value2, function( value ) { 591 if ( value1.includes( value ) ) { 592 found = true; 593 return false; 594 } 595 } ); 596 return found; 597 } 598 if ( _.isArray( value2 ) ) { 599 _.each( value2, function( value ) { 600 if ( value == value1 ) { // jshint ignore:line 601 found = true; 602 } 603 } ); 604 return found; 605 } 606 if ( _.isObject( value2 ) ) { 607 if ( ! _.isUndefined( value2[ value1 ] ) ) { 608 found = true; 609 } 610 _.each( value2, function( subValue ) { 611 if ( value1 === subValue ) { 612 found = true; 613 } 614 } ); 615 return found; 616 } 617 if ( _.isString( value2 ) ) { 618 if ( _.isString( value1 ) ) { 619 return ( -1 < value1.indexOf( value2 ) && -1 < value2.indexOf( value1 ) ); 620 } 621 return -1 < value1.indexOf( value2 ); 622 } 623 } 624 return value1 == value2; 625 } 626 627 }; 628 321 629 jQuery(document).ready(function () { 322 630 kirkiDependencies.init(); 631 KirkiRepeaterDependencies.init(); 323 632 }); -
kirki/tags/5.1.1/kirki-packages/module-webfonts/src/Webfonts/Async.php
r2925264 r3406713 1 1 <?php 2 2 /** 3 * Adds the Webfont Loader to load fonts async ronously.3 * Adds the Webfont Loader to load fonts asynchronously. 4 4 * 5 5 * @package kirki-framework/module-webfonts … … 126 126 $this->googlefonts->process_fonts(); 127 127 128 $subset = apply_filters( 'kirki_googlefonts_subset', 'cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai' ); 129 128 130 foreach ( $this->googlefonts->fonts as $font => $weights ) { 129 131 foreach ( $weights as $key => $value ) { … … 134 136 } 135 137 } 136 $this->fonts_to_load[] = $font . ':' . join( ',', $weights ) . ': cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai';138 $this->fonts_to_load[] = $font . ':' . join( ',', $weights ) . ':' . $subset; 137 139 } 138 140 if ( ! empty( $this->fonts_to_load ) ) { -
kirki/tags/5.1.1/kirki-packages/module-webfonts/src/Webfonts/Embed.php
r2925264 r3406713 1 1 <?php 2 2 /** 3 * Adds the Webfont Loader to load fonts async ronously.3 * Adds the Webfont Loader to load fonts asynchronously. 4 4 * 5 5 * @package kirki-framework/module-webfonts … … 149 149 $family = str_replace( ' ', '+', trim( $font['family'] ) ); 150 150 $weights = join( ',', $font['weights'] ); 151 $url = "https://fonts.googleapis.com/css?family={$family}:{$weights}&subset=cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai&display=swap"; 151 $subset = apply_filters( 'kirki_googlefonts_subset', 'cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai' ); 152 $url = "https://fonts.googleapis.com/css?family={$family}:{$weights}&subset={$subset}&display=swap"; 152 153 153 154 $downloader = new Downloader(); -
kirki/tags/5.1.1/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js
r2925264 r3406713 79 79 80 80 // This is safer than appendChild in IE. appendChild causes random 81 // JS errors in IE. Sometimes errors in other JS exec tution, sometimes81 // JS errors in IE. Sometimes errors in other JS execution, sometimes 82 82 // complete 'This page cannot be displayed' errors. For our purposes, 83 83 // it's equivalent because we don't need to insert at any specific -
kirki/tags/5.1.1/kirki-packages/util/src/Helper.php
r2925264 r3406713 146 146 * @see https://pippinsplugins.com/retrieve-attachment-id-from-image-url/ 147 147 * @param string $url URL to the image. 148 * @return int|string Numeric ID of the attach ement.148 * @return int|string Numeric ID of the attachment. 149 149 */ 150 150 public static function get_image_id( $url ) { … … 342 342 * @param mixed $value2 The 2nd value in the comparison. 343 343 * @param string $operator The operator we'll use for the comparison. 344 * @return boolean whether The comparison has succe ded (true) or failed (false).344 * @return boolean whether The comparison has succeeded (true) or failed (false). 345 345 */ 346 346 public static function compare_values( $value1, $value2, $operator ) { -
kirki/tags/5.1.1/kirki.php
r3056602 r3406713 6 6 * Author: Themeum 7 7 * Author URI: https://themeum.com 8 * Version: 5.1. 08 * Version: 5.1.1 9 9 * Text Domain: kirki 10 10 * Requires at least: 5.2 11 * Requires PHP: 7. 111 * Requires PHP: 7.4 12 12 * 13 13 * @package Kirki … … 45 45 46 46 if ( ! defined( 'KIRKI_VERSION' ) ) { 47 define( 'KIRKI_VERSION', '5. 0.0' );47 define( 'KIRKI_VERSION', '5.1.1' ); 48 48 } 49 49 … … 96 96 97 97 /** 98 * To enable tests, add this line to your wp-config.php file (or anywhere alse):98 * To enable tests, add this line to your wp-config.php file (or anywhere else): 99 99 * define( 'KIRKI_TEST', true ); 100 100 * -
kirki/tags/5.1.1/pro-src/packages/kirki-pro-input-slider/src/KirkiInputSliderControl.js
r2947788 r3406713 1 1 import KirkiInputSliderForm from "./KirkiInputSliderForm"; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 67 78 const control = this; 68 79 69 ReactDOM.render(80 const reactElement = ( 70 81 <KirkiInputSliderForm 71 82 {...control.params} 72 83 control={control} 73 84 customizerSetting={control.setting} 74 setNotificationContainer={control.setNotificationCo tainer}85 setNotificationContainer={control.setNotificationContainer} 75 86 value={control.params.value} 76 />, 77 control.container[0] 78 ); 87 /> 88 ); 89 90 wpReactRender(control.container[0], reactElement) 79 91 80 92 if (false !== control.params.choices.allowCollapse) { … … 102 114 103 115 /** 104 * This method will be overrid en by the rendered component.116 * This method will be overridden by the rendered component. 105 117 */ 106 118 updateComponentState: (val) => {}, -
kirki/tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Margin.php
r2947788 r3406713 13 13 14 14 /** 15 * Outp out overrides.15 * Output overrides. 16 16 */ 17 17 class Margin extends Output { -
kirki/tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Padding.php
r2947788 r3406713 11 11 12 12 /** 13 * Outp out overrides.13 * Output overrides. 14 14 */ 15 15 class Padding extends Margin { -
kirki/tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingControl.js
r2947788 r3406713 1 1 import KirkiMarginPaddingForm from "./KirkiMarginPaddingForm"; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 67 78 const control = this; 68 79 69 ReactDOM.render(80 const reactElement = ( 70 81 <KirkiMarginPaddingForm 71 82 {...control.params} 72 83 control={control} 73 84 customizerSetting={control.setting} 74 setNotificationContainer={control.setNotificationCo tainer}85 setNotificationContainer={control.setNotificationContainer} 75 86 value={control.params.value} 76 />, 77 control.container[0] 78 ); 87 /> 88 ); 89 90 wpReactRender(control.container[0], reactElement); 79 91 80 92 if (false !== control.params.choices.allowCollapse) { … … 102 114 103 115 /** 104 * This method will be overrid en by the rendered component.116 * This method will be overridden by the rendered component. 105 117 */ 106 118 updateComponentState: (val) => {}, -
kirki/tags/5.1.1/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingForm.js
r2947788 r3406713 92 92 const unitRef = useRef(null); 93 93 94 const makeMap able = () => {94 const makeMappable = () => { 95 95 const items = []; 96 96 … … 139 139 <div className="kirki-control-left-col"> 140 140 <div class="kirki-control-fields"> 141 {makeMap able(inputValues).map((item) => {141 {makeMappable(inputValues).map((item) => { 142 142 const className = `kirki-control-input kirki-control-input-${item.position}`; 143 143 const id = `kirki-control-input-${props.type}-${item.position}`; -
kirki/tags/5.1.1/pro-src/packages/kirki-pro-responsive/src/Init.php
r2947788 r3406713 111 111 /** 112 112 * Parse the output argument. 113 * This method will format the "output" argument to modify the "media_query" based on the target ted device.113 * This method will format the "output" argument to modify the "media_query" based on the targeted device. 114 114 * This method will be called inside of "default" argument loop when the control is using responsive mode. 115 115 * … … 117 117 * 118 118 * @param array $args The field arguments. 119 * @param string $device The target ted device.119 * @param string $device The targeted device. 120 120 * 121 121 * @return array $args The modified field arguments. -
kirki/tags/5.1.1/pro-src/packages/kirki-pro-tabs/edd/EDD_SL_Plugin_Updater.php
r2947788 r3406713 392 392 393 393 /** 394 * Calls the API and, if successful l, returns the object delivered by the API.394 * Calls the API and, if successful, returns the object delivered by the API. 395 395 * 396 396 * @uses get_bloginfo() -
kirki/tags/5.1.1/readme.txt
r3056602 r3406713 3 3 Tags: customizer, options framework, theme, mods, toolkit, gutenberg 4 4 Requires at least: 5.2 5 Tested up to: 6. 4.36 Stable tag: 5.1. 05 Tested up to: 6.8.3 6 Stable tag: 5.1.1 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT -
kirki/trunk/kirki-composer/autoload.php
r2947788 r3406713 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 21 8 } 22 9 -
kirki/trunk/kirki-composer/composer/ClassLoader.php
r2947788 r3406713 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */46 private static $includeFile;47 48 45 /** @var ?string */ 49 46 private $vendorDir; … … 110 107 { 111 108 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure();113 109 } 114 110 … … 430 426 { 431 427 if ($file = $this->findFile($class)) { 432 $includeFile = self::$includeFile; 433 $includeFile($file); 428 includeFile($file); 434 429 435 430 return true; … … 561 556 return false; 562 557 } 563 564 /**565 * @return void566 */567 private static function initializeIncludeClosure()568 {569 if (self::$includeFile !== null) {570 return;571 }572 573 /**574 * Scope isolated include.575 *576 * Prevents access to $this/self from included files.577 *578 * @param string $file579 * @return void580 */581 self::$includeFile = \Closure::bind(static function($file) {582 include $file;583 }, null, null);584 }585 558 } 559 560 /** 561 * Scope isolated include. 562 * 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 568 */ 569 function includeFile($file) 570 { 571 include $file; 572 } -
kirki/trunk/kirki-composer/composer/InstalledVersions.php
r2947788 r3406713 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( (string)$constraint);122 $constraint = $parser->parseConstraints($constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 334 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 333 self::$installed = $installed[count($installed) - 1]; … … 343 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 344 342 if (substr(__DIR__, -8, 1) !== 'C') { 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 343 self::$installed = require __DIR__ . '/installed.php'; 348 344 } else { 349 345 self::$installed = array(); 350 346 } 351 347 } 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 348 $installed[] = self::$installed; 356 349 357 350 return $installed; -
kirki/trunk/kirki-composer/composer/autoload_psr4.php
r3056602 r3406713 7 7 8 8 return array( 9 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),10 9 'Kirki\\Util\\' => array($baseDir . '/kirki-packages/util/src'), 11 10 'Kirki\\Settings\\' => array($baseDir . '/kirki-packages/settings/src'), … … 16 15 'Kirki\\Compatibility\\' => array($baseDir . '/kirki-packages/compatibility/src'), 17 16 'Kirki\\' => array($baseDir . '/kirki-packages/control-base/src', $baseDir . '/kirki-packages/control-checkbox/src', $baseDir . '/kirki-packages/control-code/src', $baseDir . '/kirki-packages/control-color/src', $baseDir . '/kirki-packages/control-color-palette/src', $baseDir . '/kirki-packages/control-cropped-image/src', $baseDir . '/kirki-packages/control-custom/src', $baseDir . '/kirki-packages/control-dashicons/src', $baseDir . '/kirki-packages/control-date/src', $baseDir . '/kirki-packages/control-dimension/src', $baseDir . '/kirki-packages/control-editor/src', $baseDir . '/kirki-packages/control-generic/src', $baseDir . '/kirki-packages/control-image/src', $baseDir . '/kirki-packages/control-multicheck/src', $baseDir . '/kirki-packages/control-palette/src', $baseDir . '/kirki-packages/control-radio/src', $baseDir . '/kirki-packages/control-react-colorful/src', $baseDir . '/kirki-packages/control-react-select/src', $baseDir . '/kirki-packages/control-repeater/src', $baseDir . '/kirki-packages/control-select/src', $baseDir . '/kirki-packages/control-slider/src', $baseDir . '/kirki-packages/control-sortable/src', $baseDir . '/kirki-packages/control-upload/src', $baseDir . '/kirki-packages/field/src', $baseDir . '/kirki-packages/googlefonts/src', $baseDir . '/kirki-packages/l10n/src', $baseDir . '/kirki-packages/module-panels/src', $baseDir . '/kirki-packages/module-sections/src', $baseDir . '/kirki-packages/url-getter/src'), 18 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),19 17 ); -
kirki/trunk/kirki-composer/composer/autoload_static.php
r3056602 r3406713 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( 10 'P' =>11 array (12 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57,13 ),14 10 'K' => 15 11 array ( … … 23 19 'Kirki\\' => 6, 24 20 ), 25 'C' =>26 array (27 'Composer\\Installers\\' => 20,28 ),29 21 ); 30 22 31 23 public static $prefixDirsPsr4 = array ( 32 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>33 array (34 0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',35 ),36 24 'Kirki\\Util\\' => 37 25 array ( … … 109 97 28 => __DIR__ . '/../..' . '/kirki-packages/url-getter/src', 110 98 ), 111 'Composer\\Installers\\' =>112 array (113 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',114 ),115 99 ); 116 100 -
kirki/trunk/kirki-composer/composer/installed.json
r3056602 r3406713 1 1 { 2 "packages": [ 3 { 4 "name": "composer/installers", 5 "version": "v2.2.0", 6 "version_normalized": "2.2.0.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/composer/installers.git", 10 "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/composer/installers/zipball/c29dc4b93137acb82734f672c37e029dfbd95b35", 15 "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35", 16 "shasum": "" 17 }, 18 "require": { 19 "composer-plugin-api": "^1.0 || ^2.0", 20 "php": "^7.2 || ^8.0" 21 }, 22 "require-dev": { 23 "composer/composer": "1.6.* || ^2.0", 24 "composer/semver": "^1 || ^3", 25 "phpstan/phpstan": "^0.12.55", 26 "phpstan/phpstan-phpunit": "^0.12.16", 27 "symfony/phpunit-bridge": "^5.3", 28 "symfony/process": "^5" 29 }, 30 "time": "2022-08-20T06:45:11+00:00", 31 "type": "composer-plugin", 32 "extra": { 33 "class": "Composer\\Installers\\Plugin", 34 "branch-alias": { 35 "dev-main": "2.x-dev" 36 }, 37 "plugin-modifies-install-path": true 38 }, 39 "installation-source": "dist", 40 "autoload": { 41 "psr-4": { 42 "Composer\\Installers\\": "src/Composer/Installers" 43 } 44 }, 45 "notification-url": "https://packagist.org/downloads/", 46 "license": [ 47 "MIT" 48 ], 49 "authors": [ 50 { 51 "name": "Kyle Robinson Young", 52 "email": "[email protected]", 53 "homepage": "https://github.com/shama" 54 } 55 ], 56 "description": "A multi-framework Composer library installer", 57 "homepage": "https://composer.github.io/installers/", 58 "keywords": [ 59 "Dolibarr", 60 "Eliasis", 61 "Hurad", 62 "ImageCMS", 63 "Kanboard", 64 "Lan Management System", 65 "MODX Evo", 66 "MantisBT", 67 "Mautic", 68 "Maya", 69 "OXID", 70 "Plentymarkets", 71 "Porto", 72 "RadPHP", 73 "SMF", 74 "Starbug", 75 "Thelia", 76 "Whmcs", 77 "WolfCMS", 78 "agl", 79 "annotatecms", 80 "attogram", 81 "bitrix", 82 "cakephp", 83 "chef", 84 "cockpit", 85 "codeigniter", 86 "concrete5", 87 "croogo", 88 "dokuwiki", 89 "drupal", 90 "eZ Platform", 91 "elgg", 92 "expressionengine", 93 "fuelphp", 94 "grav", 95 "installer", 96 "itop", 97 "known", 98 "kohana", 99 "laravel", 100 "lavalite", 101 "lithium", 102 "magento", 103 "majima", 104 "mako", 105 "matomo", 106 "mediawiki", 107 "miaoxing", 108 "modulework", 109 "modx", 110 "moodle", 111 "osclass", 112 "pantheon", 113 "phpbb", 114 "piwik", 115 "ppi", 116 "processwire", 117 "puppet", 118 "pxcms", 119 "reindex", 120 "roundcube", 121 "shopware", 122 "silverstripe", 123 "sydes", 124 "sylius", 125 "tastyigniter", 126 "wordpress", 127 "yawik", 128 "zend", 129 "zikula" 130 ], 131 "support": { 132 "issues": "https://github.com/composer/installers/issues", 133 "source": "https://github.com/composer/installers/tree/v2.2.0" 134 }, 135 "funding": [ 136 { 137 "url": "https://packagist.com", 138 "type": "custom" 139 }, 140 { 141 "url": "https://github.com/composer", 142 "type": "github" 143 }, 144 { 145 "url": "https://tidelift.com/funding/github/packagist/composer/composer", 146 "type": "tidelift" 147 } 148 ], 149 "install-path": "./installers" 150 }, 151 { 152 "name": "dealerdirect/phpcodesniffer-composer-installer", 153 "version": "v1.0.0", 154 "version_normalized": "1.0.0.0", 155 "source": { 156 "type": "git", 157 "url": "https://github.com/PHPCSStandards/composer-installer.git", 158 "reference": "4be43904336affa5c2f70744a348312336afd0da" 159 }, 160 "dist": { 161 "type": "zip", 162 "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", 163 "reference": "4be43904336affa5c2f70744a348312336afd0da", 164 "shasum": "" 165 }, 166 "require": { 167 "composer-plugin-api": "^1.0 || ^2.0", 168 "php": ">=5.4", 169 "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" 170 }, 171 "require-dev": { 172 "composer/composer": "*", 173 "ext-json": "*", 174 "ext-zip": "*", 175 "php-parallel-lint/php-parallel-lint": "^1.3.1", 176 "phpcompatibility/php-compatibility": "^9.0", 177 "yoast/phpunit-polyfills": "^1.0" 178 }, 179 "time": "2023-01-05T11:28:13+00:00", 180 "type": "composer-plugin", 181 "extra": { 182 "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" 183 }, 184 "installation-source": "dist", 185 "autoload": { 186 "psr-4": { 187 "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" 188 } 189 }, 190 "notification-url": "https://packagist.org/downloads/", 191 "license": [ 192 "MIT" 193 ], 194 "authors": [ 195 { 196 "name": "Franck Nijhof", 197 "email": "[email protected]", 198 "homepage": "http://www.frenck.nl", 199 "role": "Developer / IT Manager" 200 }, 201 { 202 "name": "Contributors", 203 "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" 204 } 205 ], 206 "description": "PHP_CodeSniffer Standards Composer Installer Plugin", 207 "homepage": "http://www.dealerdirect.com", 208 "keywords": [ 209 "PHPCodeSniffer", 210 "PHP_CodeSniffer", 211 "code quality", 212 "codesniffer", 213 "composer", 214 "installer", 215 "phpcbf", 216 "phpcs", 217 "plugin", 218 "qa", 219 "quality", 220 "standard", 221 "standards", 222 "style guide", 223 "stylecheck", 224 "tests" 225 ], 226 "support": { 227 "issues": "https://github.com/PHPCSStandards/composer-installer/issues", 228 "source": "https://github.com/PHPCSStandards/composer-installer" 229 }, 230 "install-path": "../dealerdirect/phpcodesniffer-composer-installer" 231 }, 232 { 233 "name": "phpcompatibility/php-compatibility", 234 "version": "9.3.5", 235 "version_normalized": "9.3.5.0", 236 "source": { 237 "type": "git", 238 "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", 239 "reference": "9fb324479acf6f39452e0655d2429cc0d3914243" 240 }, 241 "dist": { 242 "type": "zip", 243 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243", 244 "reference": "9fb324479acf6f39452e0655d2429cc0d3914243", 245 "shasum": "" 246 }, 247 "require": { 248 "php": ">=5.3", 249 "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" 250 }, 251 "conflict": { 252 "squizlabs/php_codesniffer": "2.6.2" 253 }, 254 "require-dev": { 255 "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" 256 }, 257 "suggest": { 258 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", 259 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 260 }, 261 "time": "2019-12-27T09:44:58+00:00", 262 "type": "phpcodesniffer-standard", 263 "installation-source": "dist", 264 "notification-url": "https://packagist.org/downloads/", 265 "license": [ 266 "LGPL-3.0-or-later" 267 ], 268 "authors": [ 269 { 270 "name": "Wim Godden", 271 "homepage": "https://github.com/wimg", 272 "role": "lead" 273 }, 274 { 275 "name": "Juliette Reinders Folmer", 276 "homepage": "https://github.com/jrfnl", 277 "role": "lead" 278 }, 279 { 280 "name": "Contributors", 281 "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" 282 } 283 ], 284 "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", 285 "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", 286 "keywords": [ 287 "compatibility", 288 "phpcs", 289 "standards" 290 ], 291 "support": { 292 "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues", 293 "source": "https://github.com/PHPCompatibility/PHPCompatibility" 294 }, 295 "install-path": "../phpcompatibility/php-compatibility" 296 }, 297 { 298 "name": "phpcompatibility/phpcompatibility-paragonie", 299 "version": "1.3.2", 300 "version_normalized": "1.3.2.0", 301 "source": { 302 "type": "git", 303 "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", 304 "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26" 305 }, 306 "dist": { 307 "type": "zip", 308 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", 309 "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", 310 "shasum": "" 311 }, 312 "require": { 313 "phpcompatibility/php-compatibility": "^9.0" 314 }, 315 "require-dev": { 316 "dealerdirect/phpcodesniffer-composer-installer": "^0.7", 317 "paragonie/random_compat": "dev-master", 318 "paragonie/sodium_compat": "dev-master" 319 }, 320 "suggest": { 321 "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 322 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 323 }, 324 "time": "2022-10-25T01:46:02+00:00", 325 "type": "phpcodesniffer-standard", 326 "installation-source": "dist", 327 "notification-url": "https://packagist.org/downloads/", 328 "license": [ 329 "LGPL-3.0-or-later" 330 ], 331 "authors": [ 332 { 333 "name": "Wim Godden", 334 "role": "lead" 335 }, 336 { 337 "name": "Juliette Reinders Folmer", 338 "role": "lead" 339 } 340 ], 341 "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.", 342 "homepage": "http://phpcompatibility.com/", 343 "keywords": [ 344 "compatibility", 345 "paragonie", 346 "phpcs", 347 "polyfill", 348 "standards", 349 "static analysis" 350 ], 351 "support": { 352 "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues", 353 "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie" 354 }, 355 "install-path": "../phpcompatibility/phpcompatibility-paragonie" 356 }, 357 { 358 "name": "phpcompatibility/phpcompatibility-wp", 359 "version": "2.1.4", 360 "version_normalized": "2.1.4.0", 361 "source": { 362 "type": "git", 363 "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", 364 "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5" 365 }, 366 "dist": { 367 "type": "zip", 368 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5", 369 "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5", 370 "shasum": "" 371 }, 372 "require": { 373 "phpcompatibility/php-compatibility": "^9.0", 374 "phpcompatibility/phpcompatibility-paragonie": "^1.0" 375 }, 376 "require-dev": { 377 "dealerdirect/phpcodesniffer-composer-installer": "^0.7" 378 }, 379 "suggest": { 380 "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 381 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 382 }, 383 "time": "2022-10-24T09:00:36+00:00", 384 "type": "phpcodesniffer-standard", 385 "installation-source": "dist", 386 "notification-url": "https://packagist.org/downloads/", 387 "license": [ 388 "LGPL-3.0-or-later" 389 ], 390 "authors": [ 391 { 392 "name": "Wim Godden", 393 "role": "lead" 394 }, 395 { 396 "name": "Juliette Reinders Folmer", 397 "role": "lead" 398 } 399 ], 400 "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.", 401 "homepage": "http://phpcompatibility.com/", 402 "keywords": [ 403 "compatibility", 404 "phpcs", 405 "standards", 406 "static analysis", 407 "wordpress" 408 ], 409 "support": { 410 "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues", 411 "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP" 412 }, 413 "install-path": "../phpcompatibility/phpcompatibility-wp" 414 }, 415 { 416 "name": "squizlabs/php_codesniffer", 417 "version": "3.7.2", 418 "version_normalized": "3.7.2.0", 419 "source": { 420 "type": "git", 421 "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", 422 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" 423 }, 424 "dist": { 425 "type": "zip", 426 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", 427 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", 428 "shasum": "" 429 }, 430 "require": { 431 "ext-simplexml": "*", 432 "ext-tokenizer": "*", 433 "ext-xmlwriter": "*", 434 "php": ">=5.4.0" 435 }, 436 "require-dev": { 437 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 438 }, 439 "time": "2023-02-22T23:07:41+00:00", 440 "bin": [ 441 "bin/phpcs", 442 "bin/phpcbf" 443 ], 444 "type": "library", 445 "extra": { 446 "branch-alias": { 447 "dev-master": "3.x-dev" 448 } 449 }, 450 "installation-source": "dist", 451 "notification-url": "https://packagist.org/downloads/", 452 "license": [ 453 "BSD-3-Clause" 454 ], 455 "authors": [ 456 { 457 "name": "Greg Sherwood", 458 "role": "lead" 459 } 460 ], 461 "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", 462 "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", 463 "keywords": [ 464 "phpcs", 465 "standards", 466 "static analysis" 467 ], 468 "support": { 469 "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", 470 "source": "https://github.com/squizlabs/PHP_CodeSniffer", 471 "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" 472 }, 473 "install-path": "../squizlabs/php_codesniffer" 474 }, 475 { 476 "name": "wp-coding-standards/wpcs", 477 "version": "2.3.0", 478 "version_normalized": "2.3.0.0", 479 "source": { 480 "type": "git", 481 "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", 482 "reference": "7da1894633f168fe244afc6de00d141f27517b62" 483 }, 484 "dist": { 485 "type": "zip", 486 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", 487 "reference": "7da1894633f168fe244afc6de00d141f27517b62", 488 "shasum": "" 489 }, 490 "require": { 491 "php": ">=5.4", 492 "squizlabs/php_codesniffer": "^3.3.1" 493 }, 494 "require-dev": { 495 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", 496 "phpcompatibility/php-compatibility": "^9.0", 497 "phpcsstandards/phpcsdevtools": "^1.0", 498 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 499 }, 500 "suggest": { 501 "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." 502 }, 503 "time": "2020-05-13T23:57:56+00:00", 504 "type": "phpcodesniffer-standard", 505 "installation-source": "dist", 506 "notification-url": "https://packagist.org/downloads/", 507 "license": [ 508 "MIT" 509 ], 510 "authors": [ 511 { 512 "name": "Contributors", 513 "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors" 514 } 515 ], 516 "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions", 517 "keywords": [ 518 "phpcs", 519 "standards", 520 "wordpress" 521 ], 522 "support": { 523 "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues", 524 "source": "https://github.com/WordPress/WordPress-Coding-Standards", 525 "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" 526 }, 527 "install-path": "../wp-coding-standards/wpcs" 528 }, 529 { 530 "name": "wptrt/wpthemereview", 531 "version": "dev-develop", 532 "version_normalized": "dev-develop", 533 "source": { 534 "type": "git", 535 "url": "https://github.com/WPTT/WPThemeReview.git", 536 "reference": "15684d0852fe90d807c2ae7746dea1302b74b4bd" 537 }, 538 "dist": { 539 "type": "zip", 540 "url": "https://api.github.com/repos/WPTT/WPThemeReview/zipball/15684d0852fe90d807c2ae7746dea1302b74b4bd", 541 "reference": "15684d0852fe90d807c2ae7746dea1302b74b4bd", 542 "shasum": "" 543 }, 544 "require": { 545 "php": ">=5.4", 546 "phpcompatibility/phpcompatibility-wp": "^2.0", 547 "squizlabs/php_codesniffer": "^3.3.1", 548 "wp-coding-standards/wpcs": "^2.2.0" 549 }, 550 "require-dev": { 551 "dealerdirect/phpcodesniffer-composer-installer": "^0.7", 552 "php-parallel-lint/php-console-highlighter": "^0.5", 553 "php-parallel-lint/php-parallel-lint": "^1.0", 554 "phpcompatibility/php-compatibility": "^9.0", 555 "phpcsstandards/phpcsdevtools": "^1.0", 556 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0", 557 "roave/security-advisories": "dev-master" 558 }, 559 "suggest": { 560 "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." 561 }, 562 "time": "2021-06-22T06:10:49+00:00", 563 "default-branch": true, 564 "type": "phpcodesniffer-standard", 565 "installation-source": "dist", 566 "notification-url": "https://packagist.org/downloads/", 567 "license": [ 568 "MIT" 569 ], 570 "authors": [ 571 { 572 "name": "Theme Review Team", 573 "homepage": "https://make.wordpress.org/themes/handbook/", 574 "role": "Strategy and rule setting" 575 }, 576 { 577 "name": "Ulrich Pogson", 578 "homepage": "https://github.com/grappler", 579 "role": "Lead developer" 580 }, 581 { 582 "name": "Juliette Reinders Folmer", 583 "homepage": "https://github.com/jrfnl", 584 "role": "Lead developer" 585 }, 586 { 587 "name": "Denis Žoljom", 588 "homepage": "https://github.com/dingo-d", 589 "role": "Plugin integration lead" 590 }, 591 { 592 "name": "Contributors", 593 "homepage": "https://github.com/WPTRT/WPThemeReview/graphs/contributors" 594 } 595 ], 596 "description": "PHP_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org", 597 "homepage": "https://make.wordpress.org/themes/handbook/review/", 598 "keywords": [ 599 "phpcs", 600 "standards", 601 "themes", 602 "wordpress" 603 ], 604 "support": { 605 "issues": "https://github.com/WPTRT/WPThemeReview/issues", 606 "source": "https://github.com/WPTRT/WPThemeReview" 607 }, 608 "install-path": "../wptrt/wpthemereview" 609 } 610 ], 611 "dev": true, 612 "dev-package-names": [ 613 "composer/installers", 614 "dealerdirect/phpcodesniffer-composer-installer", 615 "phpcompatibility/php-compatibility", 616 "phpcompatibility/phpcompatibility-paragonie", 617 "phpcompatibility/phpcompatibility-wp", 618 "squizlabs/php_codesniffer", 619 "wp-coding-standards/wpcs", 620 "wptrt/wpthemereview" 621 ] 2 "packages": [], 3 "dev": false, 4 "dev-package-names": [] 622 5 } -
kirki/trunk/kirki-composer/composer/installed.php
r3056602 r3406713 8 8 'install_path' => __DIR__ . '/../../', 9 9 'aliases' => array(), 10 'dev' => true,10 'dev' => false, 11 11 ), 12 12 'versions' => array( 13 'composer/installers' => array(14 'pretty_version' => 'v2.2.0',15 'version' => '2.2.0.0',16 'reference' => 'c29dc4b93137acb82734f672c37e029dfbd95b35',17 'type' => 'composer-plugin',18 'install_path' => __DIR__ . '/./installers',19 'aliases' => array(),20 'dev_requirement' => true,21 ),22 'dealerdirect/phpcodesniffer-composer-installer' => array(23 'pretty_version' => 'v1.0.0',24 'version' => '1.0.0.0',25 'reference' => '4be43904336affa5c2f70744a348312336afd0da',26 'type' => 'composer-plugin',27 'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer',28 'aliases' => array(),29 'dev_requirement' => true,30 ),31 13 'kirki-framework/kirki' => array( 32 14 'pretty_version' => '5.0.0', … … 38 20 'dev_requirement' => false, 39 21 ), 40 'phpcompatibility/php-compatibility' => array(41 'pretty_version' => '9.3.5',42 'version' => '9.3.5.0',43 'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',44 'type' => 'phpcodesniffer-standard',45 'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility',46 'aliases' => array(),47 'dev_requirement' => true,48 ),49 'phpcompatibility/phpcompatibility-paragonie' => array(50 'pretty_version' => '1.3.2',51 'version' => '1.3.2.0',52 'reference' => 'bba5a9dfec7fcfbd679cfaf611d86b4d3759da26',53 'type' => 'phpcodesniffer-standard',54 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-paragonie',55 'aliases' => array(),56 'dev_requirement' => true,57 ),58 'phpcompatibility/phpcompatibility-wp' => array(59 'pretty_version' => '2.1.4',60 'version' => '2.1.4.0',61 'reference' => 'b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5',62 'type' => 'phpcodesniffer-standard',63 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-wp',64 'aliases' => array(),65 'dev_requirement' => true,66 ),67 'squizlabs/php_codesniffer' => array(68 'pretty_version' => '3.7.2',69 'version' => '3.7.2.0',70 'reference' => 'ed8e00df0a83aa96acf703f8c2979ff33341f879',71 'type' => 'library',72 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',73 'aliases' => array(),74 'dev_requirement' => true,75 ),76 'wp-coding-standards/wpcs' => array(77 'pretty_version' => '2.3.0',78 'version' => '2.3.0.0',79 'reference' => '7da1894633f168fe244afc6de00d141f27517b62',80 'type' => 'phpcodesniffer-standard',81 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs',82 'aliases' => array(),83 'dev_requirement' => true,84 ),85 'wptrt/wpthemereview' => array(86 'pretty_version' => 'dev-develop',87 'version' => 'dev-develop',88 'reference' => '15684d0852fe90d807c2ae7746dea1302b74b4bd',89 'type' => 'phpcodesniffer-standard',90 'install_path' => __DIR__ . '/../wptrt/wpthemereview',91 'aliases' => array(92 0 => '9999999-dev',93 ),94 'dev_requirement' => true,95 ),96 22 ), 97 23 ); -
kirki/trunk/kirki-packages/compatibility/src/Field.php
r3056602 r3406713 32 32 public $description; 33 33 public $help; 34 public $compiler; 34 35 35 36 protected $args = array(); … … 375 376 if ( 'theme_mods' === $this->option_type ) { 376 377 /* translators: %1$s represents the field ID where the error occurs. */ 377 _doing_it_wrong( __METHOD__, sprintf( esc_html ( 'Typo found in field %s - "theme_mods" vs "theme_mod"', 'kirki' ), esc_html( $this->settings ) ), '3.0.10' );378 _doing_it_wrong( __METHOD__, sprintf( esc_html__( 'Typo found in field %s - "theme_mods" vs "theme_mod"', 'kirki' ), esc_html( $this->settings ) ), '3.0.10' ); 378 379 $this->option_type = 'theme_mod'; 379 380 } … … 577 578 578 579 // Set transport to refresh initially. 579 // Serves as a fallback in case we fail tto auto-calculate js_vars.580 // Serves as a fallback in case we failed to auto-calculate js_vars. 580 581 $this->transport = 'refresh'; 581 582 -
kirki/trunk/kirki-packages/compatibility/src/Values.php
r2925264 r3406713 102 102 * @static 103 103 * @access public 104 * @param array $field The field ar uments.104 * @param array $field The field arguments. 105 105 * @return string|array 106 106 */ -
kirki/trunk/kirki-packages/control-color-palette/src/Field/Color_Palette.php
r2925264 r3406713 126 126 * Set the flag to use "global" and "multiline". 127 127 */ 128 $pattern = '/^(\#[\da-f]{3}|\#[\da-f]{6}|\#[\da-f]{8}|rgba\(((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*,\s*){2}((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*)(,\s*(0\.\d+|1))\)|rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)|hsla\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsl\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|hsva\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsv\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\))$/'; 128 //$pattern = '/^(\#[\da-f]{3}|\#[\da-f]{6}|\#[\da-f]{8}|rgba\(((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*,\s*){2}((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*)(,\s*(0\.\d+|1))\)|rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)|hsla\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsl\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|hsva\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsv\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\))$/'; 129 $pattern = '/^(\#[\da-f]{3}|\#[\da-f]{6}|\#[\da-f]{8}|rgba\(((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*,\s*){2}((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*)(,\s*(0\.\d+|1))\)|rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)|hsla\(\s*((\d{1,2}|[1-2]\d{2}|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsl\(\s*((\d{1,2}|[1-2]\d{2]|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|hsva\(\s*((\d{1,2}|[1-2]\d{2]|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)(,\s*(0\.\d+|1))\)|hsv\(\s*((\d{1,2}|[1-2]\d{2]|3([0-5]\d|60)))\s*,\s*((\d{1,2}|100)\s*%)\s*,\s*((\d{1,2}|100)\s*%)\)|--[\w-]+|var\(--[\w-]+(,\s*.+)?\))$/'; 129 130 131 130 132 \preg_match( $pattern, $value, $matches ); 131 133 -
kirki/trunk/kirki-packages/control-color-palette/src/KirkiColorPaletteControl.js
r2925264 r3406713 1 1 import KirkiColorPaletteForm from './KirkiColorPaletteForm'; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 66 77 const control = this; 67 78 68 ReactDOM.render(79 const reactElement = ( 69 80 <KirkiColorPaletteForm 70 81 {...control.params} 71 82 control={control} 72 83 customizerSetting={control.setting} 73 setNotificationContainer={control.setNotificationCo tainer}84 setNotificationContainer={control.setNotificationContainer} 74 85 value={control.params.value} 75 />, 76 control.container[0] 86 /> 77 87 ); 88 89 wpReactRender(control.container[0], reactElement) 78 90 79 91 if (false !== control.params.choices.allowCollapse) { … … 101 113 102 114 /** 103 * This method will be overrid en by the rendered component.115 * This method will be overridden by the rendered component. 104 116 */ 105 117 updateComponentState: (val) => { }, -
kirki/trunk/kirki-packages/control-dashicons/src/Control/Dashicons.php
r2925264 r3406713 114 114 'widgets': '<?php esc_html_e( 'Widgets', 'kirki' ); ?>', 115 115 'notifications': '<?php esc_html_e( 'Notifications', 'kirki' ); ?>', 116 'misc': '<?php esc_html_e( 'Miscel aneous', 'kirki' ); ?>'116 'misc': '<?php esc_html_e( 'Miscellaneous', 'kirki' ); ?>' 117 117 }; 118 118 #> -
kirki/trunk/kirki-packages/control-dashicons/src/Util/Dashicons.php
r2925264 r3406713 35 35 'tinymce' => [ 'editor-bold', 'editor-italic', 'editor-ul', 'editor-ol', 'editor-ol-rtl', 'editor-quote', 'editor-alignleft', 'editor-aligncenter', 'editor-alignright', 'editor-insertmore', 'editor-spellcheck', 'editor-expand', 'editor-contract', 'editor-kitchensink', 'editor-underline', 'editor-justify', 'editor-textcolor', 'editor-paste-word', 'editor-paste-text', 'editor-removeformatting', 'editor-video', 'editor-customchar', 'editor-outdent', 'editor-indent', 'editor-help', 'editor-strikethrough', 'editor-unlink', 'editor-rtl', 'editor-ltr', 'editor-break', 'editor-code', 'editor-paragraph', 'editor-table' ], 36 36 'posts' => [ 'align-left', 'align-right', 'align-center', 'align-none', 'lock', 'unlock', 'calendar', 'calendar-alt', 'visibility', 'hidden', 'post-status', 'edit', 'trash', 'sticky' ], 37 'sorting' => [ 'external', 'arrow-up', 'arrow-down', 'arrow-right', 'arrow-left', 'arrow-up-alt', 'arrow-down-alt', 'arrow-right-alt', 'arrow-left-alt', 'arrow-up-alt2', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-left-alt2', 'sort', 'leftright', 'randomize', 'list-view', 'ex erpt-view', 'grid-view', 'move' ],37 'sorting' => [ 'external', 'arrow-up', 'arrow-down', 'arrow-right', 'arrow-left', 'arrow-up-alt', 'arrow-down-alt', 'arrow-right-alt', 'arrow-left-alt', 'arrow-up-alt2', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-left-alt2', 'sort', 'leftright', 'randomize', 'list-view', 'excerpt-view', 'grid-view', 'move' ], 38 38 'social' => [ 'share', 'share-alt', 'share-alt2', 'twitter', 'rss', 'email', 'email-alt', 'email-alt2', 'facebook', 'facebook-alt', 'googleplus', 'networking', 'instagram' ], 39 39 'wordpress_org' => [ 'hammer', 'art', 'migrate', 'performance', 'universal-access', 'universal-access-alt', 'tickets', 'nametag', 'clipboard', 'heart', 'megaphone', 'schedule', 'tide', 'rest-api', 'code-standards' ], -
kirki/trunk/kirki-packages/control-editor/src/control.js
r2925264 r3406713 17 17 }; 18 18 19 // Overwrite the default param aters if choices is defined.19 // Overwrite the default parameters if choices is defined. 20 20 if ( wp.editor && wp.editor.initialize ) { 21 21 wp.editor.initialize( id, jQuery.extend( {}, defaultParams, control.params.choices ) ); -
kirki/trunk/kirki-packages/control-generic/dist/control.js
r2925264 r3406713 1 wp.customize.controlConstructor["kirki-generic"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(i){ var c=(i=i||this).params;i.container.find("input, textarea").on("change input",(function(){var e=jQuery(this).val();"kirki-generic"===c.type&&c.choices&&"number"===c.choices.type&&(c.choices.min=parseFloat(c.choices.min),c.choices.max=parseFloat(c.choices.max),e<c.choices.min?e=c.choices.min:e>c.choices.max&&(e=c.choices.max)),i.setting.set(e)}))}});1 wp.customize.controlConstructor["kirki-generic"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(i){let e=i??this,c=e.params;e.container.find("input, textarea").on("change input",function(){let i=jQuery(this).val();"kirki-generic"===c.type&&c.choices&&"number"===c.choices.type&&(c.choices.min=parseFloat(c.choices.min),c.choices.max=parseFloat(c.choices.max),i<c.choices.min?i=c.choices.min:i>c.choices.max&&(i=c.choices.max)),e.setting.set(i)})}}); 2 2 //# sourceMappingURL=control.js.map -
kirki/trunk/kirki-packages/control-generic/dist/control.js.map
r2925264 r3406713 1 {"mappings":"A AAAA,GAAGC,UAAUC,mBAAmB,iBAC9BF,GAAGC,UAAUE,oBAAoBC,OAAO,CACtCC,iBAAkB,SAAUC,GAE1B,IAAMC,GADND,EAAUA,GAAWE,MACED,OAEvBD,EAAQG,UAAUC,KAAK,mBAAmBC,GAAG,gBAAgB,WAC3D,IAAMC,EAAQC,OAAOL,MAAMM,MAGzB,kBAAoBP,EAAOQ,MAC3BR,EAAOS,SACP,WAAaT,EAAOS,QAAQD,OAE5BR,EAAOS,QAAQC,IAAMC,WAAWX,EAAOS,QAAQC,KAC/CV,EAAOS,QAAQG,IAAMD,WAAWX,EAAOS,QAAQG,KAE3CP,EAAQL,EAAOS,QAAQC,IACzBL,EAAQL,EAAOS,QAAQC,IACdL,EAAQL,EAAOS,QAAQG,MAChCP,EAAQL,EAAOS,QAAQG,MAI3Bb,EAAQc,QAAQC,IAAIT","sources":["packages/kirki-framework/control-generic/src/control.js"],"sourcesContent":["wp.customize.controlConstructor[\"kirki-generic\"] =\n wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function (control) {\n control = control || this;\n const params = control.params;\n\n control.container.find(\"input, textarea\").on(\"change input\", function () {\n const value = jQuery(this).val();\n\n if (\n \"kirki-generic\" === params.type &&\n params.choices &&\n \"number\" === params.choices.type\n ) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n\n if (value < params.choices.min) {\n value = params.choices.min;\n } else if (value > params.choices.max) {\n value = params.choices.max;\n }\n }\n\n control.setting.set(value);\n });\n },\n });\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","params","this","container","find","on","value","jQuery","val","type","choices","min","parseFloat","max","setting","set"],"version":3,"file":"control.js.map"}1 {"mappings":"ACAA,GAAG,SAAS,CAAC,kBAAkB,CAAC,gBAAgB,CAC9C,GAAG,SAAS,CAAC,mBAAmB,CAAC,MAAM,CAAC,CACtC,iBAAkB,SAAU,CAAQ,EAClC,IAAM,EAAU,GAAY,IAAI,CAC1B,EAAS,EAAQ,MAAM,CAE7B,EAAQ,SAAS,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,eAAgB,WAC3D,IAAI,EAAQ,OAAO,IAAI,EAAE,GAAG,EAG1B,CAAA,kBAAoB,EAAO,IAAI,EAC/B,EAAO,OAAO,EACd,WAAa,EAAO,OAAO,CAAC,IAAI,GAEhC,EAAO,OAAO,CAAC,GAAG,CAAG,WAAW,EAAO,OAAO,CAAC,GAAG,EAClD,EAAO,OAAO,CAAC,GAAG,CAAG,WAAW,EAAO,OAAO,CAAC,GAAG,EAE9C,EAAQ,EAAO,OAAO,CAAC,GAAG,CAC5B,EAAQ,EAAO,OAAO,CAAC,GAAG,CACjB,EAAQ,EAAO,OAAO,CAAC,GAAG,EACnC,CAAA,EAAQ,EAAO,OAAO,CAAC,GAAG,AAAH,GAI3B,EAAQ,OAAO,CAAC,GAAG,CAAC,EACtB,EACF,CACF","sources":["<anon>","kirki-packages/control-generic/src/control.js"],"sourcesContent":["(function () {\nwp.customize.controlConstructor[\"kirki-generic\"] = wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function(_control) {\n const control = _control ?? this;\n const params = control.params;\n control.container.find(\"input, textarea\").on(\"change input\", function() {\n let value = jQuery(this).val();\n if (\"kirki-generic\" === params.type && params.choices && \"number\" === params.choices.type) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n if (value < params.choices.min) value = params.choices.min;\n else if (value > params.choices.max) value = params.choices.max;\n }\n control.setting.set(value);\n });\n }\n});\n\n})();\n//# sourceMappingURL=control.js.map\n","wp.customize.controlConstructor[\"kirki-generic\"] =\n wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function (_control) {\n const control = _control ?? this;\n const params = control.params;\n\n control.container.find(\"input, textarea\").on(\"change input\", function () {\n let value = jQuery(this).val();\n\n if (\n \"kirki-generic\" === params.type &&\n params.choices &&\n \"number\" === params.choices.type\n ) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n\n if (value < params.choices.min) {\n value = params.choices.min;\n } else if (value > params.choices.max) {\n value = params.choices.max;\n }\n }\n\n control.setting.set(value);\n });\n },\n });\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","_control","control","params","container","find","on","value","jQuery","val","type","choices","min","parseFloat","max","setting","set"],"version":3,"file":"control.js.map"} -
kirki/trunk/kirki-packages/control-generic/src/control.js
r2925264 r3406713 1 1 wp.customize.controlConstructor["kirki-generic"] = 2 2 wp.customize.kirkiDynamicControl.extend({ 3 initKirkiControl: function ( control) {4 con trol = control ||this;3 initKirkiControl: function (_control) { 4 const control = _control ?? this; 5 5 const params = control.params; 6 6 7 7 control.container.find("input, textarea").on("change input", function () { 8 const value = jQuery(this).val();8 let value = jQuery(this).val(); 9 9 10 10 if ( -
kirki/trunk/kirki-packages/control-react-colorful/src/Field/CSS/ReactColorful.php
r2925264 r3406713 14 14 15 15 /** 16 * Outp out overrides.16 * Output overrides. 17 17 */ 18 18 class ReactColorful extends Output { -
kirki/trunk/kirki-packages/control-react-select/src/KirkiSelectControl.js
r2925264 r3406713 1 1 /* global wp, jQuery, React, ReactDOM, _ */ 2 2 import KirkiSelectForm from "./KirkiSelectForm"; 3 4 const wpReactRender = ( target, reactNode ) => { 5 if ( target ) { 6 7 if ( wp.element.createRoot ) { 8 wp.element.createRoot( target ).render( wp.element.reactNode ); 9 } else { 10 wp.element.render( reactNode, target ); 11 } 12 } 13 }; 3 14 4 15 /** … … 88 99 /> 89 100 ); 90 ReactDOM.render(form, control.container[0]);101 wpReactRender(control.container[0], form); 91 102 }, 92 103 -
kirki/trunk/kirki-packages/control-repeater/src/Control/Repeater.php
r2925264 r3406713 250 250 /** 251 251 * Render the control's content. 252 * Allows the content to be overrid en without having to rewrite the wrapper in $this->render().252 * Allows the content to be overridden without having to rewrite the wrapper in $this->render(). 253 253 * 254 254 * @access protected -
kirki/trunk/kirki-packages/control-repeater/src/control.js
r2925264 r3406713 645 645 */ 646 646 setValue: function (newValue, refresh, filtering) { 647 // We need to filter the values after the first load to remove data requ rired for diplay but that we don't want to save in DB647 // We need to filter the values after the first load to remove data required for display but that we don't want to save in DB 648 648 var filteredValue = newValue, 649 649 filter = []; … … 671 671 672 672 if (refresh) { 673 // Check acive_callback in every change 674 KirkiRepeaterDependencies.init(); 673 675 // Trigger the change event on the hidden field so 674 676 // previewer refresh the website on Customizer -
kirki/trunk/kirki-packages/control-slider/src/KirkiSliderControl.js
r2925264 r3406713 1 1 import KirkiSliderForm from './KirkiSliderForm'; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 66 77 const control = this; 67 78 68 ReactDOM.render(79 const reactElement = ( 69 80 <KirkiSliderForm 70 81 {...control.params} 71 82 control={control} 72 83 customizerSetting={control.setting} 73 setNotificationContainer={control.setNotificationCo tainer}84 setNotificationContainer={control.setNotificationContainer} 74 85 value={control.params.value} 75 />, 76 control.container[0] 86 /> 77 87 ); 88 89 wpReactRender(control.container[0], reactElement); 78 90 79 91 if (false !== control.params.choices.allowCollapse) { … … 101 113 102 114 /** 103 * This method will be overrid en by the rendered component.115 * This method will be overridden by the rendered component. 104 116 */ 105 117 updateComponentState: (val) => { }, -
kirki/trunk/kirki-packages/field-background/src/Background.php
r2925264 r3406713 377 377 378 378 // Set transport to refresh initially. 379 // Serves as a fallback in case we fail tto auto-calculate js_vars.379 // Serves as a fallback in case we failed to auto-calculate js_vars. 380 380 $this->transport = 'refresh'; 381 381 -
kirki/trunk/kirki-packages/field/src/Field.php
r2925264 r3406713 113 113 add_action( 'customize_register', [ $this, 'add_control' ] ); 114 114 115 // Add default filters. Can be overrid en in child classes.115 // Add default filters. Can be overridden in child classes. 116 116 add_filter( 'kirki_field_add_setting_args', [ $this, 'filter_setting_args' ], 10, 2 ); 117 117 add_filter( 'kirki_field_add_control_args', [ $this, 'filter_control_args' ], 10, 2 ); -
kirki/trunk/kirki-packages/l10n/src/L10n.php
r2925264 r3406713 60 60 $this->languages_path = $languages_path; 61 61 // This will only work if we're inside a plugin. 62 add_action( ' plugins_loaded', [ $this, 'load_textdomain' ] );62 add_action( 'init', [ $this, 'load_textdomain' ] ); 63 63 64 64 // If we got this far, then Kirki is embedded in a plugin. -
kirki/trunk/kirki-packages/module-css/src/CSS.php
r2925264 r3406713 245 245 * Why not simply excluding all admin area except gutenberg editing interface? 246 246 * Because it would be nice to let the possibility open 247 * if a 3rd party plugin will output gutenberg s yles somewhere in admin area.247 * if a 3rd party plugin will output gutenberg styles somewhere in admin area. 248 248 * 249 249 * Example of possibility: -
kirki/trunk/kirki-packages/module-css/src/CSS/Generator.php
r2925264 r3406713 169 169 self::$value = apply_filters( 'kirki_get_value', get_theme_mod( $field['settings'], $default ), $setting_name, $default, $option_type ); 170 170 171 // Find the class that will handle the outp out for this field.171 // Find the class that will handle the output for this field. 172 172 $classname = '\Kirki\Module\CSS\Output'; 173 173 $field_output_classes = apply_filters( 'kirki_output_control_classnames', [] ); -
kirki/trunk/kirki-packages/module-css/src/CSS/Output.php
r2925264 r3406713 254 254 /** 255 255 * Inside gutenberg editing screen, prepend `.editor-styles-wrapper` to the element 256 * so that it doesn't pol ute elements other than inside the editing content.256 * so that it doesn't pollute elements other than inside the editing content. 257 257 */ 258 258 if ( isset( $_GET['editor'] ) && 1 === (int) $_GET['editor'] ) { -
kirki/trunk/kirki-packages/module-field-dependencies/src/Field_Dependencies.php
r2925264 r3406713 29 29 30 30 /** 31 * An array of all repeater controls available. 32 * Regardless if it has [active_callback] or not. 33 * 34 * @access private 35 * @since 4.1.1 36 * @var array 37 */ 38 private $repeater_controls = []; 39 40 /** 31 41 * Constructor. 32 42 * … … 42 52 43 53 /** 54 * Collect all Repeater Controls in a new dependencies array 55 * other than [kirkiControlDependencies] 56 * to fix the issue that we can't find the repeater control 57 * in the array [kirkiControlDependencies] because 58 * it doesn't have [active_callback] array 59 * 60 * Now, We can use [active_callback] array in the repeater's childern 61 * 62 * @access private 63 * @since 4.1.1 64 * @param array $args The field arguments. 65 * @return void 66 */ 67 private function field_add_repeater_controls( $args ) { 68 $type = isset( $args['type'] ) ? $args['type'] : ''; 69 if ( in_array( $type, array( 'repeater', 'kirki-repeater' ), true ) ) { 70 $this->repeater_controls[$args['settings']] = '__return_true'; 71 } 72 73 } 74 75 /** 44 76 * Filter control arguments. 45 77 * … … 50 82 */ 51 83 public function field_add_control_args( $args ) { 84 85 // Collect a list of all Repeater Controls available 86 $this->field_add_repeater_controls( $args ); 52 87 53 88 if ( isset( $args['active_callback'] ) ) { … … 105 140 wp_enqueue_script( 'kirki_field_dependencies', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.js' ), [ 'jquery', 'customize-base', 'customize-controls' ], '4.0', true ); 106 141 wp_localize_script( 'kirki_field_dependencies', 'kirkiControlDependencies', $this->dependencies ); 142 wp_localize_script( 'kirki_field_dependencies', 'kirkiRepeaterControlsAvailable', $this->repeater_controls ); 107 143 108 144 } -
kirki/trunk/kirki-packages/module-field-dependencies/src/control.js
r2925264 r3406713 319 319 }; 320 320 321 322 /** 323 * Enable [active_callback] for repeater's controls 324 * This function MUST be here to use [kirkiControlDependencies] passed from [Field_Dependencies.php] 325 * 326 * @author: Kirki 327 * @since 4.1.1 328 */ 329 var KirkiRepeaterDependencies = { 330 331 repeatersControls: {}, 332 333 repeatersActiveCallbackFields: {}, 334 listenTo: {}, 335 336 init: function() { 337 var self = this; 338 339 /* 1. Collect All Repeaters */ 340 _.each( window.kirkiRepeaterControlsAvailable, function (repDetails, repeaterID) { 341 342 var control = wp.customize.control(repeaterID); 343 344 if( control && control.params && control.params.type && control.params.type === 'repeater' ) { 345 346 self.repeatersControls[ control.id ] = self.repeatersControls[ control.id ] || []; 347 348 self.repeatersControls[ control.id ] = { 349 'user_entries': JSON.parse( decodeURI( control.setting.get() ) ) /* @see function [getValue] in [wp.customize.controlConstructor.repeater] located in [controls/js/script.js] */ 350 }; 351 352 } 353 354 } ); 355 356 /* 2. Collect Active Callbacks Arrays for each Available Repeater */ 357 _.each( self.repeatersControls, function( repDetails, repID ) { 358 359 var repControl = wp.customize.control( repID ), 360 repUserEntries = (! _.isUndefined( repDetails ) && !_.isUndefined( repDetails['user_entries'] ) && ! _.isEmpty( repDetails['user_entries'] ) ) ? repDetails['user_entries'] : null; 361 362 if( ! _.isUndefined( repControl ) && ! _.isNull( repUserEntries ) ) { 363 364 _.each(repUserEntries, function(rowValue, rowIndex) { 365 366 _.each(rowValue, function(eleValue, eleID) { 367 368 if( !_.isUndefined( repControl.params.fields[ eleID ] ) ) { 369 370 var eleDetails = repControl.params.fields[ eleID ]; 371 372 self.showRepeaterControl( repControl.id, eleDetails, rowValue ); 373 374 } 375 376 }); 377 378 }); 379 380 self.repeatersActiveCallbackFields[ repControl.id ] = self.repeatersActiveCallbackFields[ repControl.id ] || []; 381 self.repeatersActiveCallbackFields[ repControl.id ] = self.listenTo; 382 /* Destroy it */ 383 self.listenTo = {}; 384 385 } 386 387 } ); 388 389 390 /* 3. Iterate inside every user entry and Apply [showRepeaterControl] on each slave element */ 391 _.each( self.repeatersActiveCallbackFields, function( required_fields, repID ) { 392 393 objRepeaterControl = wp.customize.control( repID ); 394 395 if( ! _.isUndefined( objRepeaterControl ) ) { 396 397 var repUserEntries = JSON.parse( decodeURI( objRepeaterControl.setting.get() ) ), /* @see function [getValue] in [wp.customize.controlConstructor.repeater] located in [controls/js/script.js] */ 398 repFields = objRepeaterControl.params.fields; 399 400 _.each(repUserEntries, function(rowValue, rowIndex) { 401 402 _.each( required_fields, function( slaves, master ) { 403 404 _.each( slaves, function( slave ) { 405 406 var objSlave = repFields[ slave ], 407 setActiveState, 408 isDisplayed; 409 410 isDisplayed = function() { 411 return self.showRepeaterControl( repID, objSlave, rowValue ); 412 }; 413 414 setActiveState = function() { 415 if( isDisplayed() ) { 416 jQuery(objRepeaterControl.selector).find( '[data-row="' + rowIndex + '"] .repeater-field-' + slave ).removeClass('inactive').addClass('active').slideDown('fast'); 417 } 418 else { 419 jQuery(objRepeaterControl.selector).find( '[data-row="' + rowIndex + '"] .repeater-field-' + slave ).removeClass('active').addClass('inactive').slideUp('fast'); 420 } 421 }; 422 423 setActiveState(); 424 425 426 } ); 427 428 }); 429 430 }); 431 432 } 433 434 } ); 435 436 }, 437 438 439 /** 440 * Should we show the control? 441 * 442 * @since 4.0.22 443 * 444 * @param {string} repeaterID - The repeater ID 445 * @param {string|object} control - The control-id or the control object. 446 * @param {object} rowEntries - The user entry for a repeater block 447 * @returns {bool} 448 */ 449 showRepeaterControl: function( repeaterID, control, rowEntries ) { 450 451 var self = this, 452 show = true, 453 454 isOption = ( 455 ! _.isUndefined( control ) && /* Fix: Multiple Repeaters with no active_callback */ 456 ! _.isUndefined( control.id ) && /* Fix: Multiple Repeaters with no active_callback */ 457 control.id && // Check if id exists. 458 control.type && // Check if tpe exists. 459 ! _.isEmpty( control.type ) // Check if control's type is not empty. 460 ), 461 i; 462 463 // Exit early if control not found or if "required" argument is not defined. 464 if ( 'undefined' === typeof control || 'undefined' === typeof control.active_callback || ( control.active_callback && _.isEmpty( control.active_callback ) ) ) { 465 return true; 466 } 467 468 // Loop control requirements. 469 for ( i = 0; i < control.active_callback.length; i++ ) { 470 if ( ! self.checkCondition( repeaterID, control.active_callback[ i ], control, rowEntries, isOption, 'AND' ) ) { 471 show = false; 472 } 473 } 474 return show; 475 }, 476 477 /** 478 * Check a condition. 479 * 480 * @param {string} repeaterID - The repeater ID 481 * @param {Object} requirement - The requirement, inherited from showRepeaterControl - Represents the Active Callack Array. 482 * @param {Object} control - The repeater's control object. 483 * @param {object} rowEntries - The user entry for a repeater block 484 * @param {bool} isOption - Whether it's an option or not. 485 * @param {string} relation - Can be one of 'AND' or 'OR'. 486 */ 487 checkCondition: function( repeaterID, requirement, control, rowEntries, isOption, relation ) { 488 var self = this, 489 childRelation = ( 'AND' === relation ) ? 'OR' : 'AND', 490 nestedItems, 491 requirementSettingValue, 492 i; 493 494 495 496 // If an array of other requirements nested, we need to process them separately. 497 if ( 'undefined' !== typeof requirement[0] && 'undefined' === typeof requirement.setting ) { 498 499 nestedItems = []; 500 501 // Loop sub-requirements. 502 for ( i = 0; i < requirement.length; i++ ) { 503 nestedItems.push( self.checkCondition( repeaterID, requirement[ i ], control, rowEntries, isOption, childRelation ) ); 504 } 505 506 507 // OR relation. Check that true is part of the array. 508 if ( 'OR' === childRelation ) { 509 return ( -1 !== nestedItems.indexOf( true ) ); 510 } 511 512 // AND relation. Check that false is not part of the array. 513 return ( -1 === nestedItems.indexOf( false ) ); 514 } 515 516 517 // Early exit if setting is not defined. 518 if ( ! requirement.setting in rowEntries ) { 519 return true; 520 } 521 522 /* Requirement Setting User Value */ 523 requirementSettingValue = rowEntries[ requirement.setting ]; 524 525 // console.log( requirementSettingValue ); 526 527 /** 528 * Output: listenTo 529 * 530 * Master_#1 => array( 531 * 0: Slave #1, 532 * 1: Slave #2 533 * ) 534 * 535 */ 536 self.listenTo[ requirement.setting ] = self.listenTo[ requirement.setting ] || []; 537 538 if ( -1 === self.listenTo[ requirement.setting ].indexOf( control.id ) ) { 539 540 self.listenTo[ requirement.setting ].push( control.id ); 541 542 } 543 544 return self.evaluate( 545 requirement.value, 546 requirementSettingValue, 547 requirement.operator 548 ); 549 550 }, 551 552 /** 553 * Figure out if the 2 values have the relation we want. 554 * 555 * @since 4.0.22 556 * @param {mixed} value1 - The 1st value. 557 * @param {mixed} value2 - The 2nd value. 558 * @param {string} operator - The comparison to use. 559 * @returns {bool} 560 */ 561 evaluate: function( value1, value2, operator ) { 562 var found = false; 563 564 if ( '===' === operator ) { 565 return value1 === value2; 566 } 567 if ( '==' === operator || '=' === operator || 'equals' === operator || 'equal' === operator ) { 568 return value1 == value2; 569 } 570 if ( '!==' === operator ) { 571 return value1 !== value2; 572 } 573 if ( '!=' === operator || 'not equal' === operator ) { 574 return value1 != value2; 575 } 576 if ( '>=' === operator || 'greater or equal' === operator || 'equal or greater' === operator ) { 577 return value2 >= value1; 578 } 579 if ( '<=' === operator || 'smaller or equal' === operator || 'equal or smaller' === operator ) { 580 return value2 <= value1; 581 } 582 if ( '>' === operator || 'greater' === operator ) { 583 return value2 > value1; 584 } 585 if ( '<' === operator || 'smaller' === operator ) { 586 return value2 < value1; 587 } 588 if ( 'contains' === operator || 'in' === operator ) { 589 if ( _.isArray( value1 ) && _.isArray( value2 ) ) { 590 _.each( value2, function( value ) { 591 if ( value1.includes( value ) ) { 592 found = true; 593 return false; 594 } 595 } ); 596 return found; 597 } 598 if ( _.isArray( value2 ) ) { 599 _.each( value2, function( value ) { 600 if ( value == value1 ) { // jshint ignore:line 601 found = true; 602 } 603 } ); 604 return found; 605 } 606 if ( _.isObject( value2 ) ) { 607 if ( ! _.isUndefined( value2[ value1 ] ) ) { 608 found = true; 609 } 610 _.each( value2, function( subValue ) { 611 if ( value1 === subValue ) { 612 found = true; 613 } 614 } ); 615 return found; 616 } 617 if ( _.isString( value2 ) ) { 618 if ( _.isString( value1 ) ) { 619 return ( -1 < value1.indexOf( value2 ) && -1 < value2.indexOf( value1 ) ); 620 } 621 return -1 < value1.indexOf( value2 ); 622 } 623 } 624 return value1 == value2; 625 } 626 627 }; 628 321 629 jQuery(document).ready(function () { 322 630 kirkiDependencies.init(); 631 KirkiRepeaterDependencies.init(); 323 632 }); -
kirki/trunk/kirki-packages/module-webfonts/src/Webfonts/Async.php
r2925264 r3406713 1 1 <?php 2 2 /** 3 * Adds the Webfont Loader to load fonts async ronously.3 * Adds the Webfont Loader to load fonts asynchronously. 4 4 * 5 5 * @package kirki-framework/module-webfonts … … 126 126 $this->googlefonts->process_fonts(); 127 127 128 $subset = apply_filters( 'kirki_googlefonts_subset', 'cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai' ); 129 128 130 foreach ( $this->googlefonts->fonts as $font => $weights ) { 129 131 foreach ( $weights as $key => $value ) { … … 134 136 } 135 137 } 136 $this->fonts_to_load[] = $font . ':' . join( ',', $weights ) . ': cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai';138 $this->fonts_to_load[] = $font . ':' . join( ',', $weights ) . ':' . $subset; 137 139 } 138 140 if ( ! empty( $this->fonts_to_load ) ) { -
kirki/trunk/kirki-packages/module-webfonts/src/Webfonts/Embed.php
r2925264 r3406713 1 1 <?php 2 2 /** 3 * Adds the Webfont Loader to load fonts async ronously.3 * Adds the Webfont Loader to load fonts asynchronously. 4 4 * 5 5 * @package kirki-framework/module-webfonts … … 149 149 $family = str_replace( ' ', '+', trim( $font['family'] ) ); 150 150 $weights = join( ',', $font['weights'] ); 151 $url = "https://fonts.googleapis.com/css?family={$family}:{$weights}&subset=cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai&display=swap"; 151 $subset = apply_filters( 'kirki_googlefonts_subset', 'cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai' ); 152 $url = "https://fonts.googleapis.com/css?family={$family}:{$weights}&subset={$subset}&display=swap"; 152 153 153 154 $downloader = new Downloader(); -
kirki/trunk/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js
r2925264 r3406713 79 79 80 80 // This is safer than appendChild in IE. appendChild causes random 81 // JS errors in IE. Sometimes errors in other JS exec tution, sometimes81 // JS errors in IE. Sometimes errors in other JS execution, sometimes 82 82 // complete 'This page cannot be displayed' errors. For our purposes, 83 83 // it's equivalent because we don't need to insert at any specific -
kirki/trunk/kirki-packages/util/src/Helper.php
r2925264 r3406713 146 146 * @see https://pippinsplugins.com/retrieve-attachment-id-from-image-url/ 147 147 * @param string $url URL to the image. 148 * @return int|string Numeric ID of the attach ement.148 * @return int|string Numeric ID of the attachment. 149 149 */ 150 150 public static function get_image_id( $url ) { … … 342 342 * @param mixed $value2 The 2nd value in the comparison. 343 343 * @param string $operator The operator we'll use for the comparison. 344 * @return boolean whether The comparison has succe ded (true) or failed (false).344 * @return boolean whether The comparison has succeeded (true) or failed (false). 345 345 */ 346 346 public static function compare_values( $value1, $value2, $operator ) { -
kirki/trunk/kirki.php
r3056602 r3406713 6 6 * Author: Themeum 7 7 * Author URI: https://themeum.com 8 * Version: 5.1. 08 * Version: 5.1.1 9 9 * Text Domain: kirki 10 10 * Requires at least: 5.2 11 * Requires PHP: 7. 111 * Requires PHP: 7.4 12 12 * 13 13 * @package Kirki … … 45 45 46 46 if ( ! defined( 'KIRKI_VERSION' ) ) { 47 define( 'KIRKI_VERSION', '5. 0.0' );47 define( 'KIRKI_VERSION', '5.1.1' ); 48 48 } 49 49 … … 96 96 97 97 /** 98 * To enable tests, add this line to your wp-config.php file (or anywhere alse):98 * To enable tests, add this line to your wp-config.php file (or anywhere else): 99 99 * define( 'KIRKI_TEST', true ); 100 100 * -
kirki/trunk/pro-src/packages/kirki-pro-input-slider/src/KirkiInputSliderControl.js
r2947788 r3406713 1 1 import KirkiInputSliderForm from "./KirkiInputSliderForm"; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 67 78 const control = this; 68 79 69 ReactDOM.render(80 const reactElement = ( 70 81 <KirkiInputSliderForm 71 82 {...control.params} 72 83 control={control} 73 84 customizerSetting={control.setting} 74 setNotificationContainer={control.setNotificationCo tainer}85 setNotificationContainer={control.setNotificationContainer} 75 86 value={control.params.value} 76 />, 77 control.container[0] 78 ); 87 /> 88 ); 89 90 wpReactRender(control.container[0], reactElement) 79 91 80 92 if (false !== control.params.choices.allowCollapse) { … … 102 114 103 115 /** 104 * This method will be overrid en by the rendered component.116 * This method will be overridden by the rendered component. 105 117 */ 106 118 updateComponentState: (val) => {}, -
kirki/trunk/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Margin.php
r2947788 r3406713 13 13 14 14 /** 15 * Outp out overrides.15 * Output overrides. 16 16 */ 17 17 class Margin extends Output { -
kirki/trunk/pro-src/packages/kirki-pro-margin-padding/src/Field/CSS/Padding.php
r2947788 r3406713 11 11 12 12 /** 13 * Outp out overrides.13 * Output overrides. 14 14 */ 15 15 class Padding extends Margin { -
kirki/trunk/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingControl.js
r2947788 r3406713 1 1 import KirkiMarginPaddingForm from "./KirkiMarginPaddingForm"; 2 3 const wpReactRender = ( target, reactNode ) => { 4 if ( target ) { 5 6 if ( wp.element.createRoot ) { 7 wp.element.createRoot( target ).render( wp.element.reactNode ); 8 } else { 9 wp.element.render( reactNode, target ); 10 } 11 } 12 }; 2 13 3 14 /** … … 67 78 const control = this; 68 79 69 ReactDOM.render(80 const reactElement = ( 70 81 <KirkiMarginPaddingForm 71 82 {...control.params} 72 83 control={control} 73 84 customizerSetting={control.setting} 74 setNotificationContainer={control.setNotificationCo tainer}85 setNotificationContainer={control.setNotificationContainer} 75 86 value={control.params.value} 76 />, 77 control.container[0] 78 ); 87 /> 88 ); 89 90 wpReactRender(control.container[0], reactElement); 79 91 80 92 if (false !== control.params.choices.allowCollapse) { … … 102 114 103 115 /** 104 * This method will be overrid en by the rendered component.116 * This method will be overridden by the rendered component. 105 117 */ 106 118 updateComponentState: (val) => {}, -
kirki/trunk/pro-src/packages/kirki-pro-margin-padding/src/KirkiMarginPaddingForm.js
r2947788 r3406713 92 92 const unitRef = useRef(null); 93 93 94 const makeMap able = () => {94 const makeMappable = () => { 95 95 const items = []; 96 96 … … 139 139 <div className="kirki-control-left-col"> 140 140 <div class="kirki-control-fields"> 141 {makeMap able(inputValues).map((item) => {141 {makeMappable(inputValues).map((item) => { 142 142 const className = `kirki-control-input kirki-control-input-${item.position}`; 143 143 const id = `kirki-control-input-${props.type}-${item.position}`; -
kirki/trunk/pro-src/packages/kirki-pro-responsive/src/Init.php
r2947788 r3406713 111 111 /** 112 112 * Parse the output argument. 113 * This method will format the "output" argument to modify the "media_query" based on the target ted device.113 * This method will format the "output" argument to modify the "media_query" based on the targeted device. 114 114 * This method will be called inside of "default" argument loop when the control is using responsive mode. 115 115 * … … 117 117 * 118 118 * @param array $args The field arguments. 119 * @param string $device The target ted device.119 * @param string $device The targeted device. 120 120 * 121 121 * @return array $args The modified field arguments. -
kirki/trunk/pro-src/packages/kirki-pro-tabs/edd/EDD_SL_Plugin_Updater.php
r2947788 r3406713 392 392 393 393 /** 394 * Calls the API and, if successful l, returns the object delivered by the API.394 * Calls the API and, if successful, returns the object delivered by the API. 395 395 * 396 396 * @uses get_bloginfo() -
kirki/trunk/readme.txt
r3056602 r3406713 3 3 Tags: customizer, options framework, theme, mods, toolkit, gutenberg 4 4 Requires at least: 5.2 5 Tested up to: 6. 4.36 Stable tag: 5.1. 05 Tested up to: 6.8.3 6 Stable tag: 5.1.1 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT
Note: See TracChangeset
for help on using the changeset viewer.