20, 'seotitle' => $block['name'], 'keywords' => '', 'description' => ''); $blocktype = $block['blockclass']; if(!in_array($blocktype, array('forum_thread', 'portal_article', 'group_thread'), true)) { showmessage('block_nomore', dreferer()); } $perpage = max(1, intval($blockmoreurl['perpage'])); $curpage = max(1, intval($_GET['page'])); $start = ($curpage-1) * $perpage; $count = C::t('common_block_item_data')->count_by_bid($bid); $list = $count ? C::t('common_block_item_data')->fetch_all_by_bid($bid, 1, $start, $perpage) : array(); $multipage = $count ? multi($count, $perpage, $curpage, 'portal.php?mod=block&bid='.$bid) : ''; $navtitle = $blockmoreurl['seotitle']; $metakeywords = $blockmoreurl['seokeywords']; $metadescription = $blockmoreurl['seodescription']; $file = 'portal/block_more_'.$blocktype; include template('diy:'.$file); ?>