Add a link to user photos in Upload Profile Photo page

This commit is contained in:
Fabio Comuni 2011-02-04 10:30:56 +01:00
parent d72f248b3c
commit fb7959cfc0
7 changed files with 28 additions and 6 deletions

View File

@ -188,7 +188,7 @@ function profile_photo_content(&$a) {
$tpl = load_view_file('view/profile_photo.tpl'); $tpl = load_view_file('view/profile_photo.tpl');
$o .= replace_macros($tpl,array( $o .= replace_macros($tpl,array(
'$user' => $a->user['nickname']
)); ));
return $o; return $o;

View File

@ -11,4 +11,8 @@
<input type="submit" name="submit" id="profile-photo-submit" value="Upload"> <input type="submit" name="submit" id="profile-photo-submit" value="Upload">
</div> </div>
</form> </form>
<div id="profile-photo-link-select-wrapper">
or <a href='photos/$user'>select a photo from albums</a>
</div>

View File

@ -11,4 +11,8 @@
<input type="submit" name="submit" id="profile-photo-submit" value="Upload"> <input type="submit" name="submit" id="profile-photo-submit" value="Upload">
</div> </div>
</form> </form>
<div id="profile-photo-link-select-wrapper">
or <a href='photos/$user'>select a photo from albums</a>
</div>

View File

@ -11,4 +11,8 @@
<input type="submit" name="submit" id="profile-photo-submit" value="Upload"> <input type="submit" name="submit" id="profile-photo-submit" value="Upload">
</div> </div>
</form> </form>
<div id="profile-photo-link-select-wrapper">
or <a href='photos/$user'>select a photo from albums</a>
</div>

View File

@ -12,3 +12,7 @@
</div> </div>
</form> </form>
<div id="profile-photo-link-select-wrapper">
o <a href='photos/$user'>seleziona una foto da un album</a>
</div>

View File

@ -734,6 +734,10 @@ input#dfrn-url {
margin-bottom: 20px; margin-bottom: 20px;
} }
#profile-photo-link-select-wrapper {
margin-top: 2em;
}
#profile-edit-profile-name-label, #profile-edit-profile-name-label,
#profile-edit-name-label, #profile-edit-name-label,
#profile-edit-pdesc-label, #profile-edit-pdesc-label,

View File

@ -602,6 +602,10 @@ input#dfrn-url {
margin-bottom: 20px; margin-bottom: 20px;
} }
#profile-photo-link-select-wrapper {
margin-top: 2em;
}
#profile-edit-profile-name-label, #profile-edit-profile-name-label,
#profile-edit-name-label, #profile-edit-name-label,
#profile-edit-pdesc-label, #profile-edit-pdesc-label,
@ -1853,8 +1857,6 @@ a.mail-list-link {
margin-bottom: 25px; margin-bottom: 25px;
} }
/* end from defautlt */ /* end from defautlt */