묻고답하기

지금 사용중인 위젯 스킨이 doorweb 최신글 ,댓글 위젯 스킨 ver. 1.1 을 사용 중입니다.

아주 좋은 위젯이라 사용을 하는데...약간의 추가사항은 새글이나 댓글이 등록되면 글 앞이나 뒤에 NEW 아이콘을 넣고 싶습니다.

소스를 보아도, 워낙 프로그램에 지식이 없어서...고수분들의 도움이 필요합니다.

감사합니다.

tab.jpg   이렇게요...아래 소스 있습니다.

*만약 프로그램 원작자에게 저작원 영향이 있는 문의라면 삭제하겠습니다. 

----------------------------------------------------------------------------------------------

<load target="smart_popular.css" />

{@
 $tabc=count($widget_info->tab_view_arr);
 $optc=count($widget_info->option_view_arr);
 $li_width = $widget_info->widget_widths/$tabc;
 $img_width = $widget_info->thumbnail_width-2;
 $img_height = $widget_info->thumbnail_height-2;
}

<!--@if(!$global['popsid'])-->{@ $__Context->global['popsid'] = 1}<!--@endif-->{@ $__Context->global['popsid']++}

<div id="popular{$global['popsid']}" class="doorweb-popular newClear">
 <!--// TAB Start -->
 <div class="tabs_items newClear" >
  <ul>
   <block loop="$i=0; $i<$tabc; $i++">
    <!--@if($widget_info->tab_view_arr[$i]=='popular')-->
     <li><a id="pd_link_s{$global['popsid']}" class="tabs_active"|cond="$widget_info->tab_view_arr[0]=='popular'" href="#">{$lang->ip_popular_documents}</a></li>
    <!--@elseif($widget_info->tab_view_arr[$i]=='newestd')-->
     <li><a id="nd_link_s{$global['popsid']}" class="tabs_active"|cond="$widget_info->tab_view_arr[0]=='newestd'" href="#">{$lang->ip_newest_documents}</a></li>
    <!--@elseif($widget_info->tab_view_arr[$i]=='newestc')-->
     <li><a id="nc_link_s{$global['popsid']}" class="tabs_active"|cond="$widget_info->tab_view_arr[0]=='newestc'" href="#">{$lang->ip_newest_comments}</a></li>
                   
    <!--@end-->
   </block>
  </ul>
 </div>
 <!--// TAB End -->
 
 <div class="tabs_inner newClear" >
  <!--// Popular Documents Start -->
  <div id="popular_documents_s{$global['popsid']}" class="tabs_content<!--@if($widget_info->tab_view_arr[0]=='popular')--> tabs_active<!--@endif-->">
   <ul cond="$widget_info->popular_documents">
    <li loop="$widget_info->popular_documents=>$key,$val" class="newClear">
     <a href="{$val->getPermanentUrl()}">
      <block loop="$i=0; $i<$optc; $i++">
      <!--@if($widget_info->option_view_arr[$i]=='image')-->
       
      <!--@elseif($widget_info->option_view_arr[$i]=='title')-->
       <div class="text_title">{$val->getTitle($widget_info->subject_cut_size)} <span class="replyNum" title="Replies" cond="$val->getCommentCount() > 0">({$val->getCommentCount()})</span></div>
      <!--@elseif($widget_info->option_view_arr[$i]=='content')-->
       
      <!--@elseif($widget_info->option_view_arr[$i]=='regdate')-->
       
      <!--@endif-->
      </block>
     </a>
    </li>
   </ul>
  </div>
  <!--// Popular Documents End -->
  
  <!--// Newest Documents Start -->
  <div id="newest_documents_s{$global['popsid']}" class="tabs_content<!--@if($widget_info->tab_view_arr[0]=='newestd')--> tabs_active<!--@endif-->">
   <ul>
    <li loop="$widget_info->newest_documents=>$key,$val" class="newClear">
     <a href="{$val->getPermanentUrl()}">
      <block loop="$i=0; $i<$optc; $i++">
      <!--@if($widget_info->option_view_arr[$i]=='image')-->
       
      <!--@elseif($widget_info->option_view_arr[$i]=='title')-->
       <div class="text_title">{$val->getTitle($widget_info->subject_cut_size)} <span class="replyNum" title="Replies" cond="$val->getCommentCount() > 0"> ({$val->getCommentCount()})</span></div>
      <!--@elseif($widget_info->option_view_arr[$i]=='content')-->
       
      <!--@elseif($widget_info->option_view_arr[$i]=='regdate')-->
       
      <!--@endif-->
      </block>
     </a>
    </li>
   </ul>
  </div>
  <!--// Newest Documents End -->
  
  <!--// Newest Comments Start -->
   
  <div id="newest_comments_s{$global['popsid']}" class="tabs_content<!--@if($widget_info->tab_view_arr[0]=='newestc')--> tabs_active<!--@endif-->">
   <ul>
    <li loop="$widget_info->newest_comments=>$key,$val" class="newClear">
     <a href="{$val->getPermanentUrl()}">
    
       <span class="tabs_content2">{$val->getSummary($widget_info->comment_cut_size)}</span>
   
     </a>

    </li>
   </ul>
  </div>
  <!--// Newest Comments End -->
 </div>
