}
$linksToAdd = [$link];
- if ($link->overlapDoublePage() && !$this->_fluidbook->isOnePage()) {
+ if ($link->overlapDoublePage() && !$this->isOnePage()) {
$linksToAdd[] = $link->getRightClone();
}
+
foreach ($linksToAdd as $lta) {
try {
/** @var $lta Link */
// Keep this line because some properties of the link (like blend mode) are parsed with this function
$c = $lta->getHTMLContainer();
+
+
$css[] = $lta->getCSSContainer();
if (!isset($pages[$lta->page])) {
$pages[$lta->page] = ['normal' => []];
$this->triggerLinkError($e, $lta);
}
}
+
+
// Make old "aftersearch" link compatible with new "extra" menu option by extracting link URL
if ($link->page == 'aftersearch') {
$this->config->afterSearchLink = $link->to;
}
}
-
$allpages = range(0, $this->getFluidbook()->getPagesNumber() + 1);
if ($this->fluidbookSettings->themeEnableAfterSearch) {
$allpages[] = 'aftersearch';
return $css;
}
+ /**
+ * @return bool
+ */
+ public function isOnePage(): bool
+ {
+ return $this->_fluidbook->isOnePage();
+ }
+
/**
* @param $e \Exception
* @param $link Link
$this->vdir->copyDirectory($this->assets . '/js/libs/polyfills', 'js/libs/polyfills');
}
+ public function getCacheDir($path): string
+ {
+ return Files::mkdir(protected_path('fluidbookpublication/cache/' . $path));
+ }
+
public function writeTexts()
{
$cache = sha1($this->fluidbookSettings->highlightResults . '/--/' . $this->fluidbookSettings->searchWordSelectionAlgorithm . '///' . $this->fluidbookSettings->textExtraction . '|--|' . $this->fluidbookSettings->ignoreSearchSeparators . '|||' . $this->getFluidbook()->getCompositionUpdate() . '()()()' . FWSTK::lastUpdate());
* @param $lead
* @param $image
* @return string|void
- * @throws Zend_Filter_Exception
*/
protected function _articleToHTML($child, &$title, &$lead, &$image, $dir = null)
{