mirror of
https://github.com/friendica/friendica
synced 2024-11-18 03:43:40 +00:00
profile editor cleanups
This commit is contained in:
parent
8aeb1976b8
commit
d8d6f9adbd
3 changed files with 25 additions and 7 deletions
|
@ -57,7 +57,12 @@ function profile_init(&$a) {
|
||||||
unset($_SESSION['authenticated']);
|
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";
|
$a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
|
||||||
|
|
||||||
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');
|
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
<h1>Edit Profile Details</h1>
|
<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 id="profile-edit-links-end"></div>
|
||||||
|
|
||||||
|
@ -36,6 +42,8 @@ $dob $age
|
||||||
</div>
|
</div>
|
||||||
<div id="profile-edit-dob-end"></div>
|
<div id="profile-edit-dob-end"></div>
|
||||||
|
|
||||||
|
$profile_in_dir
|
||||||
|
|
||||||
$hide_friends
|
$hide_friends
|
||||||
|
|
||||||
<div class="profile-edit-submit-wrapper" >
|
<div class="profile-edit-submit-wrapper" >
|
||||||
|
@ -118,10 +126,6 @@ $sexual
|
||||||
</div>
|
</div>
|
||||||
<div id="profile-edit-religion-end"></div>
|
<div id="profile-edit-religion-end"></div>
|
||||||
|
|
||||||
|
|
||||||
$profile_in_dir
|
|
||||||
|
|
||||||
|
|
||||||
<div class="profile-edit-submit-wrapper" >
|
<div class="profile-edit-submit-wrapper" >
|
||||||
<input type="submit" name="submit" class="profile-edit-submit-button" value="Submit" />
|
<input type="submit" name="submit" class="profile-edit-submit-button" value="Submit" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -300,10 +300,19 @@ input#dfrn-url {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#profile-extra-links li {
|
#profile-extra-links li {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#profile-edit-links ul {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#profile-edit-links li {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.view-contact-wrapper {
|
.view-contact-wrapper {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
Loading…
Reference in a new issue