}
public function addSEOArticle($page, $title, $intro, $image) {
- $this->seoArticles[] = ['title' => $title, 'description' => $intro, 'image' => $image, 'content' => '', 'page' => $page, 'url' => CubeIT_Text::str2URL($title) . '.html'];
+ $this->seoArticles[$title] = ['title' => $title, 'description' => $intro, 'image' => $image, 'content' => '', 'page' => $page, 'url' => CubeIT_Text::str2URL($title) . '.html'];
}
public function _sortLinks($a, $b) {
}
}
$this->config->rasterizePages = cubeArray::parseRange($this->config->rasterizePages);
+ $this->config->seoArticles = $this->seoArticles;
return 'var DATAS=' . json_encode($this->config) . ';' . "\n";
}
}
public function getAdditionnalContent() {
+ $res = parent::getAdditionnalContent();
+ if ($this->extra) {
+ $res .= ' data-extra="' . $this->extra . '"';
+ }
+
if (in_array($this->to, $this->_share)) {
- return parent::getAdditionnalContent() . ' data-service="' . $this->to . '" ';
+ $res .= ' data-service="' . $this->to . '" ';
} else {
- return /*parent::getClasses()*/
+ $res .= /*parent::getClasses()*/
' data-action="' . $this->to . '" ';
}
+ return $res;
}
public function getDefaultTooltip() {