{% if (setting_so_onepagecheckout_layout_setting['payment_method_status'] == 1) %}
	<div class="checkout-content checkout-payment-methods">
		{% if (error_warning) %}
			<div class="alert alert-warning warning"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}</div>
		{% endif %}
		{% if (payment_methods) %}
			<h2 class="secondary-title">{{ text_title_payment_method }}</h2>
			<div class="box-inner text-center">
				{% for payment_method in payment_methods %}
					{% if (setting_so_onepagecheckout_layout_setting[payment_method['code'] ~ '_status'] is defined and setting_so_onepagecheckout_layout_setting[payment_method['code']~'_status'] == 1) %}
						{% if payment_method['code'] == code or (not code and setting_so_onepagecheckout_layout_setting['so_onepagecheckout_default_payment'] == payment_method['code']) %}
							{% set isSelected = true %}
						{% else %}
							{% set isSelected = false %}
						{% endif %}
						<button type="button" class="btn btn-payment btn-{{ payment_method['code'] }} {% if isSelected %}active{% endif %}" title="{{ payment_method['title'] }}">
							<input class="hidden" type="radio" name="payment_method" value="{{ payment_method['code'] }}" {% if isSelected %} checked="checked" {% endif %}/>
							<img src="image/payment/{{ payment_method['code'] }}.png" class="img-responsive center-block">
							<span>{{ payment_method['title'] }}</span>
						</button>
					{% endif %}
				{% endfor %}

				<!--
                <table class="table table-responsive">
                    <tbody>
                    {% for payment_method in payment_methods %}
                        {% if (setting_so_onepagecheckout_layout_setting[payment_method['code'] ~ '_status'] is defined and setting_so_onepagecheckout_layout_setting[payment_method['code']~'_status'] == 1) %}
                            <tr>
                                <td>
                                    {% if payment_method['code'] == code or (not code and setting_so_onepagecheckout_layout_setting['so_onepagecheckout_default_payment'] == payment_method['code']) %}
                                        <input type="radio" name="payment_method" value="{{ payment_method['code'] }}" checked="checked"/>
                                    {% else %}
                                        <input type="radio" name="payment_method" value="{{ payment_method['code'] }}"/>
                                    {% endif %}
                                </td>
                                <td>
                                    {{ payment_method['title'] }}
                                </td>
                                <td align="right" width="100px">
                                    <img src="image/payment/{{ payment_method['code'] }}.png" class="img-responsive">
                                </td>
                            </tr>
                        {% endif %}
                    {% endfor %}
                    </tbody>
                </table>-->
			</div>
		{% endif %}
	</div>
{% endif %}