Changeset 3260910
- Timestamp:
- 03/24/2025 03:05:27 PM (11 months ago)
- Location:
- woo-custom-add-to-cart-button/trunk
- Files:
-
- 13 edited
-
assets/css/wc-custom-add-to-cart.min.css (modified) (1 diff)
-
license.txt (modified) (1 diff)
-
readme.txt (modified) (6 diffs)
-
src/Plugin.php (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (24 diffs)
-
vendor/composer/autoload_classmap.php (modified) (1 diff)
-
vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
vendor/composer/autoload_psr4.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (1 diff)
-
woo-custom-add-to-cart-button.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-custom-add-to-cart-button/trunk/assets/css/wc-custom-add-to-cart.min.css
r2927960 r3260910 1 1 @charset "UTF-8";/*! 2 * WooCommerce Custom Add To Cart Button1.1.12 * Custom Add To Cart Button for WooCommerce 1.1.1 3 3 * Copyright 2020 Barn2 Plugins 4 4 */@font-face{font-family:WooCommerce;src:url(../../../woocommerce/assets/fonts/WooCommerce.eot);src:url(../../../woocommerce/assets/fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../../../woocommerce/assets/fonts/WooCommerce.woff) format("woff"),url(../../../woocommerce/assets/fonts/WooCommerce.ttf) format("truetype"),url(../../../woocommerce/assets/fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}.wc-add-to-cart-icon .add_to_cart_button.text_replaceable,.wc-add-to-cart-icon .single_add_to_cart_button{box-sizing:border-box;position:relative}.wc-add-to-cart-icon .add_to_cart_button.text_replaceable:before,.wc-add-to-cart-icon .single_add_to_cart_button:before{font-family:WooCommerce;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:.618em;content:"";text-decoration:none;font-weight:inherit;height:1em;position:relative;top:1px;display:inline-block}.wc-add-to-cart-icon.wc-add-to-cart-no-text .add_to_cart_button.text_replaceable,.wc-add-to-cart-icon.wc-add-to-cart-no-text .single_add_to_cart_button{min-width:1em;width:4em;text-indent:-9999px}.wc-add-to-cart-icon.wc-add-to-cart-no-text .add_to_cart_button.text_replaceable:before,.wc-add-to-cart-icon.wc-add-to-cart-no-text .single_add_to_cart_button:before{position:absolute;left:0;top:50%;width:100%;text-indent:0;margin-right:0;margin-top:-.5em}.wc-add-to-cart-icon.wc-add-to-cart-no-text .wc-product-table .single_add_to_cart_button.added{width:6em}.wc-add-to-cart-icon.wc-add-to-cart-no-text .wc-product-table .single_add_to_cart_button.added:before{left:-1.1em}.wc-add-to-cart-icon.wc-add-to-cart-no-text .wc-product-table .single_add_to_cart_button.added:after{position:absolute;text-indent:0;right:1.2em;top:50%;margin-top:-.5em}.theme-enfold .add_to_cart_button span,.theme-enfold .single_add_to_cart_button span{display:none!important} -
woo-custom-add-to-cart-button/trunk/license.txt
r2392484 r3260910 1 1 2 Copyright © 2020 Barn2 Media Limited2 Copyright © 2020-2025 Kestrel 3 3 4 4 This program is free software: you can redistribute it and/or modify -
woo-custom-add-to-cart-button/trunk/readme.txt
r3090293 r3260910 1 === WooCommerce Custom Add To Cart Button===1 === Custom Add To Cart Button for WooCommerce === 2 2 Contributors: kestrelwp 3 3 Tags: woocommerce, cart, button 4 4 Donate link: https://kestrelwp.com 5 5 Requires at least: 6.0 6 Tested up to: 6. 56 Tested up to: 6.7.2 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 58 Stable tag: 1.2.6 9 9 License: GNU General Public License v3.0 10 10 License URI: https://www.gnu.org/licenses/gpl.html … … 14 14 == Description == 15 15 16 WooCommerce Custom Add to Cart Buttonis a simple plugin to customize your store's add to cart buttons. It makes it easy to change the 'Add to cart' button text, add a cart icon to the button, replace the text with just an icon, or change the background and text color.16 Custom Add To Cart Button for WooCommerce is a simple plugin to customize your store's add to cart buttons. It makes it easy to change the 'Add to cart' button text, add a cart icon to the button, replace the text with just an icon, or change the background and text color. 17 17 18 18 There are lots of reasons why you might want to change the add to cart text. Depending on how you're using WooCommerce you might want the button to say something different like 'Add to quote', 'Buy Now', 'BOOK EVENT', 'Enrol' or 'Make an Enquiry'. … … 29 29 * Change the color of WooCommerce add to cart button text 30 30 31 WooCommerce Custom Add to Cart Buttonis fully accessible. If you choose to display just the cart icon, the text is still present in the HTML and can be read by screen readers.31 Custom Add To Cart Button for WooCommerce is fully accessible. If you choose to display just the cart icon, the text is still present in the HTML and can be read by screen readers. 32 32 33 33 Options are set in the Customizer. Once installed, go to Appearance -> Customize -> WooCommerce -> Add to Cart Buttons and choose your settings. 34 34 35 WooCommerce Custom Add to Cart Buttonis fully compatible with other Kestrel plugins, including:35 Custom Add To Cart Button for WooCommerce is fully compatible with other Kestrel plugins, including: 36 36 37 37 * [Express Shop Page](https://kestrelwp.com/product/express-shop-page-woocommerce/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=atoc-free) - Select variations and quantities without leaving the shop page. … … 70 70 == Changelog == 71 71 72 = 1.2.6 = 73 Release date 24 March 2025 74 75 * Misc: Update plugin name to Custom Add To Cart Button for WooCommerce 76 * Dev: Tested up to WordPress 6.7.2 and WooCommerce 9.7.1 77 72 78 = 1.2.5 = 73 79 Release date 22 May 2024 … … 93 99 * Dev: Tested up to WooCommerce 8.0.1 94 100 95 = 1.2.1 = 96 Release date 20 June 2023 101 = 1.2.1 = 102 Release date 20 June 2023 97 103 98 104 * Fix: Apply the background and text color to all buttons 99 105 100 106 = 1.2.0 = 101 Release date 18 June 2023 107 Release date 18 June 2023 102 108 103 109 * Tested up to WordPress 6.2 … … 107 113 108 114 = 1.1.5 = 109 Release date 05 Mar 2023 115 Release date 05 Mar 2023 110 116 111 * Tested up to WooCommerce 7.4.1 117 * Tested up to WooCommerce 7.4.1 112 118 113 119 = 1.1.4 = -
woo-custom-add-to-cart-button/trunk/src/Plugin.php
r3060758 r3260910 21 21 class Plugin extends Simple_Plugin implements Registerable, Translatable, Service_Provider { 22 22 23 const NAME = ' WooCommerce Custom Add To Cart Button';23 const NAME = 'Custom Add To Cart Button for WooCommerce'; 24 24 25 25 use Service_Container; … … 62 62 63 63 public function load_textdomain() { 64 load_plugin_textdomain( 'woo-custom-add-to-cart-button', false, $this->get_slug() . '/ languages' );64 load_plugin_textdomain( 'woo-custom-add-to-cart-button', false, $this->get_slug() . '/i18n/languages' ); 65 65 } 66 66 -
woo-custom-add-to-cart-button/trunk/vendor/autoload.php
r2392484 r3260910 3 3 // autoload.php @generated by Composer 4 4 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 ); 21 } 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit d3b56662dd42fb73dc0626fbc3471339::getLoader();25 return ComposerAutoloaderInitb99535e14b3a83b7bb4887923c9449fc::getLoader(); -
woo-custom-add-to-cart-button/trunk/vendor/composer/ClassLoader.php
r2392484 r3260910 38 38 * @author Fabien Potencier <[email protected]> 39 39 * @author Jordi Boggiano <[email protected]> 40 * @see http ://www.php-fig.org/psr/psr-0/41 * @see http ://www.php-fig.org/psr/psr-4/40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 49 private $vendorDir; 50 45 51 // PSR-4 52 /** 53 * @var array<string, array<string, int>> 54 */ 46 55 private $prefixLengthsPsr4 = array(); 56 /** 57 * @var array<string, list<string>> 58 */ 47 59 private $prefixDirsPsr4 = array(); 60 /** 61 * @var list<string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 */ 51 73 private $prefixesPsr0 = array(); 74 /** 75 * @var list<string> 76 */ 52 77 private $fallbackDirsPsr0 = array(); 53 78 79 /** @var bool */ 54 80 private $useIncludePath = false; 81 82 /** 83 * @var array<string, string> 84 */ 55 85 private $classMap = array(); 86 87 /** @var bool */ 56 88 private $classMapAuthoritative = false; 89 90 /** 91 * @var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var string|null */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var array<string, self> 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param string|null $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 114 */ 60 115 public function getPrefixes() 61 116 { 62 117 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);118 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 119 } 65 120 … … 67 122 } 68 123 124 /** 125 * @return array<string, list<string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return list<string> 134 */ 74 135 public function getFallbackDirs() 75 136 { … … 77 138 } 78 139 140 /** 141 * @return list<string> 142 */ 79 143 public function getFallbackDirsPsr4() 80 144 { … … 82 146 } 83 147 148 /** 149 * @return array<string, string> Array of classname => path 150 */ 84 151 public function getClassMap() 85 152 { … … 88 155 89 156 /** 90 * @param array $classMap Class to filename map 157 * @param array<string, string> $classMap Class to filename map 158 * 159 * @return void 91 160 */ 92 161 public function addClassMap(array $classMap) … … 103 172 * appending or prepending to the ones previously set for this prefix. 104 173 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 177 * 178 * @return void 108 179 */ 109 180 public function add($prefix, $paths, $prepend = false) 110 181 { 182 $paths = (array) $paths; 111 183 if (!$prefix) { 112 184 if ($prepend) { 113 185 $this->fallbackDirsPsr0 = array_merge( 114 (array)$paths,186 $paths, 115 187 $this->fallbackDirsPsr0 116 188 ); … … 118 190 $this->fallbackDirsPsr0 = array_merge( 119 191 $this->fallbackDirsPsr0, 120 (array)$paths192 $paths 121 193 ); 122 194 } … … 127 199 $first = $prefix[0]; 128 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 129 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 130 202 131 203 return; … … 133 205 if ($prepend) { 134 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 135 (array)$paths,207 $paths, 136 208 $this->prefixesPsr0[$first][$prefix] 137 209 ); … … 139 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 140 212 $this->prefixesPsr0[$first][$prefix], 141 (array)$paths213 $paths 142 214 ); 143 215 } … … 148 220 * appending or prepending to the ones previously set for this namespace. 149 221 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 153 225 * 154 226 * @throws \InvalidArgumentException 227 * 228 * @return void 155 229 */ 156 230 public function addPsr4($prefix, $paths, $prepend = false) 157 231 { 232 $paths = (array) $paths; 158 233 if (!$prefix) { 159 234 // Register directories for the root namespace. 160 235 if ($prepend) { 161 236 $this->fallbackDirsPsr4 = array_merge( 162 (array)$paths,237 $paths, 163 238 $this->fallbackDirsPsr4 164 239 ); … … 166 241 $this->fallbackDirsPsr4 = array_merge( 167 242 $this->fallbackDirsPsr4, 168 (array)$paths243 $paths 169 244 ); 170 245 } … … 176 251 } 177 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 178 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 179 254 } elseif ($prepend) { 180 255 // Prepend directories for an already registered namespace. 181 256 $this->prefixDirsPsr4[$prefix] = array_merge( 182 (array)$paths,257 $paths, 183 258 $this->prefixDirsPsr4[$prefix] 184 259 ); … … 187 262 $this->prefixDirsPsr4[$prefix] = array_merge( 188 263 $this->prefixDirsPsr4[$prefix], 189 (array)$paths264 $paths 190 265 ); 191 266 } … … 196 271 * replacing any others previously set for this prefix. 197 272 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 275 * 276 * @return void 200 277 */ 201 278 public function set($prefix, $paths) … … 212 289 * replacing any others previously set for this namespace. 213 290 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 216 293 * 217 294 * @throws \InvalidArgumentException 295 * 296 * @return void 218 297 */ 219 298 public function setPsr4($prefix, $paths) … … 235 314 * 236 315 * @param bool $useIncludePath 316 * 317 * @return void 237 318 */ 238 319 public function setUseIncludePath($useIncludePath) … … 257 338 * 258 339 * @param bool $classMapAuthoritative 340 * 341 * @return void 259 342 */ 260 343 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 360 * 278 361 * @param string|null $apcuPrefix 362 * 363 * @return void 279 364 */ 280 365 public function setApcuPrefix($apcuPrefix) … … 297 382 * 298 383 * @param bool $prepend Whether to prepend the autoloader or not 384 * 385 * @return void 299 386 */ 300 387 public function register($prepend = false) 301 388 { 302 389 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 390 391 if (null === $this->vendorDir) { 392 return; 393 } 394 395 if ($prepend) { 396 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 397 } else { 398 unset(self::$registeredLoaders[$this->vendorDir]); 399 self::$registeredLoaders[$this->vendorDir] = $this; 400 } 303 401 } 304 402 305 403 /** 306 404 * Unregisters this instance as an autoloader. 405 * 406 * @return void 307 407 */ 308 408 public function unregister() 309 409 { 310 410 spl_autoload_unregister(array($this, 'loadClass')); 411 412 if (null !== $this->vendorDir) { 413 unset(self::$registeredLoaders[$this->vendorDir]); 414 } 311 415 } 312 416 … … 315 419 * 316 420 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise421 * @return true|null True if loaded, null otherwise 318 422 */ 319 423 public function loadClass($class) 320 424 { 321 425 if ($file = $this->findFile($class)) { 322 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 323 428 324 429 return true; 325 430 } 431 432 return null; 326 433 } 327 434 … … 368 475 } 369 476 477 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 481 */ 482 public static function getRegisteredLoaders() 483 { 484 return self::$registeredLoaders; 485 } 486 487 /** 488 * @param string $class 489 * @param string $ext 490 * @return string|false 491 */ 370 492 private function findFileWithExtension($class, $ext) 371 493 { … … 433 555 return false; 434 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 435 579 } 436 437 /**438 * Scope isolated include.439 *440 * Prevents access to $this/self from included files.441 */442 function includeFile($file)443 {444 include $file;445 } -
woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_classmap.php
r2392484 r3260910 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 8 8 return array( 9 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Add_To_Cart_Replacer' => $baseDir . '/src/Add_To_Cart_Replacer.php', 10 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Add_To_Cart_Styles' => $baseDir . '/src/Add_To_Cart_Styles.php', 11 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Admin\\Add_To_Cart_Customizer' => $baseDir . '/src/Admin/Add_To_Cart_Customizer.php', 12 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Plugin' => $baseDir . '/src/Plugin.php', 13 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Plugin_Factory' => $baseDir . '/src/Plugin_Factory.php', 14 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Util' => $baseDir . '/src/Util.php', 15 'Barn2\\WCB_Lib\\Conditional' => $baseDir . '/lib/Conditional.php', 16 'Barn2\\WCB_Lib\\Plugin\\Admin\\Admin_Links' => $baseDir . '/lib/Plugin/Admin/Admin_Links.php', 17 'Barn2\\WCB_Lib\\Plugin\\Plugin' => $baseDir . '/lib/Plugin/Plugin.php', 18 'Barn2\\WCB_Lib\\Plugin\\Simple_Plugin' => $baseDir . '/lib/Plugin/Simple_Plugin.php', 19 'Barn2\\WCB_Lib\\Registerable' => $baseDir . '/lib/Registerable.php', 20 'Barn2\\WCB_Lib\\Service' => $baseDir . '/lib/Service.php', 21 'Barn2\\WCB_Lib\\Service_Container' => $baseDir . '/lib/Service_Container.php', 22 'Barn2\\WCB_Lib\\Service_Provider' => $baseDir . '/lib/Service_Provider.php', 23 'Barn2\\WCB_Lib\\Translatable' => $baseDir . '/lib/Translatable.php', 24 'Barn2\\WCB_Lib\\Util' => $baseDir . '/lib/Util.php', 25 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 9 26 ); -
woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_namespaces.php
r2392484 r3260910 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_psr4.php
r2392484 r3260910 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_real.php
r2392484 r3260910 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit d3b56662dd42fb73dc0626fbc34713395 class ComposerAutoloaderInitb99535e14b3a83b7bb4887923c9449fc 6 6 { 7 7 private static $loader; … … 14 14 } 15 15 16 /** 17 * @return \Composer\Autoload\ClassLoader 18 */ 16 19 public static function getLoader() 17 20 { … … 20 23 } 21 24 22 spl_autoload_register(array('ComposerAutoloaderInitd3b56662dd42fb73dc0626fbc3471339', 'loadClassLoader'), true, true); 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInitd3b56662dd42fb73dc0626fbc3471339', 'loadClassLoader')); 25 require __DIR__ . '/platform_check.php'; 25 26 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());27 if ($useStaticLoader) {28 require_once __DIR__ . '/autoload_static.php';27 spl_autoload_register(array('ComposerAutoloaderInitb99535e14b3a83b7bb4887923c9449fc', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInitb99535e14b3a83b7bb4887923c9449fc', 'loadClassLoader')); 29 30 30 call_user_func(\Composer\Autoload\ComposerStaticInitd3b56662dd42fb73dc0626fbc3471339::getInitializer($loader)); 31 } else { 32 $map = require __DIR__ . '/autoload_namespaces.php'; 33 foreach ($map as $namespace => $path) { 34 $loader->set($namespace, $path); 35 } 36 37 $map = require __DIR__ . '/autoload_psr4.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->setPsr4($namespace, $path); 40 } 41 42 $classMap = require __DIR__ . '/autoload_classmap.php'; 43 if ($classMap) { 44 $loader->addClassMap($classMap); 45 } 46 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitb99535e14b3a83b7bb4887923c9449fc::getInitializer($loader)); 47 33 48 34 $loader->register(true); -
woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_static.php
r2392484 r3260910 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit d3b56662dd42fb73dc0626fbc34713397 class ComposerStaticInitb99535e14b3a83b7bb4887923c9449fc 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 26 26 ); 27 27 28 public static $classMap = array ( 29 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Add_To_Cart_Replacer' => __DIR__ . '/../..' . '/src/Add_To_Cart_Replacer.php', 30 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Add_To_Cart_Styles' => __DIR__ . '/../..' . '/src/Add_To_Cart_Styles.php', 31 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Admin\\Add_To_Cart_Customizer' => __DIR__ . '/../..' . '/src/Admin/Add_To_Cart_Customizer.php', 32 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Plugin' => __DIR__ . '/../..' . '/src/Plugin.php', 33 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Plugin_Factory' => __DIR__ . '/../..' . '/src/Plugin_Factory.php', 34 'Barn2\\Plugin\\WC_Custom_Cart_Button\\Util' => __DIR__ . '/../..' . '/src/Util.php', 35 'Barn2\\WCB_Lib\\Conditional' => __DIR__ . '/../..' . '/lib/Conditional.php', 36 'Barn2\\WCB_Lib\\Plugin\\Admin\\Admin_Links' => __DIR__ . '/../..' . '/lib/Plugin/Admin/Admin_Links.php', 37 'Barn2\\WCB_Lib\\Plugin\\Plugin' => __DIR__ . '/../..' . '/lib/Plugin/Plugin.php', 38 'Barn2\\WCB_Lib\\Plugin\\Simple_Plugin' => __DIR__ . '/../..' . '/lib/Plugin/Simple_Plugin.php', 39 'Barn2\\WCB_Lib\\Registerable' => __DIR__ . '/../..' . '/lib/Registerable.php', 40 'Barn2\\WCB_Lib\\Service' => __DIR__ . '/../..' . '/lib/Service.php', 41 'Barn2\\WCB_Lib\\Service_Container' => __DIR__ . '/../..' . '/lib/Service_Container.php', 42 'Barn2\\WCB_Lib\\Service_Provider' => __DIR__ . '/../..' . '/lib/Service_Provider.php', 43 'Barn2\\WCB_Lib\\Translatable' => __DIR__ . '/../..' . '/lib/Translatable.php', 44 'Barn2\\WCB_Lib\\Util' => __DIR__ . '/../..' . '/lib/Util.php', 45 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 46 ); 47 28 48 public static function getInitializer(ClassLoader $loader) 29 49 { 30 50 return \Closure::bind(function () use ($loader) { 31 $loader->prefixLengthsPsr4 = ComposerStaticInitd3b56662dd42fb73dc0626fbc3471339::$prefixLengthsPsr4; 32 $loader->prefixDirsPsr4 = ComposerStaticInitd3b56662dd42fb73dc0626fbc3471339::$prefixDirsPsr4; 51 $loader->prefixLengthsPsr4 = ComposerStaticInitb99535e14b3a83b7bb4887923c9449fc::$prefixLengthsPsr4; 52 $loader->prefixDirsPsr4 = ComposerStaticInitb99535e14b3a83b7bb4887923c9449fc::$prefixDirsPsr4; 53 $loader->classMap = ComposerStaticInitb99535e14b3a83b7bb4887923c9449fc::$classMap; 33 54 34 55 }, null, ClassLoader::class); -
woo-custom-add-to-cart-button/trunk/vendor/composer/installed.json
r2392484 r3260910 1 [] 1 { 2 "packages": [], 3 "dev": false, 4 "dev-package-names": [] 5 } -
woo-custom-add-to-cart-button/trunk/woo-custom-add-to-cart-button.php
r3090293 r3260910 1 1 <?php 2 2 /** 3 * The main plugin file for WooCommerce Custom Add To Cart Button. Included during the bootstrap process if the plugin is active. 4 * 5 * @package Barn2\woo-custom-add-to-cart-button 6 * @author Kestrel <[email protected]> 7 * @license GPL-3.0 8 * @copyright Kestrel 9 * 10 * @wordpress-plugin 11 * Plugin Name: WooCommerce Custom Add To Cart Button 12 * Plugin URI: https://kestrelwp.com/product/custom-add-to-cart-button-for-woocommerce/ 13 * Description: Customize the Add to Cart buttons in WooCommerce by changing the text or adding a cart icon. 14 * Version: 1.2.5 15 * Author: Kestrel 16 * Author URI: https://kestrelwp.com 17 * Text Domain: woo-custom-add-to-cart-button 18 * Domain Path: /languages 3 * Plugin Name: Custom Add To Cart Button for WooCommerce 4 * Plugin URI: https://kestrelwp.com/product/custom-add-to-cart-button-for-woocommerce/ 5 * Description: Customize the Add to Cart buttons in WooCommerce by changing the text or adding a cart icon. 6 * Version: 1.2.6 7 * Author: Kestrel 8 * Author URI: https://kestrelwp.com 9 * Text Domain: woo-custom-add-to-cart-button 10 * Domain Path: /languages 19 11 * Requires at least: 6.0 20 * Tested up to: 6. 512 * Tested up to: 6.7.2 21 13 * Requires PHP: 7.4 22 14 * 23 15 * Requires Plugins: woocommerce 24 16 * WC requires at least: 6.5 25 * WC tested up to: 8.717 * WC tested up to: 9.7.1 26 18 * 27 19 * Copyright: Kestrel … … 36 28 } 37 29 38 const PLUGIN_VERSION = '1.2. 5';30 const PLUGIN_VERSION = '1.2.6'; 39 31 const PLUGIN_FILE = __FILE__; 40 32
Note: See TracChangeset
for help on using the changeset viewer.