최근글 소스를 좀 수정하고 싶은데..

최근글 소스를 좀 수정하고 싶은데..

QA

최근글 소스를 좀 수정하고 싶은데..

답변 4

본문

아래 소스를 최근글에 적용하면 제목만 나오는데..

 

b9402c00c1bffd82da320bbc91fbd85b_1490947128_3444.png
 

 

이것을 좀 자세하게 하고 싶어서요

 

제목 : ['subject']

본문 : ['wr_3']

설교자 : ['wr_4']

설교일자 : ['wr_5']


아래 소스를 어떻게 수정해야 할까요?

제가 디자이너다 보니 프로쪽이 약해서 이런 질문도 드리네요 ㅠ.ㅠ

 


				//echo $list[$i]['icon_reply']." ";
				echo "<a href=\"".$list[$i]['href']."\">";
				if ($list[$i]['is_notice'])
				echo "<strong>".$list[$i]['subject']."</strong>";
				else
				echo $list[$i]['subject'];
 
				if ($list[$i]['comment_cnt'])
				echo $list[$i]['comment_cnt'];
 
				echo "</a>";

 

 

이 질문에 댓글 쓰기 :

답변 4


echo "설명 : <a href=\"".$list[$i]['href']."\">";
				if ($list[$i]['is_notice'])
				echo "<strong>".$list[$i]['subject']."</strong>";
				else
				echo $list[$i]['subject'];
 
				if ($list[$i]['comment_cnt'])
				echo $list[$i]['comment_cnt']; 
				echo "</a>";

echo "본문 : ".$list[$i]['wr_3']."<br>"; 
 
echo "설교일 : ".$list[$i]['wr_4']."<br>";

echo "설교일자 : ".$list[$i]['wr_5']."<br>";
//조건문 적용일때 
//본문이  존재할시 출력
echo "설명 : <a href=\"".$list[$i]['href']."\">";
				if ($list[$i]['is_notice'])
				echo "<strong>".$list[$i]['subject']."</strong>";
				else
				echo $list[$i]['subject'];
 
				if ($list[$i]['comment_cnt'])
				echo $list[$i]['comment_cnt']; 
				echo "</a>";
if ($list[$i]['wr_3']) {
echo "본문 : ".$list[$i]['wr_3']."<br>"; 
}

//설교일  존재할시 출력
if ($list[$i]['wr_4']) {
echo "설교일 : ".$list[$i]['wr_4']."<br>";
}


//설교일자가 존재할시 출력
if ($list[$i]['wr_5']) {
echo "설교일자 : ".$list[$i]['wr_5']."<br>";
}

이렇게 하시면 됩니다.

프로 쪽으로 넘어오지 마세요. ^^;

링크는 어떤식으로 거실 생각인가요?

제목만... 아님 전체... ??? 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로