} } // accessing page settings data $setting_data = ModuleSetting::load_setting(2, 1); // members $users = User::allUsers_with_paging(1, 10); // header $header =& new Template(CURRENT_THEME_FSPATH . "/header_all.tpl"); $header->set('current_theme_path', $current_theme_path); $module2 = new LinkModule($links['myself']); $module2->mode = PRI; $module2->title = "Published Links"; $module2->orientation = LEFT; $module1 = new ShowContentModule($contents); $module1->title = "Community Content"; $module3 = new LinkModule($links['myself']); $module3->mode = PRI; $module3->block_type = 'Homepage'; $module3->title = "My Links"; $module3->orientation = LEFT; $module4 = new FacewallModule($users); $module4->mode = PRI; $module4->block_type = HOMEPAGE; $module4->title = "Members"; $module4->orientation = LEFT; $module5 = new PopularTagsModule($tags); $module5->mode = PRI; $module5->block_type = HOMEPAGE; $module5->title = "Most Popular Tags"; $module5->orientation = LEFT; $module6 = new RecentPostModule($tags);
<?php define('MODULE_NAME', 'Link'); define('ACTION_NAME', 'index'); require dirname(__FILE__) . '/core/fanwe.php'; $fanwe =& FanweService::instance(); $fanwe->initialize(); require fimport('module/link'); LinkModule::index();