Changeset 3045420
- Timestamp:
- 03/05/2024 07:45:27 AM (2 years ago)
- Location:
- gtm-kit
- Files:
-
- 18 edited
- 1 copied
-
tags/1.19.1 (copied) (copied from gtm-kit/trunk)
-
tags/1.19.1/gtm-kit.php (modified) (3 diffs)
-
tags/1.19.1/inc/main.php (modified) (2 diffs)
-
tags/1.19.1/languages/gtm-kit.pot (modified) (6 diffs)
-
tags/1.19.1/readme.txt (modified) (2 diffs)
-
tags/1.19.1/src/Common/Util.php (modified) (4 diffs)
-
tags/1.19.1/src/Integration/ContactForm7.php (modified) (1 diff)
-
tags/1.19.1/src/Integration/EasyDigitalDownloads.php (modified) (1 diff)
-
tags/1.19.1/src/Integration/WooCommerce.php (modified) (1 diff)
-
tags/1.19.1/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/gtm-kit.php (modified) (3 diffs)
-
trunk/inc/main.php (modified) (2 diffs)
-
trunk/languages/gtm-kit.pot (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Common/Util.php (modified) (4 diffs)
-
trunk/src/Integration/ContactForm7.php (modified) (1 diff)
-
trunk/src/Integration/EasyDigitalDownloads.php (modified) (1 diff)
-
trunk/src/Integration/WooCommerce.php (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gtm-kit/tags/1.19.1/gtm-kit.php
r3032523 r3045420 4 4 * 5 5 * Plugin Name: GTM Kit 6 * Version: 1.19 6 * Version: 1.19.1 7 7 * Plugin URI: https://gtmkit.com/ 8 8 * Description: Google Tag Manager implementation focusing on flexibility and pagespeed. … … 16 16 * 17 17 * WC requires at least: 7.6 18 * WC tested up to: 8. 518 * WC tested up to: 8.7 19 19 * 20 20 * @package GTM Kit … … 28 28 } 29 29 30 const GTMKIT_VERSION = '1.19 ';30 const GTMKIT_VERSION = '1.19.1'; 31 31 32 32 if ( ! defined( 'GTMKIT_FILE' ) ) { -
gtm-kit/tags/1.19.1/inc/main.php
r3004949 r3045420 97 97 $options = new Options(); 98 98 $rest_api_server = new RestAPIServer(); 99 $util = new Util( $ rest_api_server );99 $util = new Util( $options, $rest_api_server ); 100 100 101 101 ( new AdminAPI( $options, $util ) )->rest_init(); … … 141 141 $options = new Options(); 142 142 $rest_api_server = new RestAPIServer(); 143 $util = new Util( $ rest_api_server );143 $util = new Util( $options, $rest_api_server ); 144 144 145 145 Analytics::register( $options, $util ); -
gtm-kit/tags/1.19.1/languages/gtm-kit.pot
r3032523 r3045420 1 # Copyright (C) 2024 TLA Media1 # Copyright (C) 2024 GTM Kit 2 2 # This file is distributed under the GPLv3. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: GTM Kit 1.19 \n"5 "Project-Id-Version: GTM Kit 1.19.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gtm-kit\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 2-06T14:22:05+00:00\n"12 "POT-Creation-Date: 2024-03-05T07:31:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" … … 16 16 17 17 #. Plugin Name of the plugin 18 #. Author of the plugin 18 19 #: src/Admin/MetaBox.php:64 19 20 #: assets/admin/wizard.js:1 … … 22 23 23 24 #. Plugin URI of the plugin 25 #. Author URI of the plugin 24 26 msgid "https://gtmkit.com/" 25 27 msgstr "" … … 27 29 #. Description of the plugin 28 30 msgid "Google Tag Manager implementation focusing on flexibility and pagespeed." 29 msgstr ""30 31 #. Author of the plugin32 msgid "TLA Media"33 msgstr ""34 35 #. Author URI of the plugin36 msgid "https://www.tlamedia.dk/"37 31 msgstr "" 38 32 … … 112 106 msgstr "" 113 107 114 #: src/Common/Util.php:1 22108 #: src/Common/Util.php:132 115 109 msgid "Server type:" 116 110 msgstr "" 117 111 118 #: src/Common/Util.php:1 27112 #: src/Common/Util.php:137 119 113 msgid "PHP version number:" 120 114 msgstr "" 121 115 122 #: src/Common/Util.php:1 32116 #: src/Common/Util.php:142 123 117 msgid "WordPress version number:" 124 118 msgstr "" 125 119 126 #: src/Common/Util.php:1 37120 #: src/Common/Util.php:147 127 121 msgid "WordPress multisite:" 128 122 msgstr "" 129 123 130 #: src/Common/Util.php:1 38124 #: src/Common/Util.php:148 131 125 #: assets/admin/wizard.js:1 132 126 msgid "Yes" 133 127 msgstr "" 134 128 135 #: src/Common/Util.php:1 38129 #: src/Common/Util.php:148 136 130 #: assets/admin/wizard.js:1 137 131 msgid "No" 138 132 msgstr "" 139 133 140 #: src/Common/Util.php:1 42134 #: src/Common/Util.php:152 141 135 msgid "Current theme:" 142 136 msgstr "" 143 137 144 #: src/Common/Util.php:1 47138 #: src/Common/Util.php:157 145 139 msgid "Current site language:" 146 140 msgstr "" 147 141 148 #: src/Common/Util.php:1 52142 #: src/Common/Util.php:162 149 143 msgid "Active plugins:" 150 144 msgstr "" 151 145 152 #: src/Common/Util.php:1 53146 #: src/Common/Util.php:163 153 147 msgid "Plugin name and version of all active plugins" 154 148 msgstr "" 155 149 156 #: src/Common/Util.php:1 57150 #: src/Common/Util.php:167 157 151 msgid "Anonymized GTM Kit settings:" 158 152 msgstr "" 159 153 160 #: src/Common/Util.php:1 58154 #: src/Common/Util.php:168 161 155 msgid "Which GTM Kit settings are active" 162 156 msgstr "" -
gtm-kit/tags/1.19.1/readme.txt
r3032523 r3045420 4 4 Tags: google tag manager, gtm, woocommerce, analytics, ga4, gtag, easy digital downloads 5 5 Tested up to: 6.4 6 Stable tag: 1.19 6 Stable tag: 1.19.1 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 89 89 == Changelog == 90 90 91 = 1.19.1 = 92 93 Release date: 2024-03-05 94 95 #### Bugfixes: 96 * Scripts were not enqueued if the container was inactive. 97 98 #### Other: 99 * Tested up to WooCommerce 8.7. 100 91 101 = 1.19 = 92 102 -
gtm-kit/tags/1.19.1/src/Common/Util.php
r3032523 r3045420 9 9 10 10 use TLA_Media\GTM_Kit\Integration\WooCommerce; 11 use TLA_Media\GTM_Kit\Options; 11 12 12 13 /** … … 16 17 17 18 /** 19 * Instance of Options 20 * 21 * @var Options 22 */ 23 public $options; 24 25 /** 18 26 * Instance of RestAPIServer 19 27 * … … 39 47 * Constructor. 40 48 * 49 * @param Options $options Instance of Options. 41 50 * @param RestAPIServer $rest_api_server Instance of RestAPIServer. 42 51 * @param string $path The plugin path. 43 52 * @param string $url The plugin URL. 44 53 */ 45 public function __construct( RestAPIServer $rest_api_server, string $path = GTMKIT_PATH, string $url = GTMKIT_URL ) { 54 public function __construct( Options $options, RestAPIServer $rest_api_server, string $path = GTMKIT_PATH, string $url = GTMKIT_URL ) { 55 $this->options = $options; 46 56 $this->rest_api_server = $rest_api_server; 47 57 $this->asset_path = $path . 'assets/'; … … 295 305 296 306 $deps[] = 'gtmkit'; 297 $deps[] = 'gtmkit-container'; 307 308 $container_active = ( $this->options->get( 'general', 'container_active' ) && apply_filters( 'gtmkit_container_active', true ) ); 309 310 if ( $container_active ) { 311 $deps[] = 'gtmkit-container'; 312 } 298 313 299 314 \wp_enqueue_script( $handle, $this->asset_url . $script, $deps, $ver, $args ); -
gtm-kit/tags/1.19.1/src/Integration/ContactForm7.php
r2982843 r3045420 31 31 $options = new Options(); 32 32 $rest_api_server = new RestAPIServer(); 33 $util = new Util( $ rest_api_server );33 $util = new Util( $options, $rest_api_server ); 34 34 self::$instance = new self( $options, $util ); 35 35 } -
gtm-kit/tags/1.19.1/src/Integration/EasyDigitalDownloads.php
r3005657 r3045420 48 48 $options = new Options(); 49 49 $rest_api_server = new RestAPIServer(); 50 $util = new Util( $ rest_api_server );50 $util = new Util( $options, $rest_api_server ); 51 51 self::$instance = new self( $options, $util ); 52 52 } -
gtm-kit/tags/1.19.1/src/Integration/WooCommerce.php
r3032523 r3045420 63 63 $options = new Options(); 64 64 $rest_api_server = new RestAPIServer(); 65 $util = new Util( $ rest_api_server );65 $util = new Util( $options, $rest_api_server ); 66 66 self::$instance = new self( $options, $util ); 67 67 } -
gtm-kit/tags/1.19.1/vendor/composer/installed.php
r3032523 r3045420 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',6 'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',16 'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
gtm-kit/trunk/gtm-kit.php
r3032523 r3045420 4 4 * 5 5 * Plugin Name: GTM Kit 6 * Version: 1.19 6 * Version: 1.19.1 7 7 * Plugin URI: https://gtmkit.com/ 8 8 * Description: Google Tag Manager implementation focusing on flexibility and pagespeed. … … 16 16 * 17 17 * WC requires at least: 7.6 18 * WC tested up to: 8. 518 * WC tested up to: 8.7 19 19 * 20 20 * @package GTM Kit … … 28 28 } 29 29 30 const GTMKIT_VERSION = '1.19 ';30 const GTMKIT_VERSION = '1.19.1'; 31 31 32 32 if ( ! defined( 'GTMKIT_FILE' ) ) { -
gtm-kit/trunk/inc/main.php
r3004949 r3045420 97 97 $options = new Options(); 98 98 $rest_api_server = new RestAPIServer(); 99 $util = new Util( $ rest_api_server );99 $util = new Util( $options, $rest_api_server ); 100 100 101 101 ( new AdminAPI( $options, $util ) )->rest_init(); … … 141 141 $options = new Options(); 142 142 $rest_api_server = new RestAPIServer(); 143 $util = new Util( $ rest_api_server );143 $util = new Util( $options, $rest_api_server ); 144 144 145 145 Analytics::register( $options, $util ); -
gtm-kit/trunk/languages/gtm-kit.pot
r3032523 r3045420 1 # Copyright (C) 2024 TLA Media1 # Copyright (C) 2024 GTM Kit 2 2 # This file is distributed under the GPLv3. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: GTM Kit 1.19 \n"5 "Project-Id-Version: GTM Kit 1.19.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gtm-kit\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 2-06T14:22:05+00:00\n"12 "POT-Creation-Date: 2024-03-05T07:31:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" … … 16 16 17 17 #. Plugin Name of the plugin 18 #. Author of the plugin 18 19 #: src/Admin/MetaBox.php:64 19 20 #: assets/admin/wizard.js:1 … … 22 23 23 24 #. Plugin URI of the plugin 25 #. Author URI of the plugin 24 26 msgid "https://gtmkit.com/" 25 27 msgstr "" … … 27 29 #. Description of the plugin 28 30 msgid "Google Tag Manager implementation focusing on flexibility and pagespeed." 29 msgstr ""30 31 #. Author of the plugin32 msgid "TLA Media"33 msgstr ""34 35 #. Author URI of the plugin36 msgid "https://www.tlamedia.dk/"37 31 msgstr "" 38 32 … … 112 106 msgstr "" 113 107 114 #: src/Common/Util.php:1 22108 #: src/Common/Util.php:132 115 109 msgid "Server type:" 116 110 msgstr "" 117 111 118 #: src/Common/Util.php:1 27112 #: src/Common/Util.php:137 119 113 msgid "PHP version number:" 120 114 msgstr "" 121 115 122 #: src/Common/Util.php:1 32116 #: src/Common/Util.php:142 123 117 msgid "WordPress version number:" 124 118 msgstr "" 125 119 126 #: src/Common/Util.php:1 37120 #: src/Common/Util.php:147 127 121 msgid "WordPress multisite:" 128 122 msgstr "" 129 123 130 #: src/Common/Util.php:1 38124 #: src/Common/Util.php:148 131 125 #: assets/admin/wizard.js:1 132 126 msgid "Yes" 133 127 msgstr "" 134 128 135 #: src/Common/Util.php:1 38129 #: src/Common/Util.php:148 136 130 #: assets/admin/wizard.js:1 137 131 msgid "No" 138 132 msgstr "" 139 133 140 #: src/Common/Util.php:1 42134 #: src/Common/Util.php:152 141 135 msgid "Current theme:" 142 136 msgstr "" 143 137 144 #: src/Common/Util.php:1 47138 #: src/Common/Util.php:157 145 139 msgid "Current site language:" 146 140 msgstr "" 147 141 148 #: src/Common/Util.php:1 52142 #: src/Common/Util.php:162 149 143 msgid "Active plugins:" 150 144 msgstr "" 151 145 152 #: src/Common/Util.php:1 53146 #: src/Common/Util.php:163 153 147 msgid "Plugin name and version of all active plugins" 154 148 msgstr "" 155 149 156 #: src/Common/Util.php:1 57150 #: src/Common/Util.php:167 157 151 msgid "Anonymized GTM Kit settings:" 158 152 msgstr "" 159 153 160 #: src/Common/Util.php:1 58154 #: src/Common/Util.php:168 161 155 msgid "Which GTM Kit settings are active" 162 156 msgstr "" -
gtm-kit/trunk/readme.txt
r3032523 r3045420 4 4 Tags: google tag manager, gtm, woocommerce, analytics, ga4, gtag, easy digital downloads 5 5 Tested up to: 6.4 6 Stable tag: 1.19 6 Stable tag: 1.19.1 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 89 89 == Changelog == 90 90 91 = 1.19.1 = 92 93 Release date: 2024-03-05 94 95 #### Bugfixes: 96 * Scripts were not enqueued if the container was inactive. 97 98 #### Other: 99 * Tested up to WooCommerce 8.7. 100 91 101 = 1.19 = 92 102 -
gtm-kit/trunk/src/Common/Util.php
r3032523 r3045420 9 9 10 10 use TLA_Media\GTM_Kit\Integration\WooCommerce; 11 use TLA_Media\GTM_Kit\Options; 11 12 12 13 /** … … 16 17 17 18 /** 19 * Instance of Options 20 * 21 * @var Options 22 */ 23 public $options; 24 25 /** 18 26 * Instance of RestAPIServer 19 27 * … … 39 47 * Constructor. 40 48 * 49 * @param Options $options Instance of Options. 41 50 * @param RestAPIServer $rest_api_server Instance of RestAPIServer. 42 51 * @param string $path The plugin path. 43 52 * @param string $url The plugin URL. 44 53 */ 45 public function __construct( RestAPIServer $rest_api_server, string $path = GTMKIT_PATH, string $url = GTMKIT_URL ) { 54 public function __construct( Options $options, RestAPIServer $rest_api_server, string $path = GTMKIT_PATH, string $url = GTMKIT_URL ) { 55 $this->options = $options; 46 56 $this->rest_api_server = $rest_api_server; 47 57 $this->asset_path = $path . 'assets/'; … … 295 305 296 306 $deps[] = 'gtmkit'; 297 $deps[] = 'gtmkit-container'; 307 308 $container_active = ( $this->options->get( 'general', 'container_active' ) && apply_filters( 'gtmkit_container_active', true ) ); 309 310 if ( $container_active ) { 311 $deps[] = 'gtmkit-container'; 312 } 298 313 299 314 \wp_enqueue_script( $handle, $this->asset_url . $script, $deps, $ver, $args ); -
gtm-kit/trunk/src/Integration/ContactForm7.php
r2982843 r3045420 31 31 $options = new Options(); 32 32 $rest_api_server = new RestAPIServer(); 33 $util = new Util( $ rest_api_server );33 $util = new Util( $options, $rest_api_server ); 34 34 self::$instance = new self( $options, $util ); 35 35 } -
gtm-kit/trunk/src/Integration/EasyDigitalDownloads.php
r3005657 r3045420 48 48 $options = new Options(); 49 49 $rest_api_server = new RestAPIServer(); 50 $util = new Util( $ rest_api_server );50 $util = new Util( $options, $rest_api_server ); 51 51 self::$instance = new self( $options, $util ); 52 52 } -
gtm-kit/trunk/src/Integration/WooCommerce.php
r3032523 r3045420 63 63 $options = new Options(); 64 64 $rest_api_server = new RestAPIServer(); 65 $util = new Util( $ rest_api_server );65 $util = new Util( $options, $rest_api_server ); 66 66 self::$instance = new self( $options, $util ); 67 67 } -
gtm-kit/trunk/vendor/composer/installed.php
r3032523 r3045420 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',6 'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',16 'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.