breadcrumb v3 with link

This commit is contained in:
fredtempez 2019-02-06 17:05:28 +01:00
parent 89360f9e62
commit 72f027d2c9

View File

@ -1332,8 +1332,11 @@ class core extends common {
$title = $this->getData(['page', $this->getUrl(0), 'title']);
if (!empty($this->getData(['page', $this->getUrl(0), 'parentPageId'])) &&
$this->getData(['page', $this->getUrl(0), 'breadCrumb'])) {
$title =ucfirst($this->getData(['page', $this->getUrl(0), 'parentPageId'])) .
' › '.
$title = '<a href="' . helper::baseUrl() .
$this->getData(['page', $this->getUrl(0), 'parentPageId']) .
'">' .
ucfirst($this->getData(['page', $this->getUrl(0), 'parentPageId'])) .
'</a> &#8250; '.
$this->getData(['page', $this->getUrl(0), 'title']);
}
// Importe la page
@ -1547,7 +1550,7 @@ class core extends common {
if($this->output['metaTitle'] === '') {
if($this->output['title']) {
$this->addOutput([
'metaTitle' => $this->output['title'] . ' - ' . $this->getData(['config', 'title'])
'metaTitle' => strip_tags($this->output['title']) . ' - ' . $this->getData(['config', 'title'])
]);
}
else {