$sqlLimit, 'order' => 'date_added DESC') ); $title = lang('Recently Added Photos'); } break; case "featured": { $photos = get_photos( array('limit' => $sqlLimit, 'featured' => 'yes') ); $title = lang('Featured Photos'); } break; case "user": { $user = mysql_clean($_GET['username']); //Get userid from username $u = $userquery->get_user_details($user); $uid = $u['userid'] ? $u['userid'] : 'x'; if ( $uid != 'x' ) { $photos = get_photos(array('limit'=>$sqlLimit,'user'=>$uid, 'order'=>'date_added DESC')); $total_photos = $u['total_photos']; $title = "Photos uploaded by ".$user; } } break; case "views": { $photos = get_photos( array('limit' => $sqlLimit, 'order' => 'views DESC') ); $title = lang('Most Viewed Photos'); } break; case "rating": { $photos = get_photos( array('limit' => $sqlLimit, 'order' => 'rating DESC, rated_by DESC') ); $title = lang('Top Rated Photos'); } break; case "watching": { $photos = get_photos( array('limit' => $sqlLimit, 'order' => 'last_viewed DESC') ); $title = lang('Photos Being Viewed'); } break; } subtitle($title); ?> <?=cbtitle()?> <?=cbtitle()?> configs['description']?> <?=substr($photo['photo_title'],0,50)?> 'l', 'details' => $photo, 'output' => 'html', 'width' => '340') );?>


Views: – Collection:
Dimensions: – Filesize:
]]>