모바일에서 제목이랑 카테고리만 나오게 하고 싶어요. 채택완료
pc에선 그대로 제목 카테고리 날짜 다나오게 하고 모바일에서만 제목이랑 카테고리만 보이게 하고싶어요
| 현재 페이지 게시물 전체선택 | 공백 | 카테고리 | 제목 | 날짜 |
|---|
| 현재 페이지 게시물 전체선택 | 공백 | 제목 | 공백 | 날짜 |
|---|
답변에 대한 댓글 10개
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<th scope="col"><b class="sound_only">공백</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">카테고리</b></th> <?php } ?>
<th scope="col"><b class="sound_only">제목</b></th>
<th scope="col"><b class="sound_only">날짜</b></th>
</tr>
</table>
</div>
</thead>
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } ?>
<th scope="col"><b class="sound_only">제목</b></th>
<?php if (wp_is_mobile()) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } else { ?> <th scope="col"><b class="sound_only">날짜</b></th> <?php } ?>
</tr>
</thead>
</div>
이렇게 맞을까요? 그대로 넣었는데 깨지네요...
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } ?>
<th scope="col"><b class="sound_only">제목</b></th>
<?php if (wp_is_mobile()) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } else { ?> <th scope="col"><b class="sound_only">날짜</b></th> <?php } ?>
</tr>
</thead>
<tbody>
게시글 목록을 출력 공간
</tbody>
</table>
</div>
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<th scope="col"><b class="sound_only">공백</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">카테고리</b></th> <?php } ?>
<th scope="col"><b class="sound_only">제목</b></th>
<th scope="col"><b class="sound_only">날짜</b></th>
</tr>
</table>
</div>
</thead>
그럼 이 소스 밑에다가 넣으면 될까요? 아니면 기본껀 지우고 거기다가 주신 소스를 넣어야하나요?
기존꺼 지우고 넣어더니 이렇게 깨지네요
<?php if ($is_checkbox) { ?>
<li><button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"><i class="fa fa-trash-o" aria-hidden="true"></i> 선택삭제</button></li>
<li><button type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"><i class="fa fa-files-o" aria-hidden="true"></i> 선택복사</button></li>
<li><button type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"><i class="fa fa-arrows" aria-hidden="true"></i> 선택이동</button></li>
<?php } ?>
<?php } ?>
<?php if ($admin_href) { ?>
<li><a href="<?php echo $admin_href ?>" class="btn_admin btn" title="관리자">
<i class="fa fa-cogs"></i><span class="sound_only">관리자</span></a></li>
<?php } ?>
</div>
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<th scope="col"><b class="sound_only">공백</b></th>
<th scope="col"><b class="sound_only">제목</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">카테고리</b></th> <?php } ?>
<th scope="col"><b class="sound_only">날짜</b></th>
</tr>
</thead>
<tbody class="line_top">
<?php
for ($i=0; $i<count($list); $i++) {
if ($i%2==0) $lt_class = "even";
else $lt_class = "";
?>
<tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?> <?php echo $lt_class ?>">
<?php if ($is_checkbox) { ?>
<td class="td_chk chk_box">
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>" class="selec_chk">
<label for="chk_wr_id_<?php echo $i ?>">
<span></span>
<b class="sound_only"><?php echo $list[$i]['subject'] ?></b>
</label>
</td>
<?php } ?>
<td class="td_sound_only"><b class="sound_only">공백</b></td>
<td class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px">
<?php
if ($list[$i]['is_notice']) // 공지사항
echo '<strong class="notice_icon">공지</strong>';
else if ($wr_id == $list[$i]['wr_id'])
echo "<span class=\"bo_current\">열람중</span>";
?>
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<th scope="col"><b class="sound_only">공백</b></th>
<th scope="col"><b class="sound_only">제목</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">카테고리</b></th> <?php } ?>
<th scope="col"><b class="sound_only">날짜</b></th>
</tr>
</thead>
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } ?>
<th scope="col"><b class="sound_only">제목</b></th>
<?php if (wp_is_mobile()) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } else { ?> <th scope="col"><b class="sound_only">날짜</b></th> <?php } ?>
</tr>
</thead>
<tbody>
게시글 목록을 출력 공간
</tbody>
</table>
</div>
기존꺼 밑에다가 넣으면 될까요?
<tbody>
<?php while ($row = mysqli_fetch_array($result)) { ?>
<tr>
<td><input type="checkbox" name="chk_wr_id[]" value="<?php echo $row['wr_id'] ?>"></td>
<?php if ($is_category) { ?>
<td class="td_category">
<?php echo $row['ca_name'] ?>
</td>
<?php } ?>
<td class="td_subject">
<a href="<?php echo $row['href'] ?>">
<?php echo $row['wr_subject'] ?>
</a>
</td>
<?php if (!wp_is_mobile()) { ?>
<td class="td_datetime">
<?php echo $row['wr_datetime'] ?>
</td>
<?php } ?>
</tr>
<?php } ?>
</tbody>
<li><a href="<?php echo $admin_href ?>" class="btn_admin btn" title="관리자">
<i class="fa fa-cogs"></i><span class="sound_only">관리자</span></a></li>
<?php } ?>
</div>
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr class="sound_only">
<th scope="col"><b class="sound_only">현재 페이지 게시물 전체선택</b></th>
<?php if ($is_category) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } ?>
<th scope="col"><b class="sound_only">제목</b></th>
<?php if (wp_is_mobile()) { ?> <th scope="col"><b class="sound_only">공백</b></th> <?php } else { ?> <th scope="col"><b class="sound_only">날짜</b></th> <?php } ?>
</tr>
</thead>
<tbody>
<?php while ($row = mysqli_fetch_array($result)) { ?>
<tr>
<td><input type="checkbox" name="chk_wr_id[]" value="<?php echo $row['wr_id'] ?>"></td>
<?php if ($is_category) { ?>
<td class="td_category">
<?php echo $row['ca_name'] ?>
</td>
<?php } ?>
<td class="td_subject">
<a href="<?php echo $row['href'] ?>">
<?php echo $row['wr_subject'] ?>
</a>
</td>
<?php if (!wp_is_mobile()) { ?>
<td class="td_datetime">
<?php echo $row['wr_datetime'] ?>
</td>
<?php } ?>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<tbody class="line_top">
<?php
for ($i=0; $i<count($list); $i++) {
if ($i%2==0) $lt_class = "even";
else $lt_class = "";
이렇게 넣었는데도 깨지네요
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인