/**
  *  Function : render()
  *  Purpose  : produce html code from tpl file
  *  @return   type string 
  *            returns rendered html code 
  */
 function render()
 {
     if (!empty($this->gid)) {
         //if it is group's facewall then append gid in url
         $this->view_all_url = "view_all_members.php?gid=" . $this->gid;
     }
     $content = parent::render();
     return $content;
 }
$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>