Correct indentantions in User.View.headIncludes

This commit is contained in:
Celestora 2022-06-18 13:42:11 +03:00
parent 63871b762c
commit bcfeedb7b3

View file

@ -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}