move "generator" to HttpMeta
This commit is contained in:
parent
1258f9bb21
commit
cf4dc2caa8
3
boot.php
3
boot.php
@ -1026,6 +1026,8 @@ class App {
|
|||||||
if(! $this->meta->get_field('og:title'))
|
if(! $this->meta->get_field('og:title'))
|
||||||
$this->meta->set('og:title',$this->page['title']);
|
$this->meta->set('og:title',$this->page['title']);
|
||||||
|
|
||||||
|
$this->meta->set('generator', Zotlabs\Project\System::get_platform_name());
|
||||||
|
|
||||||
/* put the head template at the beginning of page['htmlhead']
|
/* put the head template at the beginning of page['htmlhead']
|
||||||
* since the code added by the modules frequently depends on it
|
* since the code added by the modules frequently depends on it
|
||||||
* being first
|
* being first
|
||||||
@ -1036,7 +1038,6 @@ class App {
|
|||||||
'$user_scalable' => $user_scalable,
|
'$user_scalable' => $user_scalable,
|
||||||
'$baseurl' => $this->get_baseurl(),
|
'$baseurl' => $this->get_baseurl(),
|
||||||
'$local_channel' => local_channel(),
|
'$local_channel' => local_channel(),
|
||||||
'$generator' => Zotlabs\Project\System::get_platform_name() . ((Zotlabs\Project\System::get_project_version()) ? ' ' . Zotlabs\Project\System::get_project_version() : ''),
|
|
||||||
'$metas' => $this->meta->get(),
|
'$metas' => $this->meta->get(),
|
||||||
'$update_interval' => $interval,
|
'$update_interval' => $interval,
|
||||||
'$icon' => head_get_icon(),
|
'$icon' => head_get_icon(),
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<base href="{{$baseurl}}/" />
|
<base href="{{$baseurl}}/" />
|
||||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable={{$user_scalable}}" />
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable={{$user_scalable}}" />
|
||||||
<meta name="generator" content="{{$generator}}" />
|
|
||||||
{{$metas}}
|
{{$metas}}
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="{{$baseurl}}/library/html5.js"></script>
|
<script src="{{$baseurl}}/library/html5.js"></script>
|
||||||
|
Reference in New Issue
Block a user