continue;
}
- $target = '_blank';
+ $target = '_popupiframe';
$inline = false;
$video_service = '';
+ $image = null;
+ $infobulle = '';
// Find dimensions ratio
$ratio = $book->parametres->width / $item['page_width'];
if ($item['asset_type'] === '3') {
// link
$type = 2;
- $target = '_blank';
$to = $item['asset_content'];
$to = str_replace('.html ?', '.html?', $to);
$f = $webvideo->filter($to);
$infobulle = 'Voir le produit';
+ if ($item['asset_name'] === 'Carte magique') {
+ $image = 'btn-cartemagique.gif';
+ $infobulle = 'Découvrir ma carte magique';
+ }
if ($f !== $to || stripos($item['asset_name'], 'video') !== false) {
if ($f !== $to) {
$e = explode(':', $f);
$e = explode('#', $item['asset_name']);
$to = $e[1];
$infobulle = 'Ajouter à ma liste de cadeaux';
+ } else if ($item['asset_type'] === '6') {
+ $image = '';
+ $type = '15';
+ $to = 'etoiles.gif';
+ $infobulle = '';
+ }
+
+ if ($image === null) {
+ $image = $images[$type];
}
$link = array(
- 'page' => $page, 'image' => $images[$type],
+ 'page' => $page, 'image' => $image,
'left' => $item['x'] * $ratio, 'top' => $item['y'] * $ratio, 'width' => $item['width'] * $ratio, 'height' => $item['height'] * $ratio, 'rot' => '',
'type' => $type, 'to' => $to, 'target' => $target, 'video_width' => 1920, 'video_height' => 1080,
'infobulle' => $infobulle, 'numerotation' => 'virtual', 'display_area' => false, 'inline' => $inline,