1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
<?php $cur_img_url = $j3_imgm_url."/".$sk['sk_img_path'];
if($skin_css!=''){ echo $skin_css; } else { ?> <style> /*좌측메뉴*/ .main-sidebar {/*display:none;*/position:fixed;top:0;bottom:0;width: 270px;;z-index:30000;left:0;} .main-sidebar-wrapper {position:relative;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;} .btn_go {background:url('<?php echo $cur_img_url;?>/ico_go.png') top right no-repeat;}
.cate_sec{margin:0 7px 10px 7px;border:1px solid #bdbdbd;border-bottom:0;background:#fff;} .all_cate li.cate_first ul li a {background:#f5f5f5;color:#000;font-size:12px;border-bottom:1px solid #bdbdbd;} .all_cate li.cate_first ul.cate_third a {background: #535452;color:#fff;border-bottom:1px solid #f5f5f5;} .all_cate li.cate_first{background: url("<?php echo $cur_img_url;?>/top_menu_arrow.png") #fff no-repeat 240px 10px;background-size:20px; padding-bottom: 5px;} .all_cate li.cate_first.on{background: url("<?php echo $cur_img_url;?>/top_menu_arrow2.png") #fff no-repeat 240px 10px;background-size:20px}
.cart_footer_menu{padding:5px} .cart_footer_menu li{display: block;float: left;margin-right: -1px;padding:0;text-align: center;font-weight: 400;border: 1px solid #44444a;background: #fff;margin: 3px;font-size: 12px;height:26px;line-height:26px;} .cart_footer_menu li img{margin-right:2px;margin-top:0;}
.bg_custom1{ background-color:#D00846; } </style> <?php } $cate_array = cate_lv0_list_get(); ?> <!--좌측메뉴(보여드릴려고 2차 3차 다 보이게 뒀구요~처음에 메뉴눌렀을땐 1차만 보이고 눌렀을때 2차 -> 3차 보이게 하면 됩니다.)--> <div id="main-sidebar" class="main-sidebar none class_skin_idx_<?php echo $sk_idx;?>"> <div id="main-sidebar-wrapper" class="main-sidebar-wrapper bg_gray2"> <nav> <div class="height_full"> <h1 class="p7_0 p0_10 height26 bg_custom1"> <!-- 로그인 전 --> <?php if($id_ccode==''){ ?> <a class="hdgnb_login_class block width80 height26 l_height26 align_c circle white_line p0_5"><span class="white txt14 bold">로그인</span></a> <?php } else {?> <a class="hdgnb_logout_class block width80 height26 l_height26 align_c circle white_line p0_5"><span class="white txt14 bold">로그아웃</span></a> <?php } ?> <a href="#" class="close-sb absolute ab_top10_right10 box24"><img src="<?php echo $cur_img_url;?>/ico_close.png" alt="" class="box_full"></a> </h1> <!--전체바로가기--> <div id="gnb" class="block over_h"> <div class="all_cate"> <ul> <?php for($i=0;$i<count($cate_array);$i++){ $cate = $cate_array[$i]; $cate2_array = cate_lv1_list_get(substr($cate['code2'],0,3)); if(count($cate2_array)>0){ $c1_href="#"; } else { $c1_href="{$j3_shop_url}/list.php?code={$cate['code2']}"; } ?> <!--1차카테고리(1차카테고리를 클릭할때 .on클래스를 추가해주세요)--> <li class="cate_first"><a href="<?php echo $c1_href;?>" class="gray_line_t p10_0 pl10 txt14 bold block plus_img"><?php echo $cate['name'];?></a> <?php if(count($cate2_array)>0){ ?> <ul class="cate_sec none"> <?php foreach($cate2_array as $key=>$cate2){ $cate3_array = cate_lv2_list_get(substr($cate2['code2'],0,6)); if(count($cate3_array)>0){ $c2_href="#"; } else { $c2_href="{$j3_shop_url}/list.php?code={$cate2['code2']}"; } ?> <!--2차카테고리--> <li> <a href="<?php echo $c2_href;?>" class="block p10_0 pl10 txt14 white plus2_img"><?php echo $cate2['name'];?></a> <?php if(count($cate3_array)>0){ ?> <!--3차카테고리--> <ul class="cate_third none"> <?php foreach($cate3_array as $key=>$cate3){ ?> <li><a href="<?php echo "{$j3_shop_url}/list.php?code={$cate3['code2']}";?>" class="block p10_0 pl10 txt14 custom4"><?php echo $cate3['name']?></a></li> <?php } ?> </ul> <?php } ?> </li> <?php } ?> </ul> <?php } ?> </li> <?php } ?>
</ul> </div> </div> <!--회원바로가기--> <div class="mb10 block over_h"> <ul class="cart_footer_menu"> <li class="float_l mr1 mb1 pl10 width_half bg_white"><a class="block gray3 txt13 bold space_1 btn_go hdgnb_join_class">회 원 가 입</a></li> <!--<li class="float_l mb1 pl10 width_half bg_white"><a class="block gray3 txt13 bold space_1 btn_go hdgnb_mypage_class"><img src="./img/right_box_icon4.png">마이페이지</a></li>--> <li class="float_l mb1 pl10 width_half bg_white"><a class="block gray3 txt13 bold space_1 btn_go hdgnb_faq_class">F A Q</a></li> <li class="float_l mr1 mb1 pl10 width_half bg_white"><a class="block gray3 txt13 bold space_1 btn_go hdgnb_11_class">1 : 1 문의</a></li> <li class="float_l mb1 pl10 width_half bg_white"><a class="block gray3 txt13 bold space_1 btn_go hdgnb_cart_class">장 바 구 니</a></li> <li class="float_l mr1 mb1 pl10 width_half bg_white"><a class="block gray3 txt13 bold space_1 btn_go hdgnb_order_class">주문리스트</a></li> <li class="float_l mb1 pl10 width_half bg_white"><a class="block gray3 txt13 bold space_1 btn_go hdgnb_wish_class">위시리스트</a></li> </ul> </div> <!--간편메뉴--> <!--고객센터--> <footer class="pt10 pb15 width_full align_c bg_custom1"> <h2 class="black txt14 l_height14">CS center</h2> <a class="height24 white txt24 bold" href='tel:<?php echo $configshop['telno1'];?>'><?php echo $configshop['telno1'];?></a> <p class="black txt11 l_height16 space_1"><?php echo nl2br($configshop['work_time']);?></p> </footer> </div> </nav> </div> </div> <!-- //좌측메뉴 --> <script src="<?php echo $j3_js_url;?>/simple-sidebar/dist/jquery.simpler-sidebar.min.js"></script> <script> $(document).ready(function() { <?php if(!($sample_idx!='' && $pos=='menu')){?> $('#main-sidebar').simplerSidebar({ opener: '.lnb_open', top: 0, animation: { easing: "easeOutQuint" }, sidebar: { closingLinks: '.close-sb', width:270, align:'left' } }); <?php }?> $("#main-sidebar").show();
$(".all_cate li.cate_first .plus_img").click(function(){ // 중분류 열고 닫고 $(this).closest("li").find(".cate_sec").toggle(); if($(this).closest("li").find(".cate_sec").css("display")=="none"){ $(this).closest("li").removeClass("on"); } else { $(this).closest("li").addClass("on"); } });
$(".all_cate li.cate_first .plus2_img").click(function(){ // 하분류 열고 닫고 $(this).closest("li").find(".cate_third").toggle(); }); }); </script>
|