$this->prev = $this->_container->pages[$this->page - 1]->getURL();
}
+ if ($this->robots === true) {
+ $this->robots = 'index, follow';
+ } else if ($this->robots === false) {
+ $this->robots = 'noindex, nofollow';
+ }
+
$vars = ['description' => $this->description ? '<meta name="description" content="' . $this->description . '">' : '',
'keywords' => $this->keywords ? '<meta name="keywords" content="' . $this->keywords . '">' : '',
'titre' => $this->title,
$res = 'p/' . $url;
}
- if($this->_container->compiler->fluidbookSettings->seoBaseURL == '') {
+ if ($this->_container->compiler->fluidbookSettings->seoBaseURL == '') {
$res = $url;
} else {
$res = str_replace($this->_container->compiler->fluidbookSettings->seoBaseURL, '', $url);
use App\Fluidbook\PDF;
use App\Fluidbook\SearchIndex;
use App\Fluidbook\SEO\Document;
+use App\Fluidbook\SEO\Page;
use App\Http\Controllers\Admin\Operations\FluidbookPublication\Services\SocialImageOperation;
use App\Http\Controllers\Admin\Operations\Tools\Favicon;
use App\Models\FluidbookPublication;
$this->vdir->copyDirectory($from, $directory);
}
- if ($this->fluidbookSettings->scorm_enable) {
+ if ($this->fluidbookSettings->scorm_enable || $this->fluidbookSettings->secureClientSidePassword) {
$this->fluidbookSettings->seoVersion = false;
}
if ($this->fluidbookSettings->embedAllLibraries) {
if (!isset($this->seo->pages[$page])) {
return;
}
+ /** @var Page $seo */
$seo = $this->seo->pages[$page];
+ if (!$this->fluidbookSettings->seoVersion) {
+ $seo->robots = false;
+ }
$html = $seo->getHTML();
if ($this->fluidbookSettings->seoVersion) {