123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?php
- elgg_push_context('front');
- elgg_push_context('widgets');
- $list_params = array(
- 'type' => 'object',
- 'limit' => 4,
- 'full_view' => false,
- 'list_type_toggle' => false,
- 'pagination' => false,
- );
- $list_params['subtype'] = 'blog';
- $blogs = elgg_list_entities($list_params);
- $list_params['subtype'] = 'bookmarks';
- $bookmarks = elgg_list_entities($list_params);
- $list_params['subtype'] = 'file';
- $files = elgg_list_entities($list_params);
- $newest_members = elgg_list_entities_from_metadata(array(
- 'metadata_names' => 'icontime',
- 'type' => 'user',
- 'limit' => 10,
- 'full_view' => false,
- 'pagination' => false,
- 'list_type' => 'gallery',
- 'gallery_class' => 'elgg-gallery-users',
- 'size' => 'small',
- ));
- $list_params['type'] = 'group';
- unset($list_params['subtype']);
- $groups = elgg_list_entities($list_params);
- $login = elgg_view("core/account/login_box");
- $list_params['type'] = 'object';
- $list_params['subtype'] = 'market';
- $market = elgg_list_entities($list_params);
- $list_params['type'] = 'object';
- $list_params['subtype'] = 'question';
- $questions = elgg_list_entities($list_params);
- $list_params['subtype'] = 'video';
- $video = elgg_list_entities($list_params);
- $list_params['subtype'] = 'poll';
- $poll = elgg_list_entities($list_params);
- elgg_pop_context();
- $params = array(
- 'blogs' => $blogs,
- 'bookmarks' => $bookmarks,
- 'files' => $files,
- 'groups' => $groups,
- 'login' => $login,
- 'members' => $newest_members,
- 'market' => $market,
- 'questions' => $questions,
- 'video' => $video,
- 'poll' => $poll,
- );
- $body = elgg_view_layout('custom_index_hydra', $params);
- global $autofeed;
- $autofeed = FALSE;
- echo elgg_view_page('', $body);
|