최신글 가로로 좀 나오게 해주세요

최신글 가로로 좀 나오게 해주세요

QA

최신글 가로로 좀 나오게 해주세요

본문

 

독학 중인 초보입니다

이 스킨을 사용하면 최신글이 세로로 나오게 되는데요

이 최신글을 가로로 나오도록 하려면 어떻게 해야 될까요???ㅠㅠ

 

<?php

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style_img.css">', 0);

$imgwidth = 384; //표시할 이미지의 가로사이즈
$imgheight = 240; //표시할 이미지의 세로사이즈
?>

<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
<div class="tbox1">
  <div class="box-style box-style01" style="float: left; width: 384px; height: 405px;">
    <div class="lt_img">
<!--최신글 타이틀    <strong class="lt_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong> -->
      <ul>
      <?php for ($i=0; $i<count($list); $i++) {  ?>
        <li>
            <a href="<?php echo $list[$i]['href'] ?>" class="image image-full" >  <!-- ##최신글의 링크를 불러오는 건가 보네 -->
              <?php                //##이부분이 이미지를 가져와서 선언하는 부분인가봄
              $thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $imgwidth, $imgheight);    //##thumb가 이미지를 나타내는 변수인가보다
                if($thumb['src']) {
              $img_content = '<img class="img_left" src="'.$thumb['src'].'" alt="'.$list[$i]['subject'].'" width="'.$imgwidth.'" height="'.$imgheight.'">';
              } else {
              $img_content = 'NO IMAGE';
              }                
              echo $img_content;               
              ?>
            </a>
          
            <?php
            
            //echo $list[$i]['icon_reply']." ";
            echo "<h2>";
            if ($list[$i]['is_notice'])
                echo "<strong>".$list[$i]['subject']."</strong>";
            else
                echo $list[$i]['subject'];
           

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            // if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
            // if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
            // if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
            // if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
            // if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
            
             echo "</h2>";
             
             ?>
             <p><?php echo get_text(cut_str(strip_tags($list[$i][wr_content]), 130, '...' )) ?></p>
             <a href="<?php echo $list[$i]['href'] ?>" class="button-style">Learn More</a>
        </li>

    <?php }  ?>
    <?php if (count($list) == 0) { //게시물이 없을 때  ?>
    <li>게시물이 없습니다.</li>
    <?php }  ?>
      </ul>
    </div>
  </div>
</div>
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 60,959
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT