mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 02:50:39 +00:00
reading metadata in shared link
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<link rel="icon" href="{{ isset($settings->app_favicon) && $settings->app_favicon ? $settings->app_favicon : asset('favicon.png') }}?v={{ get_version() }}">
|
||||
|
||||
<meta charset="utf-8">
|
||||
<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">
|
||||
|
||||
{{--OG Public items--}}
|
||||
<meta property="og:url" content="{{ $metadata['url'] }}">
|
||||
<meta property="og:description" content="{{ $metadata['user'] }} is sending you this file">
|
||||
|
||||
{{--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>
|
||||
@endif
|
||||
|
||||
{{--Show public og metadata--}}
|
||||
@if(! $metadata['is_protected'])
|
||||
|
||||
@if($metadata['thumbnail'])
|
||||
<meta property="og:image" content="{{ $metadata['thumbnail'] }}">
|
||||
@endif
|
||||
|
||||
<meta property="og:title" content="{{ $metadata['name'] }} ({{ $metadata['size'] }}) | {{ isset($settings->app_title) && $settings->app_title ? $settings->app_title : 'VueFileManager' }}">
|
||||
<title>{{ $metadata['name'] }} ({{ $metadata['size'] }}) | {{ isset($settings->app_title) && $settings->app_title ? $settings->app_title : 'VueFileManager' }}</title>
|
||||
@endif
|
||||
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user