Skip to content

Commit

Permalink
Add conditional premium support option
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Sep 7, 2024
1 parent 4db2b55 commit c0cd3e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/admin/settings.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => 'd929e99c5eb2c4e1b3c1');
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => '30b78b37fb73b0d86f8d');
8 changes: 4 additions & 4 deletions assets/admin/settings.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/Admin/HelpOptionsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace TLA_Media\GTM_Kit\Admin;

use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;

/**
* HelpOptionsPage
*/
Expand Down Expand Up @@ -94,6 +96,7 @@ public function localize_script( string $page_slug, string $script_handle ): voi
'integrationsUrl' => \menu_page_url( 'gtmkit_integrations', false ),
'settings' => $this->options->get_all_raw(),
'site_data' => [ 'gtmkit_version' => GTMKIT_VERSION ],
'isPremium' => ( new PremiumConditional() )->is_met(),

Check warning on line 99 in src/Admin/HelpOptionsPage.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 7 space(s) between "'isPremium'" and double arrow, but found 8.
]
);
}
Expand Down

0 comments on commit c0cd3e7

Please sign in to comment.