function fiorin_render_thankyou_email_html( $template_id ) { if ( ! $template_id || ! function_exists('get_field') ) { return ''; } // Percorso del file di template grafico $template_file = dirname( __FILE__ ) . '/fiorin-email-template.php'; if ( ! file_exists( $template_file ) ) { fiorin_ty_log( 'Email template PHP file not found.', [ 'path' => $template_file ] ); return ''; } // 1. Recupero dati dal CPT "Thank You Page" via ACF $email_subject = (string) get_field( 'ty_email_subject', $template_id ); $title = (string) get_field( 'ty_email_title', $template_id ); $intro = (string) get_field( 'ty_email_intro', $template_id ); $body = (string) get_field( 'ty_email_body', $template_id ); $cta_label = (string) get_field( 'ty_email_cta_label', $template_id ); $cta_url = (string) get_field( 'ty_email_cta_url', $template_id ); $logo_id = get_field( 'ty_logo', $template_id ); $primary_color = get_field( 'ty_primary_color', $template_id ); if ( ! $primary_color ) { $primary_color = '#0055A5'; } // 2. Preparazione frammenti HTML // Logo URL $logo_url = ''; if ( $logo_id ) { $maybe_logo = wp_get_attachment_image_url( $logo_id, 'full' ); if ( $maybe_logo ) { $logo_url = $maybe_logo; } } // Titolo HTML $title_html = ''; if ( $title !== '' ) { $title_html = '

' . esc_html( $title ) . '

'; } // Intro HTML $intro_html = ''; if ( $intro !== '' ) { $intro_html = '
' . wp_kses_post( wpautop( $intro ) ) . '
'; } // Body HTML $body_html = ''; if ( $body !== '' ) { $body_html = '
' . wp_kses_post( wpautop( $body ) ) . '
'; } // CTA HTML $cta_html = ''; if ( $cta_label !== '' && $cta_url !== '' ) { $cta_html = '

' . esc_html( $cta_label ) . '

'; } // 3. Inclusione del template PHP con buffer di output ob_start(); // Rendo disponibili le variabili al template // (PHP usa lo scope corrente per le variabili) include $template_file; $html = ob_get_clean(); if ( ! $html ) { fiorin_ty_log( 'Email template rendered empty.', [ 'template_id' => $template_id ] ); } return $html; } Fiorini International at Packaging Première & PCD Milano 2025
Home $ Sin categorizar $ Packaging Première & PCD Milan: spotlights on Fiorini International

Packaging Première & PCD Milan: spotlights on Fiorini International

Packaging Première & PCD Milan is the trade fair strategic event dedicated to market trends in luxury packaging sector and innovations. 2025 edition focuses on AI application in the world of art and packaging design looking for synergies with the themes of sustainability, research and development, eco-friendly materials in packaging. Fiorini International launches the new rain cover 100% paper, to reduce plastic, help the environment and enhance brand values: a sustainable and natural alternative to the current plastic rain covers designed to reduce the volumes of plastic material resulting from secondary packaging and accessories. Designed mainly for the fashion segment, the new 100% paper rain cover enhances customer experience of each brand while answering the logistic and protective functions of secondary packaging. Fiorini International’s innovative research and development processes have successfully developed an external paper coating technology that provides an effective water barrier. Fiorini International rain cover has been featured within the Avant-Garde area (sustainability category), Packaging Première & PCD Milan’s initiative to promote and support innovation in the packaging industry