http://learn.elgg.org/en/stable/guides/dont-modify-core.html
You need to have some plugin in order to change the css files. Have a look at http://learn.elgg.org/en/stable/guides/themes.html
Thanks Jerome, looks like I've got some reading to do!
Thanks, is this likely to work for Elgg 3.1?
for Elgg 2.x.
If you want to add your banners, you can also check out Content Insert plugin. Again tested for 2.x.
$options = [
'type' => 'object',
'subtypes' => ['blog'],
'annotation_names' => ['likes'],
'limit' => 10,
];
echo elgg_get_entities_from_annotation_calculation($options);
Thanks RvR, I'm not sure where the php file that handles blog display is to be found.
You can test it on your test site by changing this file:
mod\blog\views\default\resources\blog\all.php
Use the above code instead of $content:
$options = [
'type' => 'object',
'subtypes' => ['blog'],
'annotation_names' => ['likes'],
'limit' => 10,
];
$content = elgg_get_entities_from_annotation_calculation($options);
But there's a principle Don’t Modify Core.
So it's a reason to start the developing your own custom plugin.
Then you can put this code there.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.