Commit c2e12d0c76f7c9b606c28f6999bf113cbf0829ed
1 parent
c391db3d
Category seo text
Showing
3 changed files
with
8 additions
and
4 deletions
Show diff stats
components/artboximage/ArtboxImageHelper.php
| @@ -58,7 +58,7 @@ | @@ -58,7 +58,7 @@ | ||
| 58 | * @return string | 58 | * @return string |
| 59 | * @see Html::img() | 59 | * @see Html::img() |
| 60 | */ | 60 | */ |
| 61 | - public static function getImage($file, $preset, $imgOptions = [], $quality = 65, $lazy = false) | 61 | + public static function getImage($file, $preset, $imgOptions = [], $quality = 90, $lazy = false) |
| 62 | { | 62 | { |
| 63 | $preset_alias = is_array($preset) ? array_keys($preset)[ 0 ] : null; | 63 | $preset_alias = is_array($preset) ? array_keys($preset)[ 0 ] : null; |
| 64 | $src = self::getImageSrc($file, $preset, $preset_alias, $quality); | 64 | $src = self::getImageSrc($file, $preset, $preset_alias, $quality); |
| @@ -86,7 +86,7 @@ | @@ -86,7 +86,7 @@ | ||
| 86 | * | 86 | * |
| 87 | * @return bool|string | 87 | * @return bool|string |
| 88 | */ | 88 | */ |
| 89 | - public static function getImageSrc($file, $preset, $preset_alias = null, $quality = 65) | 89 | + public static function getImageSrc($file, $preset, $preset_alias = null, $quality = 90) |
| 90 | { | 90 | { |
| 91 | if (is_string($preset)) { | 91 | if (is_string($preset)) { |
| 92 | $preset_alias = $preset; | 92 | $preset_alias = $preset; |
| @@ -141,7 +141,7 @@ | @@ -141,7 +141,7 @@ | ||
| 141 | * | 141 | * |
| 142 | * @return bool|string | 142 | * @return bool|string |
| 143 | */ | 143 | */ |
| 144 | - private static function getPresetUrl($filePath, $preset, $preset_alias, $quality = 65) | 144 | + private static function getPresetUrl($filePath, $preset, $preset_alias, $quality = 90) |
| 145 | { | 145 | { |
| 146 | $pathinfo = pathinfo($filePath); | 146 | $pathinfo = pathinfo($filePath); |
| 147 | $presetPath = $pathinfo[ 'dirname' ] . '/styles/' . strtolower($preset_alias); | 147 | $presetPath = $pathinfo[ 'dirname' ] . '/styles/' . strtolower($preset_alias); |
| @@ -176,7 +176,7 @@ | @@ -176,7 +176,7 @@ | ||
| 176 | * | 176 | * |
| 177 | * @return string | 177 | * @return string |
| 178 | */ | 178 | */ |
| 179 | - private static function createPresetImage($filePath, $preset, $preset_alias, $quality = 65) | 179 | + private static function createPresetImage($filePath, $preset, $preset_alias, $quality = 90) |
| 180 | { | 180 | { |
| 181 | $image = self::getDriver() | 181 | $image = self::getDriver() |
| 182 | ->load($filePath); | 182 | ->load($filePath); |
translation/ru/product.php
| @@ -26,4 +26,6 @@ | @@ -26,4 +26,6 @@ | ||
| 26 | 'Create Product' => 'Создать Товар', | 26 | 'Create Product' => 'Создать Товар', |
| 27 | 'Enable' => 'Доступно', | 27 | 'Enable' => 'Доступно', |
| 28 | 'Disable' => 'Отсутсвует', | 28 | 'Disable' => 'Отсутсвует', |
| 29 | + 'Update {modelClass}: ' => 'Обновить {modelClass}: ', | ||
| 30 | + 'Update' => 'Обновить', | ||
| 29 | ]; | 31 | ]; |
| 30 | \ No newline at end of file | 32 | \ No newline at end of file |
translation/ua/product.php
| @@ -26,4 +26,6 @@ | @@ -26,4 +26,6 @@ | ||
| 26 | 'Create Product' => 'Создать Товар', | 26 | 'Create Product' => 'Создать Товар', |
| 27 | 'Enable' => 'Доступно', | 27 | 'Enable' => 'Доступно', |
| 28 | 'Disable' => 'Отсутсвует', | 28 | 'Disable' => 'Отсутсвует', |
| 29 | + 'Update {modelClass}: ' => 'Оновити {modelClass}: ', | ||
| 30 | + 'Update' => 'Оновити', | ||
| 29 | ]; | 31 | ]; |
| 30 | \ No newline at end of file | 32 | \ No newline at end of file |