appel des squelettes de header et footer : priorité au squelettes spécifiques du slug si ils existent (le générique de gamumail reste en par défaut)
This commit is contained in:
parent
728d5dcf6d
commit
28e73628ae
1 changed files with 8 additions and 9 deletions
|
@ -174,20 +174,19 @@ function formulaires_gamumail_traiter_dist($slug, $auteur = 0, $Tclient = [], $T
|
||||||
}
|
}
|
||||||
|
|
||||||
$html_header = '';
|
$html_header = '';
|
||||||
|
if (find_in_path('gamumail/'.$slug .'_html_header.html')) {
|
||||||
if(find_in_path('gamumail/html_header.html')){
|
|
||||||
$html_header = recuperer_fond('gamumail/html_header', $options);
|
|
||||||
} elseif (find_in_path($slug . '_html_header.html')) {
|
|
||||||
$html_header = recuperer_fond('gamumail/'.$slug . '_html_header', $options);
|
$html_header = recuperer_fond('gamumail/'.$slug . '_html_header', $options);
|
||||||
}
|
}
|
||||||
|
elseif(find_in_path('gamumail/html_header.html')) {
|
||||||
|
$html_header = recuperer_fond('gamumail/html_header', $options);
|
||||||
|
}
|
||||||
$html_footer = '';
|
$html_footer = '';
|
||||||
if(find_in_path('gamumail/html_footer.html')){
|
if (find_in_path('gamumail/'.$slug . '_html_footer.html')) {
|
||||||
$html_footer = recuperer_fond('gamumail/html_footer', $options);
|
|
||||||
} elseif (find_in_path($slug . '_html_footer.html')) {
|
|
||||||
$html_footer = recuperer_fond('gamumail/'.$slug . '_html_footer', $options);
|
$html_footer = recuperer_fond('gamumail/'.$slug . '_html_footer', $options);
|
||||||
}
|
}
|
||||||
|
elseif (find_in_path('gamumail/html_footer.html')) {
|
||||||
|
$html_footer = recuperer_fond('gamumail/html_footer', $options);
|
||||||
|
}
|
||||||
$html = $html_header . $html . $html_footer;
|
$html = $html_header . $html . $html_footer;
|
||||||
|
|
||||||
$corps = [
|
$corps = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue