줄바꿈 문의드립니다.
본문
안녕하세요 질문하나하겠습니다!
후기에는 엔터 써서 후기글을 썼는데
막상 출력된것을 보면 한줄로 쫙 나오네요.
검색해서 따라해봤는데도 잘 안되어 질문드립니다.
itemuse.skin.php에서 어떤부분을 고쳐야 한줄말고 엔터친 영역이 잘 반영될까요?ㅜ
<div class="use-media<?php echo (G5_IS_MOBILE) ? ' use-mobile' : '';?>">
<?php for ($i=0; $i < $list_cnt; $i++) { ?>
<div class="div-title-wrap">
<div class="div-title">
<strong>
<!--<a href="#" onclick="more_is('more_is_<?php echo $i; ?>'); return false;">
<?php echo $list[$i]['is_num']; ?>.<?php echo $list[$i]['is_subject']; ?>
</a>-->
</strong>
</div>
<div class="div-sep-wrap">
<div class="div-sep sep-thin"></div>
</div>
</div>
<div class="media" style="margin:0;">
<!--<a href="#" onclick="more_is('more_is_<?php echo $i; ?>'); return false;">-->
<div class="media-body">
<div class="media-info text-muted" style="width:100%; float:left;">
<!--<?php echo apms_get_star($list[$i]['is_score'],'red font-14'); //별점 ?>-->
<div style="float:left;">
<?php if($list[$i]['is_score']==5) { ?>
<img src="/skin/apms/use/basic/img/smile04.png">
<p style="color:#F54639; font-size:12px; padding-left: 4px;">만족</p>
<?php } ?>
<?php if($list[$i]['is_score']==3) { ?>
<img src="/skin/apms/use/basic/img/smile05.png">
<p style="color:#999; font-size:12px; padding-left: 4px;">보통</p>
<?php } ?>
<?php if($list[$i]['is_score']==1) { ?>
<img src="/skin/apms/use/basic/img/smile06.png">
<p style="color:#444; font-size:12px; padding-left:0px;">불만족</p>
<?php } ?>
</div>
<div style="width:85%; float:left; margin-top:3px;">
<div class="media-desc" style="width:100%; float:left; margin-left: 20px; margin-bottom: 3px;">
<!--<a href="#" onclick="more_is('more_is_<?php echo $i; ?>'); return false;">-->
<span class="text-muted" style="color:#000;"><?php echo apms_cut_text($list[$i]['is_content'], $wset['ucont']); ?></span>
<!--더보기삭제안된것
<span class="text-muted" style="color:#000;"><?php echo apms_cut_text($list[$i]['is_content'], $wset['ucont'], '… <span class="font-11 text-muted">더보기</span>'); ?></span>-->
<!--</a>-->
</div>
<span class="sp"></span>
<!--<i class="fa fa-user"></i>-->
<p style="font-size:12px; float: left; padding-left: 20px;">
<?php echo substr($list[$i]['is_name'],0,-3)."*" ?>
</p>
<!--<?php echo $list[$i]['is_name']; ?>-->
<!--날짜제거11/8-->
<!--날짜다시나오게 19/8/22-->
<p style="margin-top: -1.5px; padding-left:10px; float:left;
font-family:sans-sefif; font-size:14px;
">
<?php if($list[$i]['is_subject']) { ?>
<span class="date_subject" style="font-family:sans-sefif; font-size:14px; color:#656565; font-weight:400;"> <?php echo $list[$i]['is_subject']; ?></span>
<?php } else { ?>
<time datetime="<?php echo date('Y-m-d', $list[$i]['is_time']) ?>">
<?php echo apms_date($list[$i]['is_time'], 'orangered', 'before');?>
</time>
<?php } ?>
<!--원본<time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', $list[$i]['is_time']) ?>">
<?php echo apms_date($list[$i]['is_time'], 'orangered', 'before');?>
</time>-->
</p>
<!--<i class="fa fa-clock-o"></i>-->
<!--수정/삭제
<a href="#" onclick="apms_form('itemuse_form', '<?php echo $list[$i]['is_edit_href'];?>'); return false; ">
<span class="text-muted"><i class="fa fa-plus"></i> 수정</span>
</a>
<a href="#" onclick="apms_delete('itemuse', '<?php echo $list[$i]['is_del_href'];?>', '<?php echo $list[$i]['is_del_return'];?>'); return false; ">
<span class="text-muted"><i class="fa fa-times"></i> 삭제</span>
</a>
-->
</div>
</div>
</div>
<!--</a>-->
<div class="clearfix media-content" id="more_is_<?php echo $i; ?>" style="display:none;">
<!--<?php echo get_view_thumbnail($list[$i]['is_content'], $default['pt_img_width']); // 후기 내용 ?>-->
<?php if ($list[$i]['is_btn']) { ?>
<div class="print-hide media-btn text-right">
<!--<a href="#" onclick="apms_form('itemuse_form', '<?php echo $list[$i]['is_edit_href'];?>'); return false; ">
<span class="text-muted"><i class="fa fa-plus"></i> 수정</span>
</a>
<a href="#" onclick="apms_delete('itemuse', '<?php echo $list[$i]['is_del_href'];?>', '<?php echo $list[$i]['is_del_return'];?>'); return false; ">
<span class="text-muted"><i class="fa fa-times"></i> 삭제</span>
</a>-->
</div>
<?php } ?>
<?php if ($list[$i]['is_reply']) {
//답글제목 : $list[$i]['is_reply_subject']
//답글작성 : $list[$i]['is_reply_name']
?>
<div class="well well-sm">
<?php echo get_view_thumbnail($list[$i]['is_reply_content'], $default['pt_img_width']); ?>
</div>
<?php } ?>
</div>
<?php if ($list[$i]['is_reply']) { ?>
<div class="well well-sm" style="padding-left: 50px; padding-bottom: 0px; margin-bottom: 5px;">
<img src="/skin/apms/item/10/img/re.png" style="float:left; padding-right:5px;">
<?php echo get_view_thumbnail($list[$i]['is_reply_content'], $default['pt_img_width']); ?>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
답변 1
<span class="text-muted" style="color:#000;"><?php echo nl2br(apms_cut_text($list[$i]['is_content'], $wset['ucont'])); ?></span>
답변을 작성하시기 전에 로그인 해주세요.