master.blade.php 7.2 KB

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