@@ 89-97 (lines=9) @@ | ||
86 | ||
87 | // likes count |
|
88 | $count = elgg_view('likes/count', array('entity' => $entity)); |
|
89 | if ($count) { |
|
90 | $options = array( |
|
91 | 'name' => 'likes_count', |
|
92 | 'text' => $count, |
|
93 | 'href' => false, |
|
94 | 'priority' => 1001, |
|
95 | ); |
|
96 | $return[] = ElggMenuItem::factory($options); |
|
97 | } |
|
98 | ||
99 | return $return; |
|
100 | } |
|
@@ 154-161 (lines=8) @@ | ||
151 | ||
152 | // likes count |
|
153 | $count = elgg_view('likes/count', array('entity' => $object)); |
|
154 | if ($count) { |
|
155 | $return[] = ElggMenuItem::factory(array( |
|
156 | 'name' => 'likes_count', |
|
157 | 'text' => $count, |
|
158 | 'href' => false, |
|
159 | 'priority' => 101, |
|
160 | )); |
|
161 | } |
|
162 | ||
163 | return $return; |
|
164 | } |
@@ 1305-1312 (lines=8) @@ | ||
1302 | ||
1303 | // likes count |
|
1304 | $count = elgg_view('likes/count', array('entity' => $object)); |
|
1305 | if ($count) { |
|
1306 | $return[] = ElggMenuItem::factory(array( |
|
1307 | 'name' => 'likes_count', |
|
1308 | 'text' => $count, |
|
1309 | 'href' => false, |
|
1310 | 'priority' => 101, |
|
1311 | )); |
|
1312 | } |
|
1313 | } |
|
1314 | ||
1315 | $blocked_subtypes = array('comment', 'discussion_reply'); |
|
@@ 755-764 (lines=10) @@ | ||
752 | ||
753 | // likes count |
|
754 | $count = elgg_view('likes/count', array('entity' => $entity)); |
|
755 | if ($count) { |
|
756 | $options = array( |
|
757 | 'name' => 'likes_count', |
|
758 | 'text' => $count, |
|
759 | 'href' => false, |
|
760 | 'priority' => 999, |
|
761 | 'item_class' => 'entity-menu-bubble', |
|
762 | ); |
|
763 | $return[] = ElggMenuItem::factory($options); |
|
764 | } |
|
765 | ||
766 | return $return; |
|
767 | } |