<{if !isset($item_num) }> <{assign var="item_num" value="10"}> <{/if}> <{if !isset($item_len) }> <{assign var="item_len" value="20"}> <{/if}> <{if !isset($desc_len) }> <{assign var="desc_len" value="30"}> <{/if}> <{if !isset($title_len) }> <{assign var="title_len" value="14"}> <{/if}> <{if !isset($parent_id) }> <{assign var="parent_id" value="0"}> <{/if}> <{if !isset($order_mark) }> <{assign var="order_mark" value="1000"}> <{/if}> <{if !isset($min_id) }> <{assign var="min_id" value="10"}> <{/if}> <{if !isset($max_num) }> <{assign var="max_num" value="100"}> <{/if}> <{if !isset($num_per_line)}> <{assign var="num_per_line" value="2"}> <{/if}> <{if !isset($img_item_num)}> <{assign var="img_item_num" value="0"}> <{/if}> <{if !isset($img_article_type)}> <{assign var="img_article_type" value="commend_article"}> <{/if}> <{if !isset($auto_width) || $auto_width != 'no'}> <{if $num_per_line == 2 }>
<{elseif $num_per_line == 3 }>
<{elseif $num_per_line == 4 }>
<{elseif $num_per_line == 5 }>
<{elseif $num_per_line == 6 }>
<{/if}> <{/if}> <{if !isset($more_text) }> <{assign var="more_text" value="更多>>"}> <{/if}> <{if !isset($more_type) }> <{assign var="more_type" value="1"}> <{/if}> <{strip}>

<{assign var="type_num" value="1"}> <{foreach name="all_type" item="single_type" from=$web.type}> <{if $single_type.parent_id == $parent_id && $single_type.order_mark < $order_mark && ( $single_type.property == 'list' || $single_type.property == 'cover' ) && $type_num<=$max_num && $single_type.id > $min_id }> <{if !isset($custom_str) || $custom_str == '' || ( isset($custom_str) && $single_type.custom_str|strstr:$custom_str) }> <{if $type_num%$num_per_line == 1}>
  <{/if}>
  <{$single_type.title}>
  <{if $more_type == 1 }>
  <{$more_text}>
  <{/if}>
  <{assign var="image_article_id" value="0"}> <{assign var="tmp_img_num" value="`$img_item_num`"}> <{assign var="tmp_item_num" value="`$item_num`"}> <{if $tmp_img_num > 0 }> <{foreach name=article_data item=item_info from=$data_ary.$img_article_type[$single_type.id]}> <{if $item_info.icon_url != '' && $tmp_img_num > 0 }> <{if $image_article_id == 0 }>
  <{/if}>
  -   <{$item_info.title|cn_truncate:$title_len:"..":true}>
      <{$item_info.desc|cn_truncate:$desc_len:"...":true}>
  <{assign var="image_article_id" value="`$item_info.id`"}> <{assign var="tmp_item_num" value="`$tmp_item_num-4`"}> <{assign var="tmp_img_num" value="`$tmp_img_num-1`"}> <{/if}> <{/foreach}> <{if $image_article_id != 0 }>
  <{/if}> <{/if}> <{* 当要显示的图片少于2个时候，显示更多的标题文字链接 *}> <{if $tmp_img_num < 2 }>
  <{foreach name=new_article_data item=item_info from=$data_ary.new_article[$single_type.id]}> <{if $smarty.foreach.new_article_data.iteration <= $tmp_item_num }> <{if $image_article_id == $item_info.id }> <{assign var="tmp_item_num" value="`$tmp_item_num+1`"}> <{else}>
  1. • <{$item_info.title|cn_truncate:$item_len:"..":true}> <{if $item_info.has_image == 1}><{/if}>
  <{/if}> <{/if}> <{/foreach}>
  <{if $more_type == 2 }>
  <{$more_text}>
  <{/if}> <{/if}>
  <{if $type_num%$num_per_line == 0}>
<{else}>
<{/if}> <{assign var="type_num" value="`$type_num+1`"}> <{/if}> <{/if}> <{/foreach}> <{if $type_num%$num_per_line != 1}> <{/if}>

<{/strip}> <{if $smarty.foreach.all_type.iteration < 3}>
点击这里为网站添加新栏目(频道)
您添加的栏目和文章，将会显示在这里
<{/if}>