${define "sitebar"}

推荐文章

    ${$newsParams := .newsParams} ${$newsParams := SetNewsParams $newsParams "Recommended" "1"} ${$listRec:=GetNewsList 0 4 (GetNewsParams $newsParams)} ${range $index,$article := $listRec}
  • ${if eq $article.IsJump 1}

    ${subStr $article.NewsTitle 20}

    ${else}

    ${subStr $article.NewsTitle 20}

    ${end}
    ${if ne $article.Thumbnail ""}
    ${if eq $article.IsJump 1} ${else} ${end}
    ${end}
  • ${end}

点击最多的文章

    ${$newsParams := .newsParams} ${$newsParams := SetNewsParams $newsParams "OrderBy" "news.news_hits desc"} ${$listHits:=GetNewsList 0 4 (GetNewsParams $newsParams)} ${range $index,$article := $listHits}
  • ${if eq $article.IsJump 1}

    ${subStr $article.NewsTitle 20}

    ${else}

    ${subStr $article.NewsTitle 20}

    ${end}
    ${if ne $article.Thumbnail ""}
    ${if eq $article.IsJump 1} ${else} ${end}
    ${end}
  • ${end}
${end}