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