getGUID(); $tags = $file->tags; $title = $file->title; $desc = $file->description; $owner = $vars['entity']->getOwnerEntity(); $friendlytime = friendly_time($vars['entity']->time_created); $mime = $file->mimetype; if (get_context() == "search") { if (get_input('search_viewtype') == "gallery") { /****************************************************************************** * * Gallery view of an album object * * This is called when looking at page of albums (index.php). * * *****************************************************************************/ //get album cover if one was set if ($file->cover) $album_cover = 'thumbnail'; else $album_cover = 'new album'; ?> '.$title.'

'; $info .= "

username}\">{$owner->name} {$friendlytime}"; $numcomments = elgg_count_comments($file); if ($numcomments) $info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")"; $info .= "

"; $icon = "getURL()}\">" . elgg_view("tidypics/icon", array('album' => true, 'size' => 'small')) . ""; echo elgg_view_listing($icon, $info); } } else { /****************************************************************************** * * Individual view of an album object * * This is called when getting a listing of the photos in an album * * *****************************************************************************/ $page = get_input("page"); list($album_placeholder, $album_id, $album_title) = split("/", $page); $photo_ratings = get_plugin_setting('photo_ratings', 'tidypics'); if ($photo_ratings == "enabled") add_submenu_item( elgg_echo("tidypics:highestrated"), $CONFIG->wwwroot . "pg/photos/highestrated/group:" . $album_id, 'photos'); ?>
'.autop($desc).'
'; // display the simple image views. Uses: via 'object/image.php' $count = get_entities("object","image", $file_guid, '', 999); //build array for back | next links $_SESSION['image_sort'] = array(); if(count($count) > 0) { foreach($count as $image){ array_push($_SESSION['image_sort'], $image->guid); } echo list_entities("object","image", $file_guid, 24, false); } else { echo elgg_echo('image:none'); } ?>
$tags));?>
name; ?>

'; } // end of individual album view ?>