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}
|
{block headIncludes}
|
||||||
{if $user->getPrivacyPermission('page.read', $thisUser ?? NULL)}
|
{if $user->getPrivacyPermission('page.read', $thisUser ?? NULL)}
|
||||||
<!-- openGraph -->
|
<!-- openGraph -->
|
||||||
<meta property="og:title" content="{$user->getCanonicalName()}" />
|
<meta property="og:title" content="{$user->getCanonicalName()}" />
|
||||||
<meta property="og:url" content="http://{$_SERVER['HTTP_HOST']}{$user->getURL()}" />
|
<meta property="og:url" content="http://{$_SERVER['HTTP_HOST']}{$user->getURL()}" />
|
||||||
<meta property="og:image" content="{$user->getAvatarUrl('normal')}" />
|
<meta property="og:image" content="{$user->getAvatarUrl('normal')}" />
|
||||||
<meta property="og:type" content="profile" />
|
<meta property="og:type" content="profile" />
|
||||||
<meta property="og:first_name" content="{$user->getFirstName()}" />
|
<meta property="og:first_name" content="{$user->getFirstName()}" />
|
||||||
<meta property="og:last_name" content="{$user->getLastName()}" />
|
<meta property="og:last_name" content="{$user->getLastName()}" />
|
||||||
<meta n:if="!is_null($user->getShortcode())" property="og:username" content="{$user->getShortcode()}" />
|
<meta n:if="!is_null($user->getShortcode())" property="og:username" content="{$user->getShortcode()}" />
|
||||||
<meta property="og:gender" content="{($user->isFemale() ? 'fe' : '')}male" />
|
<meta property="og:gender" content="{($user->isFemale() ? 'fe' : '')}male" />
|
||||||
|
|
||||||
<!-- json-ld -->
|
<!-- json-ld -->
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "http://schema.org/",
|
"@context": "http://schema.org/",
|
||||||
"type": "Person",
|
"type": "Person",
|
||||||
"name": {$user->getCanonicalName()},
|
"name": {$user->getCanonicalName()},
|
||||||
"url": {('http://') . $_SERVER['HTTP_HOST'] . $user->getURL()}
|
"url": {('http://') . $_SERVER['HTTP_HOST'] . $user->getURL()}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{else}
|
{else}
|
||||||
<meta name="robots" content="noindex, noarchive">
|
<meta name="robots" content="noindex, noarchive" />
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue