feature(); $community_object->get_communities(); // creating list of ethnic communities for the bottom left corner if ($community_object->result) { $tmp = count($community_object->result); $halfway = intval($tmp/2); $community_object->content.= "
"; foreach ($community_object->result as $tmp) { foreach ($tmp as $key=>$value) { $DB[$key] = stripslashes($value); } // foreach if ($current != $DB['ethnic']) { $community_object->content.= ""; $community_object->content.= $GLOBALS['constant']['ethnics'][$DB['ethnic']]; $community_object->content.= "
\n"; $current = $DB['ethnic']; } $community_object->content.= "
  • "; $community_object->content.= $DB['name']; $community_object->content.= "
    \n"; if ($i++ == $halfway) { $community_object->content.= "
  •    \n"; } } // foreach $community_object->content.= "
    "; } // if else { $community_object->content = "
  • No community available
    "; } // else // GET BROADCAST include ("class/broadcast.php"); $broadcast = new broadcast; $broadcast->home(); // iframe setting for broadcasting if (eregi("Gecko",$_SERVER['HTTP_USER_AGENT'])) { $window['width'] = 180; $window['height'] = 340; } else { $window['width'] = 190; $window['height'] = 350; } // Declaring section variables to let the user know where he/she is $level[1]['name'] = "Welcome to Mother Tongue: A woman's history of ethnic Canada"; $level[1]['link'] = "home.php"; #calling layout require 'layout.php'; ?>