You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
7.7 KiB

7 years ago
7 years ago
7 years ago
7 years ago
  1. <?php
  2. // CSS 파일과 JS파일 추가 (TRUE 옵션을 준경우 옵션을 주지않은경우보다 상위에 위치한다.)
  3. $this->site->add_css('https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css',TRUE);
  4. $this->site->add_css("/assets/css/desktop.min.css", TRUE);
  5. $this->site->add_js('https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js', TRUE);
  6. $this->site->add_js('https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js', TRUE);
  7. $this->site->add_js("/assets/js/desktop.min.js", TRUE);
  8. ?><!DOCTYPE html>
  9. <html lang="ko">
  10. <head>
  11. <meta charset="utf-8">
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13. <meta name="viewport" content="width=1200">
  14. <?=$this->site->display_meta()?>
  15. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  16. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  17. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  18. <link rel="manifest" href="/site.webmanifest">
  19. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  20. <meta name="msapplication-TileColor" content="#da532c">
  21. <meta name="theme-color" content="#ffffff">
  22. <?=$this->site->display_css()?>
  23. </head>
  24. <body>
  25. <div class="container-fluid">
  26. <header id="header" class="row">
  27. <nav class="navbar navbar-default">
  28. <div class="container">
  29. <div class="navbar-header">
  30. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-navigation" aria-expanded="false">
  31. <span class="sr-only">Toggle navigation</span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. <span class="icon-bar"></span>
  35. </button>
  36. <a class="navbar-brand" href="<?=base_url()?>"><?=$this->site->config('site_title')?></a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="main-navigation">
  39. <ul class="nav navbar-nav">
  40. <?php $menu = $this->site->menu(); // 메뉴를 가져온다. ?>
  41. <?php foreach($menu as $menu1) : ?>
  42. <?php if( count($menu1['children']) >0 ) : // 1차메뉴가 하위메뉴가 있다면 ?>
  43. <li class="dropdown <?=$menu1['active']?'active':''?>">
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$menu1['mnu_name']?> <span class="caret"></span></a>
  45. <ul class="dropdown-menu">
  46. <?php foreach($menu1['children'] as $menu2) :?>
  47. <?php if( count($menu2['children']) > 0 ) : // 2차메뉴가 하위메뉴가 있다면?>
  48. <li class="<?=$menu2['active']?'active':''?>">
  49. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$menu2['mnu_name']?></a>
  50. <ul class="dropdown-menu">
  51. <?php foreach($menu2['children'] as $menu3) :?>
  52. <li class="<?=$menu3['active']?'active':''?>">
  53. <a href="<?=$menu3['mnu_link']?>" <?=$menu3['mnu_newtab']=='Y'?'target="_blank"':''?>><?=$menu3['mnu_name']?></a>
  54. </li>
  55. <?php endforeach;?>
  56. </ul>
  57. </li>
  58. <?php else : // 2차메뉴가 하위메뉴가 없다면?>
  59. <li class="<?=$menu2['active']?'active':''?>">
  60. <a href="<?=$menu2['mnu_link']?>" <?=$menu2['mnu_newtab']=='Y'?'target="_blank"':''?>><?=$menu2['mnu_name']?></a>
  61. </li>
  62. <?php endif;?>
  63. <?php endforeach;?>
  64. </ul>
  65. </li>
  66. <?php else : // 1차메뉴가 하위메뉴가 없다면 ?>
  67. <li class="<?=$menu1['active']?'active':''?>">
  68. <a href='<?=$menu1['mnu_link']?>' <?=$menu1['mnu_newtab']=='Y'?'target="_blank"':''?>><?=$menu1['mnu_name']?></a>
  69. </li>
  70. <?php endif; ?>
  71. <?php endforeach; ?>
  72. </ul>
  73. <?php if( $this->member->is_login() ) :?>
  74. <!--START:: 회원전용 메뉴-->
  75. <ul class="nav navbar-nav navbar-right">
  76. <li class="dropdown">
  77. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?=$this->member->info('nickname')?> <span class="caret"></span></a>
  78. <ul class="dropdown-menu">
  79. <li><a href="<?=base_url('members/info')?>"> 정보</a></li>
  80. <li><a href="<?=base_url('members/info/social')?>">소셜 연동 설정</a></li>
  81. <li class="divider"></li>
  82. <li><a href="<?=base_url('members/logout')?>">로그아웃</a></li>
  83. </ul>
  84. </li>
  85. </ul>
  86. <!--END:: 회원전용 메뉴-->
  87. <?php else :?>
  88. <!--START:: 비회원 전용 메뉴-->
  89. <ul class="nav navbar-nav navbar-right">
  90. <li><a href="<?=base_url('members/login?reurl='.current_full_url(TRUE))?>">로그인</a></li>
  91. <li><a href="<?=base_url('members/register')?>">회원가입</a></li>
  92. </ul>
  93. <!--END:: 비회원전용 메뉴-->
  94. <?php endif;?>
  95. <form class="navbar-form navbar-left" id="search_box" action="<?=base_url('search')?>">
  96. <div class="form-group">
  97. <input class="form-control" placeholder="<?=langs('공통/search/search_placeholder')?>" name="query">
  98. </div>
  99. <button class="btn btn-default"><?=langs('공통/search/search_submit')?></button>
  100. </form>
  101. </div>
  102. </nav>
  103. </header>
  104. </div>
  105. <section id="contents">
  106. <div class="container">
  107. <div class="col-sm-3">
  108. <?=outlogin('basic')?>
  109. </div>
  110. <div class="col-sm-9">
  111. <?=$contents?>
  112. </div>
  113. </div>
  114. </section>
  115. <footer id="footer">
  116. <div class="container">
  117. <ul>
  118. <li><a href="<?=base_url('agreement/site')?>">사이트 이용약관</a></li>
  119. <li><a class="font-bold" href="<?=base_url('agreement/privacy')?>">개인정보 취급방침</a></li>
  120. <li><a class="font-bold" href="<?=base_url('customer/faq')?>">자주 묻는 질문</a></li>
  121. <li><a class="font-bold" href="<?=base_url('customer/qna')?>">1:1문의</a></li>
  122. </ul>
  123. </div>
  124. </footer>
  125. </div>
  126. </body>
  127. </html>