Plugin Directory

Changeset 3260910


Ignore:
Timestamp:
03/24/2025 03:05:27 PM (11 months ago)
Author:
kestrelwp
Message:

Release: v1.2.6

Location:
woo-custom-add-to-cart-button/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • woo-custom-add-to-cart-button/trunk/assets/css/wc-custom-add-to-cart.min.css

    r2927960 r3260910  
    11@charset "UTF-8";/*!
    2  * WooCommerce Custom Add To Cart Button 1.1.1
     2 * Custom Add To Cart Button for WooCommerce 1.1.1
    33 * Copyright 2020 Barn2 Plugins
    44 */@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  
    11
    2 Copyright © 2020 Barn2 Media Limited
     2Copyright © 2020-2025 Kestrel
    33
    44This 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 ===
    22Contributors: kestrelwp
    33Tags: woocommerce, cart, button
    44Donate link: https://kestrelwp.com
    55Requires at least: 6.0
    6 Tested up to: 6.5
     6Tested up to: 6.7.2
    77Requires PHP: 7.4
    8 Stable tag: 1.2.5
     8Stable tag: 1.2.6
    99License: GNU General Public License v3.0
    1010License URI: https://www.gnu.org/licenses/gpl.html
     
    1414== Description ==
    1515
    16 WooCommerce Custom Add to Cart Button 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.
     16Custom 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.
    1717
    1818There 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'.
     
    2929* Change the color of WooCommerce add to cart button text
    3030
    31 WooCommerce Custom Add to Cart Button 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.
     31Custom 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.
    3232
    3333Options are set in the Customizer. Once installed, go to Appearance -> Customize -> WooCommerce -> Add to Cart Buttons and choose your settings.
    3434
    35 WooCommerce Custom Add to Cart Button is fully compatible with other Kestrel plugins, including:
     35Custom Add To Cart Button for WooCommerce is fully compatible with other Kestrel plugins, including:
    3636
    3737* [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.
     
    7070== Changelog ==
    7171
     72= 1.2.6 =
     73Release 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
    7278= 1.2.5 =
    7379Release date 22 May 2024
     
    9399* Dev: Tested up to WooCommerce 8.0.1
    94100
    95 = 1.2.1 = 
    96 Release date 20 June 2023 
     101= 1.2.1 =
     102Release date 20 June 2023
    97103
    98104* Fix: Apply the background and text color to all buttons
    99105
    100106= 1.2.0 =
    101 Release date 18 June 2023 
     107Release date 18 June 2023
    102108
    103109* Tested up to WordPress 6.2
     
    107113
    108114= 1.1.5 =
    109 Release date 05 Mar 2023 
     115Release date 05 Mar 2023
    110116
    111  * Tested up to WooCommerce 7.4.1 
     117 * Tested up to WooCommerce 7.4.1
    112118
    113119= 1.1.4 =
  • woo-custom-add-to-cart-button/trunk/src/Plugin.php

    r3060758 r3260910  
    2121class Plugin extends Simple_Plugin implements Registerable, Translatable, Service_Provider {
    2222
    23     const NAME = 'WooCommerce Custom Add To Cart Button';
     23    const NAME = 'Custom Add To Cart Button for WooCommerce';
    2424
    2525    use Service_Container;
     
    6262
    6363    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' );
    6565    }
    6666
  • woo-custom-add-to-cart-button/trunk/vendor/autoload.php

    r2392484 r3260910  
    33// autoload.php @generated by Composer
    44
     5if (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
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInitd3b56662dd42fb73dc0626fbc3471339::getLoader();
     25return ComposerAutoloaderInitb99535e14b3a83b7bb4887923c9449fc::getLoader();
  • woo-custom-add-to-cart-button/trunk/vendor/composer/ClassLoader.php

    r2392484 r3260910  
    3838 * @author Fabien Potencier <[email protected]>
    3939 * @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/
    4242 */
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
     49    private $vendorDir;
     50
    4551    // PSR-4
     52    /**
     53     * @var array<string, array<string, int>>
     54     */
    4655    private $prefixLengthsPsr4 = array();
     56    /**
     57     * @var array<string, list<string>>
     58     */
    4759    private $prefixDirsPsr4 = array();
     60    /**
     61     * @var list<string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // 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     */
    5173    private $prefixesPsr0 = array();
     74    /**
     75     * @var list<string>
     76     */
    5277    private $fallbackDirsPsr0 = array();
    5378
     79    /** @var bool */
    5480    private $useIncludePath = false;
     81
     82    /**
     83     * @var array<string, string>
     84     */
    5585    private $classMap = array();
     86
     87    /** @var bool */
    5688    private $classMapAuthoritative = false;
     89
     90    /**
     91     * @var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var string|null */
    5896    private $apcuPrefix;
    5997
     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     */
    60115    public function getPrefixes()
    61116    {
    62117        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));
    64119        }
    65120
     
    67122    }
    68123
     124    /**
     125     * @return array<string, list<string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return list<string>
     134     */
    74135    public function getFallbackDirs()
    75136    {
     
    77138    }
    78139
     140    /**
     141     * @return list<string>
     142     */
    79143    public function getFallbackDirsPsr4()
    80144    {
     
    82146    }
    83147
     148    /**
     149     * @return array<string, string> Array of classname => path
     150     */
    84151    public function getClassMap()
    85152    {
     
    88155
    89156    /**
    90      * @param array $classMap Class to filename map
     157     * @param array<string, string> $classMap Class to filename map
     158     *
     159     * @return void
    91160     */
    92161    public function addClassMap(array $classMap)
     
    103172     * appending or prepending to the ones previously set for this prefix.
    104173     *
    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
    108179     */
    109180    public function add($prefix, $paths, $prepend = false)
    110181    {
     182        $paths = (array) $paths;
    111183        if (!$prefix) {
    112184            if ($prepend) {
    113185                $this->fallbackDirsPsr0 = array_merge(
    114                     (array) $paths,
     186                    $paths,
    115187                    $this->fallbackDirsPsr0
    116188                );
     
    118190                $this->fallbackDirsPsr0 = array_merge(
    119191                    $this->fallbackDirsPsr0,
    120                     (array) $paths
     192                    $paths
    121193                );
    122194            }
     
    127199        $first = $prefix[0];
    128200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    129             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    130202
    131203            return;
     
    133205        if ($prepend) {
    134206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    135                 (array) $paths,
     207                $paths,
    136208                $this->prefixesPsr0[$first][$prefix]
    137209            );
     
    139211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    140212                $this->prefixesPsr0[$first][$prefix],
    141                 (array) $paths
     213                $paths
    142214            );
    143215        }
     
    148220     * appending or prepending to the ones previously set for this namespace.
    149221     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     222     * @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
    153225     *
    154226     * @throws \InvalidArgumentException
     227     *
     228     * @return void
    155229     */
    156230    public function addPsr4($prefix, $paths, $prepend = false)
    157231    {
     232        $paths = (array) $paths;
    158233        if (!$prefix) {
    159234            // Register directories for the root namespace.
    160235            if ($prepend) {
    161236                $this->fallbackDirsPsr4 = array_merge(
    162                     (array) $paths,
     237                    $paths,
    163238                    $this->fallbackDirsPsr4
    164239                );
     
    166241                $this->fallbackDirsPsr4 = array_merge(
    167242                    $this->fallbackDirsPsr4,
    168                     (array) $paths
     243                    $paths
    169244                );
    170245            }
     
    176251            }
    177252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    178             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    179254        } elseif ($prepend) {
    180255            // Prepend directories for an already registered namespace.
    181256            $this->prefixDirsPsr4[$prefix] = array_merge(
    182                 (array) $paths,
     257                $paths,
    183258                $this->prefixDirsPsr4[$prefix]
    184259            );
     
    187262            $this->prefixDirsPsr4[$prefix] = array_merge(
    188263                $this->prefixDirsPsr4[$prefix],
    189                 (array) $paths
     264                $paths
    190265            );
    191266        }
     
    196271     * replacing any others previously set for this prefix.
    197272     *
    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
    200277     */
    201278    public function set($prefix, $paths)
     
    212289     * replacing any others previously set for this namespace.
    213290     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    216293     *
    217294     * @throws \InvalidArgumentException
     295     *
     296     * @return void
    218297     */
    219298    public function setPsr4($prefix, $paths)
     
    235314     *
    236315     * @param bool $useIncludePath
     316     *
     317     * @return void
    237318     */
    238319    public function setUseIncludePath($useIncludePath)
     
    257338     *
    258339     * @param bool $classMapAuthoritative
     340     *
     341     * @return void
    259342     */
    260343    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277360     *
    278361     * @param string|null $apcuPrefix
     362     *
     363     * @return void
    279364     */
    280365    public function setApcuPrefix($apcuPrefix)
     
    297382     *
    298383     * @param bool $prepend Whether to prepend the autoloader or not
     384     *
     385     * @return void
    299386     */
    300387    public function register($prepend = false)
    301388    {
    302389        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        }
    303401    }
    304402
    305403    /**
    306404     * Unregisters this instance as an autoloader.
     405     *
     406     * @return void
    307407     */
    308408    public function unregister()
    309409    {
    310410        spl_autoload_unregister(array($this, 'loadClass'));
     411
     412        if (null !== $this->vendorDir) {
     413            unset(self::$registeredLoaders[$this->vendorDir]);
     414        }
    311415    }
    312416
     
    315419     *
    316420     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     421     * @return true|null True if loaded, null otherwise
    318422     */
    319423    public function loadClass($class)
    320424    {
    321425        if ($file = $this->findFile($class)) {
    322             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    323428
    324429            return true;
    325430        }
     431
     432        return null;
    326433    }
    327434
     
    368475    }
    369476
     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     */
    370492    private function findFileWithExtension($class, $ext)
    371493    {
     
    433555        return false;
    434556    }
     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    }
    435579}
    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  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
    88return 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',
    926);
  • woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_namespaces.php

    r2392484 r3260910  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_psr4.php

    r2392484 r3260910  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_real.php

    r2392484 r3260910  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitd3b56662dd42fb73dc0626fbc3471339
     5class ComposerAutoloaderInitb99535e14b3a83b7bb4887923c9449fc
    66{
    77    private static $loader;
     
    1414    }
    1515
     16    /**
     17     * @return \Composer\Autoload\ClassLoader
     18     */
    1619    public static function getLoader()
    1720    {
     
    2023        }
    2124
    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';
    2526
    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'));
    2930
    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));
    4733
    4834        $loader->register(true);
  • woo-custom-add-to-cart-button/trunk/vendor/composer/autoload_static.php

    r2392484 r3260910  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitd3b56662dd42fb73dc0626fbc3471339
     7class ComposerStaticInitb99535e14b3a83b7bb4887923c9449fc
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2626    );
    2727
     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
    2848    public static function getInitializer(ClassLoader $loader)
    2949    {
    3050        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;
    3354
    3455        }, 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  
    11<?php
    22/**
    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
    1911 * Requires at least: 6.0
    20  * Tested up to: 6.5
     12 * Tested up to: 6.7.2
    2113 * Requires PHP: 7.4
    2214 *
    2315 * Requires Plugins: woocommerce
    2416 * WC requires at least: 6.5
    25  * WC tested up to: 8.7
     17 * WC tested up to: 9.7.1
    2618 *
    2719 * Copyright:       Kestrel
     
    3628}
    3729
    38 const PLUGIN_VERSION = '1.2.5';
     30const PLUGIN_VERSION = '1.2.6';
    3931const PLUGIN_FILE    = __FILE__;
    4032
Note: See TracChangeset for help on using the changeset viewer.