From 7c93ed13435554877add157ee14226aef6dff3e9 Mon Sep 17 00:00:00 2001 From: Yukimi Kazari Date: Tue, 6 Jun 2017 15:31:55 -0400 Subject: [PATCH] Updated quality logos and added ultra res icon --- app/helpers/PostHelper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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";