示例#1
0
// GET ARTICLES
$article_array = $article->article_list($page_vars[0], $articles_per_page, $sort, $where, 1);

foreach ($article_array as $k => $article_entry) {
  $article_array[$k]['article']->article_info['article_body'] = str_replace("\r\n", "",html_entity_decode($article_entry['article']->article_info['article_body']));
}

//rc_toolkit::debug($article_array, "article_array");


// POPULAR TAGS
$popular_max_tags = 50;
$popular_order_tag_by = 'name'; // use 'count' or 'name'
$popular_distribution_classes=array(1,3,7,10,16,25,40,50);
$popular_tags = $rc_tag->get_popular_tags($popular_max_tags, $popular_order_tag_by, null, $popular_distribution_classes);
$smarty->assign('popular_tags', $popular_tags);
//rc_toolkit::debug($popular_tags, "popular_tags");
// -----------------

$smarty->assign('tag', $tag);
$smarty->assign('keyword', $keyword);
$smarty->assign('s', $s);
$smarty->assign('f', $f);

// ASSIGN SMARTY VARIABLES AND DISPLAY BROWSE ARTICLES PAGE
$smarty->assign('articles_totalnocat', $articles_totalnocat);
$smarty->assign('total_articles', $total_articles);
$smarty->assign('categories', $categories);
$smarty->assign('articlecat_id', $articlecat_id);
$smarty->assign('articlecat_title', $category_info[articlecat_title]);