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.

141 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. </head>
  23. <body>
  24. <div class="container-fluid">
  25. <header id="header" class="row">
  26. <nav class="navbar navbar-default">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-navigation" aria-expanded="false">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="<?=base_url()?>"><?=$this->site->config('site_title')?></a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="main-navigation">
  38. <ul class="nav navbar-nav">
  39. <?php $menu = $this->site->menu(); // 메뉴를 가져온다. ?>
  40. <?php foreach($menu as $menu1) : ?>
  41. <?php if( count($menu1['children']) >0 ) : // 1차메뉴가 하위메뉴가 있다면 ?>
  42. <li class="dropdown <?=$menu1['active']?'active':''?>">
  43. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$menu1['mnu_name']?> <span class="caret"></span></a>
  44. <ul class="dropdown-menu">
  45. <?php foreach($menu1['children'] as $menu2) :?>
  46. <?php if( count($menu2['children']) > 0 ) : // 2차메뉴가 하위메뉴가 있다면?>
  47. <li class="<?=$menu2['active']?'active':''?>">
  48. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$menu2['mnu_name']?></a>
  49. <ul class="dropdown-menu">
  50. <?php foreach($menu2['children'] as $menu3) :?>
  51. <li class="<?=$menu3['active']?'active':''?>">
  52. <a href="<?=$menu3['mnu_link']?>" <?=$menu3['mnu_newtab']=='Y'?'target="_blank"':''?>><?=$menu3['mnu_name']?></a>
  53. </li>
  54. <?php endforeach;?>
  55. </ul>
  56. </li>
  57. <?php else : // 2차메뉴가 하위메뉴가 없다면?>
  58. <li class="<?=$menu2['active']?'active':''?>">
  59. <a href="<?=$menu2['mnu_link']?>" <?=$menu2['mnu_newtab']=='Y'?'target="_blank"':''?>><?=$menu2['mnu_name']?></a>
  60. </li>
  61. <?php endif;?>
  62. <?php endforeach;?>
  63. </ul>
  64. </li>
  65. <?php else : // 1차메뉴가 하위메뉴가 없다면 ?>
  66. <li class="<?=$menu1['active']?'active':''?>">
  67. <a href='<?=$menu1['mnu_link']?>' <?=$menu1['mnu_newtab']=='Y'?'target="_blank"':''?>><?=$menu1['mnu_name']?></a>
  68. </li>
  69. <?php endif; ?>
  70. <?php endforeach; ?>
  71. </ul>
  72. <?php if( $this->member->is_login() ) :?>
  73. <!--START:: 회원전용 메뉴-->
  74. <ul class="nav navbar-nav navbar-right">
  75. <li class="dropdown">
  76. <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>
  77. <ul class="dropdown-menu">
  78. <li><a href="<?=base_url('members/info')?>"> 정보</a></li>
  79. <li><a href="<?=base_url('members/info/social')?>">소셜 연동 설정</a></li>
  80. <li class="divider"></li>
  81. <li><a href="<?=base_url('members/logout')?>">로그아웃</a></li>
  82. </ul>
  83. </li>
  84. </ul>
  85. <!--END:: 회원전용 메뉴-->
  86. <?php else :?>
  87. <!--START:: 비회원 전용 메뉴-->
  88. <ul class="nav navbar-nav navbar-right">
  89. <li><a href="<?=base_url('members/login?reurl='.current_full_url(TRUE))?>">로그인</a></li>
  90. <li><a href="<?=base_url('members/register')?>">회원가입</a></li>
  91. </ul>
  92. <!--END:: 비회원전용 메뉴-->
  93. <?php endif;?>
  94. <form class="navbar-form navbar-left" id="search_box" action="<?=base_url('search')?>">
  95. <div class="form-group">
  96. <input class="form-control" placeholder="<?=langs('공통/search/search_placeholder')?>" name="query">
  97. </div>
  98. <button class="btn btn-default"><?=langs('공통/search/search_submit')?></button>
  99. </form>
  100. </div>
  101. </nav>
  102. </header>
  103. </div>
  104. <section id="contents">
  105. <div class="container">
  106. <div class="col-sm-3">
  107. <?=outlogin('basic')?>
  108. </div>
  109. <div class="col-sm-9">
  110. <?=$contents?>
  111. </div>
  112. </div>
  113. </section>
  114. <footer id="footer">
  115. <div class="container">
  116. <ul>
  117. <li><a href="<?=base_url('agreement/site')?>">사이트 이용약관</a></li>
  118. <li><a class="font-bold" href="<?=base_url('agreement/privacy')?>">개인정보 취급방침</a></li>
  119. <li><a class="font-bold" href="<?=base_url('customer/faq')?>">자주 묻는 질문</a></li>
  120. <li><a class="font-bold" href="<?=base_url('customer/qna')?>">1:1문의</a></li>
  121. </ul>
  122. </div>
  123. </footer>
  124. </div>
  125. </body>
  126. </html>