</div>

<script>
jQuery(function($){
 var $popular = $("#popular{$global['popsid']}"),
  $tabs_items = $popular.find(".tabs_items"),
  $tabs_itema = $tabs_items.find("a"),
  $tabs_inner = $popular.find(".tabs_inner");

 var $pds = $("#popular_documents_s{$global['popsid']}"),
  $nds = $("#newest_documents_s{$global['popsid']}"),
  $ncs = $("#newest_comments_s{$global['popsid']}");

 function actTab($tid){
  $tabs_itema.removeClass("tabs_active");
  $tid.addClass("tabs_active");
 }

 function actItem($sid){
  $tabs_inner.find(".tabs_active").removeClass("tabs_active");
  $sid.addClass("tabs_active");
 }

 $tabs_itema.on("mouseover click",function(e){
  e.preventDefault();
  var $tid = $(this);
  actTab($tid);
 });

 $("#pd_link_s{$global['popsid']}").on("mouseover click",function(e){
  e.preventDefault();
  actItem($pds);
 });
 $("#nd_link_s{$global['popsid']}").on("mouseover click",function(e){
  e.preventDefault();
  actItem($nds);
 });
 $("#nc_link_s{$global['popsid']}").on("mouseover click",function(e){
  e.preventDefault();
  actItem($ncs);
 });
});
</script>

 

 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
보리 Contact us 설치문의 [1] 2017.10.16 by 비누남어
김태근 xe 독학은 어떤게 좋을까요 [2] 2017.10.16 by 김태근
gifty**** 관리자화면 사이트맵의위 SAMPLE삭제안됨 [1] 2017.10.16 by DoorWeb
대한국인 누리고 깔끔하게 삭제하는 방법?  
홍찬 모듈 업데이트 클래스 적용방법 부탁드립니다! [1] 2017.10.15 by sejin7940
cmcin 레이아웃이 새로 만든 게시판에만 적용됩니다. [1] 2017.10.15 by sejin7940
우랑탕탕이 관리자 로그인 주소 변경 가능 할까요...? [1] 2017.10.15 by sejin7940
푸른하늘b206c xedition레이아웃/ 메인수정이 안됩니다. file  
JinkPark Sweet Mobile 모바일 게시판 스킨 아이콘 깨짐 현상 [6] file 2017.10.14 by arsen
큐피 홈페이지 에러수정 후 기능이 이상해요  
이지한 누리고모듈 최근배송지 관련 [2] file 2017.10.14 by 서리diu
고란마비 XE 설치 오류  
thdwjdtjr BJ람보님의 출석부 업데이트 후 최고관리자도 출석체크가 ..  
제니 갤러리 썸네일 노출 문의 [1] file 2017.10.13 by DoorWeb
zanso**** 마켓플레이스 중고장터 분류관리에 관하여 [1] file 2017.10.13 by 서영하
서영하 마켓플레이스 대분류 중분류  
꼼맹 코어 업데이트 실패시 백업파일 업로드 하면 원래로 돌아가나요? [2] 2017.10.13 by 꼼맹
김태근 게시판에서 글마다 그 글의 태그 보이게하는법 [2] file 2017.10.13 by 김태근
flkdsjafafwq 코어 에서 본문 이미지 삽입 안되게 하는 방법좀 부탁드립니다. [1] 2017.10.12 by KennethYeo
퓨리파잉 게시글 통합 출력에 대한 모듈은 없을까요? [2] 2017.10.12 by sejin7940