switch ($compiler->book->parametres->basketManager) {
case 'Remarkable':
return new remarkableCartLink($id, $init, $compiler);
- break;
case 'ZoomProductLink':
return new zoomProductLink($id, $init, $compiler);
- break;
default :
return new cartLink($id, $init, $compiler);
- break;
}
case 13: // zoom area
return new zoomLink($id, $init, $compiler);
return 'zoom in';
}
- public function __construct($id, $init, $compiler)
- {
- parent::__construct($id, $init, $compiler);
- }
-
public function getAdditionnalContent()
{
$res = parent::getAdditionnalContent();
class zoomProductLink extends zoomLink
{
+ public function __construct($id, $init, &$compiler)
+ {
+ $init['group'] = $init['to'];
+ parent::__construct($id, $init, $compiler);
+ }
+
public function getZoomAttributes()
{
- $cart =$this->compiler->getCartData();
+ // $cart = $this->compiler->getCartData();
+ $url = '';
return array_merge(parent::getZoomAttributes(),
['maxzoom' => $this->maxzoom_default, 'ref' => $this->to, 'shareurl' => $url, 'producturl' => $url]