options = $options; $this->pdf_manager = $pdf_manager; } /** * Process submitted settings and render the full settings page UI. */ public function render_page() { if (!current_user_can('manage_woocommerce')) { return; } if (isset($_POST['woo_zo_myacs_lite_save_settings']) && check_admin_referer('woo_zo_myacs_lite_save_settings')) { $this->options->set('company_name', sanitize_text_field(wp_unslash($_POST['company_name'] ?? ''))); $this->options->set('api_username', sanitize_text_field(wp_unslash($_POST['api_username'] ?? ''))); $this->options->set('api_password', sanitize_text_field(wp_unslash($_POST['api_password'] ?? ''))); $this->options->set('api_key', sanitize_text_field(wp_unslash($_POST['api_key'] ?? ''))); $this->options->set('company_id', sanitize_text_field(wp_unslash($_POST['company_id'] ?? ''))); $this->options->set('company_password', sanitize_text_field(wp_unslash($_POST['company_password'] ?? ''))); $this->options->set('billing_code', sanitize_text_field(wp_unslash($_POST['billing_code'] ?? ''))); $this->options->set('print_template', sanitize_text_field(wp_unslash($_POST['print_template'] ?? 'thermal'))); echo '

' . esc_html__('Settings saved.', '01generator-shipping-integration-for-acs') . '

'; } $settings = $this->options->all(); $logo_url = Woo_Zo_Myacs_Lite_URL . 'assets/images/logo-256x256.png'; $save_icon = Woo_Zo_Myacs_Lite_URL . 'assets/images/save.svg'; $info_icon = Woo_Zo_Myacs_Lite_URL . 'assets/images/info-circle.svg'; ?>

pdf_manager->count_files()); ?>