$module1 = new ImagesModule($pictures);
$module1->mode = PRI;
$module1->title = "My Pictures";
$module1->orientation = LEFT;
$module2 = new FacewallModule($relations);
$module2->mode = PRI;
$module2->title = "My Relations";
$module2->orientation = LEFT;
$module3 = new FacewallModule($users);
$module3->mode = PRI;
$module3->block_type = HOMEPAGE;
$module3->title = "My Relations";
$module3->orientation = LEFT;
$module4 = new PopularTagsModule($tags);
$module4->mode = PRI;
$module4->block_type = HOMEPAGE;
$module4->title = "Most Popular Tags";
$module4->orientation = LEFT;
$module5 = new RecentPostModule($tags);
$module5->mode = PRI;
$module5->block_type = HOMEPAGE;
$module5->title = "Recent Posts";
$module5->orientation = LEFT;
print $module1->render();
print $module2->render();
print $module3->render();
print $module4->render();
print $module5->render();
?>
</body>
</html>
$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);
$module6->mode = PRI;
$module6->block_type = HOMEPAGE;
$module6->title = "Recent Posts";
$module6->orientation = LEFT;
print '<div class="body">
        <div class="left-body home-page-background">';
//print '<div class="header-parent">';
print $header->fetch();
//print '<div>';
print '<div class="left-parent">';
print '<div id="firstlist">';
foreach ($setting_data['left'] as $left) {
    $module_name = "module{$left}";
    //print "<div class='drag' id='module_$left' >".$$module_name->render()."</div>";
    print "<div class='drag' id='module_{$left}' >{$module_name}</div>";