Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function afterItemRendered($row){
public function setItemPlaceholder($phs, $obj){
/* We use the internal phpThumb class to set the custom thumbnail */
$fileName = str_replace(' ', '_', $obj->get('name'));
$mask = $fileName .'-'. $phs['width'] .'x'. $phs['height'] .'-zc.png';
$mask = $fileName .'-'. $phs['width'] .'x'. $phs['height'] .'-zc.jpg';
$file = $obj->getCacheDir() . $mask;
if(!file_exists($file)){
$original = $this->controller->config['images_path'] . $obj->get('filename');
Expand All @@ -142,7 +142,7 @@ public function setItemPlaceholder($phs, $obj){
'jpegQuality' => 90,
));
$thumb->adaptiveResize($phs['width'], $phs['height']);
$thumb->save($file, 'png');
$thumb->save($file, 'jpg');
}
$phs['thumbnail'] = $obj->getCacheDir(false) . $mask;

Expand Down
7 changes: 7 additions & 0 deletions core/components/cliche/lexicon/cs/mgr.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,10 @@
$_lang['cliche.no_preview'] = 'Bez náhledu';
// $_lang['cliche.saving_msg'] = 'Saving, please Wait...';
$_lang['cliche.saving_msg'] = 'Ukládání, momentíček...';
// $_lang['cliche.save_new_order'] = 'Save new order';
$_lang['cliche.save_new_order'] = 'Uložit nové pořadí';


/* AlbumSelect TV */
// $_lang['cliche.album_management'] = 'Manage album';
$_lang['cliche.album_management'] = 'Spravovat album';