[Comoblog-commit] modules/mod_blogrolling index.php,NONE,1.1 mod_blogrolling.php,NONE,1.1
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:29
|
Update of /cvsroot/comoblog/modules/mod_blogrolling In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling Added Files: index.php mod_blogrolling.php Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: index.php --- --- NEW FILE: mod_blogrolling.php --- <?php if (in_array('mod_blogrolling', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; require_once (CFG_BASE_PATH.'/modules/mod_blogrolling/include/mod_blogrolling.inc.php'); $blogrolling_items = mod_blogrolling_list(); if ($blogrolling_items) { $mod_blogrolling_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_blogrolling/templates/'.CFG_MOD_BLOGROLLING_STYLE.'/mod_blogrolling.tpl.htm'); for ($c = 0; $c < count($blogrolling_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); $mod_blogrolling_tpl->assign('ITEM', $blogrolling_items[$c]); $mod_blogrolling_tpl->parse('main.item'); } $tpl->assign('CFG_MOD_BLOGROLLING_TOPLINE', CFG_MOD_BLOGROLLING_TOPLINE); $mod_blogrolling_tpl->parse('main'); $mod_contents = $mod_blogrolling_tpl->text("main"); } else $mod_contents = ''; ?> |