some work on profile listing
This commit is contained in:
parent
a41a05e6c0
commit
40162cd6b7
@ -758,21 +758,9 @@ function profiles_content(&$a) {
|
||||
local_channel());
|
||||
if(count($r)) {
|
||||
|
||||
$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")
|
||||
));
|
||||
|
||||
|
||||
$tpl = get_markup_template('profile_entry.tpl');
|
||||
|
||||
foreach($r as $rr) {
|
||||
$o .= replace_macros($tpl, array(
|
||||
$profiles .= replace_macros($tpl, array(
|
||||
'$photo' => $rr['thumb'],
|
||||
'$id' => $rr['id'],
|
||||
'$alt' => t('Profile Image'),
|
||||
@ -782,6 +770,17 @@ function profiles_content(&$a) {
|
||||
: '<a href="' . $a->get_baseurl(true) . '/profperm/' . $rr['id'] . '" />' . t('Edit visibility') . '</a>')
|
||||
));
|
||||
}
|
||||
|
||||
$tpl_header = get_markup_template('profile_listing_header.tpl');
|
||||
$o .= replace_macros($tpl_header,array(
|
||||
'$header' => t('Edit Profiles'),
|
||||
'$cr_new' => t('Create New'),
|
||||
'$cr_new_link' => 'profiles/new?t=' . get_form_security_token("profile_new"),
|
||||
'$profiles' => $profiles
|
||||
));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
return $o;
|
||||
|
@ -6,3 +6,26 @@
|
||||
padding: 7px 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.profile-listing-table {
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.profile-listing-row {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.profile-listing-cell {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.profile-listing-edit-link {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.profile-listing-photo {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
|
@ -328,37 +328,6 @@ footer {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.profile-listing-photo-wrapper {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.profile-listing-edit-buttons-wrapper {
|
||||
clear: both;
|
||||
}
|
||||
.profile-listing-photo-edit-link {
|
||||
float: left;
|
||||
width: 125px;
|
||||
}
|
||||
.profile-listing-end {
|
||||
clear: both;
|
||||
}
|
||||
.profile-listing-edit-buttons-wrapper img{
|
||||
border: none;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.profile-listing {
|
||||
margin-top: 25px;
|
||||
}
|
||||
.profile-listing-name {
|
||||
float: left;
|
||||
margin-left: 32px;
|
||||
margin-top: 10px;
|
||||
color: #3172BD;
|
||||
font-weight: bold;
|
||||
width: 200px;
|
||||
|
||||
}
|
||||
|
||||
.app-name {
|
||||
overflow: none;
|
||||
}
|
||||
|
@ -6,24 +6,26 @@
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="profile_photo" id="profile-photo_upload-link" title="{{$profpic}}">{{$profpic}}</a>
|
||||
<a class="nav-link" href="profile_photo" id="profile-photo_upload-link" title="{{$profpic}}"><i class="icon-user"></i> {{$profpic}}</a>
|
||||
</li>
|
||||
{{if $is_default}}
|
||||
<li class="nav-item">
|
||||
<a href="cover_photo" id="cover-photo_upload-link" title="{{$coverpic}}">{{$coverpic}}</a>
|
||||
<a href="cover_photo" id="cover-photo_upload-link" title="{{$coverpic}}"><i class="icon-picture"></i> {{$coverpic}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{if ! $is_default}}
|
||||
<li class="nav-item">
|
||||
<a href="profperm/{{$profile_id}}" id="profile-edit-visibility-link" title="{{$editvis}}"><i class="icon-pencil"></i> {{$editvis}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="nav-item">
|
||||
<a href="thing" id="profile-edit-thing-link" title="{{$addthing}}">{{$addthing}}</a>
|
||||
<a href="thing" id="profile-edit-thing-link" title="{{$addthing}}"><i class="icon-plus-sign"></i> {{$addthing}}</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li class="nav-item">
|
||||
<a href="profile/{{$profile_id}}/view" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a>
|
||||
</li>
|
||||
{{if ! $is_default}}
|
||||
<li class="nav-item">
|
||||
<a href="profperm/{{$profile_id}}" id="profile-edit-visibility-link" title="{{$editvis}}">{{$editvis}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{if $profile_clone_link}}
|
||||
<li class="divider"></li>
|
||||
<li class="nav-item">
|
||||
|
@ -1,11 +1,11 @@
|
||||
<div class="generic-content-wrapper-styled">
|
||||
<div class="profile-listing" >
|
||||
<div class="profile-listing-photo-wrapper" >
|
||||
<a href="profiles/{{$id}}" class="profile-listing-edit-link"><img class="profile-listing-photo" id="profile-listing-photo-{{$id}}" src="{{$photo}}" alt="{{$alt}}" /></a>
|
||||
</div>
|
||||
<div class="profile-listing-photo-end"></div>
|
||||
<div class="profile-listing-name" id="profile-listing-name-{{$id}}"><a href="profiles/{{$id}}" class="profile-listing-edit-link" >{{$profile_name}}</a></div>
|
||||
<div class="profile-listing-visible">{{$visible}}</div>
|
||||
</div>
|
||||
<div class="profile-listing-end"></div>
|
||||
<div class="profile-listing-row">
|
||||
<div class="profile-listing-cell" >
|
||||
<a href="profiles/{{$id}}"><img class="profile-listing-photo" id="profile-listing-photo-{{$id}}" src="{{$photo}}" alt="{{$alt}}" /></a>
|
||||
</div>
|
||||
<div class="profile-listing-cell" id="profile-listing-name-{{$id}}">
|
||||
<a href="profiles/{{$id}}" class="profile-listing-edit-link" >{{$profile_name}}</a>
|
||||
</div>
|
||||
<div class="profile-listing-cell">
|
||||
{{$visible}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,11 +1,12 @@
|
||||
<div class="generic-content-wrapper-styled">
|
||||
<h1>{{$header}}</h1>
|
||||
<p id="profile-listing-desc" class="btn btn-default" >
|
||||
<a href="profile_photo" >{{$chg_photo}}</a>
|
||||
</p>
|
||||
<p id="profile-stuff-link" class="btn btn-default">
|
||||
<a href="thing" title="{{$stuff_desc}}">{{$addstuff}}</a>
|
||||
</p>
|
||||
<p id="profile-listing-new-link-wrapper" class="btn btn-default" >
|
||||
<a href="{{$cr_new_link}}" id="profile-listing-new-link" title="{{$cr_new}}" >{{$cr_new}}</a>
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<a class="btn btn-success btn-xs pull-right" href="{{$cr_new_link}}" id="profile-listing-new-link" title="{{$cr_new}}" ><i class="icon-plus-sign"></i> {{$cr_new}}</a>
|
||||
<h2>{{$header}}</h2>
|
||||
</div>
|
||||
<div class="section-content-wrapper">
|
||||
<div class="profile-listing-table">
|
||||
{{$profiles}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user