| Name | Size | Mode | Actions |
|---|---|---|---|
| Admin/ | - | 0755 | rm |
| Builder/ | - | 0755 | rm |
| Pointers/ | - | 0755 | rm |
| Promo/ | - | 0755 | rm |
| AddonsItemBase.php | 3561 | 0666 | editdlrm |
| AddonsListBase.php | 1518 | 0666 | editdlrm |
| Core.php | 3043 | 0666 | editdlrm |
| EducationInterface.php | 414 | 0666 | editdlrm |
| FeatureTooltip.php | 3697 | 0666 | editdlrm |
| Fields.php | 11194 | 0666 | editdlrm |
| Helpers.php | 4720 | 0666 | editdlrm |
| StringsTrait.php | 8250 | 0666 | editdlrm |
/home/techb158/public_html/wp-content/plugins/wpforms-lite/src/Admin/Education/StringsTrait.php (8250B)
' . esc_html( sprintf( /* translators: %s - addon name. */ __( 'The %s is not installed. Would you like to install and activate it?', 'wpforms-lite' ), $name ) ) . '
'; $strings['install_confirm'] = esc_html__( 'Yes, Install and Activate', 'wpforms-lite' ); $strings['installing'] = esc_html__( 'Installing', 'wpforms-lite' ); $strings['save_prompt'] = esc_html__( 'Almost done! Would you like to save and refresh the form builder?', 'wpforms-lite' ); $strings['save_confirm'] = esc_html__( 'Yes, save and refresh', 'wpforms-lite' ); $strings['saving'] = esc_html__( 'Saving ...', 'wpforms-lite' ); // Check if the user can install addons. // Includes license check. $can_install_addons = wpforms_can_install( 'addon' ); // Check if the user can install plugins. // Only checks if the user has the capability. // Needed to display the correct message for non-admin users. $can_install_plugins = current_user_can( 'install_plugins' ); $strings['can_install_addons'] = $can_install_addons && $can_install_plugins; if ( ! $can_install_addons ) { $strings['install_prompt'] = '' . esc_html( sprintf( /* translators: %s - addon name. */ __( 'The %s is not installed. Please install and activate it to use this feature.', 'wpforms-lite' ), $name ) ) . '
'; } if ( ! $can_install_plugins ) { /* translators: %s - addon name. */ $strings['install_prompt'] = '' . esc_html( sprintf( /* translators: %s - addon name. */ __( 'The %s is not installed. Please contact the site administrator.', 'wpforms-lite' ), $name ) ) . '
'; } // Check if the user can activate plugins. $can_activate_plugins = current_user_can( 'activate_plugins' ); $strings['can_activate_addons'] = $can_activate_plugins; if ( ! $can_activate_plugins ) { /* translators: %s - addon name. */ $strings['activate_prompt'] = '' . esc_html( sprintf( __( 'The %s is not activated. Please contact the site administrator.', 'wpforms-lite' ), $name ) ) . '
'; } $upgrade_utm_medium = wpforms_is_admin_page() ? 'Settings - Integration' : 'Builder - Settings'; if ( wpforms_is_block_editor() ) { $upgrade_utm_medium = 'gutenberg'; } $strings['upgrade'] = [ 'pro' => $this->get_upgrade_strings( 'Pro', $name, $upgrade_utm_medium ), 'elite' => $this->get_upgrade_strings( 'Elite', $name, $upgrade_utm_medium ), ]; // Shared bonus body — reused by `upgrade_bonus` and `upgrade_banner.bonus` // so translators see this sentence exactly once. $bonus_body = __( 'WPForms Lite users get 50% off regular price, automatically applied at checkout.', 'wpforms-lite' ); $strings['upgrade_bonus'] = wpautop( wp_kses( '' . esc_html__( 'Bonus:', 'wpforms-lite' ) . ' ' . $bonus_body, [ 'strong' => [], 'span' => [], ] ) ); $activate_license_link = sprintf( '%2$s', esc_url( admin_url( 'admin.php?page=wpforms-settings' ) ), esc_html__( 'Activate your license', 'wpforms-lite' ) ); // Banner upgrade modal copy — activated when the trigger carries `data-banner-src`. // The activate anchor's `href="#"` is a placeholder; JS overwrites it at runtime. $strings['upgrade_banner'] = [ 'message' => esc_html__( 'Understand how your forms are performing with detailed analytics on views, conversions, and field-level activity, so you can identify friction and improve completion rates.', 'wpforms-lite' ), 'button' => esc_html__( 'Upgrade to WPForms Pro', 'wpforms-lite' ), 'bonus' => wp_kses( '' . esc_html__( 'Bonus!', 'wpforms-lite' ) . ' ' . $bonus_body . '', [ 'strong' => [], 'span' => [ 'class' => [] ], 'a' => [ 'href' => [], 'class' => [], ], ] ), ]; $strings['thanks_for_interest'] = esc_html__( 'Thanks for your interest in WPForms Pro!', 'wpforms-lite' ); /** * Filters the education strings. * * @since 1.6.6 * * @param array $strings Education strings. * * @return array */ return (array) apply_filters( 'wpforms_admin_education_strings', $strings ); } /** * Get upgrade strings. * * @since 1.8.8 * * @param string $level Upgrade level. * @param string $name Addon name. * @param string $upgrade_utm_medium UTM medium for the upgrade link. * * @return array * @noinspection HtmlUnknownTarget */ private function get_upgrade_strings( string $level, string $name, string $upgrade_utm_medium ): array { // phpcs:ignore WPForms.Formatting.EmptyLineAfterFunctionDeclaration.AddEmptyLineAfterFunctionDeclaration return [ 'title' => esc_html( sprintf( /* translators: %s - level name, either Pro or Elite. */ __( 'is a %s Feature', 'wpforms-lite' ), $level ) ), 'title_plural' => esc_html( sprintf( /* translators: %s - level name, either Pro or Elite. */ __( 'are a %s Feature', 'wpforms-lite' ), $level ) ), 'message' => '' . esc_html( sprintf( /* translators: %1$s - addon name, %2$s - level name, either Pro or Elite. */ __( 'We\'re sorry, the %1$s is not available on your plan. Please upgrade to the %2$s plan to unlock all these awesome features.', 'wpforms-lite' ), $name, $level ) ) . '
', 'message_plural' => '' . esc_html( sprintf( /* translators: %1$s - addon name, %2$s - level name, either Pro or Elite. */ __( 'We\'re sorry, %1$s are not available on your plan. Please upgrade to the %2$s plan to unlock all these awesome features.', 'wpforms-lite' ), $name, $level ) ) . '
', 'doc' => sprintf( '%2$s', esc_url( wpforms_utm_link( 'https://wpforms.com/docs/upgrade-wpforms-lite-paid-license/#installing-wpforms', $upgrade_utm_medium, '%name%' ) ), esc_html__( 'Already purchased?', 'wpforms-lite' ) ), 'button' => esc_html( sprintf( /* translators: %s - level name, either Pro or Elite. */ __( 'Upgrade to %s', 'wpforms-lite' ), $level ) ), 'url' => wpforms_admin_upgrade_link( $upgrade_utm_medium ), 'url_template' => wpforms_is_admin_page( 'templates' ) ? wpforms_admin_upgrade_link( 'Form Templates Subpage' ) : wpforms_admin_upgrade_link( 'builder-modal-template' ), 'url_themes' => wpforms_admin_upgrade_link( 'Builder Themes' ), 'modal' => wpforms_get_upgrade_modal_text( strtolower( $level ) ), ]; } }