|
@@ 1343-1353 (lines=11) @@
|
| 1340 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1341 |
|
} |
| 1342 |
|
// comment blog |
| 1343 |
|
if($object->getSubtype() == 'blog'){ |
| 1344 |
|
if ($object->canComment()) { |
| 1345 |
|
$options = array( |
| 1346 |
|
"name" => "comments", |
| 1347 |
|
"text" => '<span class="fa fa-lg fa-comment icon-unsel"><span class="wb-inv">' . elgg_echo("entity:comment:link:blog", array($entName)) . '</span></span>', |
| 1348 |
|
"title" => elgg_echo("comment:this"), |
| 1349 |
|
"href" => $object->getURL() . "#comments" |
| 1350 |
|
); |
| 1351 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1352 |
|
} |
| 1353 |
|
} |
| 1354 |
|
// reply discussion |
| 1355 |
|
if($object->getSubtype() == 'groupforumtopic'){ |
| 1356 |
|
if ($object->status != "closed") { |
|
@@ 1355-1365 (lines=11) @@
|
| 1352 |
|
} |
| 1353 |
|
} |
| 1354 |
|
// reply discussion |
| 1355 |
|
if($object->getSubtype() == 'groupforumtopic'){ |
| 1356 |
|
if ($object->status != "closed") { |
| 1357 |
|
$options = array( |
| 1358 |
|
"name" => "reply", |
| 1359 |
|
"text" => '<span class="fa fa-lg fa-reply icon-unsel"><span class="wb-inv">' . elgg_echo("entity:reply:groupdorumtopic",array($entName)) . '</span></span>', |
| 1360 |
|
"title" => elgg_echo("reply:this"), |
| 1361 |
|
"href" => $object->getURL() . "#reply" |
| 1362 |
|
); |
| 1363 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1364 |
|
} |
| 1365 |
|
} |
| 1366 |
|
// add event calendar |
| 1367 |
|
if($object->getSubtype() == 'event_calendar'){ |
| 1368 |
|
if (check_entity_relationship($user_guid, 'personal_event', $object->guid)) { |
|
@@ 1398-1407 (lines=10) @@
|
| 1395 |
|
} |
| 1396 |
|
//question - answer |
| 1397 |
|
if($object->getSubtype() == 'question' || $object->getSubtype() == 'answer'){ |
| 1398 |
|
if ($object->canComment()) { |
| 1399 |
|
$options = array( |
| 1400 |
|
'name' => 'comments', |
| 1401 |
|
"text" => '<span class="fa fa-lg fa-comment icon-unsel"><span class="wb-inv">' . elgg_echo("entity:comment:link:question", array($entName)) . '</span></span>', |
| 1402 |
|
"title" => elgg_echo("comment:this"), |
| 1403 |
|
'href' => $object->getURL() ."#commentsadd{$object->getGUID()}", |
| 1404 |
|
'priority' => 288, |
| 1405 |
|
); |
| 1406 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1407 |
|
} |
| 1408 |
|
} |
| 1409 |
|
} |
| 1410 |
|
|