/home/techb158/on-time-movers.com/wp-content/plugins/wpforms/src/Pro/Admin/Builder
Edit: /home/techb158/on-time-movers.com/wp-content/plugins/wpforms/src/Pro/Admin/Builder/Builder.php (6628B)
hooks();
}
/**
* Hooks.
*
* @since 1.7.6
*/
private function hooks() {
// Terminate initialization if not in builder.
if ( ! wpforms_is_admin_page( 'builder' ) ) {
return;
}
add_filter( 'wpforms_builder_strings', [ $this, 'form_builder_strings' ], 10, 2 );
add_action( 'wpforms_builder_print_footer_scripts', [ $this, 'builder_templates' ] );
add_action( 'wpforms_builder_enqueues', [ $this, 'builder_enqueues' ] );
}
/**
* Append additional strings for form builder.
*
* @since 1.7.6
*
* @param array $strings List of strings.
* @param object $form CPT of the form.
*
* @return array
*/
public function form_builder_strings( $strings, $form ) {
$currency = wpforms_get_currency();
$currencies = wpforms_get_currencies();
$strings['currency'] = sanitize_text_field( $currency );
$strings['currency_name'] = isset( $currencies[ $currency ]['name'] ) ? sanitize_text_field( $currencies[ $currency ]['name'] ) : '';
$strings['currency_decimals'] = wpforms_get_currency_decimals( $currencies[ $currency ] );
$strings['currency_decimal'] = isset( $currencies[ $currency ]['decimal_separator'] ) ? sanitize_text_field( $currencies[ $currency ]['decimal_separator'] ) : '.';
$strings['currency_thousands'] = isset( $currencies[ $currency ]['thousands_separator'] ) ? sanitize_text_field( $currencies[ $currency ]['thousands_separator'] ) : ',';
$strings['currency_symbol'] = isset( $currencies[ $currency ]['symbol'] ) ? sanitize_text_field( $currencies[ $currency ]['symbol'] ) : '$';
$strings['currency_symbol_pos'] = isset( $currencies[ $currency ]['symbol_pos'] ) ? sanitize_text_field( $currencies[ $currency ]['symbol_pos'] ) : 'left';
$strings['notification_clone'] = esc_html__( ' - clone', 'wpforms' );
$strings['notification_by_status_enable_alert'] = wp_kses( /* translators: %s: Payment provider completed payments. Example: `PayPal Standard completed payments`. */
__( '
You have just enabled this notification for %s. Please note that this email notification will only send for %s.
If you\'d like to set up additional notifications for this form, please see our tutorial.
', 'wpforms' ), // phpcs:ignore WordPress.WP.I18n.UnorderedPlaceholdersText
[
'p' => [],
'strong' => [],
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
);
$strings['notification_by_status_switch_alert'] = wp_kses( /* translators: %1$s: Payment provider completed payments. Example: `PayPal Standard completed payments`, %2$s - Disabled Payment provider completed payments. */
__( '
You have just disabled the notification for %2$s and enabled the notification for %1$s. Please note that this email notification will only send for %1$s.
If you\'d like to set up additional notifications for this form, please see our tutorial.
', 'wpforms' ), // phpcs:ignore WordPress.WP.I18n.UnorderedPlaceholdersText
[
'p' => [],
'strong' => [],
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
);
return $strings;
}
/**
* Used to register the templates for setting blocks inside form builder.
*
* @since 1.7.6
*/
public function builder_templates() {
$conditional_logic_tooltip = '
' . esc_html__( 'How to use Conditional Logic', 'wpforms' ) . '';
?>