• 티스토리 홈
  • 프로필사진
    TheStorybook
  • 방명록
  • 공지사항
  • 태그
  • 블로그 관리
  • 글 작성
TheStorybook
  • 프로필사진
    TheStorybook
    • 분류 전체보기 (223)
      • 시놀로지(Nas) (11)
      • XE(Rhymix) (131)
        • 레이아웃, 스킨 관련 (15)
        • 변수 응용 (109)
        • 문제 해결 (3)
        • 기타 메뉴얼 (1)
        • 기타 자료 (0)
      • 그누보드 (7)
      • 작업 소스들 (53)
      • 기타 (6)
      • 추천 사이트 (7)
  • 방문자 수
    • 전체:
    • 오늘:
    • 어제:
  • 최근 댓글
      등록된 댓글이 없습니다.
    • 최근 공지
      • 개인 자료 보관 blog
      등록된 공지가 없습니다.
    # Home
    # 공지사항
    #
    # 태그
    # 검색결과
    # 방명록
    • 게시판 카테고리 활성화 표시 적용
      2025년 02월 10일
      • TheStorybook
      • 작성자
      • 2025.02.10.:45

      맨위 코드는

      마지막 업데이트순 last_update

      조회순 readed_count

      추천순 voted_count

      비추천순 blamed_count

      <div class="oboard-category-box">
      		{@
      			if($sort_index == 'regdate'): $_sort_text = $lang->date;
      			elseif($sort_index == 'update_order'): $_sort_text = $lang->last_update;
      			elseif($sort_index == 'readed_count'): $_sort_text = $lang->readed_count;
      			elseif($sort_index == 'voted_count'): $_sort_text = $lang->voted_count;
      			elseif($sort_index == 'blamed_count'): $_sort_text = $lang->blamed_count;
      			else:
      				foreach($list_config as $v):
      					if($v->eid == $sort_index) $_sort_text = $v->name;
      				endforeach;
      			endif;
      		}
      		<ul class="oboard-category">
      			<a class="oboard-category-menu-act" href="{getUrl('sort_index','','order_type','')}">
      				<li>
      					<div class="oboard-category-menu-box">
      						<div class="oboard-category-name1<!--@if($sort_index)--> oboard-category-name2<!--@end-->">최신순</div>
      						<div class="oboard-category-active-box<!--@if($sort_index)--> oboard-category-default-box<!--@end-->"></div>
      					</div>
      				</li>
      			</a>
      
      			<a class="oboard-category-menu-act" href="{getUrl('sort_index','readed_count','order_type',$order_type)}">
      				<li>
      					<div class="oboard-category-menu-box">
      						<div class="oboard-category-name2<!--@if($sort_index)--> oboard-category-name3<!--@end-->">인기순</div>
      						<div class="<!--@if($sort_index)-->oboard-category-active-box<!--@end-->"></div>
      					</div>
      				</li>
      			</a>
      			
      			<!--@foreach($list_config as $key => $val)-->
      			<li cond="$val->idx!=-1"><a href="{getUrl('sort_index', $val->eid, 'order_type', $order_type)}">{$val->name}</a></li>
      			<!--@endforeach-->
      		</ul>
      	</div>

       

       

      css

      .oboard-category {
        display: flex;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        float: left;
        align-items: center;
        border-bottom: 1px solid #e5e5e5;
      }
      .oboard-category-box {
        position: relative;
        display: block;
        width: 100%;
      }
      .oboard-category-menu-box {
        display: flex;
        width: max-content;
        justify-content: space-between;
        flex-direction: column;
        flex-wrap: nowrap;
      }
      .oboard-category-menu-act {
        display: flex;
        justify-content: space-evenly;
        width: 50%;
        font-size: 14px;
      
        a {
          color: #333 !important;   
        }
      }
      .oboard-category-menu-act:hover {
        background-color: rgba(217, 217, 217, 0.6);
        cursor: pointer;
        text-decoration: none;
      }
      .oboard-category-menu-act-active {
        display: flex;
        justify-content: space-evenly;
        width: 50%;
        font-size: 14px;
      
        a {
          color: #242424;
        }
      }
      .oboard-category-menu-act-active:hover {
        background-color: rgba(217, 217, 217, 0.6);
        cursor: pointer;
        text-decoration: none;
      }
      .oboard-category-name1 {  
        height: 31px;
        padding: 15px 10px 0 10px;
        font-weight: 800;
      }
      .oboard-category-name2 {  
        height: 31px;
        padding: 15px 10px 0 10px;
        font-weight: 400;
      }
      .oboard-category-name3 {  
        height: 31px;
        padding: 15px 10px 0 10px;
        font-weight: 800;
      }
      .oborder-icon-line {
        width: 1px;
        color: #e0e0e0;
      }
      .oboard-category-default-box {
        background-color: transparent !important;
        height: 4px;
        border-radius: 15px;
      }
      .oboard-category-active-box {
        background: #171717;
        height: 4px;
        border-radius: 15px;
      }
      저작자표시 (새창열림)

      'XE(Rhymix) > 변수 응용' 카테고리의 다른 글

      게시판 본문에 추천인 표기 방법  (0) 2025.02.17
      스크랩 기능  (0) 2025.02.10
      제목에 태그 표출하기 or 제목에 태그 출력하고 링크 걸기  (0) 2025.02.07
      손쉽게 레이아웃 설정에서 최근게시물을 출력하는 방법(레이아웃 제작팁)  (0) 2025.02.03
      라이믹스 쿼리문의 세계 - 서브쿼리 작성 예제  (0) 2025.02.03
      다음글
      다음 글이 없습니다.
      이전글
      이전 글이 없습니다.
      댓글
    조회된 결과가 없습니다.
    스킨 업데이트 안내
    현재 이용하고 계신 스킨의 버전보다 더 높은 최신 버전이 감지 되었습니다. 최신버전 스킨 파일을 다운로드 받을 수 있는 페이지로 이동하시겠습니까?
    ("아니오" 를 선택할 시 30일 동안 최신 버전이 감지되어도 모달 창이 표시되지 않습니다.)
    목차
    표시할 목차가 없습니다.
      • 안녕하세요
      • 감사해요
      • 잘있어요

      티스토리툴바