?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d5/server/Frontend/Controllers/



?? Go up: /home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d5/server/Frontend

?? Viewing: DefaultString.php

<?php

namespace KS_PAC_DCFH\Frontend\Controllers;

if (!defined('ABSPATH')) {
    exit;
}

class DefaultString
{
    private static ?self $_instance = null;

    public static function instance(): self
    {
        if (self::$_instance === null) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }

    public function get($key = '')
    {
        $et_divi = get_option('et_divi', []);
        $strings = [
            'upload_button_text' => $et_divi['pwh_dcfh_file_upload_btn_text'] ?? __('Choose Files', 'divi-contact-form-helper'),
            'upload_accepted_file_types_text' => $et_divi['pwh_dcfh_accepted_file_text'] ?? __('Accepted file types:', 'divi-contact-form-helper'),
            'upload_max_file_size_text' => $et_divi['pwh_dcfh_max_filesize_text'] ?? __('Max. file size:', 'divi-contact-form-helper'),
            'upload_no_files_chosen_text' => $et_divi['pwh_dcfh_chosen_file_text'] ?? __('No Files Chosen', 'divi-contact-form-helper'),
            'upload_number_of_chosen_files_text' => $et_divi['pwh_dcfh_selected_files_text'] ?? __('{chosen_files_count} file{_s_} selected', 'divi-contact-form-helper'),
            'upload_uploading_files_text' => $et_divi['pwh_dcfh_uploading_text'] ?? __('{percentage} uploaded your files, please wait for the system to continue.', 'divi-contact-form-helper'),
            'upload_already_attached_text' => $et_divi['pwh_dcfh_already_attached_text'] ?? __('File {filename} has already attached. Please choose another file.', 'divi-contact-form-helper'),
            'upload_file_size_warning_text' => $et_divi['pwh_dcfh_allow_filesize_text'] ?? __('File {filename} not uploaded. Maximum file size {allowed_filesize}.', 'divi-contact-form-helper'),
            'upload_number_of_allowed_files_text' => $et_divi['pwh_dcfh_x_files_allow_text'] ?? __('Only {allowed_files} files are allowed to upload.', 'divi-contact-form-helper'),
            'upload_remove_file_text' => $et_divi['pwh_dcfh_remove_file_text'] ?? __('Are you sure you want to remove {filename}?', 'divi-contact-form-helper'),
            'upload_delete_icon_hover_text' => $et_divi['pwh_dcfh_delete_file_icon_hover_text'] ?? __('Delete', 'divi-contact-form-helper'),
            'upload_not_allowed_error_text' => $et_divi['pwh_dcfh_security_reason_text'] ?? __('File {filename} has failed to upload. Sorry, this file type is not permitted for security reasons.', 'divi-contact-form-helper'),
            'upload_allowed_file_size_error_text' => $et_divi['pwh_dcfh_allowedfilesize_text'] ?? __('File {filename} not uploaded. Maximum file size {filesize}', 'divi-contact-form-helper'),
            'signature_empty_pad_text' => $et_divi['pwh_dcfh_siganture_empty_text'] ?? __('The signature pad is empty. Please sign it and then save.', 'divi-contact-form-helper'),
            'signature_save_confirmation_text' => $et_divi['pwh_dcfh_siganture_before_save_text'] ?? __('Are you sure you want to save the signature?', 'divi-contact-form-helper'),
            'signature_save_message_text' => $et_divi['pwh_dcfh_siganture_save_text'] ?? __('The signature has been saved successfully!', 'divi-contact-form-helper'),
            'signature_delete_message_text' => $et_divi['pwh_dcfh_siganture_delete_text'] ?? __('The signature has been deleted successfully!', 'divi-contact-form-helper'),
            'signature_save_button_text' => $et_divi['pwh_dcfh_siganture_save_btn_text'] ?? __('Save', 'divi-contact-form-helper'),
            'signature_clear_button_text' => $et_divi['pwh_dcfh_siganture_clear_btn_text'] ?? __('Clear', 'divi-contact-form-helper'),
            'form_required_fields_text' => $et_divi['pwh_dcfh_fill_message_text'] ?? __('Please fill in the following fields:', 'divi-contact-form-helper'),
            'form_field_error_text' => $et_divi['pwh_dcfh_fix_message_text'] ?? __('Please fix the following errors:', 'divi-contact-form-helper'),
            'form_invalid_email_text' => $et_divi['pwh_dcfh_invalid_email_text'] ?? __('Please enter a valid email address.', 'divi-contact-form-helper'),
            'form_required_captcha_text' => $et_divi['pwh_dcfh_required_captcha_text'] ?? __('Please complete the CAPTCHA.', 'divi-contact-form-helper'),
            'form_wrong_captcha_text' => $et_divi['pwh_dcfh_wrong_captcha_text'] ?? __('There was a problem with the captcha verification.', 'divi-contact-form-helper'),
        ];
        if (!empty($strings[$key])) {
            return $strings[$key];
        }

        return $strings;
    }

}


??

??