summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/noticeform.php4
-rw-r--r--lib/profilelist.php18
-rw-r--r--lib/profileminilist.php5
3 files changed, 23 insertions, 4 deletions
diff --git a/lib/noticeform.php b/lib/noticeform.php
index 3212f382a..0ad365856 100644
--- a/lib/noticeform.php
+++ b/lib/noticeform.php
@@ -148,12 +148,12 @@ class NoticeForm extends Form
$this->out->element('dd', array('id' => 'notice_text-count'),
'140');
$this->out->elementEnd('dl');
- $this->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
- $this->out->element('label', array('for' => 'notice_data-attach'), _('Attach'));
+ $this->out->element('label', array('for' => 'notice_data-attach'),_('Attach'));
$this->out->element('input', array('id' => 'notice_data-attach',
'type' => 'file',
'name' => 'attach',
'title' => _('Attach a file')));
+ $this->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
if ($this->action) {
$this->out->hidden('notice_return-to', $this->action, 'returnto');
}
diff --git a/lib/profilelist.php b/lib/profilelist.php
index e2faf10af..a604230f8 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -62,8 +62,24 @@ class ProfileList extends Widget
function show()
{
+ $this->startList();
+ $cnt = $this->showProfiles();
+ $this->endList();
+ return $cnt;
+ }
+
+ function startList()
+ {
$this->out->elementStart('ul', 'profiles');
+ }
+
+ function endList()
+ {
+ $this->out->elementEnd('ul');
+ }
+ function showProfiles()
+ {
$cnt = 0;
while ($this->profile->fetch()) {
@@ -75,8 +91,6 @@ class ProfileList extends Widget
$pli->show();
}
- $this->out->elementEnd('ul');
-
return $cnt;
}
diff --git a/lib/profileminilist.php b/lib/profileminilist.php
index f11cae8a5..09bef6f7c 100644
--- a/lib/profileminilist.php
+++ b/lib/profileminilist.php
@@ -47,6 +47,11 @@ define('PROFILES_PER_MINILIST', 27);
class ProfileMiniList extends ProfileList
{
+ function startList()
+ {
+ $this->out->elementStart('ul', 'entities users xoxo');
+ }
+
function newListItem($profile)
{
return new ProfileMiniListItem($profile, $this->action);