diff --git a/lib/favorform.php b/lib/favorform.php index 4f4fd72a9d..977f191838 100644 --- a/lib/favorform.php +++ b/lib/favorform.php @@ -103,6 +103,18 @@ class FavorForm extends Form common_session_token()); } + + /** + * Legend of the Form + * + * @return void + */ + function formLegend() + { + $this->out->element('legend', null, _('Delete this notice')); + } + + /** * Data elements * @@ -125,7 +137,7 @@ class FavorForm extends Form function formActions() { $this->out->submit('favor-submit-' . $this->notice->id, - _('Make a favorite')); + _('Favorite')); } /** @@ -136,6 +148,6 @@ class FavorForm extends Form function formClass() { - return 'favor'; + return 'notice_favorite'; } -} \ No newline at end of file +} diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 75a995bef1..eb8a612e4f 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -324,13 +324,11 @@ class HTMLOutputter extends XMLOutputter function submit($id, $label, $cls='submit', $name=null) { - $this->elementStart('p'); $this->element('input', array('type' => 'submit', 'id' => $id, 'name' => ($name) ? $name : $id, 'class' => $cls, 'value' => $label)); - $this->elementEnd('p'); } /** diff --git a/lib/noticelist.php b/lib/noticelist.php index 6f4d1c04e0..fde93a3b66 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -438,16 +438,13 @@ class NoticeListItem extends Widget $reply_url = common_local_url('newnotice', array('replyto' => $this->profile->nickname)); - $reply_js = - 'return doreply("'.$this->profile->nickname.'",'.$this->notice->id.');'; - - $this->out->elementStart('a', - array('href' => $reply_url, - 'onclick' => $reply_js, - 'title' => _('reply'), - 'class' => 'replybutton')); - $this->out->raw(' →'); - $this->out->elementEnd('a'); + $this->out->elementStart('dl', 'reply'); + $this->out->element('dt', null, _('Reply to this notice')); + $this->out->elementStart('dd'); + $this->out->element('a', array('href' => $reply_url, + 'title' => _('reply')), _('Reply')); + $this->out->elementEnd('dd'); + $this->out->elementEnd('dl'); } /** diff --git a/lib/util.php b/lib/util.php index 8c6cddbd9e..9ca817eab3 100644 --- a/lib/util.php +++ b/lib/util.php @@ -571,7 +571,7 @@ function common_tag_link($tag) { $canonical = common_canonical_tag($tag); $url = common_local_url('tag', array('tag' => $canonical)); - return ''; + return ''; } function common_canonical_tag($tag) @@ -589,7 +589,7 @@ function common_at_link($sender_id, $nickname) $sender = Profile::staticGet($sender_id); $recipient = common_relative_profile($sender, common_canonical_nickname($nickname)); if ($recipient) { - return ''.$nickname.''; + return ''.$nickname.''; } else { return $nickname; } @@ -606,7 +606,7 @@ function common_at_hash_link($sender_id, $tag) $url = common_local_url('subscriptions', array('nickname' => $user->nickname, 'tag' => $tag)); - return ''.$tag.''; + return ''; } else { return $tag; } diff --git a/theme/identica/css/display.css b/theme/identica/css/display.css index 4f2ba46526..7e0c6d7b4c 100644 --- a/theme/identica/css/display.css +++ b/theme/identica/css/display.css @@ -180,7 +180,7 @@ color:#333333; border-bottom-color:#ccc; } .notice-options .reply a { -background:transparent url(../images/icons/twotone/green/undo.gif) no-repeat 0 45%; +background:transparent url(../images/icons/twotone/green/reply.gif) no-repeat 0 45%; } .notice-options form.notice_favorite input.submit { background:transparent url(../images/icons/twotone/green/favourite.gif) no-repeat 0 45%; diff --git a/theme/identica/images/icons/twotone/green/reply.gif b/theme/identica/images/icons/twotone/green/reply.gif new file mode 100644 index 0000000000..6ff01bb355 Binary files /dev/null and b/theme/identica/images/icons/twotone/green/reply.gif differ