Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Dan0sz/host-analytics-locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Jul 17, 2024
2 parents 437763a + df2fe2c commit ef344de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions includes/admin/settings/class-advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function do_randomize_client_id_promo() {
! defined( 'CAOS_PRO_ACTIVE' ) || ( defined( 'CAOS_PRO_ACTIVE' ) && CAOS::get( CAOS_Admin_Settings::CAOS_ADV_SETTING_COMPATIBILITY_MODE, '' ) ),
true,
true,
__( 'Disable <strong>Compatibility Mode</strong> to enable it.', 'host-webfonts-local' )
__( 'Disable <strong>Compatibility Mode</strong> to enable it.', 'host-analyticsjs-local' )
);
}

Expand All @@ -130,7 +130,7 @@ public function do_cloaked_affiliate_links_tracking_promo() {
?>
<?php if ( $disabled && $this->display_reason( true ) ) : ?>
<p class="description option-disabled">
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-webfonts-local' ), __( 'Enable it by setting <strong>Service Provider</strong> to Google Analytics and/or set <strong>Tracking Code</strong> to Default or Asynchronous.', 'host-webfonts-local' ) ), 'post' ); ?>
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-analyticsjs-local' ), __( 'Enable it by setting <strong>Service Provider</strong> to Google Analytics and/or set <strong>Tracking Code</strong> to Default or Asynchronous.', 'host-analyticsjs-local' ) ), 'post' ); ?>
</p>
<?php else : ?>
<table class="track-cloaked-affiliate-links">
Expand Down Expand Up @@ -189,7 +189,7 @@ public function do_advertising_features() {
CAOS::get( CAOS_Admin_Settings::CAOS_ADV_SETTING_COMPATIBILITY_MODE, '' ),
true,
false,
__( 'Disable <strong>Compatibility Mode</strong> to enable it.', 'host-webfonts-local' )
__( 'Disable <strong>Compatibility Mode</strong> to enable it.', 'host-analyticsjs-local' )
);
}

Expand All @@ -201,7 +201,7 @@ public function do_uninstall_settings() {
__( 'Remove settings at Uninstall', 'host-analyticsjs-local' ),
CAOS_Admin_Settings::CAOS_ADV_SETTING_UNINSTALL_SETTINGS,
CAOS::get( CAOS_Admin_Settings::CAOS_ADV_SETTING_UNINSTALL_SETTINGS ),
'<strong>' . __( 'Warning!', 'host-analytics-local' ) . '</strong> ' . __( 'This will remove the settings from the database upon plugin deletion!', 'host-analyticsjs-local' )
'<strong>' . __( 'Warning!', 'host-analyticsjs-local' ) . '</strong> ' . __( 'This will remove the settings from the database upon plugin deletion!', 'host-analyticsjs-local' )
);
}
}
6 changes: 3 additions & 3 deletions includes/admin/settings/class-basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function do_allow_tracking() {
__( 'Configure CAOS to "listen" to your Cookie Banner plugin.', 'host-analyticsjs-local' ) . ' ' . __( 'Choose \'Always\' to enable tracking without prior consent.', 'host-analyticsjs-local' ) . ' ' . sprintf( __( 'CAOS uses the Google Analytics 4 <a href="%s" target="_blank">Consent Mode API</a>.', 'host-analyticsjs-local' ), 'https://support.google.com/analytics/answer/9976101?hl=en' ),
CAOS::get( CAOS_Admin_Settings::CAOS_ADV_SETTING_COMPATIBILITY_MODE, '' ),
false,
__( 'Enable it by disabling <strong>Compatibility Mode</strong>.', 'host-webfonts-local' )
__( 'Enable it by disabling <strong>Compatibility Mode</strong>.', 'host-analyticsjs-local' )
);
}

Expand Down Expand Up @@ -141,7 +141,7 @@ public function do_tracking_code() {
CAOS::get( CAOS_Admin_Settings::CAOS_BASIC_SETTING_TRACKING_CODE ),
__( 'Should we use the Asynchronous or Minimal tracking code? Minimal Analytics is fastest, but supports only basic features i.e. pageviews and events.', 'host-analyticsjs-local' ) . ' ' . sprintf( '<a href="%s" target="_blank">', 'https://daan.dev/docs/caos/basic-settings/' . $this->utm_tags ) . __( 'Read more', 'host-analyticsjs-local' ) . '</a>',
CAOS::get( CAOS_Admin_Settings::CAOS_ADV_SETTING_COMPATIBILITY_MODE, '' ),
__( 'Enable it by disabling <strong>Compatibility Mode</strong>.', 'host-webfonts-local' )
__( 'Enable it by disabling <strong>Compatibility Mode</strong>.', 'host-analyticsjs-local' )
);
}

