function flexprofile_pagesetup()
{
    global $CONFIG;
    if (get_context() == 'profile') {
        $form = flexprofile_get_profile_form();
        if (!$form->profile_format || $form->profile_format == 'default') {
            extend_view("profile/menu/actions", "flexprofile/menu/actions");
        }
    }
}
<tr>
<td>

<?php 
// wrap the icon and links in a div
echo "<div id=\"profile_info_column_left\">";
echo "<div id=\"profile_icon_wrapper\">";
// get the user's main profile picture
echo elgg_view("profile/icon", array('entity' => $vars['entity'], 'size' => $iconsize, 'override' => true));
echo "</div>";
echo "<div class=\"clearfloat\"></div>";
// display relevant links
echo elgg_view("profile/profilelinks", array("entity" => $vars['entity']));
// close profile_info_column_left
if ($vars['full'] == true) {
    $form = flexprofile_get_profile_form($vars['entity']);
    if ($form) {
        if ($form->profile_format !== 'tabbed') {
            $body = '';
            $data = form_get_data_for_profile_summary_display($form, $vars['entity']);
            // do left column
            if ($data['left']) {
                foreach ($data['left'] as $item) {
                    $value = $item->value;
                    if (!empty($value)) {
                        //This function controls the alternating class
                        $even_odd = 'odd' != $even_odd ? 'odd' : 'even';
                        $body .= "<p class=\"{$even_odd}\"><b>";
                        $body .= $item->title . ':</b> ';
                        $body .= $item->value;
                    }
<?php

/**
 * Extended profile view
 *
 * @package Flexprofile
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Kevin Jardine <*****@*****.**>
 * @copyright Radagast Solutions 2008
 * @link http://radagast.biz/
 */
// Load flexprofile model
require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/models/model.php";
$user = $vars['entity'];
$form = flexprofile_get_profile_form($user);
if (!$vars['embedded']) {
    echo '<div class="contentWrapper">';
}
if ($form) {
    $tab_data = form_get_data_for_profile_tabbed_display($form, $user);
    echo elgg_view('form/forms/display_form_content', array('tab_data' => $tab_data, 'description' => '', 'preview' => 0, 'form' => $form, 'form_data_id' => 0, 'embedded' => $vars['embedded']));
} else {
    echo elgg_echo('form:error_no_profile_form');
}
if (!$vars['embedded']) {
    echo '</div>';
}
 * @author Kevin Jardine <*****@*****.**>
 * @copyright Radagast Solutions 2008
 * @link http://radagast.biz/
 * 
 * @uses $vars['form_id'] Optionally, the form to add a search definition for
 */
// load form model
require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/models/model.php";
// load form profile model
require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/models/profile.php";
$type = get_input('type', '');
$fd = get_input('form_data', array());
if ($type == 'user') {
    // load flexprofile model
    require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/flexprofile/models/model.php";
    $form = flexprofile_get_profile_form();
} else {
    if ($type == 'group') {
        // load flexgroupprofile model
        require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/flexgroupprofile/models/model.php";
        $form = flexgroupprofile_get_profile_form();
        set_context('groups');
    } else {
        if ($type == 'file') {
            // load flexgroupprofile model
            require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/flexfile/models/model.php";
            $form = flexfile_get_file_form();
            set_context('file');
        } else {
            $form_id = (int) get_input('form_id', 0);
            $form = get_entity($form_id);