X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgalleryaction.php;h=b8edbbb7ba84ba5d6319d1eed185e4b0c0525757;hb=934ae38acd4c9152141ab5559d5e698a8a33645c;hp=8fa11a7562752f217edb65bb206f797b5732c40a;hpb=192bc42c917999236ad26be0aef6f441e8100d2b;p=quix0rs-gnu-social.git diff --git a/lib/galleryaction.php b/lib/galleryaction.php index 8fa11a7562..b8edbbb7ba 100644 --- a/lib/galleryaction.php +++ b/lib/galleryaction.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -27,10 +27,9 @@ require_once INSTALLDIR.'/lib/profilelist.php'; define('AVATARS_PER_PAGE', 80); -class GalleryAction extends Action +class GalleryAction extends OwnerDesignAction { var $profile = null; - var $user = null; var $page = null; var $tag = null; @@ -118,9 +117,6 @@ class GalleryAction extends Action $content[$t] = $t; } if ($tags) { - $this->elementStart('dl', array('id'=>'filter_tags')); - $this->element('dt', null, _('Filter tags')); - $this->elementStart('dd'); $this->elementStart('ul'); $this->elementStart('li', array('id' => 'filter_tags_all', 'class' => 'child_1')); @@ -133,18 +129,19 @@ class GalleryAction extends Action $this->elementEnd('li'); $this->elementStart('li', array('id'=>'filter_tags_item')); $this->elementStart('form', array('name' => 'bytag', - 'id' => 'bytag', - 'action' => common_path('?action=' . $this->trimmed('action')), + 'id' => 'form_filter_bytag', + 'action' => common_path('?action=' . $this->trimmed('action')), 'method' => 'post')); + $this->elementStart('fieldset'); + $this->element('legend', null, _('Select tag to filter')); $this->dropdown('tag', _('Tag'), $content, _('Choose a tag to narrow list'), false, $tag); $this->hidden('nickname', $this->user->nickname); $this->submit('submit', _('Go')); + $this->elementEnd('fieldset'); $this->elementEnd('form'); $this->elementEnd('li'); $this->elementEnd('ul'); - $this->elementEnd('dd'); - $this->elementEnd('dl'); } }