This commit is contained in:
Marcin Kurczewski 2013-10-22 23:40:36 +02:00
parent 328d3f833b
commit 31f07672c4
6 changed files with 17 additions and 6 deletions

View file

@ -6,8 +6,17 @@
display: inline-block; display: inline-block;
} }
.post-type-flash { .post-type-flash {
border-color: #dd5; border-color: red;
box-shadow: 0.25em 0.25em #eeb, 0.1em 0.1em 0.5em 0.1em rgba(238,238,187,0.5); }
.post-type-flash:after {
position: absolute;
right: 0;
top: 0;
width: 150px;
height: 150px;
content: ' ';
background: url('../img/thumb-overlay-swf.png');
pointer-events: none;
} }
.post:focus, .post:focus,

View file

@ -30,7 +30,8 @@
width: 100px; width: 100px;
height: 100px; height: 100px;
line-height: 100px; line-height: 100px;
background-image: url('../img/thumb-upload.png'); background-image: url('../img/thumb.png');
background-size: 100px 100px;
border: 1px solid black; border: 1px solid black;
vertical-align: middle; vertical-align: middle;
text-align: center; text-align: center;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 B

View file

@ -596,11 +596,8 @@ class PostController
if (file_exists($tmpPath)) if (file_exists($tmpPath))
$srcImage = imagecreatefrompng($tmpPath); $srcImage = imagecreatefrompng($tmpPath);
} }
if (!$srcImage)
$path = $this->config->main->mediaPath . DS . 'img' . DS . 'thumb-swf.png';
break; break;
default: default:
$path = $this->config->main->mediaPath . DS . 'img' . DS . 'thumb.png';
break; break;
} }
@ -622,6 +619,10 @@ class PostController
imagedestroy($srcImage); imagedestroy($srcImage);
imagedestroy($dstImage); imagedestroy($dstImage);
} }
else
{
$path = $this->config->main->mediaPath . DS . 'img' . DS . 'thumb.png';
}
} }
if (!is_readable($path)) if (!is_readable($path))
throw new SimpleException('Thumbnail file is not readable'); throw new SimpleException('Thumbnail file is not readable');