HEX
Server: LiteSpeed
System: Linux php-prod-3.spaceapp.ru 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: sarli3128 (1010)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/retile.ru/public_html/catalog/view/theme/unishop2/template/extension/module/uni_options.twig
<div class="product-thumb__option option">
	{% if product.options %}
	{% for option in product.options %}
		{% if option.type == 'checkbox' or option.type == 'select' or option.type == 'radio' or option.type == 'image' %}
			<div class="input-option{{ option.product_option_id }} option__group">
				<label class="option__group-name">{{ option.required ? '*' }} {{ option.name }}:</label>
				{% if option['type'] == 'select' %}
					<select name="option[{{ option.product_option_id }}]" class="option__select form-control">
						<option value="">{{text_select}}</option>
						{% for option_value in option.product_option_value %}
							<option value="{{ option_value.product_option_value_id }}" data-prefix="{{ option_value.price_prefix }}" data-price="{{ option_value.price_value }}" {{ option_value.ended ? ' disabled="disabled"' }}>{{ option_value.name }} {{ option_value.price ? '('~option_value.price_prefix~''~option_value.price~')' }}</option>
						{% endfor %}
					</select>
					<div class="clearfix"></div>
				{% endif %}
				{% if option.type == 'checkbox' or option.type == 'radio' or option.type == 'image' %}
					{% for option_value in option.product_option_value %}
						<label class="option__item {{ option_value.ended ? ' ended' }}" {{ option_value.price and not option_value.image and not option_value.ended ? ' data-toggle="tooltip" title="'~option_value.price_prefix~' '~option_value.price~'"' }}>
							{% if option.type == 'checkbox' %}
								<input type="checkbox" name="option[{{ option.product_option_id }}][]" value="{{ option_value.product_option_value_id }}" class="option-value-{{ option_value.product_option_value_id }}" data-prefix="{{ option_value.price_prefix }}" data-price="{{ option_value.price_value }}" {{ option_value.ended ? ' disabled="disabled"' }} />
							{% endif %}
							{% if option.type == 'radio' %}
								<input type="radio" name="option[{{ option.product_option_id }}]" value="{{ option_value.product_option_value_id }}" class="option-value-{{ option_value.product_option_value_id }}" data-prefix="{{ option_value.price_prefix }}" data-price="{{ option_value.price_value }}" {{ option_value.ended ? ' disabled="disabled"' }} />
							{% endif %}
							{% if option_value.image %}
									<img src="{{ option_value.image }}" alt="{{ option_value.name }} {{ option_value.price ? option_value.price_prefix ~ '' ~ option_value.price }}" loading="lazy" data-type="module" data-thumb="{{ option_value.small }}" class="option__img" />					
							{% else %}
								<span class="option__name">{{ option_value.name }}</span>
							{% endif %}
						</label>
					{% endfor %}
				{% endif %}
			</div>
		{% endif %}
	{% endfor %}
	{% endif %}
</div>