forked from GNUsocial/gnu-social
Initial move towards microformats2
No validation has been attempted yet. Lots of changes left. This is visibly not (very) different from the previous CSS layout. But some simplifications have been made. Might cause issues with local changes to themes and CSS. Also maybe javascript which depends on certain legacy microformats elements. The move to microformats2 is motivated by the announcement that all microformats should be migrated to version 2, as of 2014-06-20 at: http://microformats.org/2014/06/20/microformats-org-turns-9-upgrade-to-microformats2
This commit is contained in:
@@ -86,7 +86,7 @@ class ModPlusPlugin extends Plugin
|
||||
* @param NoticeListItem $item
|
||||
* @return boolean hook value
|
||||
*/
|
||||
function onStartShowNoticeItem($item)
|
||||
function onStartShowNoticeItem(NoticeListItem $item)
|
||||
{
|
||||
$this->showProfileOptions($item->out, $item->profile);
|
||||
return true;
|
||||
@@ -108,12 +108,11 @@ class ModPlusPlugin extends Plugin
|
||||
* Currently only adds output for remote profiles, nothing for local users.
|
||||
*
|
||||
* @param HTMLOutputter $out
|
||||
* @param Profile $profile (may also be an ArrayWrapper... sigh)
|
||||
* @param Profile $profile
|
||||
*/
|
||||
protected function showProfileOptions(HTMLOutputter $out, $profile)
|
||||
protected function showProfileOptions(HTMLOutputter $out, Profile $profile)
|
||||
{
|
||||
$isRemote = !(User::getKV('id', $profile->id));
|
||||
if ($isRemote) {
|
||||
if (!$profile->isLocal()) {
|
||||
$target = common_local_url('remoteprofile', array('id' => $profile->id));
|
||||
// TRANS: Label for access to remote profile options.
|
||||
$label = _m('Remote profile options...');
|
||||
|
Reference in New Issue
Block a user