Example #1
0
function profile_mini_page($options)
{
    $output .= profile_top($options);
    $output .= profile_head($options);
    $output .= profile_bottom($options);
    return $output;
}
Example #2
0
if (strlen($profile['error_message']) > 0 && !$_GET["override"]) {
    $ui_options['title'] .= 'Presentationsfel - Hamsterpaj.net';
    ui_top($ui_options);
    echo '<h1>Presentationsfel</h1>';
    echo '<p>' . $profile['error_message'] . '</p>';
    ui_bottom();
    exit;
    //Important!
}
/* Set page title */
$ui_options['title'] .= $profile['username'] . ' - Hamsterpaj.net';
if (strlen($profile['profile_theme']) > 0) {
    $ui_options['stylesheets'][] = 'profile_themes/' . $profile['profile_theme'] . '.css';
}
/* Start of profile */
$output .= profile_top($profile);
/* Including Profile-head */
$output .= profile_head($profile);
/* Presentation changed... */
if (isset($_GET['show_change_profile_notice'])) {
    $rounded_corners_config['color'] = 'orange_deluxe';
    $output .= rounded_corners_top($rounded_corners_config);
    $output .= 'Blev det inte riktigt som du hade tänkt dig? Gå tillbaka och 
		<a href="/installningar/profilesettings.php">ändra din presentation</a> igen!';
    $output .= rounded_corners_bottom($rounded_corners_config);
}
/* Photos */
$photos = photos_fetch(array('user' => $user_id, 'order-by' => 'up.id', 'order-direction' => 'DESC', 'limit' => 11));
if (count($photos) > 4) {
    $output .= photos_list_mini($photos);
} elseif (count($photos) > 0) {