|
@@ 1053-1064 (lines=12) @@
|
| 1050 |
|
} |
| 1051 |
|
} |
| 1052 |
|
|
| 1053 |
|
if($entity->getSubType() == 'file'){ |
| 1054 |
|
// download link |
| 1055 |
|
$options = array( |
| 1056 |
|
'name' => 'download', |
| 1057 |
|
'text' => '<i class="fa fa-download fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['download'].'</span></i>', |
| 1058 |
|
'title' => 'Download File', |
| 1059 |
|
'href' => "file/download/{$entity->getGUID()}", |
| 1060 |
|
'priority' => 300, |
| 1061 |
|
); |
| 1062 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1063 |
|
} |
| 1064 |
|
|
| 1065 |
|
|
| 1066 |
|
if ($entity->getSubType() == 'page_top') { |
| 1067 |
|
//history icon |
|
@@ 1066-1076 (lines=11) @@
|
| 1063 |
|
} |
| 1064 |
|
|
| 1065 |
|
|
| 1066 |
|
if ($entity->getSubType() == 'page_top') { |
| 1067 |
|
//history icon |
| 1068 |
|
$options = array( |
| 1069 |
|
'name' => 'history', |
| 1070 |
|
'text' => '<i class="fa fa-history fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['history'] . '</span></i>', |
| 1071 |
|
'title'=> elgg_echo('pages:history'), |
| 1072 |
|
'href' => "pages/history/$entity->guid", |
| 1073 |
|
'priority' => 150, |
| 1074 |
|
); |
| 1075 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1076 |
|
} |
| 1077 |
|
|
| 1078 |
|
//opening and close dicussions |
| 1079 |
|
if (elgg_instanceof($entity, "object", "groupforumtopic") && $entity->canEdit() && elgg_is_active_plugin('group_tools')) { |