mirror of
https://github.com/openvk/openvk
synced 2024-11-15 03:31:18 +03:00
Correct indentantions in User.View.headIncludes
This commit is contained in:
parent
63871b762c
commit
bcfeedb7b3
1 changed files with 20 additions and 20 deletions
|
@ -4,27 +4,27 @@
|
|||
|
||||
{block headIncludes}
|
||||
{if $user->getPrivacyPermission('page.read', $thisUser ?? NULL)}
|
||||
<!-- openGraph -->
|
||||
<meta property="og:title" content="{$user->getCanonicalName()}" />
|
||||
<meta property="og:url" content="http://{$_SERVER['HTTP_HOST']}{$user->getURL()}" />
|
||||
<meta property="og:image" content="{$user->getAvatarUrl('normal')}" />
|
||||
<meta property="og:type" content="profile" />
|
||||
<meta property="og:first_name" content="{$user->getFirstName()}" />
|
||||
<meta property="og:last_name" content="{$user->getLastName()}" />
|
||||
<meta n:if="!is_null($user->getShortcode())" property="og:username" content="{$user->getShortcode()}" />
|
||||
<meta property="og:gender" content="{($user->isFemale() ? 'fe' : '')}male" />
|
||||
|
||||
<!-- json-ld -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org/",
|
||||
"type": "Person",
|
||||
"name": {$user->getCanonicalName()},
|
||||
"url": {('http://') . $_SERVER['HTTP_HOST'] . $user->getURL()}
|
||||
}
|
||||
</script>
|
||||
<!-- openGraph -->
|
||||
<meta property="og:title" content="{$user->getCanonicalName()}" />
|
||||
<meta property="og:url" content="http://{$_SERVER['HTTP_HOST']}{$user->getURL()}" />
|
||||
<meta property="og:image" content="{$user->getAvatarUrl('normal')}" />
|
||||
<meta property="og:type" content="profile" />
|
||||
<meta property="og:first_name" content="{$user->getFirstName()}" />
|
||||
<meta property="og:last_name" content="{$user->getLastName()}" />
|
||||
<meta n:if="!is_null($user->getShortcode())" property="og:username" content="{$user->getShortcode()}" />
|
||||
<meta property="og:gender" content="{($user->isFemale() ? 'fe' : '')}male" />
|
||||
|
||||
<!-- json-ld -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org/",
|
||||
"type": "Person",
|
||||
"name": {$user->getCanonicalName()},
|
||||
"url": {('http://') . $_SERVER['HTTP_HOST'] . $user->getURL()}
|
||||
}
|
||||
</script>
|
||||
{else}
|
||||
<meta name="robots" content="noindex, noarchive">
|
||||
<meta name="robots" content="noindex, noarchive" />
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
|
|
Loading…
Reference in a new issue