Example #1
0
 public function listAlbums()
 {
     $albums = Album::getAlbumsOrdered();
     $users = User::all();
     $roles = Role::getRolesOrdered();
     $this->layout->title = trans('messages.Album listings');
     $this->layout->main = View::make('users.dashboard')->nest('content', 'albums.list', compact('albums', 'users', 'roles'));
 }
Example #2
0
 public function showPhotosByDate()
 {
     $posts = Post::getPostsOrdered();
     $posts->getEnvironment()->setViewName('pagination::simple');
     $checked_albums = Album::getNames();
     $year = Input::get('year');
     $month = Input::get('month');
     $day = Input::get('day');
     $photos = Photo::getPhotoYoungerThanDay($year, $month, $day);
     $album_ids = Photo::getAlbumIdYoungerThanDay($year, $month, $day);
     $users = User::all();
     $albums = Album::getAlbumsOrdered();
     $users_opt = User::getUserOptions();
     $tags = Tag::getTagsOrdered();
     $this->layout->title = trans('messages.PLBD');
     $this->layout->main = View::make('home', ['recentPosts' => $posts, 'allTags' => $tags])->nest('content', 'photos', compact('photos', 'users', 'albums', 'checked_albums', 'users_opt', 'year', 'month', 'day', 'album_ids'));
 }
Example #3
0
 public function listPhotosByDate()
 {
     $checked_albums = Album::getNames();
     $year = Input::get('year');
     $month = Input::get('month');
     $day = Input::get('day');
     $photos = Photo::getPhotoYoungerThanDay($year, $month, $day);
     $users = User::all();
     $albums = Album::getAlbumsOrdered();
     $users_opt = User::getUserOptions();
     $this->layout->title = trans('messages.PLBD');
     $this->layout->main = View::make('users.dashboard')->nest('content', 'photos.list', compact('photos', 'users', 'albums', 'checked_albums', 'users_opt', 'year', 'month', 'day'));
 }