master.blade.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <script src="{{ csset('/js/plugins/vue/vue@2.6.11.js') }}"></script>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  9. <meta name="csrf-token" content="{{ csrf_token() }}">
  10. <meta property="og:image" content="/public/themes/kbgolf/pro/resources/images/og_img.png">
  11. <script src="https://t1.kakaocdn.net/kakao_js_sdk/2.1.0/kakao.min.js" integrity="sha384-dpu02ieKC6NUeKFoGMOKz6102CLEWi9+5RQjWSV0ikYSFFd8M3Wp2reIcquJOemx" crossorigin="anonymous"></script>
  12. <script src="https://static.nid.naver.com/js/naveridlogin_js_sdk_2.0.1.js"></script>
  13. @stack('meta')
  14. @php $seoHtml = App\Helpers\Utils::getSeoHtml(); @endphp
  15. @empty ($seoHtml)
  16. <title>{{ env('APP_NAME') }}</title>
  17. <link rel="icon" href="{{ msset(env('FAVICON_PATH')) }}" type="image/x-icon">
  18. @else
  19. {!! $seoHtml !!}
  20. @endempty
  21. <!-- Google Fonts -->
  22. <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,300i,400,400i,500,500i,700,700i&display=swap" rel="stylesheet">
  23. @php $basePath = '/themes/kbgolf/pro/resources'; @endphp
  24. @include('views.partial.site.meta', [ 'basePath' => $basePath ])
  25. @include('views.partial.site.scripts', [ 'basePath' => $basePath ])
  26. @stack('css')
  27. </head>
  28. <!-- page wrapper -->
  29. <body class="boxed_wrapper">
  30. @inject('callApiService', 'App\Services\CallApiService')
  31. @php
  32. $mainMenuPerm = App\Helpers\Utils::getProMainMenu();
  33. $mainMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  34. return $menu['Sort'] === 'primary';
  35. })->toArray();
  36. $topMenuPermPage = collect($mainMenuPerm['Page'])->filter(function ($menu) {
  37. return $menu['Sort'] === 'top';
  38. })->toArray();
  39. $mainMenuList = App\Helpers\Utils::formatMenuList($mainMenuPermPage, 'MenuCode');
  40. $topMenuList = App\Helpers\Utils::formatMenuList($topMenuPermPage, 'MenuCode');
  41. @endphp
  42. @include('layouts.js-lang')
  43. @include('vendor.lara-izitoast.toast')
  44. <div id="quick-launcher"></div>
  45. <div id="quick-launcher">
  46. <div class="dabory-quick-B quick-launcher quick_kbgolf">
  47. <ul>
  48. <li>
  49. <button type="button" class="return-to-bottom">
  50. <span class="ico ico-bottom"></span>
  51. </button>
  52. </li>
  53. <li>
  54. <dl class="quick_tel">
  55. <dt> 회원권 문의</dt>
  56. <dd>
  57. 본사
  58. <strong>02-572-1888</strong>
  59. </dd>
  60. <dd>
  61. 충청지사
  62. <strong>044-863-1889</strong>
  63. </dd>
  64. </dl>
  65. </li>
  66. <li>
  67. <button type="button" id="naver-login-button" class="show-widget-btn" data-widget="naver">
  68. <img src="themes/kbgolf/pro/resources/images/icn_navertalk.png" alt="naver">
  69. <p class="txt">네이버 톡톡</p>
  70. </li>
  71. <li>
  72. <button type="button" id="kakao-login-button" class="show-widget-btn" data-widget="kakao">
  73. <img src="themes/kbgolf/pro/resources/images/icn_kakaotalk.png" alt="kakao">
  74. <p class="txt">카카오 플러스 친구</p>
  75. </li>
  76. <li>
  77. <button type="button" class="return-to-top">
  78. <span class="ico ico-top"></span>
  79. </button>
  80. </li>
  81. </ul>
  82. </div>
  83. </div>
  84. <!-- main header -->
  85. @include('views.layouts.main-header')
  86. <!-- main-header end -->
  87. <!-- Mobile Menu -->
  88. @include('views.layouts.mobile-menu')
  89. <!-- End Mobile Menu -->
  90. <div id="app">
  91. @yield('content')
  92. </div>
  93. <!-- main-footer -->
  94. @include('views.layouts.footer')
  95. <!-- main-footer end -->
  96. <!-- sidebar cart item -->
  97. @include('views.layouts.sidebar')
  98. <!-- END sidebar widget item -->
  99. <!--Scroll to top-->
  100. <button class="scroll-top scroll-to-target" data-target="html">
  101. <span class="fa fa-arrow-up"></span>
  102. </button>
  103. <div id="element_in_which_to_insert">
  104. @yield('modal')
  105. @stack('modal')
  106. </div>
  107. @yield('js')
  108. @stack('js')
  109. <script src="{{ csset($basePath . '/js/script.js') }}"></script>
  110. </body><!-- End of .page_wrapper -->
  111. <script>
  112. window.env = (@json($_ENV));
  113. window.Member = @json(session('member'));
  114. window.CodeTitle = @json($codeTitle ?? '');
  115. </script>
  116. {{--<script src="{{ asset('/dabory/js/widget.js?serverUrl=https://safebanner.daboryhost.com&api23Key=XJAL+1IF4/EgIVcuTvcAOoH9ASKjnQje71boZaGpzwVyVcCoVRsxzyMee5goucaC6cWxzLdEcYfIkfj6bLukvs9+lOeUa3CLqpCbhd7v99Bxm011kxUllDLY8/NrXFVn8aa1e57jygREHo7xF2LWOJ9LHc2idRmQ9rXbI46sgiZBwPmi6E/mACBIjUcKq+uviA==') }}"></script>--}}
  117. <script>
  118. Kakao.init(window.env.KAKAO_JAVASCRIPT_KEY);
  119. $(document).ready(function () {
  120. // $.fn.widget.loadModule(function () {
  121. // $('#quick-launcher').quick()
  122. // })
  123. $('.show-widget-btn').on('click', function() {
  124. var widgetType = $(this).data('widget');
  125. socialLogin(widgetType);
  126. });
  127. });
  128. function socialLogin(widgetType){
  129. if(widgetType == 'naver'){
  130. var apiUrl = 'https://nid.naver.com/oauth2.0/authorize?response_type=code&client_id=' +
  131. window.env.NAVER_CLIENT_ID + '&redirect_uri=' +
  132. window.env.NAVER_CALLBACK_URL + '&state=' + generateState();
  133. var popup = window.open(apiUrl, '_blank', 'width=600,height=600');
  134. }else if(widgetType == 'kakao'){
  135. var apiUrl = 'https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=' +
  136. window.env.KAKAO_JAVASCRIPT_KEY + '&redirect_uri=' +
  137. window.env.KAKAO_CALLBACK_URL + '&state=' + generateState();
  138. var popup = window.open(apiUrl, '_blank', 'width=600,height=600');
  139. }
  140. }
  141. function generateState() {
  142. var mt = new Date().getTime().toString();
  143. var rand = Math.random().toString(36).substr(2);
  144. var stateValue = mt + rand;
  145. var encodedState = encodeURIComponent(stateValue); // URL 인코딩
  146. return encodedState;
  147. }
  148. </script>
  149. </html>