forked from GNUsocial/gnu-social
Merge ../csarven into uiredesign
This commit is contained in:
commit
8f25e4b48a
@ -103,6 +103,18 @@ class FavorForm extends Form
|
|||||||
common_session_token());
|
common_session_token());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Legend of the Form
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function formLegend()
|
||||||
|
{
|
||||||
|
$this->out->element('legend', null, _('Delete this notice'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data elements
|
* Data elements
|
||||||
*
|
*
|
||||||
@ -125,7 +137,7 @@ class FavorForm extends Form
|
|||||||
function formActions()
|
function formActions()
|
||||||
{
|
{
|
||||||
$this->out->submit('favor-submit-' . $this->notice->id,
|
$this->out->submit('favor-submit-' . $this->notice->id,
|
||||||
_('Make a favorite'));
|
_('Favorite'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -136,6 +148,6 @@ class FavorForm extends Form
|
|||||||
|
|
||||||
function formClass()
|
function formClass()
|
||||||
{
|
{
|
||||||
return 'favor';
|
return 'notice_favorite';
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -324,13 +324,11 @@ class HTMLOutputter extends XMLOutputter
|
|||||||
|
|
||||||
function submit($id, $label, $cls='submit', $name=null)
|
function submit($id, $label, $cls='submit', $name=null)
|
||||||
{
|
{
|
||||||
$this->elementStart('p');
|
|
||||||
$this->element('input', array('type' => 'submit',
|
$this->element('input', array('type' => 'submit',
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
'name' => ($name) ? $name : $id,
|
'name' => ($name) ? $name : $id,
|
||||||
'class' => $cls,
|
'class' => $cls,
|
||||||
'value' => $label));
|
'value' => $label));
|
||||||
$this->elementEnd('p');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -438,16 +438,13 @@ class NoticeListItem extends Widget
|
|||||||
$reply_url = common_local_url('newnotice',
|
$reply_url = common_local_url('newnotice',
|
||||||
array('replyto' => $this->profile->nickname));
|
array('replyto' => $this->profile->nickname));
|
||||||
|
|
||||||
$reply_js =
|
$this->out->elementStart('dl', 'reply');
|
||||||
'return doreply("'.$this->profile->nickname.'",'.$this->notice->id.');';
|
$this->out->element('dt', null, _('Reply to this notice'));
|
||||||
|
$this->out->elementStart('dd');
|
||||||
$this->out->elementStart('a',
|
$this->out->element('a', array('href' => $reply_url,
|
||||||
array('href' => $reply_url,
|
'title' => _('reply')), _('Reply'));
|
||||||
'onclick' => $reply_js,
|
$this->out->elementEnd('dd');
|
||||||
'title' => _('reply'),
|
$this->out->elementEnd('dl');
|
||||||
'class' => 'replybutton'));
|
|
||||||
$this->out->raw(' →');
|
|
||||||
$this->out->elementEnd('a');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -571,7 +571,7 @@ function common_tag_link($tag)
|
|||||||
{
|
{
|
||||||
$canonical = common_canonical_tag($tag);
|
$canonical = common_canonical_tag($tag);
|
||||||
$url = common_local_url('tag', array('tag' => $canonical));
|
$url = common_local_url('tag', array('tag' => $canonical));
|
||||||
return '<a href="' . htmlspecialchars($url) . '" rel="tag" class="hashlink">' . htmlspecialchars($tag) . '</a>';
|
return '<span class="tag"><a href="' . htmlspecialchars($url) . '" rel="tag">' . htmlspecialchars($tag) . '</a></span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function common_canonical_tag($tag)
|
function common_canonical_tag($tag)
|
||||||
@ -589,7 +589,7 @@ function common_at_link($sender_id, $nickname)
|
|||||||
$sender = Profile::staticGet($sender_id);
|
$sender = Profile::staticGet($sender_id);
|
||||||
$recipient = common_relative_profile($sender, common_canonical_nickname($nickname));
|
$recipient = common_relative_profile($sender, common_canonical_nickname($nickname));
|
||||||
if ($recipient) {
|
if ($recipient) {
|
||||||
return '<a href="'.htmlspecialchars($recipient->profileurl).'" class="atlink">'.$nickname.'</a>';
|
return '<span class="vcard"><a href="'.htmlspecialchars($recipient->profileurl).'" class="url"><span class="fn nickname">'.$nickname.'</span></a></span>';
|
||||||
} else {
|
} else {
|
||||||
return $nickname;
|
return $nickname;
|
||||||
}
|
}
|
||||||
@ -606,7 +606,7 @@ function common_at_hash_link($sender_id, $tag)
|
|||||||
$url = common_local_url('subscriptions',
|
$url = common_local_url('subscriptions',
|
||||||
array('nickname' => $user->nickname,
|
array('nickname' => $user->nickname,
|
||||||
'tag' => $tag));
|
'tag' => $tag));
|
||||||
return '<a href="'.htmlspecialchars($url).'" class="atlink">'.$tag.'</a>';
|
return '<span class="tag"><a href="'.htmlspecialchars($url).'" rel="tag">'.$tag.'</a></span>';
|
||||||
} else {
|
} else {
|
||||||
return $tag;
|
return $tag;
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ color:#333333;
|
|||||||
border-bottom-color:#ccc;
|
border-bottom-color:#ccc;
|
||||||
}
|
}
|
||||||
.notice-options .reply a {
|
.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 {
|
.notice-options form.notice_favorite input.submit {
|
||||||
background:transparent url(../images/icons/twotone/green/favourite.gif) no-repeat 0 45%;
|
background:transparent url(../images/icons/twotone/green/favourite.gif) no-repeat 0 45%;
|
||||||
|
BIN
theme/identica/images/icons/twotone/green/reply.gif
Normal file
BIN
theme/identica/images/icons/twotone/green/reply.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 79 B |
Loading…
Reference in New Issue
Block a user