unset($_SESSION['authenticated']);
}
- profile_load($a,$which);
+ $profile = 0;
+ if((local_user()) && ($a->argc > 2) && ($a->argv[2] == 'view')) {
+ $which = $a->user['nickname'];
+ $profile = $a->argv[1];
+ }
+ profile_load($a,$which,$profile);
$a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');
<h1>Edit Profile Details</h1>
-<div id="profile-edit-clone-link-wrapper" ><a href="profiles/clone/$profile_id" id="profile-edit-clone-link" title="Create a new profile using these settings">Clone this profile</a></div>
+<div id="profile-edit-links">
+<ul>
+<li><a href="profile/$profile_id/view" id="profile-edit-view-link" title="View this profile">View this profile</a></li>
+<li><a href="profiles/clone/$profile_id" id="profile-edit-clone-link" title="Create a new profile using these settings">Clone this profile</a></li>
+<li></li>
+<li><a href="profiles/drop/$profile_id" id="profile-edit-drop-link" title="Delete this profile" $disabled >Delete this profile</a></li>
-<div id="profile-edit-drop-link-wrapper" ><a href="profiles/drop/$profile_id" id="profile-edit-drop-link" title="Delete this profile" $disabled >Delete this profile</a></div>
+</ul>
+</div>
<div id="profile-edit-links-end"></div>
</div>
<div id="profile-edit-dob-end"></div>
+$profile_in_dir
+
$hide_friends
<div class="profile-edit-submit-wrapper" >
</div>
<div id="profile-edit-religion-end"></div>
-
-$profile_in_dir
-
-
<div class="profile-edit-submit-wrapper" >
<input type="submit" name="submit" class="profile-edit-submit-button" value="Submit" />
</div>
list-style-type: none;
}
+
#profile-extra-links li {
margin-top: 5px;
}
+#profile-edit-links ul {
+ list-style-type: none;
+}
+
+#profile-edit-links li {
+ margin-top: 10px;
+}
+
.view-contact-wrapper {
margin-top: 20px;
float: left;