header('Location: http://www.wesco-eshop.fr');\r
}\r
\r
+ public function flfRef() {\r
+ global $core;\r
+\r
+ $r = $core->con->select('SELECT url FROM flfref WHERE ref="' . $core->con->escape($ref) . '"');\r
+ if ($r->count()) {\r
+ header('Location: ' . $r->url);\r
+ exit;\r
+ }\r
+ }\r
+\r
public function collection() {\r
global $core;\r
$id = $this->callArgs[0];\r
} else {
return new videoPopupLink($id, $init, $compiler);
}
-
case 7:
if ($compiler->book->parametres->customLinkClass == 'WescoLink') {
return new wescoLink($id, $init, $compiler);
} else if ($compiler->book->parametres->customLinkClass == 'HaguenauManifLink') {
return new haguenauManifLink($id, $init, $compiler);
+ } else if ($compiler->book->parametres->customLinkClass == 'FLFLink') {
+ return new flfLink($id, $init, $compiler);
}
case 8:
case 9:
public function getTooltip() {
if (is_null($this->infobulle) || !$this->infobulle) {
- return '~' .$this->getDefaultTooltip();
+ return '~' . $this->getDefaultTooltip();
}
- return $this->infobulle;
+ return $this->infobulle;
}
public function getHTMLContainer() {
}
+class flfLink extends wescoLink {
+
+ public function getURL() {
+ return 'http://workshop.fluidbook.com/services/flfRef?ref=' . $this->to;
+ }
+
+ public function getTarget() {
+ return '_blank';
+ }
+
+}
+
class haguenauManifLink extends internalLink {
public function getPage() {