layout.blade.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  6. <meta name="apple-mobile-web-app-title" content="{{ config('meta_application_name') }}"/>
  7. @if($metaViewport = config('meta_viewport'))
  8. <meta name="viewport" content="{{ $metaViewport }}"/>
  9. @else
  10. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  11. @endif
  12. @if($metaRobots = config('meta_robots'))
  13. <meta name="robots" content="{{ $metaRobots }}"/>
  14. @endif
  15. @if($metaAuthor = config('meta_author'))
  16. <meta name="author" content="{{ $metaAuthor }}"/>
  17. @endif
  18. @if($metaKeywords = config('meta_keywords'))
  19. <meta name="keywords" content="{{ $metaKeywords }}"/>
  20. @endif
  21. @if($metaDescription = config('meta_description'))
  22. <meta name="description" content="{{ $metaDescription }}"/>
  23. @endif
  24. {!! config('meta_adds_info') !!}
  25. <!-- CSRF Token -->
  26. <meta name="csrf-token" content="{{ csrf_token() }}"/>
  27. <title>{{ config('site_title', config('app.name')) }}</title>
  28. @if($siteFavicon = config('site_favicon'))
  29. <link rel="icon" type="image/x-icon" href="{{ asset($siteFavicon) }}"/>
  30. <link rel="shortcut icon" type="image/x-icon" href="{{ asset($siteFavicon) }}"/>
  31. @endif
  32. @vite(['resources/sass/app.scss', 'resources/js/app.js'])
  33. <link rel="stylesheet" href="{{ asset('css/mobile/layout.css') }}"/>
  34. @stack('styles')
  35. <script>
  36. // 자바스크립트에서 사용하는 전역변수 선언
  37. var BASE_URL = "{{ BASE_URL }}";
  38. var FULL_URL = "{{ FULL_URL }}";
  39. var ADMIN_URL = "{{ ADMIN_URL }}";
  40. var CHARSET = "{{ CHARSET }}";
  41. var DATE = "{{ DATE }}";
  42. var DATETIME = "{{ DATETIME }}";
  43. var IP_ADDRESS = "{{ IP_ADDRESS }}";
  44. var REFERER = "{{ REFERER }}";
  45. var USER_AGENT = "{{ USER_AGENT }}";
  46. var DEVICE = "{{ DEVICE }}";
  47. var PLATFORM = "{{ PLATFORM }}";
  48. var BROWSER = "{{ BROWSER }}";
  49. var IS_USER = {{ IS_USER }};
  50. var IS_ADMIN = {{ IS_ADMIN }};
  51. var IS_FRONT = 1;
  52. var CSRF = "{{ csrf_token() }}";
  53. </script>
  54. <!--[if lt IE 9]>
  55. <script src="{{ asset('js/common/html5shiv.min.js') }}" defer></script>
  56. <script src="{{ asset('js/common/respond.min.js') }}" defer></script>
  57. <script src="{{ asset('js/common/ie8-responsive-file-warning.js') }}" defer></script>
  58. <![endif]-->
  59. <script src="{{ asset('/js/common/common.js') }}" defer></script>
  60. <script src="{{ asset('/js/common/jquery.validate.extension.js') }}" defer></script>
  61. <script src="{{ asset('/js/front.js') }}" defer></script>
  62. <!-- Google tag (gtag.js) -->
  63. <script async src="https://www.googletagmanager.com/gtag/js?id=G-RPBF1M8JNY"></script>
  64. <script>
  65. window.dataLayer = window.dataLayer || [];
  66. function gtag(){dataLayer.push(arguments);}
  67. gtag('js', new Date());
  68. gtag('config', 'G-RPBF1M8JNY');
  69. </script>
  70. </head>
  71. <body id="app">
  72. @yield('content')
  73. @stack('scripts')
  74. @include('component.loading')
  75. @include('component.popup')
  76. @include('component.alert')
  77. </body>
  78. </html>