$access_type = ' Moderated';
            }
            $obj->group_details['access_type'] = $access_type;
            $obj->group_details['author_id'] = $group_data->author_id;
            $user = new User();
            $user->load((int) $group_data->author_id);
            $obj->group_details['author_picture'] = $user->picture;
            $obj->group_details['author_name'] = $user->login_name;
            break;
        case 'GroupsCategoryModule':
            $obj->total_groups = $total_groups;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_GROUP_THEME, "Group Themes", 'container_three_column.tpl', 'header_group.tpl', PRI, HOMEPAGE, $network_info, '', $setting_data);
$page->add_header_html($parameter);
if ($type == 'style') {
    // adding some New Css files require for this page only
    $css_path = $current_theme_path . '/configurator.css';
    $page->add_header_css($css_path);
    $css_path = $current_theme_path . '/farbtastic.css';
    $page->add_header_css($css_path);
}
if ($type == 'module') {
    $parameter .= js_includes('messages.js');
    //added for checking and unchecking all the checkboxes for modules.
    $page->add_header_html($parameter);
}
uihelper_error_msg($msg_id);
uihelper_get_group_style($gid);
echo $page->render();
}
function setup_module($column, $module, $obj)
{
    global $login_uid, $paging, $page_uid, $super_groups_available, $user_type, $group_type;
    switch ($module) {
        case 'AddGroupModule':
            if (!empty($_REQUEST['gid'])) {
                $obj->id = $_REQUEST['gid'];
            }
            break;
    }
}
$setting_data = ModuleSetting::load_setting(PAGE_ADDGROUP, PA::$login_uid);
$page = new PageRenderer("setup_module", PAGE_ADDGROUP, "{$title} - " . PA::$network_info->name, 'container_three_column.tpl', $header, PRI, HOMEPAGE, PA::$network_info, NULL, $setting_data);
$page->add_header_js('addgroup.js');
if (!empty($_REQUEST['msg'])) {
    $message = null;
} else {
    if (!empty($_REQUEST['error_msg'])) {
        $message = null;
    } else {
        $message = null;
    }
}
uihelper_error_msg($message);
if ($edit) {
    uihelper_get_group_style($_REQUEST['gid']);
} else {
    uihelper_get_network_style();
}
echo $page->render();
            $obj->mode = PUB;
            $obj->content_id = $_REQUEST['cid'];
            $obj->uid = $uid;
            $obj->media_data = $show_media;
            $obj->Paging["page"] = $paging["page"];
            $obj->Paging["show"] = $paging["show"];
            break;
        default:
            return 'skip';
            break;
    }
}
$header_tpl = 'header_user.tpl';
if (!empty($info) && $info['type'] == GROUP_COLLECTION_TYPE) {
    if (!empty($_REQUEST['gid']) || !empty($show_media->parent_collection_id)) {
        $header_tpl = 'header_group.tpl';
    }
}
$page = new PageRenderer("setup_module", PAGE_MEDIA_FULL_VIEW, "Media Full View", "container_one_column_media_gallery.tpl", $header_tpl, PUB, HOMEPAGE, PA::$network_info);
if (!empty($_GET['msg_id'])) {
    $error_msg = $_GET['msg_id'];
}
uihelper_error_msg($error_msg);
if (!empty($content_info)) {
    if (!empty($info) && $info['type'] == GROUP_COLLECTION_TYPE) {
        uihelper_get_group_style($content_info->parent_collection_id);
    } else {
        uihelper_set_user_heading($page, TRUE, $content_info->author_id);
    }
}
echo $page->render();
                $obj->type = 'permalink';
            }
            break;
        case 'ImagesModule':
            $obj->page = $media_gallery;
            $obj->group_details = $group_details;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_PERMALINK, sprintf("%s - %s - %s", strip_tags($content->title), $author->get_name(), PA::$network_info->name), "container_three_column.tpl", $header, PUB, HOMEPAGE, PA::$network_info, '', $setting_data);
uihelper_error_msg($error_message);
$page->html_body_attributes = 'class="no_second_tier"';
if (!$is_group_content) {
    uihelper_set_user_heading($page, TRUE, $content->author_id);
} else {
    uihelper_get_group_style((int) $gid);
}
$page->add_header_html(js_includes('common.js'));
// To Do need to remove inline styling
$inline_style = '.no_second_tier #bg_blog_post { margin-top: 3px; }';
$append_css = "<style>" . $inline_style . "</style>";
$page->add_header_html($append_css);
$page->add_header_html(js_includes('rating.js'));
// for calendar sidebar Module
$css_path = PA::$theme_url . '/calendar.css';
$page->add_header_css($css_path);
$page->add_header_html(js_includes('calendar.js'));
echo $page->render();
// this function loads group details for this page
//arguement - $group collection object
function pageLoadGroup($group)
*/
$login_required = TRUE;
$use_theme = 'Beta';
include_once "web/includes/page.php";
require_once "web/includes/functions/user_page_functions.php";
require_once "api/Image/Image.php";
require_once "api/Audio/Audio.php";
require_once "api/Video/Video.php";
// for query count
global $query_count_on_page;
$query_count_on_page = 0;
$type = @$_GET['type'];
function setup_module($column, $moduleName, $obj)
{
    global $type, $paging;
    global $login_uid;
    switch ($column) {
        case 'middle':
            $obj->group_id = $_REQUEST['gid'];
            $obj->uid = $login_uid;
            $obj->type = $type;
            $obj->Paging["page"] = $paging["page"];
            $obj->Paging["show"] = 50;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_MANAGE_GROUP_CONTENT, "Group Content Management", "container_one_column_media_gallery.tpl", "header_group.tpl", PUB, HOMEPAGE, PA::$network_info);
$error_message = @$_GET['msg_id'];
uihelper_error_msg($error_message);
uihelper_get_group_style($_GET['gid']);
echo $page->render();