public function writeJoueClub2021Cart()
{
$this->lessVariables['import-cart-styles'] = 'joueclub2021';
+ $extra = wsHTML5Link::parseExtras($this->book->parametres->cartExtraSettings, true);
+
+ /**
+ * buttonColor=#d7b646
+ * buttonTextColor=#ffffff
+ * headerBackgroundColor=#0e1a3c
+ * headerTextColor=#ffffff
+ */
+ $this->lessVariables['cart-button-color'] = $extra['buttoncolor'] ?? '#e30613';
+ $this->lessVariables['cart-button-text-color'] = $extra['buttontextcolor'] ?? '#ffffff';
+ $this->lessVariables['cart-button-radius'] = $extra['buttonradius'] ?? '50%';
+ $this->lessVariables['cart-header-background-color'] = $extra['headerbackgroundcolor'] ?? '#26348b';
+ $this->lessVariables['cart-header-text-color'] = $extra['headertextcolor'] ?? '#ffffff';
+ $this->lessVariables['cart-close-color'] = $extra['closecolor'] ?? '#ffffff';
+ $this->lessVariables['cart-close-background-color'] = $extra['closebackgroundcolor'] ?? '#e30613';
+ $this->lessVariables['cart-close-radius'] = $extra['closeradius'] ?? '50%';
+ $this->lessVariables['cart-actions-radius'] = $extra['actionsradius'] ?? '8px';
+ $this->lessVariables['cart-actions-background-color'] = $extra['actionsbackgroundcolor'] ?? '#26348b';
+ $this->lessVariables['cart-actions-text-color'] = $extra['actionstextcolor'] ?? '#ffffff';
$this->addJsLib('cookie', 'js/libs/jquery/jquery.cookie.js');
$this->addJsLib('joueclub2021', 'js/libs/fluidbook/cart/fluidbook.cart.joueclub2021.js');
}
$this->vdir->copy($dest, 'data/commerce/' . $ref . '.jpg');
}
+ $addFiles = [$this->config->cartHeaderImage, $this->config->cartHeaderMobileImage];
+ foreach ($addFiles as $f) {
+ if (!$f) {
+ return;
+ }
+
+ $this->vdir->copy($cdir . $f, 'data/commerce/' . $f);
+ }
wsLinks::getLinksAndRulersFromFile($this->book_id, $links, $rulers);
}