diff --git a/app/helpers/PostHelper.php b/app/helpers/PostHelper.php index bd775bf..495434a 100755 --- a/app/helpers/PostHelper.php +++ b/app/helpers/PostHelper.php @@ -95,11 +95,11 @@ class PostHelper extends Rails\ActionView\Helper if ($post->width >= 3500 || $post->height >= 2600 ) $ddl_class .= " extremeimg" - elseif ($post->width >= 1920 || $post->height >= 1500 ) - $ddl_class .= " largeimg" else - $ddl_class .= " smallimg"; - + { + $ddl_class .= ($post->width > 1920 || $post->height > 1500 )? " largeimg":" smallimg"; + } + if (!empty($options['similarity'])) { $icon = ''.$post->service().''; $ddl_class .= " similar similar-directlink";