Merge branch '1.0.x' into testing
This commit is contained in:
commit
f4e17c1bdf
@ -240,14 +240,13 @@ function mail_subscribe_notify_profile($listenee, $other)
|
|||||||
$headers['To'] = $name . ' <' . $listenee->email . '>';
|
$headers['To'] = $name . ' <' . $listenee->email . '>';
|
||||||
// TRANS: Subject of new-subscriber notification e-mail.
|
// TRANS: Subject of new-subscriber notification e-mail.
|
||||||
// TRANS: %1$s is the subscribing user's nickname, %2$s is the StatusNet sitename.
|
// TRANS: %1$s is the subscribing user's nickname, %2$s is the StatusNet sitename.
|
||||||
$headers['Subject'] = sprintf(_('%1$s is now listening to '.
|
$headers['Subject'] = sprintf(_('%1$s is now following you on %2$s.'),
|
||||||
'your notices on %2$s.'),
|
|
||||||
$other->getBestName(),
|
$other->getBestName(),
|
||||||
common_config('site', 'name'));
|
common_config('site', 'name'));
|
||||||
|
|
||||||
// TRANS: Main body of new-subscriber notification e-mail.
|
// TRANS: Main body of new-subscriber notification e-mail.
|
||||||
// TRANS: %1$s is the subscriber's long name, %2$s is the StatusNet sitename.
|
// TRANS: %1$s is the subscriber's long name, %2$s is the StatusNet sitename.
|
||||||
$body = sprintf(_('%1$s is now listening to your notices on %2$s.'),
|
$body = sprintf(_('%1$s is now following you on %2$s.'),
|
||||||
$long_name,
|
$long_name,
|
||||||
common_config('site', 'name')) .
|
common_config('site', 'name')) .
|
||||||
mail_profile_block($other) .
|
mail_profile_block($other) .
|
||||||
|
@ -229,43 +229,15 @@ class NoticeListItem extends Widget
|
|||||||
|
|
||||||
function showAddressees()
|
function showAddressees()
|
||||||
{
|
{
|
||||||
|
$ga = $this->getGroupAddressees();
|
||||||
|
$pa = $this->getProfileAddressees();
|
||||||
|
|
||||||
|
$a = array_merge($ga, $pa);
|
||||||
|
|
||||||
|
if (!empty($a)) {
|
||||||
$this->out->elementStart('span', 'addressees');
|
$this->out->elementStart('span', 'addressees');
|
||||||
|
$first = true;
|
||||||
$cnt = $this->showGroupAddressees(true);
|
foreach ($a as $addr) {
|
||||||
$cnt = $this->showProfileAddressees($cnt == 0);
|
|
||||||
|
|
||||||
$this->out->elementEnd('span', 'addressees');
|
|
||||||
}
|
|
||||||
|
|
||||||
function showGroupAddressees($first)
|
|
||||||
{
|
|
||||||
$groups = $this->getGroups();
|
|
||||||
|
|
||||||
foreach ($groups as $group) {
|
|
||||||
if (!$first) {
|
|
||||||
$this->out->text( _m('SEPARATOR',', '));
|
|
||||||
} else {
|
|
||||||
$first = false;
|
|
||||||
}
|
|
||||||
$this->out->element('a', array('href' => $group->homeUrl(),
|
|
||||||
'title' => $group->nickname,
|
|
||||||
'class' => 'addressee group'),
|
|
||||||
$group->getBestName());
|
|
||||||
}
|
|
||||||
|
|
||||||
return count($groups);
|
|
||||||
}
|
|
||||||
|
|
||||||
function getGroups()
|
|
||||||
{
|
|
||||||
return $this->notice->getGroups();
|
|
||||||
}
|
|
||||||
|
|
||||||
function showProfileAddressees($first)
|
|
||||||
{
|
|
||||||
$replies = $this->getReplyProfiles();
|
|
||||||
|
|
||||||
foreach ($replies as $reply) {
|
|
||||||
if (!$first) {
|
if (!$first) {
|
||||||
// TRANS: Separator in profile addressees list.
|
// TRANS: Separator in profile addressees list.
|
||||||
$this->out->text(_m('SEPARATOR',', '));
|
$this->out->text(_m('SEPARATOR',', '));
|
||||||
@ -273,13 +245,49 @@ class NoticeListItem extends Widget
|
|||||||
// TRANS: Start of profile addressees list.
|
// TRANS: Start of profile addressees list.
|
||||||
$first = false;
|
$first = false;
|
||||||
}
|
}
|
||||||
$this->out->element('a', array('href' => $reply->profileurl,
|
$text = $addr['text'];
|
||||||
'title' => $reply->nickname,
|
unset($addr['text']);
|
||||||
'class' => 'addressee account'),
|
$this->out->element('a', $addr, $text);
|
||||||
$reply->getBestName());
|
}
|
||||||
|
$this->out->elementEnd('span', 'addressees');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return count($replies);
|
function getGroupAddressees()
|
||||||
|
{
|
||||||
|
$ga = array();
|
||||||
|
|
||||||
|
$groups = $this->getGroups();
|
||||||
|
|
||||||
|
foreach ($groups as $group) {
|
||||||
|
$ga[] = array('href' => $group->homeUrl(),
|
||||||
|
'title' => $group->nickname,
|
||||||
|
'class' => 'addressee group',
|
||||||
|
'text' => $group->getBestName());
|
||||||
|
}
|
||||||
|
|
||||||
|
return $ga;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getGroups()
|
||||||
|
{
|
||||||
|
return $this->notice->getGroups();
|
||||||
|
}
|
||||||
|
|
||||||
|
function getProfileAddressees()
|
||||||
|
{
|
||||||
|
$pa = array();
|
||||||
|
|
||||||
|
$replies = $this->getReplyProfiles();
|
||||||
|
|
||||||
|
foreach ($replies as $reply) {
|
||||||
|
$pa[] = array('href' => $reply->profileurl,
|
||||||
|
'title' => $reply->nickname,
|
||||||
|
'class' => 'addressee account',
|
||||||
|
'text' => $reply->getBestName());
|
||||||
|
}
|
||||||
|
|
||||||
|
return $pa;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getReplyProfiles()
|
function getReplyProfiles()
|
||||||
|
@ -49,6 +49,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
|||||||
{
|
{
|
||||||
public $DTD = null;
|
public $DTD = null;
|
||||||
public $serveMobile = false;
|
public $serveMobile = false;
|
||||||
|
public $reallyMobile = false;
|
||||||
public $mobileFeatures = array();
|
public $mobileFeatures = array();
|
||||||
|
|
||||||
function __construct($DTD='http://www.wapforum.org/DTD/xhtml-mobile10.dtd')
|
function __construct($DTD='http://www.wapforum.org/DTD/xhtml-mobile10.dtd')
|
||||||
@ -160,6 +161,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
|||||||
$this->setMobileFeatures($httpuseragent);
|
$this->setMobileFeatures($httpuseragent);
|
||||||
|
|
||||||
$this->serveMobile = true;
|
$this->serveMobile = true;
|
||||||
|
$this->reallyMobile = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -201,6 +203,8 @@ class MobileProfilePlugin extends WAP20Plugin
|
|||||||
|
|
||||||
header('Content-Type: '.$type);
|
header('Content-Type: '.$type);
|
||||||
|
|
||||||
|
if ($this->reallyMobile) {
|
||||||
|
|
||||||
$action->extraHeaders();
|
$action->extraHeaders();
|
||||||
if (preg_match("/.*\/.*xml/", $type)) {
|
if (preg_match("/.*\/.*xml/", $type)) {
|
||||||
// Required for XML documents
|
// Required for XML documents
|
||||||
@ -216,6 +220,11 @@ class MobileProfilePlugin extends WAP20Plugin
|
|||||||
'xml:lang' => $language));
|
'xml:lang' => $language));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setMobileFeatures($useragent)
|
function setMobileFeatures($useragent)
|
||||||
|
@ -2973,7 +2973,7 @@ X-OIM-Sequence-Num: 1
|
|||||||
// <wsse:BinarySecurityToken Id="Compact1">t=tick&p=</wsse:BinarySecurityToken>
|
// <wsse:BinarySecurityToken Id="Compact1">t=tick&p=</wsse:BinarySecurityToken>
|
||||||
// <wst:BinarySecret>binary secret</wst:BinarySecret>
|
// <wst:BinarySecret>binary secret</wst:BinarySecret>
|
||||||
// RST2: messenger.msn.com
|
// RST2: messenger.msn.com
|
||||||
// <wsse:BinarySecurityToken Id="PPToken2">t=tick</wsse:BinarySecurityToken>
|
// <wsse:BinarySecurityToken Id="Compact2">t=tick</wsse:BinarySecurityToken>
|
||||||
// RST3: contacts.msn.com
|
// RST3: contacts.msn.com
|
||||||
// <wsse:BinarySecurityToken Id="Compact3">t=tick&p=</wsse:BinarySecurityToken>
|
// <wsse:BinarySecurityToken Id="Compact3">t=tick&p=</wsse:BinarySecurityToken>
|
||||||
// RST4: messengersecure.live.com
|
// RST4: messengersecure.live.com
|
||||||
@ -2985,7 +2985,7 @@ X-OIM-Sequence-Num: 1
|
|||||||
preg_match("#".
|
preg_match("#".
|
||||||
"<wsse\:BinarySecurityToken Id=\"Compact1\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
"<wsse\:BinarySecurityToken Id=\"Compact1\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
||||||
"<wst\:BinarySecret>(.*)</wst\:BinarySecret>(.*)".
|
"<wst\:BinarySecret>(.*)</wst\:BinarySecret>(.*)".
|
||||||
"<wsse\:BinarySecurityToken Id=\"PPToken2\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
"<wsse\:BinarySecurityToken Id=\"Compact2\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
||||||
"<wsse\:BinarySecurityToken Id=\"Compact3\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
"<wsse\:BinarySecurityToken Id=\"Compact3\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
||||||
"<wsse\:BinarySecurityToken Id=\"Compact4\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
"<wsse\:BinarySecurityToken Id=\"Compact4\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
||||||
"<wsse\:BinarySecurityToken Id=\"Compact5\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
"<wsse\:BinarySecurityToken Id=\"Compact5\">(.*)</wsse\:BinarySecurityToken>(.*)".
|
||||||
|
@ -418,10 +418,6 @@ address .poweredby {
|
|||||||
content: '\25B8';
|
content: '\25B8';
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice .addressees:empty:before {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fn {
|
.fn {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
@ -99,12 +99,21 @@ line-height:auto;
|
|||||||
filter: alpha(opacity=0);
|
filter: alpha(opacity=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notice .addressees:before {
|
||||||
|
content: '\003E';
|
||||||
|
}
|
||||||
|
|
||||||
/* IE7 */
|
/* IE7 */
|
||||||
|
|
||||||
*+html .input_forms {
|
*+html .input_forms {
|
||||||
margin-bottom: -20px;
|
margin-bottom: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*+html .notice .addressees {
|
||||||
|
background: url(../images/icons/arrow_right.png) no-repeat top left;
|
||||||
|
padding-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
/* IE6 */
|
/* IE6 */
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
|
BIN
theme/base/images/icons/arrow_right.png
Normal file
BIN
theme/base/images/icons/arrow_right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 182 B |
@ -427,10 +427,6 @@ margin-left:0 !important;
|
|||||||
content: '\003E';
|
content: '\003E';
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice .addressees:empty {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_in .notice div.entry-content {
|
.user_in .notice div.entry-content {
|
||||||
max-width: 150px;
|
max-width: 150px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user