Esempio n. 1
0
$seodata = array('firstcat' => $cats[0], 'secondcat' => $cats[1], 'curcat' => $cat['catname'], 'page' => intval($_GET['page']));
list($navtitle, $metadescription, $metakeywords) = get_seosetting('articlelist', $seodata, $catseoset);
if (!$navtitle) {
    $navtitle = helper_seo::get_title_page($cat['catname'], $_G['page']);
    $nobbname = false;
} else {
    $nobbname = true;
}
if (!$metakeywords) {
    $metakeywords = $cat['catname'];
}
if (!$metadescription) {
    $metadescription = $cat['catname'];
}
if (isset($_G['makehtml'])) {
    helper_makehtml::portal_list($cat);
}
$file = 'portal/list:' . $catid;
$tpldirectory = '';
$primaltplname = $cat['primaltplname'];
if (strpos($primaltplname, ':') !== false) {
    list($tpldirectory, $primaltplname) = explode(':', $primaltplname);
}
include template('diy:' . $file, NULL, $tpldirectory, NULL, $primaltplname);
function category_get_wheresql($cat)
{
    $wheresql = '';
    if (is_array($cat)) {
        $catid = $cat['catid'];
        if (!empty($cat['subs'])) {
            include_once libfile('function/portalcp');