Skip to content

Commit

Permalink
Update log
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Aug 16, 2024
1 parent 54efbbd commit 17618ec
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 1 deletion.
16 changes: 15 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: tlamedia, torbenlundsgaard, gtmkit
Donate link: https://github.com/tlamedia/gtm-kit
Tags: google tag manager, gtm, woocommerce, analytics, ga4
Tested up to: 6.6
Stable tag: 1.23.2.1
Stable tag: 1.23.2.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -88,6 +88,20 @@ Yes! Pagespeed is one of our main focus points, and we strive to make the plugin

== Changelog ==


= 1.X =

Release date: 2024-MM-DD

Find out about what's new in our [our release post](https://gtmkit.com/gtm-kit-1-24/).

#### Enhancements:

#### Bugfixes:
* Prevent fatal errors caused by invalid filter input from third-party plugins.

#### Other:

= 1.23.2 =

Release date: 2024-08-13
Expand Down
80 changes: 80 additions & 0 deletions src/Admin/Compatability.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php
/**
* GTM Kit plugin file.
*
* @package GTM Kit
*/

namespace TLA_Media\GTM_Kit\Admin;

/**
* Class for compatability checks.
*/
final class Compatability {

/**
* Map of all the default options
*
* @var array
*/
private static $map = [

Check failure on line 20 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPStan

Static property TLA_Media\GTM_Kit\Admin\Compatability::$map is never read, only written.
'plugins' => [

Check warning on line 21 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 1 space(s) between "'plugins'" and double arrow, but found 6.
'ti-woocommerce-wishlist/ti-woocommerce-wishlist.php' => [
'Name' => 'TI WooCommerce Wishlist',

Check warning on line 23 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 8 space(s) between "'Name'" and double arrow, but found 2.
'Description' => 'Add wishlist compatability',
'events' => [

Check warning on line 25 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 6 space(s) between "'events'" and double arrow, but found 1.
'add_to_wishlise',
],
'add-on' => [

Check warning on line 28 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 6 space(s) between "'add-on'" and double arrow, but found 1.
'woo',
],
],
],
'themes' => [

Check warning on line 33 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 2 space(s) between "'themes'" and double arrow, but found 1.
'woodmart' => [

Check warning on line 34 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 1 space(s) between "'woodmart'" and double arrow, but found 9.
'Name' => 'Woodmart',

Check warning on line 35 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 8 space(s) between "'Name'" and double arrow, but found 2.
'Description' => 'Add wishlist compatability',
'events' => [

Check warning on line 37 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 6 space(s) between "'events'" and double arrow, but found 1.
'add_to_wishlise',
],
'add-on' => [

Check warning on line 40 in src/Admin/Compatability.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 6 space(s) between "'add-on'" and double arrow, but found 1.
'woo',
],
],
],
];

/**
* Get the integrations
*
* @return array
*/
public static function get_integrations(): array {

$integrations_data = [
'woocommerce' => [
'title' => 'WooCommerce',
'option' => 'woocommerce_integration',
'description' => __( 'The #1 open source eCommerce platform built for WordPress', 'gtm-kit' ),
'path' => 'woocommerce',
'type' => 'core',
],
'cf7' => [
'title' => 'Contact Form 7',
'option' => 'cf7_integration',
'description' => __( 'Just another contact form plugin for WordPress. Simple but flexible', 'gtm-kit' ),
'path' => 'cf7',
'type' => 'core',
],
'edd' => [
'title' => 'Easy Digital Downloads',
'option' => 'edd_integration',
'description' => __( 'Easy way to sell Digital Products With WordPress', 'gtm-kit' ),
'path' => 'edd',
'type' => 'core',
],
];

return apply_filters( 'gtmkit_integrations_data', $integrations_data );
}
}

0 comments on commit 17618ec

Please sign in to comment.