Plugin Directory

Changeset 3045420


Ignore:
Timestamp:
03/05/2024 07:45:27 AM (2 years ago)
Author:
tlamedia
Message:

Update to version 1.19.1 from GitHub

Location:
gtm-kit
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gtm-kit/tags/1.19.1/gtm-kit.php

    r3032523 r3045420  
    44 *
    55 * Plugin Name: GTM Kit
    6  * Version:     1.19
     6 * Version:     1.19.1
    77 * Plugin URI:  https://gtmkit.com/
    88 * Description: Google Tag Manager implementation focusing on flexibility and pagespeed.
     
    1616 *
    1717 * WC requires at least: 7.6
    18  * WC tested up to: 8.5
     18 * WC tested up to: 8.7
    1919 *
    2020 * @package GTM Kit
     
    2828}
    2929
    30 const GTMKIT_VERSION = '1.19';
     30const GTMKIT_VERSION = '1.19.1';
    3131
    3232if ( ! defined( 'GTMKIT_FILE' ) ) {
  • gtm-kit/tags/1.19.1/inc/main.php

    r3004949 r3045420  
    9797    $options         = new Options();
    9898    $rest_api_server = new RestAPIServer();
    99     $util            = new Util( $rest_api_server );
     99    $util            = new Util( $options, $rest_api_server );
    100100
    101101    ( new AdminAPI( $options, $util ) )->rest_init();
     
    141141    $options         = new Options();
    142142    $rest_api_server = new RestAPIServer();
    143     $util            = new Util( $rest_api_server );
     143    $util            = new Util( $options, $rest_api_server );
    144144
    145145    Analytics::register( $options, $util );
  • gtm-kit/tags/1.19.1/languages/gtm-kit.pot

    r3032523 r3045420  
    1 # Copyright (C) 2024 TLA Media
     1# Copyright (C) 2024 GTM Kit
    22# This file is distributed under the GPLv3.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: GTM Kit 1.19\n"
     5"Project-Id-Version: GTM Kit 1.19.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gtm-kit\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-02-06T14:22:05+00:00\n"
     12"POT-Creation-Date: 2024-03-05T07:31:58+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.9.0\n"
     
    1616
    1717#. Plugin Name of the plugin
     18#. Author of the plugin
    1819#: src/Admin/MetaBox.php:64
    1920#: assets/admin/wizard.js:1
     
    2223
    2324#. Plugin URI of the plugin
     25#. Author URI of the plugin
    2426msgid "https://gtmkit.com/"
    2527msgstr ""
     
    2729#. Description of the plugin
    2830msgid "Google Tag Manager implementation focusing on flexibility and pagespeed."
    29 msgstr ""
    30 
    31 #. Author of the plugin
    32 msgid "TLA Media"
    33 msgstr ""
    34 
    35 #. Author URI of the plugin
    36 msgid "https://www.tlamedia.dk/"
    3731msgstr ""
    3832
     
    112106msgstr ""
    113107
    114 #: src/Common/Util.php:122
     108#: src/Common/Util.php:132
    115109msgid "Server type:"
    116110msgstr ""
    117111
    118 #: src/Common/Util.php:127
     112#: src/Common/Util.php:137
    119113msgid "PHP version number:"
    120114msgstr ""
    121115
    122 #: src/Common/Util.php:132
     116#: src/Common/Util.php:142
    123117msgid "WordPress version number:"
    124118msgstr ""
    125119
    126 #: src/Common/Util.php:137
     120#: src/Common/Util.php:147
    127121msgid "WordPress multisite:"
    128122msgstr ""
    129123
    130 #: src/Common/Util.php:138
     124#: src/Common/Util.php:148
    131125#: assets/admin/wizard.js:1
    132126msgid "Yes"
    133127msgstr ""
    134128
    135 #: src/Common/Util.php:138
     129#: src/Common/Util.php:148
    136130#: assets/admin/wizard.js:1
    137131msgid "No"
    138132msgstr ""
    139133
    140 #: src/Common/Util.php:142
     134#: src/Common/Util.php:152
    141135msgid "Current theme:"
    142136msgstr ""
    143137
    144 #: src/Common/Util.php:147
     138#: src/Common/Util.php:157
    145139msgid "Current site language:"
    146140msgstr ""
    147141
    148 #: src/Common/Util.php:152
     142#: src/Common/Util.php:162
    149143msgid "Active plugins:"
    150144msgstr ""
    151145
    152 #: src/Common/Util.php:153
     146#: src/Common/Util.php:163
    153147msgid "Plugin name and version of all active plugins"
    154148msgstr ""
    155149
    156 #: src/Common/Util.php:157
     150#: src/Common/Util.php:167
    157151msgid "Anonymized GTM Kit settings:"
    158152msgstr ""
    159153
    160 #: src/Common/Util.php:158
     154#: src/Common/Util.php:168
    161155msgid "Which GTM Kit settings are active"
    162156msgstr ""
  • gtm-kit/tags/1.19.1/readme.txt

    r3032523 r3045420  
    44Tags: google tag manager, gtm, woocommerce, analytics, ga4, gtag, easy digital downloads
    55Tested up to: 6.4
    6 Stable tag: 1.19
     6Stable tag: 1.19.1
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    8989== Changelog ==
    9090
     91= 1.19.1 =
     92
     93Release 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
    91101= 1.19 =
    92102
  • gtm-kit/tags/1.19.1/src/Common/Util.php

    r3032523 r3045420  
    99
    1010use TLA_Media\GTM_Kit\Integration\WooCommerce;
     11use TLA_Media\GTM_Kit\Options;
    1112
    1213/**
     
    1617
    1718    /**
     19     * Instance of Options
     20     *
     21     * @var Options
     22     */
     23    public $options;
     24
     25    /**
    1826     * Instance of RestAPIServer
    1927     *
     
    3947     * Constructor.
    4048     *
     49     * @param Options       $options Instance of Options.
    4150     * @param RestAPIServer $rest_api_server Instance of RestAPIServer.
    4251     * @param string        $path The plugin path.
    4352     * @param string        $url The plugin URL.
    4453     */
    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;
    4656        $this->rest_api_server = $rest_api_server;
    4757        $this->asset_path      = $path . 'assets/';
     
    295305
    296306        $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        }
    298313
    299314        \wp_enqueue_script( $handle, $this->asset_url . $script, $deps, $ver, $args );
  • gtm-kit/tags/1.19.1/src/Integration/ContactForm7.php

    r2982843 r3045420  
    3131            $options         = new Options();
    3232            $rest_api_server = new RestAPIServer();
    33             $util            = new Util( $rest_api_server );
     33            $util            = new Util( $options, $rest_api_server );
    3434            self::$instance  = new self( $options, $util );
    3535        }
  • gtm-kit/tags/1.19.1/src/Integration/EasyDigitalDownloads.php

    r3005657 r3045420  
    4848            $options         = new Options();
    4949            $rest_api_server = new RestAPIServer();
    50             $util            = new Util( $rest_api_server );
     50            $util            = new Util( $options, $rest_api_server );
    5151            self::$instance  = new self( $options, $util );
    5252        }
  • gtm-kit/tags/1.19.1/src/Integration/WooCommerce.php

    r3032523 r3045420  
    6363            $options         = new Options();
    6464            $rest_api_server = new RestAPIServer();
    65             $util            = new Util( $rest_api_server );
     65            $util            = new Util( $options, $rest_api_server );
    6666            self::$instance  = new self( $options, $util );
    6767        }
  • gtm-kit/tags/1.19.1/vendor/composer/installed.php

    r3032523 r3045420  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',
     6        'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',
     16            'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • gtm-kit/trunk/gtm-kit.php

    r3032523 r3045420  
    44 *
    55 * Plugin Name: GTM Kit
    6  * Version:     1.19
     6 * Version:     1.19.1
    77 * Plugin URI:  https://gtmkit.com/
    88 * Description: Google Tag Manager implementation focusing on flexibility and pagespeed.
     
    1616 *
    1717 * WC requires at least: 7.6
    18  * WC tested up to: 8.5
     18 * WC tested up to: 8.7
    1919 *
    2020 * @package GTM Kit
     
    2828}
    2929
    30 const GTMKIT_VERSION = '1.19';
     30const GTMKIT_VERSION = '1.19.1';
    3131
    3232if ( ! defined( 'GTMKIT_FILE' ) ) {
  • gtm-kit/trunk/inc/main.php

    r3004949 r3045420  
    9797    $options         = new Options();
    9898    $rest_api_server = new RestAPIServer();
    99     $util            = new Util( $rest_api_server );
     99    $util            = new Util( $options, $rest_api_server );
    100100
    101101    ( new AdminAPI( $options, $util ) )->rest_init();
     
    141141    $options         = new Options();
    142142    $rest_api_server = new RestAPIServer();
    143     $util            = new Util( $rest_api_server );
     143    $util            = new Util( $options, $rest_api_server );
    144144
    145145    Analytics::register( $options, $util );
  • gtm-kit/trunk/languages/gtm-kit.pot

    r3032523 r3045420  
    1 # Copyright (C) 2024 TLA Media
     1# Copyright (C) 2024 GTM Kit
    22# This file is distributed under the GPLv3.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: GTM Kit 1.19\n"
     5"Project-Id-Version: GTM Kit 1.19.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gtm-kit\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-02-06T14:22:05+00:00\n"
     12"POT-Creation-Date: 2024-03-05T07:31:58+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.9.0\n"
     
    1616
    1717#. Plugin Name of the plugin
     18#. Author of the plugin
    1819#: src/Admin/MetaBox.php:64
    1920#: assets/admin/wizard.js:1
     
    2223
    2324#. Plugin URI of the plugin
     25#. Author URI of the plugin
    2426msgid "https://gtmkit.com/"
    2527msgstr ""
     
    2729#. Description of the plugin
    2830msgid "Google Tag Manager implementation focusing on flexibility and pagespeed."
    29 msgstr ""
    30 
    31 #. Author of the plugin
    32 msgid "TLA Media"
    33 msgstr ""
    34 
    35 #. Author URI of the plugin
    36 msgid "https://www.tlamedia.dk/"
    3731msgstr ""
    3832
     
    112106msgstr ""
    113107
    114 #: src/Common/Util.php:122
     108#: src/Common/Util.php:132
    115109msgid "Server type:"
    116110msgstr ""
    117111
    118 #: src/Common/Util.php:127
     112#: src/Common/Util.php:137
    119113msgid "PHP version number:"
    120114msgstr ""
    121115
    122 #: src/Common/Util.php:132
     116#: src/Common/Util.php:142
    123117msgid "WordPress version number:"
    124118msgstr ""
    125119
    126 #: src/Common/Util.php:137
     120#: src/Common/Util.php:147
    127121msgid "WordPress multisite:"
    128122msgstr ""
    129123
    130 #: src/Common/Util.php:138
     124#: src/Common/Util.php:148
    131125#: assets/admin/wizard.js:1
    132126msgid "Yes"
    133127msgstr ""
    134128
    135 #: src/Common/Util.php:138
     129#: src/Common/Util.php:148
    136130#: assets/admin/wizard.js:1
    137131msgid "No"
    138132msgstr ""
    139133
    140 #: src/Common/Util.php:142
     134#: src/Common/Util.php:152
    141135msgid "Current theme:"
    142136msgstr ""
    143137
    144 #: src/Common/Util.php:147
     138#: src/Common/Util.php:157
    145139msgid "Current site language:"
    146140msgstr ""
    147141
    148 #: src/Common/Util.php:152
     142#: src/Common/Util.php:162
    149143msgid "Active plugins:"
    150144msgstr ""
    151145
    152 #: src/Common/Util.php:153
     146#: src/Common/Util.php:163
    153147msgid "Plugin name and version of all active plugins"
    154148msgstr ""
    155149
    156 #: src/Common/Util.php:157
     150#: src/Common/Util.php:167
    157151msgid "Anonymized GTM Kit settings:"
    158152msgstr ""
    159153
    160 #: src/Common/Util.php:158
     154#: src/Common/Util.php:168
    161155msgid "Which GTM Kit settings are active"
    162156msgstr ""
  • gtm-kit/trunk/readme.txt

    r3032523 r3045420  
    44Tags: google tag manager, gtm, woocommerce, analytics, ga4, gtag, easy digital downloads
    55Tested up to: 6.4
    6 Stable tag: 1.19
     6Stable tag: 1.19.1
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    8989== Changelog ==
    9090
     91= 1.19.1 =
     92
     93Release 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
    91101= 1.19 =
    92102
  • gtm-kit/trunk/src/Common/Util.php

    r3032523 r3045420  
    99
    1010use TLA_Media\GTM_Kit\Integration\WooCommerce;
     11use TLA_Media\GTM_Kit\Options;
    1112
    1213/**
     
    1617
    1718    /**
     19     * Instance of Options
     20     *
     21     * @var Options
     22     */
     23    public $options;
     24
     25    /**
    1826     * Instance of RestAPIServer
    1927     *
     
    3947     * Constructor.
    4048     *
     49     * @param Options       $options Instance of Options.
    4150     * @param RestAPIServer $rest_api_server Instance of RestAPIServer.
    4251     * @param string        $path The plugin path.
    4352     * @param string        $url The plugin URL.
    4453     */
    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;
    4656        $this->rest_api_server = $rest_api_server;
    4757        $this->asset_path      = $path . 'assets/';
     
    295305
    296306        $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        }
    298313
    299314        \wp_enqueue_script( $handle, $this->asset_url . $script, $deps, $ver, $args );
  • gtm-kit/trunk/src/Integration/ContactForm7.php

    r2982843 r3045420  
    3131            $options         = new Options();
    3232            $rest_api_server = new RestAPIServer();
    33             $util            = new Util( $rest_api_server );
     33            $util            = new Util( $options, $rest_api_server );
    3434            self::$instance  = new self( $options, $util );
    3535        }
  • gtm-kit/trunk/src/Integration/EasyDigitalDownloads.php

    r3005657 r3045420  
    4848            $options         = new Options();
    4949            $rest_api_server = new RestAPIServer();
    50             $util            = new Util( $rest_api_server );
     50            $util            = new Util( $options, $rest_api_server );
    5151            self::$instance  = new self( $options, $util );
    5252        }
  • gtm-kit/trunk/src/Integration/WooCommerce.php

    r3032523 r3045420  
    6363            $options         = new Options();
    6464            $rest_api_server = new RestAPIServer();
    65             $util            = new Util( $rest_api_server );
     65            $util            = new Util( $options, $rest_api_server );
    6666            self::$instance  = new self( $options, $util );
    6767        }
  • gtm-kit/trunk/vendor/composer/installed.php

    r3032523 r3045420  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',
     6        'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '2b02d248fe945a37d72cc6fb59ef2c6528ad87ba',
     16            'reference' => '406818bc25fd2c83ea467251f9effc2e3efa1ac8',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.