mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
reading metadata in shared link RC
This commit is contained in:
@@ -52,4 +52,8 @@ return [
|
||||
'col_amount' => 'Amount',
|
||||
|
||||
'total' => 'Total',
|
||||
|
||||
// OG Page
|
||||
'user_sending' => ':name is sending you this file',
|
||||
'protected_file' => 'This link is protected by password',
|
||||
];
|
||||
@@ -54,6 +54,6 @@ return [
|
||||
'total' => 'Total',
|
||||
|
||||
// OG Page
|
||||
'user_sending' => '',
|
||||
'protected_file' => '',
|
||||
'user_sending' => ':name is sending you this file',
|
||||
'protected_file' => 'This link is protected by password',
|
||||
];
|
||||
@@ -52,4 +52,8 @@ return [
|
||||
'col_amount' => 'Čiastka',
|
||||
|
||||
'total' => 'Spolu',
|
||||
|
||||
// OG Page
|
||||
'user_sending' => ':name ti posiela súbor.',
|
||||
'protected_file' => 'Tento link je chránený heslom',
|
||||
];
|
||||
@@ -15,7 +15,6 @@
|
||||
.error-message {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,23 +7,22 @@
|
||||
<meta name="fragment" content="!">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="description" content="{{ $metadata['user'] }} is sending you this file">
|
||||
<meta name="description" content="{{ __('vuefilemanager.user_sending', ['name' => $metadata['user']]) }}">
|
||||
|
||||
{{--OG Public items--}}
|
||||
<meta property="og:url" content="{{ $metadata['url'] }}">
|
||||
<meta property="og:description" content="{{ $metadata['user'] }} is sending you this file">
|
||||
<meta property="og:description" content="{{ __('vuefilemanager.user_sending', ['name' => $metadata['user']]) }}">
|
||||
|
||||
{{--Show protected og metadata--}}
|
||||
@if($metadata['is_protected'])
|
||||
<meta property="og:title" content="This file is protected by password">
|
||||
<title>This file is protected by password</title>
|
||||
<meta property="og:title" content="{{ __('vuefilemanager.protected_file') }}">
|
||||
<title>{{ __('vuefilemanager.protected_file') }}</title>
|
||||
@endif
|
||||
|
||||
{{--Show public og metadata--}}
|
||||
@if(! $metadata['is_protected'])
|
||||
|
||||
@if($metadata['thumbnail'])
|
||||
<meta property="og:type" content="image" />
|
||||
<meta property="og:image" content="{{ $metadata['thumbnail'] }}">
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user