|
@@ 1045-1055 (lines=11) @@
|
| 1042 |
|
} |
| 1043 |
|
|
| 1044 |
|
|
| 1045 |
|
if ($entity->getSubType() == 'page_top') { |
| 1046 |
|
//history icon |
| 1047 |
|
$options = array( |
| 1048 |
|
'name' => 'history', |
| 1049 |
|
'text' => '<i class="fa fa-history fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['history'] . '</span></i>', |
| 1050 |
|
'title'=> elgg_echo('pages:history'), |
| 1051 |
|
'href' => "pages/history/$entity->guid", |
| 1052 |
|
'priority' => 150, |
| 1053 |
|
); |
| 1054 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1055 |
|
} |
| 1056 |
|
|
| 1057 |
|
//opening and close dicussions |
| 1058 |
|
if (elgg_instanceof($entity, "object", "groupforumtopic") && $entity->canEdit() && elgg_is_active_plugin('group_tools')) { |
|
@@ 1032-1043 (lines=12) @@
|
| 1029 |
|
} |
| 1030 |
|
} |
| 1031 |
|
|
| 1032 |
|
if($entity->getSubType() == 'file'){ |
| 1033 |
|
// download link |
| 1034 |
|
$options = array( |
| 1035 |
|
'name' => 'download', |
| 1036 |
|
'text' => '<i class="fa fa-download fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['download'].'</span></i>', |
| 1037 |
|
'title' => 'Download File', |
| 1038 |
|
'href' => "file/download/{$entity->getGUID()}", |
| 1039 |
|
'priority' => 300, |
| 1040 |
|
); |
| 1041 |
|
$return[] = \ElggMenuItem::factory($options); |
| 1042 |
|
} |
| 1043 |
|
|
| 1044 |
|
|
| 1045 |
|
if ($entity->getSubType() == 'page_top') { |
| 1046 |
|
//history icon |