Expand Down Expand Up @@ -175,7 +175,7 @@ public function do_script_position() {
__( 'Load the Analytics tracking-snippet in the header, footer or manually? If e.g. your theme doesn\'t load the <code>wp_head()</code> conventionally, choose \'Add manually\'.', 'host-analyticsjs-local' ),
CAOS::get( CAOS_Admin_Settings::CAOS_ADV_SETTING_COMPATIBILITY_MODE, '' ),
false,
__( 'Enable it by disabling <strong>Compatibility Mode</strong>.', 'host-webfonts-local' )
__( 'Enable it by disabling <strong>Compatibility Mode</strong>.', 'host-analyticsjs-local' )
);
}

Expand Down
12 changes: 6 additions & 6 deletions includes/admin/settings/class-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct() {
*/
public function do_promo() {
if ( defined( 'CAOS_PRO_ACTIVE' ) === false ) {
$this->promo = sprintf( __( '<a href="%s" target="_blank">Get CAOS Pro</a> to unlock this option.' ), CAOS_Admin_Settings::DAAN_DEV_WORDPRESS_CAOS_PRO . $this->utm_tags );
$this->promo = sprintf( __( '<a href="%s" target="_blank">Get CAOS Pro</a> to unlock this option.', 'host-analyticsjs-local' ), CAOS_Admin_Settings::DAAN_DEV_WORDPRESS_CAOS_PRO . $this->utm_tags );
}
}

Expand Down Expand Up @@ -138,7 +138,7 @@ public function do_radio( $label, $inputs, $name, $checked, $description, $disab
<?php endforeach; ?>
<?php if ( ! is_array( $disabled ) && $disabled && $this->display_reason() ) : ?>
<p class="option-disabled">
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-webfonts-local' ), $explanation ), 'post' ); ?>
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-analyticsjs-local' ), $explanation ), 'post' ); ?>
</p>
<?php else : ?>
<p class="description">
Expand Down Expand Up @@ -178,7 +178,7 @@ public function do_select( $label, $select, $options, $selected, $description, $
</select>
<?php if ( $disabled && $this->display_reason() ) : ?>
<p class="option-disabled">
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-webfonts-local' ), $explanation ), 'post' ); ?>
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-analyticsjs-local' ), $explanation ), 'post' ); ?>
</p>
<?php else : ?>
<p class="description">
Expand Down Expand Up @@ -211,7 +211,7 @@ public function do_number( $label, $name, $value, $description, $min = 0, $disab
<input <?php echo esc_attr( $disabled ? 'disabled' : '' ); ?> class="<?php echo esc_attr( str_replace( '_', '-', $name ) ); ?>" type="number" name="caos_settings[<?php echo esc_attr( $name ); ?>]" min="<?php echo esc_attr( $min ); ?>" value="<?php echo esc_attr( $value ); ?>" />
<?php if ( $disabled && $this->display_reason() ) : ?>
<p class="option-disabled">
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-webfonts-local' ), $explanation ), 'post' ); ?>
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-analyticsjs-local' ), $explanation ), 'post' ); ?>
</p>
<?php else : ?>
<p class="description">
Expand Down Expand Up @@ -244,7 +244,7 @@ public function do_text( $label, $name, $placeholder, $value, $description = '',
<input <?php echo $disabled ? 'disabled' : ''; ?> class="<?php echo esc_attr( str_replace( '_', '-', $name ) ); ?>" type="text" name="caos_settings[<?php echo esc_attr( $name ); ?>]" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php echo esc_attr( $value ); ?>" />
<?php if ( $disabled && $this->display_reason() ) : ?>
<p class="option-disabled">
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-webfonts-local' ), $explanation ), 'post' ); ?>
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-analyticsjs-local' ), $explanation ), 'post' ); ?>
</p>
<?php else : ?>
<p class="description">
Expand Down Expand Up @@ -281,7 +281,7 @@ public function do_checkbox( $label, $name, $checked, $description, $disabled =
<input <?php echo esc_attr( $disabled ? 'disabled' : '' ); ?> id="caos_settings[<?php echo esc_attr( $name ); ?>]" type="checkbox" class="<?php echo esc_attr( str_replace( '_', '-', $name ) ); ?>" name="caos_settings[<?php echo esc_attr( $name ); ?>]" <?php echo esc_attr( $checked === 'on' ? 'checked = "checked"' : '' ); ?> />
<?php if ( $disabled && $this->display_reason( $is_pro_option ) ) : ?>
<p class="description option-disabled">
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-webfonts-local' ), $explanation ), 'post' ); ?>
<?php echo wp_kses( sprintf( __( 'This option is disabled. %s', 'host-analyticsjs-local' ), $explanation ), 'post' ); ?>
</p>
<?php else : ?>
<?php echo wp_kses( apply_filters( $name . '_setting_description', $description, $label, $name ), 'post' ); ?>
Expand Down

0 comments on commit ef344de

Please sign in to comment.