num_items; if (!isset($num_items)) $num_items = 10; $widget_group = $vars["entity"]->widget_group; if (!isset($widget_group)) $widget_group = 0; $site_categories = $vars['config']->site->categories; $widget_categorie = $vars['entity']->widget_categorie; $widget_context_mode = $vars['entity']->widget_context_mode; if (!isset($widget_context_mode)) $widget_context_mode = 'search'; elgg_set_context($widget_context_mode); $owner_albums = elgg_get_entities("object", $object_type, $widget_group, "", $num_items, 0, false); echo '
'; if ($owner_albums) { foreach($owner_albums as $album) { if($album->cover) $album_cover = '' . $album->title . ''; else $album_cover = '' . $album->title . ''; ?>
time_created);?>
getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; ?>
username) || empty($owner->username)) { echo '

' . elgg_echo('album:all') . '

'; } else { echo '

' . elgg_echo('album:more') . '

'; }*/ } /*if (can_write_to_container(0, $owner->guid)) { echo '

username . '>' . elgg_echo("album:create") . '

'; }*/ //close album_widget_container div echo "
"; ?>