Ajout des images banniere perso a l'archive

This commit is contained in:
SylvainLelievre 2021-12-14 07:09:57 +01:00
parent eda1960d25
commit 07a1d97149

View File

@ -806,6 +806,23 @@ class theme extends common {
self::FILE_DIR.'source/'.$this->getData(['theme','header','image'])
);
}
// Extraction des images de la bannière personnalisée
$images=[];
$ii=0;
if( $this->getData(['theme','header','feature'])=== 'feature') {
$tab = str_word_count($this->getData(['theme','header','featureContent']), 1, './' );
foreach( $tab as $key=>$value ){
if( $value ==='src'){
$images[$ii] = $tab [$key + 1];
$ii++;
}
}
// ajout des images dans le zip
foreach( $images as $key=>$value){
$value = str_replace( './site', 'site' , $value);
$zip->addFile( $value, $value );
}
}
break;
}
$ret = $zip->close();