0) { $maybe_logo_url = wp_get_attachment_image_url($logo_id, 'medium'); if (! empty($maybe_logo_url)) { $logo_preview = $maybe_logo_url; } } $validity_days = (int) get_option('wpquotepro_quotation_validity_days', 30); $intro_text = (string) get_option('wpquotepro_quotation_intro_text', __('Thank you for your enquiry. Please find our quote below.', 'gresquote')); $footer_text = (string) get_option('wpquotepro_quotation_footer_text', ''); $from_email = get_option('wpquotepro_quotation_from_email', ''); $acceptance = (int) get_option('wpquotepro_acceptance_flow_enabled', 1); $regio = WPQUOTEPRO_Regio::huidig(); $site_domein = preg_replace('/^www\./', '', (string) wp_parse_url(home_url('/'), PHP_URL_HOST)); // Kleur: altijd een geldige zescijferige code voor de kleurkiezer. $accent_color = sanitize_hex_color((string) get_option('wpquotepro_pdf_accent_color', '#0B2E59')); if (empty($accent_color)) { $accent_color = '#0B2E59'; } $kiezer_kleur = strtolower($accent_color); if (4 === strlen($kiezer_kleur)) { $kiezer_kleur = '#' . $kiezer_kleur[1] . $kiezer_kleur[1] . $kiezer_kleur[2] . $kiezer_kleur[2] . $kiezer_kleur[3] . $kiezer_kleur[3]; } $stalen = [ '#0B2E59' => __('Dark blue', 'gresquote'), '#1F6F4A' => __('Green', 'gresquote'), '#C2410C' => __('Orange red', 'gresquote'), '#0F766E' => __('Teal', 'gresquote'), '#6D28D9' => __('Purple', 'gresquote'), '#334155' => __('Anthracite', 'gresquote'), ]; // Gegevens van het tabblad Bedrijf, zoals ze op de PDF komen. $bedrijf = [ 'naam' => (string) get_option('wpquotepro_company_name', get_bloginfo('name')), 'adres' => (string) get_option('wpquotepro_company_address', ''), 'plaats' => (string) get_option('wpquotepro_company_postal_city', ''), 'email' => (string) get_option('wpquotepro_company_email', get_option('admin_email', '')), 'kvk' => (string) get_option('wpquotepro_company_kvk', ''), 'btw' => (string) get_option('wpquotepro_company_vat_number', ''), 'iban' => (string) get_option('wpquotepro_company_iban', ''), ]; $voettekst_items = array_filter([ __('Company no.', 'gresquote') => $bedrijf['kvk'], __('VAT no.', 'gresquote') => $bedrijf['btw'], 'IBAN' => $bedrijf['iban'], __('Email', 'gresquote') => $bedrijf['email'], ]); ?>

$naam) : ?>