expose profile things in the UI
This commit is contained in:
parent
0dd7d93674
commit
4c541bb680
@ -610,6 +610,8 @@ function profiles_content(&$a) {
|
||||
$tpl_header = get_markup_template('profile_listing_header.tpl');
|
||||
$o .= replace_macros($tpl_header,array(
|
||||
'$header' => t('Edit/Manage Profiles'),
|
||||
'$addstuff' => t('Add profile things'),
|
||||
'$stuff_desc' => t('Include desirable objects in your profile'),
|
||||
'$chg_photo' => t('Change profile photo'),
|
||||
'$cr_new' => t('Create New Profile'),
|
||||
'$cr_new_link' => 'profiles/new?t=' . get_form_security_token("profile_new")
|
||||
|
@ -237,8 +237,10 @@ function thing_content(&$a) {
|
||||
}
|
||||
}
|
||||
|
||||
if(! local_user())
|
||||
if(! local_user()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
$thing_hash = '';
|
||||
|
||||
|
@ -13,6 +13,16 @@
|
||||
}
|
||||
|
||||
|
||||
#profile-listing-desc, #profile-stuff-link {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
#profile-listing-new-link-wrapper {
|
||||
margin-left: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
|
||||
#profile-edit-links-end {
|
||||
clear: both;
|
||||
margin-bottom: 15px;
|
||||
|
@ -582,15 +582,6 @@ footer {
|
||||
.thread-end-wrapper {
|
||||
margin-left: 50px;
|
||||
}
|
||||
|
||||
#profile-listing-desc {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
#profile-listing-new-link-wrapper {
|
||||
margin-left: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.profile-listing-photo-wrapper {
|
||||
float: left;
|
||||
}
|
||||
|
@ -2,7 +2,10 @@
|
||||
<p id="profile-listing-desc" class="button" >
|
||||
<a href="profile_photo" >{{$chg_photo}}</a>
|
||||
</p>
|
||||
<div id="profile-listing-new-link-wrapper" class="button" >
|
||||
<p id="profile-stuff-link" class="button">
|
||||
<a href="thing" title="{{$stuff_desc}}">{{$addstuff}}</a>
|
||||
</p>
|
||||
<p id="profile-listing-new-link-wrapper" class="button" >
|
||||
<a href="{{$cr_new_link}}" id="profile-listing-new-link" title="{{$cr_new}}" >{{$cr_new}}</a>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user