Changeset 3078305
- Timestamp:
- 04/28/2024 06:37:29 PM (23 months ago)
- Location:
- serbian-addons-for-woocommerce
- Files:
-
- 130 added
- 8 edited
- 1 copied
-
tags/3.5.8 (copied) (copied from serbian-addons-for-woocommerce/trunk)
-
tags/3.5.8/.ddev (added)
-
tags/3.5.8/.ddev/addon-metadata (added)
-
tags/3.5.8/.ddev/addon-metadata/ddev-cron (added)
-
tags/3.5.8/.ddev/addon-metadata/ddev-cron/manifest.yaml (added)
-
tags/3.5.8/.ddev/addon-metadata/oblak-ddev-wp (added)
-
tags/3.5.8/.ddev/addon-metadata/oblak-ddev-wp/manifest.yaml (added)
-
tags/3.5.8/.ddev/addon-metadata/phpmyadmin (added)
-
tags/3.5.8/.ddev/addon-metadata/phpmyadmin/manifest.yaml (added)
-
tags/3.5.8/.ddev/addon-metadata/redis (added)
-
tags/3.5.8/.ddev/addon-metadata/redis/manifest.yaml (added)
-
tags/3.5.8/.ddev/commands (added)
-
tags/3.5.8/.ddev/commands/host (added)
-
tags/3.5.8/.ddev/commands/host/phpmyadmin (added)
-
tags/3.5.8/.ddev/commands/redis (added)
-
tags/3.5.8/.ddev/commands/redis/redis (added)
-
tags/3.5.8/.ddev/commands/redis/redis-flush (added)
-
tags/3.5.8/.ddev/config.wp.yaml (added)
-
tags/3.5.8/.ddev/config.wp_hooks.yaml (added)
-
tags/3.5.8/.ddev/config.yaml (added)
-
tags/3.5.8/.ddev/docker-compose.mounts.yml (added)
-
tags/3.5.8/.ddev/docker-compose.phpmyadmin-norouter.yaml (added)
-
tags/3.5.8/.ddev/docker-compose.phpmyadmin.yaml (added)
-
tags/3.5.8/.ddev/docker-compose.redis.yaml (added)
-
tags/3.5.8/.ddev/mysql (added)
-
tags/3.5.8/.ddev/mysql/extra.cnf (added)
-
tags/3.5.8/.ddev/php (added)
-
tags/3.5.8/.ddev/php/20-ffi.ini (added)
-
tags/3.5.8/.ddev/php/20-ftp.ini (added)
-
tags/3.5.8/.ddev/php/20-imagick.ini (added)
-
tags/3.5.8/.ddev/php/20-ldap.ini (added)
-
tags/3.5.8/.ddev/php/20-msgpack.ini (added)
-
tags/3.5.8/.ddev/php/20-pgsql.ini (added)
-
tags/3.5.8/.ddev/php/20-shmop.ini (added)
-
tags/3.5.8/.ddev/php/20-soap.ini (added)
-
tags/3.5.8/.ddev/php/20-sockets.ini (added)
-
tags/3.5.8/.ddev/php/20-sysvmsg.ini (added)
-
tags/3.5.8/.ddev/php/20-sysvshm.ini (added)
-
tags/3.5.8/.ddev/php/20-uploadprogress.ini (added)
-
tags/3.5.8/.ddev/php/25-memcached.ini (added)
-
tags/3.5.8/.ddev/php/custom-opcache.ini (added)
-
tags/3.5.8/.ddev/php/exec_time.ini (added)
-
tags/3.5.8/.ddev/providers (added)
-
tags/3.5.8/.ddev/providers/oblak.yaml.tmpl (added)
-
tags/3.5.8/.ddev/redis (added)
-
tags/3.5.8/.ddev/redis/advanced.conf (added)
-
tags/3.5.8/.ddev/redis/append.conf (added)
-
tags/3.5.8/.ddev/redis/general.conf (added)
-
tags/3.5.8/.ddev/redis/io.conf (added)
-
tags/3.5.8/.ddev/redis/memory.conf (added)
-
tags/3.5.8/.ddev/redis/network.conf (added)
-
tags/3.5.8/.ddev/redis/redis.conf (added)
-
tags/3.5.8/.ddev/redis/security.conf (added)
-
tags/3.5.8/.ddev/redis/snapshots.conf (added)
-
tags/3.5.8/.ddev/web-build (added)
-
tags/3.5.8/.ddev/web-build/Dockerfile.ddev-cron (added)
-
tags/3.5.8/.ddev/web-build/cron.conf (added)
-
tags/3.5.8/.ddev/web-build/wp.cron (added)
-
tags/3.5.8/.ddev/wp (added)
-
tags/3.5.8/.ddev/wp/config (added)
-
tags/3.5.8/.ddev/wp/config/wp-config-db.php (added)
-
tags/3.5.8/.ddev/wp/config/wp-config-debug.php (added)
-
tags/3.5.8/.ddev/wp/config/wp-config-redis.php (added)
-
tags/3.5.8/.ddev/wp/config/wp-config-salt.php (added)
-
tags/3.5.8/.ddev/wp/config/wp-config-tweaks.php (added)
-
tags/3.5.8/.ddev/wp/config/wp-config.php (added)
-
tags/3.5.8/lib/QR/QR_Code_Handler.php (modified) (4 diffs)
-
tags/3.5.8/readme.txt (modified) (1 diff)
-
tags/3.5.8/serbian-addons-for-woocommerce.php (modified) (1 diff)
-
tags/3.5.8/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/.ddev (added)
-
trunk/.ddev/addon-metadata (added)
-
trunk/.ddev/addon-metadata/ddev-cron (added)
-
trunk/.ddev/addon-metadata/ddev-cron/manifest.yaml (added)
-
trunk/.ddev/addon-metadata/oblak-ddev-wp (added)
-
trunk/.ddev/addon-metadata/oblak-ddev-wp/manifest.yaml (added)
-
trunk/.ddev/addon-metadata/phpmyadmin (added)
-
trunk/.ddev/addon-metadata/phpmyadmin/manifest.yaml (added)
-
trunk/.ddev/addon-metadata/redis (added)
-
trunk/.ddev/addon-metadata/redis/manifest.yaml (added)
-
trunk/.ddev/commands (added)
-
trunk/.ddev/commands/host (added)
-
trunk/.ddev/commands/host/phpmyadmin (added)
-
trunk/.ddev/commands/redis (added)
-
trunk/.ddev/commands/redis/redis (added)
-
trunk/.ddev/commands/redis/redis-flush (added)
-
trunk/.ddev/config.wp.yaml (added)
-
trunk/.ddev/config.wp_hooks.yaml (added)
-
trunk/.ddev/config.yaml (added)
-
trunk/.ddev/docker-compose.mounts.yml (added)
-
trunk/.ddev/docker-compose.phpmyadmin-norouter.yaml (added)
-
trunk/.ddev/docker-compose.phpmyadmin.yaml (added)
-
trunk/.ddev/docker-compose.redis.yaml (added)
-
trunk/.ddev/mysql (added)
-
trunk/.ddev/mysql/extra.cnf (added)
-
trunk/.ddev/php (added)
-
trunk/.ddev/php/20-ffi.ini (added)
-
trunk/.ddev/php/20-ftp.ini (added)
-
trunk/.ddev/php/20-imagick.ini (added)
-
trunk/.ddev/php/20-ldap.ini (added)
-
trunk/.ddev/php/20-msgpack.ini (added)
-
trunk/.ddev/php/20-pgsql.ini (added)
-
trunk/.ddev/php/20-shmop.ini (added)
-
trunk/.ddev/php/20-soap.ini (added)
-
trunk/.ddev/php/20-sockets.ini (added)
-
trunk/.ddev/php/20-sysvmsg.ini (added)
-
trunk/.ddev/php/20-sysvshm.ini (added)
-
trunk/.ddev/php/20-uploadprogress.ini (added)
-
trunk/.ddev/php/25-memcached.ini (added)
-
trunk/.ddev/php/custom-opcache.ini (added)
-
trunk/.ddev/php/exec_time.ini (added)
-
trunk/.ddev/providers (added)
-
trunk/.ddev/providers/oblak.yaml.tmpl (added)
-
trunk/.ddev/redis (added)
-
trunk/.ddev/redis/advanced.conf (added)
-
trunk/.ddev/redis/append.conf (added)
-
trunk/.ddev/redis/general.conf (added)
-
trunk/.ddev/redis/io.conf (added)
-
trunk/.ddev/redis/memory.conf (added)
-
trunk/.ddev/redis/network.conf (added)
-
trunk/.ddev/redis/redis.conf (added)
-
trunk/.ddev/redis/security.conf (added)
-
trunk/.ddev/redis/snapshots.conf (added)
-
trunk/.ddev/web-build (added)
-
trunk/.ddev/web-build/Dockerfile.ddev-cron (added)
-
trunk/.ddev/web-build/cron.conf (added)
-
trunk/.ddev/web-build/wp.cron (added)
-
trunk/.ddev/wp (added)
-
trunk/.ddev/wp/config (added)
-
trunk/.ddev/wp/config/wp-config-db.php (added)
-
trunk/.ddev/wp/config/wp-config-debug.php (added)
-
trunk/.ddev/wp/config/wp-config-redis.php (added)
-
trunk/.ddev/wp/config/wp-config-salt.php (added)
-
trunk/.ddev/wp/config/wp-config-tweaks.php (added)
-
trunk/.ddev/wp/config/wp-config.php (added)
-
trunk/lib/QR/QR_Code_Handler.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/serbian-addons-for-woocommerce.php (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
serbian-addons-for-woocommerce/tags/3.5.8/lib/QR/QR_Code_Handler.php
r3026688 r3078305 51 51 * Choose the best QR Code implementation. 52 52 * 53 * @param array $args QR Code arguments.54 53 * @return string|false 55 54 */ 56 protected function choose_implementation( array $args ): string|false { 57 $implementations = array( QR_Generator_ImageMagick::class, QR_Generator_GD::class ); 58 59 /** 60 * Filter the list of QR Code implementations. 61 * 62 * @param array<int, class-string> $implementations List of QR Code implementations. 63 * @return array<int, class-string> 64 * 65 * @since 3.3.0 66 */ 67 $implementations = \apply_filters( 'woocommerce_serbian_qr_code_implementations', $implementations ); 68 $implementation = false; 69 70 foreach ( $implementations as $generator ) { 71 if ( ! \call_user_func( array( $generator, 'test' ), $args ) ) { 72 continue; 73 } 74 75 if ( 76 isset( $args['format'] ) && 77 ! \call_user_func( array( $generator, 'supports_format' ), $args['format'] ) 78 ) { 79 continue; 80 } 81 82 return $generator; 83 } 84 85 return $implementation; 55 protected function choose_implementation(): string|false { 56 if ( \class_exists( \Imagick::class ) ) { 57 return QR_Generator_ImageMagick::class; 58 } 59 60 return QR_Generator_GD::class; 86 61 } 87 62 … … 107 82 ), 108 83 'outputBase64' => false, 109 'outputInterface' => $this->choose_implementation( $args),84 'outputInterface' => $this->choose_implementation(), 110 85 'outputType' => QROutputInterface::CUSTOM, 111 86 'quietzoneSize' => 1, … … 113 88 ), 114 89 ); 90 91 if ( QR_Generator_GD::class === $args['outputInterface'] ) { 92 $args['moduleValues'] = \array_map( array( $this, 'hex2rgb' ), $args['moduleValues'] ); 93 } 115 94 116 95 /** … … 130 109 131 110 /** 111 * Converts a hex color to RGB. 112 * 113 * @param string $hex Hex color. 114 * @return array RGB color. 115 */ 116 public function hex2rgb( string $hex ): array { 117 $hex = \hexdec( \ltrim( $hex, '#' ) ); 118 119 $r = ( $hex >> 16 ) & 0xFF; 120 $g = ( $hex >> 8 ) & 0xFF; 121 $b = $hex & 0xFF; 122 123 return array( $r, $g, $b ); 124 } 125 126 /** 132 127 * Initializes the handler. 133 128 * -
serbian-addons-for-woocommerce/tags/3.5.8/readme.txt
r3030701 r3078305 8 8 WC requires at least: 8.0 9 9 WC tested up to: 8.3 10 Stable tag: 3.5. 710 Stable tag: 3.5.8 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
serbian-addons-for-woocommerce/tags/3.5.8/serbian-addons-for-woocommerce.php
r3030701 r3078305 4 4 * Plugin URI: https://oblak.studio/open-source/srpski-woocommerce 5 5 * Description: Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy. 6 * Version: 3.5. 76 * Version: 3.5.8 7 7 * Requires PHP: 8.0 8 8 * Author: Oblak Studio -
serbian-addons-for-woocommerce/tags/3.5.8/vendor/composer/installed.php
r3030669 r3078305 4 4 'pretty_version' => '1.0.0+no-version-set', 5 5 'version' => '1.0.0.0', 6 'reference' => NULL,6 'reference' => null, 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => '1.0.0+no-version-set', 15 15 'version' => '1.0.0.0', 16 'reference' => NULL,16 'reference' => null, 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../', -
serbian-addons-for-woocommerce/trunk/lib/QR/QR_Code_Handler.php
r3026688 r3078305 51 51 * Choose the best QR Code implementation. 52 52 * 53 * @param array $args QR Code arguments.54 53 * @return string|false 55 54 */ 56 protected function choose_implementation( array $args ): string|false { 57 $implementations = array( QR_Generator_ImageMagick::class, QR_Generator_GD::class ); 58 59 /** 60 * Filter the list of QR Code implementations. 61 * 62 * @param array<int, class-string> $implementations List of QR Code implementations. 63 * @return array<int, class-string> 64 * 65 * @since 3.3.0 66 */ 67 $implementations = \apply_filters( 'woocommerce_serbian_qr_code_implementations', $implementations ); 68 $implementation = false; 69 70 foreach ( $implementations as $generator ) { 71 if ( ! \call_user_func( array( $generator, 'test' ), $args ) ) { 72 continue; 73 } 74 75 if ( 76 isset( $args['format'] ) && 77 ! \call_user_func( array( $generator, 'supports_format' ), $args['format'] ) 78 ) { 79 continue; 80 } 81 82 return $generator; 83 } 84 85 return $implementation; 55 protected function choose_implementation(): string|false { 56 if ( \class_exists( \Imagick::class ) ) { 57 return QR_Generator_ImageMagick::class; 58 } 59 60 return QR_Generator_GD::class; 86 61 } 87 62 … … 107 82 ), 108 83 'outputBase64' => false, 109 'outputInterface' => $this->choose_implementation( $args),84 'outputInterface' => $this->choose_implementation(), 110 85 'outputType' => QROutputInterface::CUSTOM, 111 86 'quietzoneSize' => 1, … … 113 88 ), 114 89 ); 90 91 if ( QR_Generator_GD::class === $args['outputInterface'] ) { 92 $args['moduleValues'] = \array_map( array( $this, 'hex2rgb' ), $args['moduleValues'] ); 93 } 115 94 116 95 /** … … 130 109 131 110 /** 111 * Converts a hex color to RGB. 112 * 113 * @param string $hex Hex color. 114 * @return array RGB color. 115 */ 116 public function hex2rgb( string $hex ): array { 117 $hex = \hexdec( \ltrim( $hex, '#' ) ); 118 119 $r = ( $hex >> 16 ) & 0xFF; 120 $g = ( $hex >> 8 ) & 0xFF; 121 $b = $hex & 0xFF; 122 123 return array( $r, $g, $b ); 124 } 125 126 /** 132 127 * Initializes the handler. 133 128 * -
serbian-addons-for-woocommerce/trunk/readme.txt
r3030701 r3078305 8 8 WC requires at least: 8.0 9 9 WC tested up to: 8.3 10 Stable tag: 3.5. 710 Stable tag: 3.5.8 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
serbian-addons-for-woocommerce/trunk/serbian-addons-for-woocommerce.php
r3030701 r3078305 4 4 * Plugin URI: https://oblak.studio/open-source/srpski-woocommerce 5 5 * Description: Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy. 6 * Version: 3.5. 76 * Version: 3.5.8 7 7 * Requires PHP: 8.0 8 8 * Author: Oblak Studio -
serbian-addons-for-woocommerce/trunk/vendor/composer/installed.php
r3030669 r3078305 4 4 'pretty_version' => '1.0.0+no-version-set', 5 5 'version' => '1.0.0.0', 6 'reference' => NULL,6 'reference' => null, 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => '1.0.0+no-version-set', 15 15 'version' => '1.0.0.0', 16 'reference' => NULL,16 'reference' => null, 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.