<?php
defined('PHP168_PATH') or die();

/**
* 查看内容
* @language [cms/item/global.php]
**/

//初始化标签
$LABEL_POSTFIX = array(/*$MODEL, 'category_'. $data['cid']*/);

$category = &$this_system->load_module('category');

$category->get_cache();
$cid = &$data['cid'];
$CAT = $category->fetch_one($cid);
$cats = $category->get_parents($cid);

$data['#category'] = &$CAT;
$photojson=jsonencode($data['photourl']);
$jsoncount=sizeof($data['photourl']);
//如果有追加内容
$pages = $data['pages'] > 1 ? list_page($data['pages'], $page, 1, p8_url($this_module, $data, 'view', false)) : '';



//分类自定义的内容页模板
include template($this_module, empty($data['template']) ? $CAT['view_template'] : $data['template']);
//保存页面缓存
page_cache();
