>  기사  >  백엔드 개발  >  PHPCMS V9 템플릿 디자인에서 일반적으로 사용되는 변수

PHPCMS V9 템플릿 디자인에서 일반적으로 사용되는 변수

WBOY
WBOY원래의
2016-08-08 09:21:431020검색

PHPCMS V9 템플릿 디자인 일반적으로 사용되는 변수

(2011-11-03 10:04:57)

재인쇄

标签: 

杂谈

分类: phpcmsv9
태그: 잡담
카테고리: phpcmsv9

업데이트문자열 자르기{thumb($v[thumb],70,60)}잘라내기채널 이름{$CATEGORYS[$cid][url ]}채널 URL{template 템플릿 호출 {pc:block pos="index_block_1" }이의제기(전화 차단)액션: 목록 순위, 카테고리 하위 열, 관계 관련 기사, 조회수 순위 목록액션 실시: 추천 포지션1posid2 홈페이지 헤드라인 추천thumborder:listorder 순핫뉴스{pc:contentorder="listorder DESC" Thumb="1" num="5"}
가변 전역 정의
{CHARSET} 문자세트
$SEO['title'] 페이지제목
$SEO['site_title'] 웹사이트 제목
$SEO['키워드'] 키워드
{$SEO['설명'] 설명
{CSS_PATH} css 경로
{JS_PATH} js 경로
{IMG_PATH} img 경로
{APP_PATH} 앱 경로
{get_siteid()} 사이트ID
{$siteid} 지점 URL
{사이트url($ 사이트ID )} 사이트 URL
{$ catid }
열ID
{$페이지}
페이징


{date('Y-m-d H:i:s ',$r[inputtime])}
시간
{str_cut($v[설명],116 ,'..')}

썸네일사진
{$CATEGORYS[$cid][catname]}


"content","footer"}


목록, 순위추천


홈페이지 포커스 이미지 추천


추천 다운로드 5개

8
사진 채널 홈페이지 중점 사진

9 추천 상위 사이트

10열 홈페이지 추천

홈페이지 사진 추천 12개

13단 페이지 중심 그림

thumb:0 전체 기사, 1은 썸네일 포함

DESC 정렬 내림차순, listorder ASC 정렬 오름차순, id DESC 추가 시간 내림차순, updatetime DESC 업데이트 시간 내림차순


{pc:content
action="position"
posid="2" order="listorder DESC" num="4"}


action="position " posid="1"

 
FocusPic
{ pc:content
action="position"  posid="12" Thumb="1" order="id DESC"  num="10"}

 
图文新闻
{pc:content  action="lists" catid="$r[catid]" num="1"  thumb="1" order="id DESC" return="info"}
 
{pc:content  action="lists" catid= "$r[catid]" num="5"  order="id DESC" return="info"}
 

 
{pc:announce
action="lists"  siteid="$siteid" num="2"}

 
공공
{pc:special
action="lists"  siteid="$siteid" Elite="1" listorder="3"  num="2"}

 
专题
{pc:content action="hits"  catid="35" num="10" order="views DESC"}
 
digg点击
{pc:comment action="bang"  num="10" 캐시="3600"}
 
评论
{pc:content action="hits"  catid="35" num="10" order="views DESC"}
 

 
{pc:link
action="type_list"  siteid="$siteid" linktype="1" order="listorder  DESC" num="8" return=" pic_link"}
友情链接
{pc:content action="lists"  catid="$catid" num="25" order="id DESC"  page="$page"}
 
列表
{pc:content action="hits"   catid="$catid" num="10" order="views DESC"  cache="3600"}
 
总排行
{pc:content action="hits"  catid="$catid" num="8" order="monthviews DESC"  cache="3600"}
 
월행
{pc:content
action="position"  posid="5" order="listorder DESC" num="4"}

 
推荐下载

 

 

{catpos($catid)}
 
栏目정位
{loop subcat(0,0,0,$siteid) $r}
 

 
{title_style($r [스타일])}
 
标题样式
{$inputtime}

版权声ming:本文为博하라创文章,未经博主允许不得转载。

以上就介绍了PHPCMS V9模板设计常用变weight, 包括了方了讹, 希望对PHP教程有兴趣的朋友有所帮助.

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.