diff --git a/application/language/en-GB/config_lang.php b/application/language/en-GB/config_lang.php index 158a93cb3..bdf7af024 100644 --- a/application/language/en-GB/config_lang.php +++ b/application/language/en-GB/config_lang.php @@ -135,6 +135,11 @@ $lang["config_general_configuration"] = "General Configuration"; $lang["config_giftcard_number"] = "Gift Card Number"; $lang["config_giftcard_random"] = "Generate Random"; $lang["config_giftcard_series"] = "Generate in Series"; +$lang["config_image_allowed_file_types"] = "Allowed file types"; +$lang["config_image_max_height_tooltip"] = "Maximum allowed height of image uploads in pixels (px)."; +$lang["config_image_max_size_tooltip"] = "Maximum allowed file size of image uploads in kilobytes (kb)."; +$lang["config_image_max_width_tooltip"] = "Maximum allowed width of image uploads in pixels (px)."; +$lang["config_image_restrictions"] = "Image Upload Restrictions"; $lang["config_include_hsn"] = "Include Support for HSN Codes"; $lang["config_info"] = "Information"; $lang["config_info_configuration"] = "Shop Information"; diff --git a/application/language/en-US/config_lang.php b/application/language/en-US/config_lang.php index 8f89e8bdb..e7d9ea4c6 100644 --- a/application/language/en-US/config_lang.php +++ b/application/language/en-US/config_lang.php @@ -135,6 +135,11 @@ $lang["config_general_configuration"] = "General Configuration"; $lang["config_giftcard_number"] = "Gift Card Number"; $lang["config_giftcard_random"] = "Generate Random"; $lang["config_giftcard_series"] = "Generate in Series"; +$lang["config_image_allowed_file_types"] = "Allowed file types"; +$lang["config_image_max_height_tooltip"] = "Maximum allowed height of image uploads in pixels (px)."; +$lang["config_image_max_size_tooltip"] = "Maximum allowed file size of image uploads in kilobytes (kb)."; +$lang["config_image_max_width_tooltip"] = "Maximum allowed width of image uploads in pixels (px)."; +$lang["config_image_restrictions"] = "Image Upload Restrictions"; $lang["config_include_hsn"] = "Include Support for HSN Codes"; $lang["config_info"] = "Information"; $lang["config_info_configuration"] = "Store Information"; diff --git a/application/views/configs/general_config.php b/application/views/configs/general_config.php index e84edcfc7..77882894a 100644 --- a/application/views/configs/general_config.php +++ b/application/views/configs/general_config.php @@ -25,14 +25,14 @@ 'value' => $this->config->item('default_sales_discount'))); ?> 'default_sales_discount_type', - 'name' => 'default_sales_discount_type', - 'value' => 1, + 'id' => 'default_sales_discount_type', + 'name' => 'default_sales_discount_type', + 'value' => 1, 'data-toggle' => 'toggle', - 'data-size' => 'normal', - 'data-onstyle' => 'success', - 'data-on' => ''.$this->config->item('currency_symbol').'', - 'data-off' => '%', + 'data-size' => 'normal', + 'data-onstyle' => 'success', + 'data-on' => ''.$this->config->item('currency_symbol').'', + 'data-off' => '%', 'checked' => $this->config->item('default_sales_discount_type'))); ?> @@ -122,9 +122,80 @@ $this->lang->line('config_left'), 'center' => $this->lang->line('config_center'), - 'right' => $this->lang->line('config_right') - ), - $this->config->item('notify_horizontal_position'), array('class' => 'form-control input-sm')); ?> + 'right' => $this->lang->line('config_right')), + $this->config->item('notify_horizontal_position'), array('class' => 'form-control input-sm')); ?> + + + + + +
+ lang->line('config_image_restrictions'), 'image_restrictions', array('class' => 'control-label col-xs-2')); ?> +
+
+
+
+ + 'max_image_width', + 'id' => 'max_image_width', + 'class' => 'form-control input-sm required', + 'type' => 'number', + 'min' => 128, + 'max' => 3840, + 'value' => $this->config->item('max_image_width'), + 'data-toggle' => 'tooltip', + 'data-placement' => 'top', + 'title' => $this->lang->line('config_image_max_width_tooltip'))); + ?> +
+
+
+
+ + 'max_image_height', + 'id' => 'max_image_height', + 'class' => 'form-control input-sm required', + 'type' => 'number', + 'min' => 128, + 'max' => 3840, + 'value' => $this->config->item('max_image_height'), + 'data-toggle' => 'tooltip', + 'data-placement' => 'top', + 'title' => $this->lang->line('config_image_max_height_tooltip'))); + ?> +
+
+
+
+ + 'max_image_size', + 'id' => 'max_image_size', + 'class' => 'form-control input-sm required', + 'type' => 'number', + 'min' => 128, + 'max' => 2048, + 'value' => $this->config->item('max_image_size'), + 'data-toggle' => 'tooltip', + 'data-placement' => 'top', + 'title' => $this->lang->line('config_image_max_size_tooltip'))); + ?> +
+
+
+
+ lang->line('config_image_allowed_file_types');?> + 'image_allowed_types', + 'class'=>'selectpicker show-menu-arrow', + 'data-none-selected-text'=>$this->lang->line('common_none_selected_text'), + 'data-selected-text-format'=>'count > 1', + 'data-style'=>'btn-default btn-sm', + 'data-width'=>'100%')); + ?> +
@@ -138,7 +209,7 @@ 'id' => 'gcaptcha_enable', 'value' => 'gcaptcha_enable', 'checked' => $this->config->item('gcaptcha_enable'))); ?> -   +