Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conditional premium support option #548

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(),
]
);
}
Expand Down
Loading