protected function getTileClasses(PinholePhoto $photo) { $classes = array(); if (!$photo->isPublished()) { $classes[] = 'insensitive'; } if ($photo->private) { $classes[] = 'private'; } return implode(' ', $classes); }
protected function getTileClasses(PinholePhoto $photo) { $classes = array(); if ($photo->private && $photo->isPublished()) { $classes[] = 'published-private'; } elseif ($photo->private) { $classes[] = 'private'; } elseif ($photo->isPublished()) { $classes[] = 'published'; } return implode(' ', $classes); }