Skip to content

Commit 3f26995

Browse files
v2.1.33 (#36)
* v2.1.33
1 parent a76ae6d commit 3f26995

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ Yes. <a href="https://stape.io/blog/how-to-set-up-facebook-conversion-api">How t
6767

6868
== Changelog ==
6969

70+
= 2.1.33 =
71+
* Add description for tab Customer Match
72+
7073
= 2.1.32 =
7174
* Added "Customer Match" settings
7275
* Fix: new_customer value

includes/class-gtm-server-side-admin-settings-customer-match.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
* Admin settings, tab: Customer Match.
1414
*/
1515
class GTM_Server_Side_Admin_Settings_Customer_Match {
16-
/**
16+
const TAB = 'customer-match';
17+
18+
/**
1719
* Tab.
1820
*
1921
* @return void

includes/class-gtm-server-side-admin-settings-webhooks.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Admin settings, tab: Webhooks.
1414
*/
1515
class GTM_Server_Side_Admin_Settings_Webhooks {
16+
const TAB = 'webhooks';
17+
1618
/**
1719
* Tab.
1820
*

includes/class-gtm-server-side-admin-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public function admin_init() {
4040
case 'data-layer':
4141
GTM_Server_Side_Admin_Settings_Data_Layer::tab();
4242
break;
43-
case 'webhooks':
43+
case GTM_Server_Side_Admin_Settings_Webhooks::TAB:
4444
GTM_Server_Side_Admin_Settings_Webhooks::tab();
4545
break;
46-
case 'customer-match':
46+
case GTM_Server_Side_Admin_Settings_Customer_Match::TAB:
4747
GTM_Server_Side_Admin_Settings_Customer_Match::tab();
4848
break;
4949
case 'general':

templates/class-gtm-server-side-admin.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,17 @@
6565

6666
<form action="options.php" method="post" class="js-form-gtm-server-side">
6767
<input type="hidden" name="tab" value="<?php echo esc_attr( $tab ); ?>" ?>
68+
69+
<?php if ( GTM_Server_Side_Admin_Settings_Customer_Match::TAB === $tab ) : ?>
70+
<p>
71+
<?php printf( __( 'Customer Match functionality requires authentication on Stape. Please follow <a href="%s" target="_blank">this guide</a>.', 'gtm-server-side' ), 'https://stape.io/blog/customer-list-google-ads' ); // phpcs:ignore ?>
72+
</p>
73+
<?php endif; ?>
74+
6875
<?php settings_fields( GTM_SERVER_SIDE_ADMIN_GROUP ); ?>
6976
<?php do_settings_sections( GTM_SERVER_SIDE_ADMIN_SLUG ); ?>
7077

71-
<?php if ( 'webhooks' === $tab ) : ?>
78+
<?php if ( GTM_Server_Side_Admin_Settings_Webhooks::TAB === $tab ) : ?>
7279
<table class="form-table" role="presentation">
7380
<tbody>
7481
<tr>

0 commit comments

Comments
 (0)