|
@@ -342,6 +342,7 @@ abstract class Page extends Model
|
|
'href' => $this->canonical,
|
|
'href' => $this->canonical,
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
+
|
|
if ($this->robots) {
|
|
if ($this->robots) {
|
|
$this->pageHeader('robots', 'meta', 11000, [
|
|
$this->pageHeader('robots', 'meta', 11000, [
|
|
'name' => 'robots',
|
|
'name' => 'robots',
|
|
@@ -349,6 +350,15 @@ abstract class Page extends Model
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (1 === $this->user->g_search) {
|
|
|
|
+ $this->pageHeader('opensearch', 'link', 0, [
|
|
|
|
+ 'rel' => 'search',
|
|
|
|
+ 'type' => 'application/opensearchdescription+xml',
|
|
|
|
+ 'href' => $this->c->Router->link('OpenSearch'),
|
|
|
|
+ 'title' => $this->fTitle,
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
|
|
+
|
|
\uasort($this->pageHeaders, function (array $a, array $b) {
|
|
\uasort($this->pageHeaders, function (array $a, array $b) {
|
|
if ($a['weight'] === $b['weight']) {
|
|
if ($a['weight'] === $b['weight']) {
|
|
return 0;
|
|
return 0;
|