{
global $core;
- if ($this->book->parametres->customLinkClass == 'WescoSalesLink') {
- $this->specialJsFiles[] = 'js/libs/interact.min.js';
- $this->specialJsFiles[] = 'js/libs/fluidbook/special/wescosales.js';
- $this->specialCSS[] = 'wescosales';
- }
-
- if ($this->book->parametres->customLinkClass == 'AtlanticDownloadLink') {
- $this->specialJsFiles[] = 'js/libs/fluidbook/special/atlanticdownload.js';
- $this->specialCSS[] = 'atlanticdownload';
+ switch ($this->book->parametres->customLinkClass) {
+ case 'WescoSalesLink':
+ $this->specialJsFiles[] = 'js/libs/interact.min.js';
+ $this->specialJsFiles[] = 'js/libs/fluidbook/special/wescosales.js';
+ $this->specialCSS[] = 'wescosales';
+ break;
+ case 'AtlanticDownloadLink':
+ $this->specialJsFiles[] = 'js/libs/fluidbook/special/atlanticdownload.js';
+ $this->specialCSS[] = 'atlanticdownload';
+ break;
+ case 'MiraklEaster2021':
+ $this->specialJsFiles[] = 'js/libs/fluidbook/special/mirakleaster2021.js';
+ $this->specialCSS[] = 'mirakleaster2021';
+ break;
}
$this->config->links = array();
public function writeTexts()
{
- $cache = sha1($this->book->parametres->highlightResults . '/--/' . $this->book->parametres->searchWordSelectionAlgorithm . '///' . $this->book->parametres->textExtraction . '|--|' . $this->book->parametres->ignoreSearchSeparators . '|||' . max($this->book->composition_update, filemtime(WS_TOOLS . '/fwstk/out/artifacts/fwstk_jar/fwstk.jar')));
+ $cache = sha1($this->book->parametres->highlightResults . '/--/' . $this->book->parametres->searchWordSelectionAlgorithm . '///' . $this->book->parametres->textExtraction . '|--|' . $this->book->parametres->ignoreSearchSeparators . '|||' . $this->book->composition_update . '()()()' . filemtime(WS_TOOLS . '/fwstk/out/artifacts/fwstk_jar/fwstk.jar'));
$cacheDir = WS_BOOKS . '/index/' . $this->book_id . '/' . $cache . '/';
if (!file_exists($cacheDir)) {
mkdir($cacheDir, 0777, true);
return new wescoSalesLink($id, $init, $compiler);
case 'AtlanticDownloadLink':
return new atlanticDownloadLink($id, $init, $compiler);
+ case 'MiraklEaster2021':
+ return new miraklEaster2021Link($id, $init, $compiler);
default :
return customLink::getCustomInstance($id, $init, $compiler);
}
class videoLink extends wsHTML5Link
{
public $defaultZIndex = 50;
- public $backgroundColor='#000000';
+ public $backgroundColor = '#000000';
public static function addVideoJS($compiler)
public function getCSS()
{
- $res= parent::getCSS();
- $res.='background-color:'.$this->backgroundColor.';';
+ $res = parent::getCSS();
+ $res .= 'background-color:' . $this->backgroundColor . ';';
return $res;
}
static::addVideoJS($compiler);
$attributes = static::getVideoAttributes($linkDatas, $w, $h, $compiler);
- $linkDatas->backgroundColor=$attributes['backgroundcolor'];
+ $linkDatas->backgroundColor = $attributes['backgroundcolor'];
$res = '<div class="videoContainer integration-' . $linkDatas->inline . '"';
foreach ($attributes as $name => $value) {
}
}
+class miraklEaster2021Link extends normalLink
+{
+ public function getURL()
+ {
+ return '#';
+ }
+
+ public function getAdditionnalContent()
+ {
+ return parent::getAdditionnalContent() . ' data-answers="' . $this->to . '" ';
+ }
+}
+
class inpesPopinLink extends htmlMultimediaLink
{
*/
public static function _handleFile($link)
{
- $to=preg_replace('/^data\/links\//','',$link->to);
+ $to = preg_replace('/^data\/links\//', '', $link->to);
if (!CubeIT_Util_Url::isDistant($to)) {
$e = explode('.', $to);
$ext = array_pop($e);