*/
public function preview($version, $fluidbook, $theme, $path = 'index.html')
{
- $nointerface = !!request('nointerface', false);
- $shortLoading = !!request('shortLoading', false);
-
$isScorm = $version === 'scorm';
$dest = $fluidbook->getFinalPath($theme, $isScorm);
public function avatar()
{
- return Gravatar::get($this->email);
+
+ $res = Gravatar::get($this->email);
+ return str_replace('.jpg', '', $res);
}
public static function getThemePreviewURL($id, $params = [], $page = 2)
{
- $defaultParams = ['version' => 'online', 'id' => '20098-' . $id, 'hash' => 'f2e0452eed6dba9878016ce5603fdc54', 'time' => time(), 'nointerface' => 1, 'force' => 0, 'shortLoading' => 1, 'puppeteer' => 0];
+ $defaultParams = ['version' => 'online', 'id' => '20098-' . $id, 'hash' => 'f2e0452eed6dba9878016ce5603fdc54', 'time' => time(), 'path' => 'index.html', 'nointerface' => 1, 'force' => 0, 'shortLoading' => 1, 'puppeteer' => 0];
return route('fluidbook_preview_with_time', array_merge($defaultParams, $params));
}