Templates Y Branding
El sistema distingue entre branding efectivo y template visual.
Archivos clave:
- setup/modules/email-setup/includes/helpers.php
- setup/modules/email-setup/includes/class-email-setup.php
- setup/modules/email-setup/templates/emails/base.php
- setup/modules/email-setup/templates/emails/contact.php
- templates/emails/base.php del theme activo
- templates/emails/contact.php del theme activo
Capa de branding:
- brand_logo
- brand_primary
- brand_footer
- from_email
- from_name
- transport
Capa de template:
- base.php envuelve correos HTML genericos
- contact.php pinta los campos del formulario
- el theme activo puede sobrescribir ambos archivos
Punto clave del sender:
$theme_path = get_stylesheet_directory() . '/templates/emails/base.php';
$plugin_path = EMAIL_SETUP_PATH . 'templates/emails/base.php';
include file_exists($theme_path) ? $theme_path : $plugin_path;Interpretacion:
- el core define la API y el fallback
- el proyecto puede cambiar la piel visual sin romper la integracion
Last updated on