Example #1
0
 protected function getTileClasses(PinholePhoto $photo)
 {
     $classes = array();
     if (!$photo->isPublished()) {
         $classes[] = 'insensitive';
     }
     if ($photo->private) {
         $classes[] = 'private';
     }
     return implode(' ', $classes);
 }
Example #2
0
 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);
 }