diff options
Diffstat (limited to 'views/default/widgets/favorites')
-rwxr-xr-x | views/default/widgets/favorites/content.php | 36 | ||||
-rwxr-xr-x | views/default/widgets/favorites/edit.php | 17 |
2 files changed, 0 insertions, 53 deletions
diff --git a/views/default/widgets/favorites/content.php b/views/default/widgets/favorites/content.php deleted file mode 100755 index 32453b25c..000000000 --- a/views/default/widgets/favorites/content.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php - -$fav_pages_num = (int) $vars['entity']->pages_num; -if (!$fav_pages_num) { - $fav_pages_num = 4; -} - -$fav_user_guid = elgg_get_page_owner_guid(); -$fav_offset = 0; - -$fav_options = array( - 'relationship_guid' => $fav_user_guid, - 'relationship'=>'flags_content', - 'limit' => $fav_pages_num, - 'full_view' => FALSE, - 'view_type_toggle' => FALSE, - 'pagination' => FALSE, - 'order_by'=>'e.time_updated desc', - 'direction'=>'ASC', - 'offset'=>$fav_offset, - 'type'=>'object' -); - -$fav_entities = elgg_get_entities_from_relationship($fav_options); -$fav_count = elgg_get_entities_from_relationship_count($fav_options); -$fav_title = elgg_view_title(elgg_echo("favorites:items")); - -echo elgg_view_entity_list( - $fav_entities, - $fav_count, - $fav_offset, - $fav_options['limit'], - $fav_options['full_view'], - $fav_options['view_type_toggle'], - $fav_options['pagination'] -); diff --git a/views/default/widgets/favorites/edit.php b/views/default/widgets/favorites/edit.php deleted file mode 100755 index 3394f22c2..000000000 --- a/views/default/widgets/favorites/edit.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -if (!isset($vars['entity']->pages_num)) { - $vars['entity']->pages_num = 4; -} - -$params = array( - 'name' => 'params[pages_num]', - 'value' => $vars['entity']->pages_num, - 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), -); -$dropdown = elgg_view('input/dropdown', $params); - -?> -<div> - <?php echo elgg_echo('favorites:numbertodisplay'); ?>: - <?php echo $dropdown; ?> -</div> |