class SubscriptionsListItem extends SubscriptionListItem
{
- function showProfile()
- {
- $this->startProfile();
- $this->showAvatar($this->profile);
- $this->showFullName();
- $this->showLocation();
- $this->showHomepage();
- $this->showBio();
- $this->showTags();
- // Relevant portion!
- $cur = common_current_user();
- if (!empty($cur) && $cur->id == $this->owner->id) {
- $this->showOwnerControls();
- }
- $this->endProfile();
- }
-
function showOwnerControls()
{
$sub = Subscription::pkeyGet(array('subscriber' => $this->owner->id,
// TRANS: Save button for settings for a profile in a subscriptions list.
$this->out->submit('save', _m('BUTTON','Save'));
$this->out->elementEnd('form');
- return;
}
}
function startList()
{
- $this->out->elementStart('ul', 'profiles xoxo');
+ $this->out->elementStart('ul', 'profile_list xoxo');
}
function endList()
function startItem()
{
- $this->out->elementStart('li', array('class' => 'profile h-entry',
+ $this->out->elementStart('li', array('class' => 'profile',
'id' => 'profile-' . $this->profile->id));
}
function showLocation()
{
if (!empty($this->profile->location)) {
- $this->out->element('span', 'label p-location', $this->profile->location);
+ $this->out->element('span', 'label p-locality', $this->profile->location);
}
}
exit(1);
}
-require_once INSTALLDIR.'/lib/profilelist.php';
-
/**
* Widget to show a list of subscriptions
*
$this->showBio();
// Relevant portion!
$this->showTags();
+ if ($this->isOwn()) {
+ $this->showOwnerControls();
+ }
$this->endProfile();
}
+ function showOwnerControls()
+ {
+ // pass
+ }
+
function isOwn()
{
$user = common_current_user();
top: -3px;
}
-table.profile_list .h-card .u-photo {
+ul.profile_list {
+ list-style-type:none;
+}
+
+ul.profile_list li {
+ margin-bottom: 20px;
+}
+
+.profile_list .h-card .u-photo {
margin-right: 4px;
}
-table.profile_list .h-card .p-nickname {
+.profile_list .h-card .p-nickname {
display: block;
}
display:none;
}
-.profiles {
- list-style-type:none;
-}
-
-.profiles li {
- margin-bottom: 20px;
-}
-
.profile .entity_profile .p-name,
.profile .entity_profile .u-url[rel~=contact] {
margin-left:0;