wangtengyu
2018-12-07 f459412e0dac4ed94106da043b4c6f8576bfe496
commit | author | age
3e083b 1 <?php
B 2
3 /**
4  *  标签云
5 */
6
7 define('IN_ECS', true);
8
9 require(dirname(__FILE__) . '/includes/init.php');
10     assign_template();
11     $position = assign_ur_here(0, $_LANG['tag_cloud']);
12     $smarty->assign('page_title', $position['title']);    // 页面标题
13     $smarty->assign('ur_here',    $position['ur_here']);  // 当前位置
14     $smarty->assign('categories', get_categories_tree()); // 分类树
15     $smarty->assign('helps',      get_shop_help());       // 网店帮助
16     $smarty->assign('top_goods',  get_top10());           // 销售排行
17     $smarty->assign('promotion_info', get_promotion_info());
18
19     /* 调查 */
20     $vote = get_vote();
21     if (!empty($vote))
22     {
23         $smarty->assign('vote_id', $vote['id']);
24         $smarty->assign('vote',    $vote['content']);
25     }
26
27     assign_dynamic('tag_cloud');
28
29     $tags = get_tags();
30
31     if (!empty($tags))
32     {
33         include_once(ROOT_PATH . 'includes/lib_clips.php');
34         color_tag($tags);
35     }
36
37     $smarty->assign('tags', $tags);
38
39     $smarty->display('tag_cloud.dwt');
40 ?>