}
}
+ $duplicateLogo = false;
+ // duplicate logo if logo matches mobile logo
+ if (!empty($styleData['variables']['pageLogo']) && !empty($styleData['variables']['pageLogoMobile']) && $styleData['variables']['pageLogo'] == $styleData['variables']['pageLogoMobile']) {
+ $styleData['variables']['pageLogoMobile'] = 'm-'.basename($styleData['variables']['pageLogo']);
+ $duplicateLogo = true;
+ }
+
// save style
if ($style === null) {
$styleData['packageID'] = $packageID;
continue;
}
+ // duplicate pageLogo for mobile version
+ if ($duplicateLogo && $val['filename'] == $styleData['variables']['pageLogo']) {
+ $imagesTar->extract($key, $style->getAssetPath().'m-'.basename($targetFile));
+ }
+
$imagesTar->extract($key, $targetFile);
FileUtil::makeWritable($targetFile);
}