*/
public function getFormat(): string
{
- if ($this->format === 'jpeg') {
+ if ($this->format === null) {
+ return 'jpg';
+ } else if ($this->format === 'jpeg') {
return 'jpg';
}
return $this->format;
public $attached = false;
+ public $attachLeft = false;
+
protected static $_encryptedTypes = [14, 15, 35, 39];
protected static $_encryptedAttributes = ['image_rollover'];
public function moveOnEvenPage()
{
- return false;
+ return $this->attachLeft;
}
public function getCSSContainer()
{
if ($this->moveOnEvenPage()) {
$this->page--;
- $this->left += $this->compiler->getWidth();
+ $this->left += $this->compiler->getWidthForLinks();
}
$css = '#l_' . $this->id . '{';