{{ header }}{{ column_left }}
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
            <div class="form-inline pull-right">
                {% if stores %}
                    <select class="form-control" onChange="location='{{ module_link }}&store_id='+$(this).val()">
                        {% for store in stores %}
                            {% if store.store_id == store_id %}
                                <option value="{{ store.store_id }}" selected="selected">{{ store.name }}</option>
                            {% else %}
                                <option value="{{ store.store_id }}">{{ store.name }}</option>
                            {% endif %}
                        {% endfor %}
                    </select>
                {% endif %}
                <button id="save_and_stay" data-toggle="tooltip" title="{{ button_save_and_stay }}"
                        class="btn btn-success"><i class="fa fa-save"></i></button>
                <button type="submit" form="form" data-toggle="tooltip" title="{{ button_save }}"
                        class="btn btn-primary"><i class="fa fa-save"></i></button>
                <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i
                            class="fa fa-reply"></i></a>
            </div>
            <h1>{{ heading_title }} {{ version }}</h1>
            <ul class="breadcrumb">
                {% for breadcrumb in breadcrumbs %}
                    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
                {% endfor %}
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        {% if not pro %}
            <div class="notify alert alert-info">{{text_pro}}</div>
        {% endif %}
        {% if error.warning %}
            <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ error.warning }}
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>
        {% endif %}
        {% if success %}
            <div class="alert alert-success"><i class="fa fa-exclamation-circle"></i> {{ success }}
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            </div>
        {% endif %}
        {% if d_shopunity %}
            <div class="d_shopunity_update"></div>
            <script src="view/javascript/d_shopunity/d_shopunity_widget.js" type="text/javascript"></script>
            <script type="text/javascript">
            var d_shopunity_update = jQuery.extend(true, {}, d_shopunity_widget);
            d_shopunity_update.init({
            class: '.d_shopunity_update',
            token: '{{token}}',
            extension_id: 'd_blog_module',
            action: 'loadUpdate'
            });
            </script>
        {% endif %}
        {% if not pro and d_shopunity %}
        <div class="row">
            <div class="col-md-9">
        {% endif %}
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3>
                </div>
                <div class="panel-body">
                            <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form"
                                  class="form-horizontal">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a href="#tab_setting" data-toggle="tab">
                                            <span class="fa fa-cog"></span>
                                            {{ tab_setting }}
                                        </a></li>
                                    <li><a href="#tab_category" data-toggle="tab">
                                            <span class="fa fa-list"></span>
                                            {{ tab_category }}
                                        </a></li>
                                    <li><a href="#tab_post" data-toggle="tab">
                                            <span class="fa fa-file-text-o"></span>
                                            {{ tab_post }}
                                        </a></li>
                                    <li><a href="#tab_post_thumb" data-toggle="tab">
                                            <span class="fa fa-files-o"></span>
                                            {{ tab_post_thumb }}
                                        </a></li>
                                    <li><a href="#tab_review" data-toggle="tab">
                                            <span class="fa fa-comment"></span>
                                            {{ tab_review }}
                                        </a></li>
                                    <li><a href="#tab_review_thumb" data-toggle="tab">
                                            <span class="fa fa-comments"></span>
                                            {{ tab_review_thumb }}
                                        </a></li>
                                    <li><a href="#tab_author" data-toggle="tab">
                                            <span class="fa fa-user"></span>
                                            {{ tab_author }}
                                        </a></li>
                                    <li><a href="#tab_design" data-toggle="tab">
                                            <span class="fa fa-paint-brush"></span>
                                            {{ tab_design }}
                                        </a></li>
{#                                        <li><a href="#tab_demo" data-toggle="tab">#}
{#                                            <span class="fa fa-info-circle"></span>#}
{#                                            {{ tab_demo }}#}
{#                                        </a></li>#}
                                    <li class="hidden"><a href="#tab_instruction" data-toggle="tab">
                                            <span class="fa fa-graduation-cap"></span>
                                            {{ tab_instruction }}
                                        </a></li>
                                </ul>

                                <div class="tab-content">

                                    <div class="tab-pane active" id="tab_setting">

                                        <div class="tab-body">
                                            {% if d_blog_module_status %}
                                                <div class="form-group">
                                                    <div class="col-lg-3 col-md-3 col-sm-6">
                                                        <a href="{{ menu_post }}">
                                                            <div class="tile">
                                                                <div class="tile-body"><i class="fa fa-file-text-o"></i>
                                                                    <h4 class="pull-right">{{ text_menu_post }}</h4>
                                                                </div>
                                                            </div>
                                                        </a>
                                                    </div>
                                                    <div class="col-lg-3 col-md-3 col-sm-6">
                                                        <a href="{{ menu_category }}">
                                                            <div class="tile">
                                                                <div class="tile-body"><i class="fa fa-list"></i>
                                                                    <h4 class="pull-right">{{ text_menu_category }}</h4>
                                                                </div>
                                                            </div>
                                                        </a>
                                                    </div>
                                                    <div class="col-lg-3 col-md-3 col-sm-6">
                                                        <a href="{{ menu_review }}">
                                                            <div class="tile">
                                                                <div class="tile-body"><i class="fa fa-comments"></i>
                                                                    <h4 class="pull-right">{{ text_menu_review }}</h4>
                                                                </div>
                                                            </div>
                                                        </a>
                                                    </div>
                                                    <div class="col-lg-3 col-md-3 col-sm-6">
                                                        <a href="{{ menu_author }}">
                                                            <div class="tile">
                                                                <div class="tile-body">
                                                                    <i class="fa fa-user"></i>
                                                                    <h4 class="pull-right">{{ text_menu_author }}</h4>
                                                                </div>
                                                            </div>
                                                        </a>
                                                    </div>
                                                </div>
                                            {% endif %}

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_status">{{ entry_status }}</label>
                                                <div class="col-sm-10">
                                                    {% if twig_support and event_support %}
                                                        <input type="hidden" name="{{ codename }}_status" value="0"/>
                                                        <input type="checkbox" class="switcher"
                                                               data-label-text="{{ text_enabled }}" id="input_status"
                                                               name="d_blog_module_status"
                                                               {% if d_blog_module_status %}checked="checked"{% endif %}
                                                               value="1"/>
                                                    {% endif %}
                                                    {% if not twig_support %}
                                                        <div class="alert alert-info">
                                                            <div class="row">
                                                                <div class="col-md-10">{{ help_twig_support }} </div>
                                                                <div class="col-md-2"><a href="{{ install_twig_support }}"
                                                                                         class="btn btn-info btn-block">{{ text_install_twig_support }}</a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    {% endif %}
                                                    {% if not event_support %}
                                                        <div class="alert alert-info">
                                                            <div class="row">
                                                                <div class="col-md-10">{{ help_event_support }} </div>
                                                                <div class="col-md-2"><a href="{{ install_event_support }}"
                                                                                         class="btn btn-info btn-block">{{ text_install_event_support }}</a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    {% endif %}
                                                </div>
                                            </div><!-- //status -->

                                            
                                        </div>
                                    </div>
                                    <div class="tab-pane " id="tab_category">
                                        <div class="tab-body">

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_select">{{ entry_category_main_category_id }}</label>
                                                <div class="col-sm-10">
                                                    <select name="{{ codename }}_setting[category][main_category_id]"
                                                            id="input_select" class="form-control m-b">
                                                        {% for category in categories %}
                                                            <option value="{{ category.category_id }}" {% if category.category_id == setting.category.main_category_id %} selected="selected" {% endif %}>{{ category.title }}</option>
                                                        {% endfor %}
                                                    </select>
                                                    <div class="bs-callout bs-callout-warning">
                                                        {{ help_home_category }}
                                                    </div>
                                                </div>
                                            </div>{# //select #}

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_category_layout_type">{{ entry_category_layout_type }}</label>
                                                <div class="col-sm-10">
                                                    <div class="btn-group colors" data-toggle="buttons">
                                                        {% for layout_type in layout_types %}
                                                            <label class="btn btn-default {% if setting.category.layout_type and layout_type.id == setting.category.layout_type %}active{% endif %}"
                                                                   data-toggle="tooltip" data-html="true"
                                                                   title="{{ layout_type.description|e('html') }}">
                                                                <input type="radio"
                                                                       name="{{ codename }}_setting[category][layout_type]"
                                                                       value="{{ layout_type.id }}" autocomplete="off"
                                                                       {% if setting.category.layout_type and layout_type.id == setting.category.layout_type %}checked{% endif %}> {{ layout_type.name }}
                                                            </label>
                                                        {% endfor %}
                                                    </div>
                                                </div>
                                            </div>{# //status #}


                                            <div class="form-group" id="category_layout">
                                                <label class="col-sm-2 control-label"
                                                       for="input_category_layout">{{ entry_category_layout }}</label>
                                                <div class="col-sm-10 ">
                                                    <div class="input">

                                                        {% for layout in setting.category.layout %}

                                                            <div class="input-group m-b">
                                                            <select name="{{ codename }}_setting[category][layout][]"
                                                                    class="form-control">
                                                                {% for col in cols %}
                                                                    <option value="{{ col }}" {% if layout == col %} selected="selected" {% endif %}>{{ col }}</option>
                                                                {% endfor %}
                                                            </select>
                                                            <span class="input-group-btn">
                                                    <button class="btn btn-default remove">{{ button_remove }}</button>
                                                </span>
                                                            </div>{# /input-group #}

                                                        {% endfor %}
                                                    </div>
                                                    <button class="btn btn-default add m-b">{{ button_add }}</button>
                                                    <div class="bs-callout bs-callout-warning">
                                                        {{ help_layout }}
                                                    </div>
                                                </div>
                                                <script type="text" id="template_input_category_layout">
                                            <div class="input-group m-b">
                                                    <select name="{{ codename }}_setting[category][layout][]" class="form-control">
                                                        {% for col in cols %}
                                                           <option value="{{ col }}">{{ col }}</option>
                                                        {% endfor %}
                                                    </select>

                                                  <span class="input-group-btn">
                                                    <button class="btn btn-default remove" >{{ button_remove }}</button>
                                                  </span>
                                            </div>

                                                </script>
                                                <script>
                                                    var $category_layout = $('#category_layout');
                                                    $(document).on('click', '#category_layout .add', function (e) {

                                                        var html = $('#template_input_category_layout').html();
                                                        $category_layout.find('.input').append(html);
                                                        e.preventDefault();
                                                    })
                                                    $(document).on('click', '#category_layout .remove', function (e) {
                                                        $(this).parents('.input-group').remove()
                                                        e.preventDefault();
                                                    })

                                                </script>
                                            </div>


                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_category_post_page_limit }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text"
                                                           name="{{ codename }}_setting[category][post_page_limit]"
                                                           value="{{ setting.category.post_page_limit }}"
                                                           placeholder="{{ entry_category_post_page_limit }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //post_page_limit -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_category_image_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[category][image_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_category_image_display"
                                                           name="{{ codename }}_setting[category][image_display]" {% if setting.category.image_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_category_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[category][image_width]"
                                                               value="{{ setting.category.image_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[category][image_height]"
                                                               value="{{ setting.category.image_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_category_sub_category_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[category][sub_category_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_category_sub_category_display"
                                                           name="{{ codename }}_setting[category][sub_category_display]" {% if setting.category.sub_category_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->


                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_select">{{ entry_category_sub_category_col }}</label>
                                                <div class="col-sm-10">
                                                    <select name="{{ codename }}_setting[category][sub_category_col]"
                                                            id="input_category_sub_category_col" class="form-control">
                                                        {% for col in cols %}
                                                            <option value="{{ col }}" {% if setting.category.sub_category_col == col %} selected="selected" {% endif %}>{{ col }}</option>
                                                        {% endfor %}
                                                    </select>
                                                </div>
                                            </div><!-- //select -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_category_sub_category_image }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[category][sub_category_image]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_category_sub_category_image"
                                                           name="{{ codename }}_setting[category][sub_category_image]" {% if setting.category.sub_category_image %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_category_sub_category_post_count }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[category][sub_category_post_count]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_category_sub_category_post_count"
                                                           name="{{ codename }}_setting[category][sub_category_post_count]" {% if setting.category.sub_category_post_count %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_category_sub_category_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[category][sub_category_image_width]"
                                                               value="{{ setting.category.sub_category_image_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[category][sub_category_image_height]"
                                                               value="{{ setting.category.sub_category_image_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_limited_post_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[category][limited_post_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_limited_post_display"
                                                           name="{{ codename }}_setting[category][limited_post_display]" {% if setting.category.limited_post_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_main_post_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[category][main_post_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_main_post_display"
                                                           name="{{ codename }}_setting[category][main_post_display]" {% if setting.category.main_post_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                        </div>
                                    </div>
                                    <div class="tab-pane " id="tab_post">
                                        <div class="tab-body">

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_image_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[post][image_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_image_display"
                                                           name="{{ codename }}_setting[post][image_display]" {% if setting.post.image_display == '1' %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_post_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text" name="{{ codename }}_setting[post][image_width]"
                                                               value="{{ setting.post.image_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text" name="{{ codename }}_setting[post][image_height]"
                                                               value="{{ setting.post.image_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_popup_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[post][popup_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_popup_display"
                                                           name="{{ codename }}_setting[post][popup_display]" {% if setting.post.popup_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_post_popup_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text" name="{{ codename }}_setting[post][popup_width]"
                                                               value="{{ setting.post.popup_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text" name="{{ codename }}_setting[post][popup_height]"
                                                               value="{{ setting.post.popup_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_author_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[post][author_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_author_display"
                                                           name="{{ codename }}_setting[post][author_display]" {% if setting.post.author_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_date_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[post][date_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}" id="input_post_date_display"
                                                           name="{{ codename }}_setting[post][date_display]" {% if setting.post.date_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_date_format }}</label>
                                                <div class="col-sm-10">
                                                    {% for language in languages %}
                                                        <div id="post_date_format{{ language.language_id }}" class="input-group">
                                                            <label class="input-group-addon"  title="{{ language.name }}"><img src="{{ language.flag }}" title="{{ language.name }}" /></label>
                                                            <input type="text" name="{{ codename }}_setting[post][date_format][{{ language.language_id }}]" value="{{ setting.post.date_format[language.language_id] }}  " class="form-control" >
                                                        </div>
                                                    {% endfor %}
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_review_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[post][review_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_review_display"
                                                           name="{{ codename }}_setting[post][review_display]" {% if setting.post.review_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_rating_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[post][rating_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_rating_display"
                                                           name="{{ codename }}_setting[post][rating_display]" {% if setting.post.rating_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                             <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_tag_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post][tag_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_tag_display"
                                                           name="{{ codename }}_setting[post][tag_display]"
                                                           {% if setting.post.tag_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_category_label_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post][category_label_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_category_label_display"
                                                           name="{{ codename }}_setting[post][category_label_display]" {% if setting.post.category_label_display %} checked="checked" {% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_post_short_description_length }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text"
                                                           name="{{ codename }}_setting[post][short_description_length]"
                                                           value="{{ setting.post.short_description_length }}"
                                                           placeholder="{{ entry_post_short_description_length }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //text -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_style_short_description_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post][style_short_description_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_style_short_description_display"
                                                           name="{{ codename }}_setting[post][style_short_description_display]"
                                                           {% if setting.post.style_short_description_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                    <div class="bs-callout bs-callout-warning m-t">
                                                        {{ help_style_short_description_display }}
                                                    </div>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_nav_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[post][nav_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}" id="input_post_nav_display"
                                                           name="{{ codename }}_setting[post][nav_display]"
                                                           {% if setting.post.nav_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_nav_same_category }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post][nav_same_category]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_nav_same_category"
                                                           name="{{ codename }}_setting[post][nav_same_category]"
                                                           {% if setting.post.nav_same_category %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->
                                        </div>
                                    </div>
                                    <div class="tab-pane " id="tab_post_thumb">
                                        <div class="tab-body">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_post_thumb_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[post_thumb][image_width]"
                                                               value="{{ setting.post_thumb.image_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[post_thumb][image_height]"
                                                               value="{{ setting.post_thumb.image_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_post_thumb_title_length }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text"
                                                           name="{{ codename }}_setting[post_thumb][title_length]"
                                                           value="{{ setting.post_thumb.title_length }}"
                                                           placeholder="{{ entry_post_thumb_title_length }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //text -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_post_thumb_short_description_length }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text"
                                                           name="{{ codename }}_setting[post_thumb][short_description_length]"
                                                           value="{{ setting.post_thumb.short_description_length }}"
                                                           placeholder="{{ entry_post_thumb_short_description_length }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //text -->

                                            <div class="form-group hidden">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_post_thumb_description_length }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text"
                                                           name="{{ codename }}_setting[post_thumb][description_length]"
                                                           value="{{ setting.post_thumb.description_length }}"
                                                           placeholder="{{ entry_post_thumb_description_length }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //text -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_category_label_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][category_label_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_category_label_display"
                                                           name="{{ codename }}_setting[post_thumb][category_label_display]"
                                                           {% if setting.post_thumb.category_label_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_author_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][author_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_author_display"
                                                           name="{{ codename }}_setting[post_thumb][author_display]"
                                                           {% if setting.post_thumb.author_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_date_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][date_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_date_display"
                                                           name="{{ codename }}_setting[post_thumb][date_display]"
                                                           {% if setting.post_thumb.date_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_date_format }}</label>
                                                <div class="col-sm-10">
                                                    {% for language in languages %}
                                                        <div id="post_thumb_date_format{{ language.language_id }}" class="input-group">
                                                            <label class="input-group-addon"  title="{{ language.name }}"><img src="{{ language.flag }}" title="{{ language.name }}" /></label>
                                                            <input type="text" name="{{ codename }}_setting[post_thumb][date_format][{{ language.language_id }}]" value="{{ setting.post_thumb.date_format[language.language_id] }}  " class="form-control" >
                                                        </div>
                                                    {% endfor %}
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_rating_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][rating_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_rating_display"
                                                           name="{{ codename }}_setting[post_thumb][rating_display]"
                                                           {% if setting.post_thumb.rating_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_description_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][description_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_description_display"
                                                           name="{{ codename }}_setting[post_thumb][description_display]"
                                                           {% if setting.post_thumb.description_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_tag_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][tag_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_tag_display"
                                                           name="{{ codename }}_setting[post_thumb][tag_display]"
                                                           {% if setting.post_thumb.tag_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_views_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][views_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_views_display"
                                                           name="{{ codename }}_setting[post_thumb][views_display]"
                                                           {% if setting.post_thumb.views_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_review_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][review_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_review_display"
                                                           name="{{ codename }}_setting[post_thumb][review_display]"
                                                           {% if setting.post_thumb.review_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_post_thumb_read_more_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[post_thumb][read_more_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_post_thumb_read_more_display"
                                                           name="{{ codename }}_setting[post_thumb][read_more_display]"
                                                           {% if setting.post_thumb.read_more_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_post_thumb_animate">{{ entry_post_thumb_animate }}</label>
                                                <div class="col-sm-10">
                                                    <select name="{{ codename }}_setting[post_thumb][animate]"
                                                            id="input_post_thumb_animate" class="form-control">
                                                        {% for animate in animations %}
                                                            <option value="{{ animate }}"
                                                                    {% if setting.post_thumb.animate and animate == setting.post_thumb.animate %}selected="selected"{% endif %}>{{ animate }}</option>
                                                        {% endfor %}
                                                    </select>
                                                </div>
                                            </div><!-- //status -->
                                        </div>
                                    </div>
                                    <div class="tab-pane " id="tab_review">
                                        <div class="tab-body">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_guest }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[review][guest]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}" id="input_review_guest"
                                                           name="{{ codename }}_setting[review][guest]"
                                                           {% if setting.review.guest %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_social_login }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[review][social_login]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_social_login"
                                                           name="{{ codename }}_setting[review][social_login]"
                                                           {% if setting.review.social_login %}checked="checked"{% endif %}
                                                           value="1"/>
                                                    <div class="bs-callout bs-callout-warning m-t">
                                                        {{ help_review_social_login }}
                                                    </div>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_review_page_limit }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text" name="{{ codename }}_setting[review][page_limit]"
                                                           value="{{ setting.review.page_limit }}"
                                                           placeholder="{{ entry_review_page_limit }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //text -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_rating_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[review][rating_display]" value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_rating_display"
                                                           name="{{ codename }}_setting[review][rating_display]"
                                                           {% if setting.review.rating_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_customer_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[review][customer_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_customer_display"
                                                           name="{{ codename }}_setting[review][customer_display]"
                                                           {% if setting.review.customer_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_moderate }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden" name="{{ codename }}_setting[review][moderate]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}" id="input_review_moderate"
                                                           name="{{ codename }}_setting[review][moderate]"
                                                           {% if setting.review.moderate %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_image_user_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[review][image_user_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_thumb_image_display"
                                                           name="{{ codename }}_setting[review][image_user_display]"
                                                           {% if setting.review.image_user_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_review_image_limit }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text" name="{{ codename }}_setting[review][image_limit]"
                                                           value="{{ setting.review.image_limit }}"
                                                           placeholder="{{ entry_review_image_limit }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //text -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_review_upload_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[review][image_upload_width]"
                                                               value="{{ setting.review.image_upload_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[review][image_upload_height]"
                                                               value="{{ setting.review.image_upload_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->
                                        </div>
                                    </div>
                                    <div class="tab-pane " id="tab_review_thumb">
                                        <div class="tab-body">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_review_thumb_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[review_thumb][image_width]"
                                                               value="{{ setting.review_thumb.image_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[review_thumb][image_height]"
                                                               value="{{ setting.review_thumb.image_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_review_thumb_no_image }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text" name="{{ codename }}_setting[review_thumb][no_image]"
                                                           value="{{ setting.review_thumb.no_image }}"
                                                           placeholder="{{ entry_review_thumb_no_image }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //text -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_thumb_date_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[review_thumb][date_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_thumb_date_display"
                                                           name="{{ codename }}_setting[review_thumb][date_display]"
                                                           {% if setting.review_thumb.date_display == 1 %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_thumb_image_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[review_thumb][image_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_thumb_image_display"
                                                           name="{{ codename }}_setting[review_thumb][image_display]"
                                                           {% if setting.review_thumb.image_display == 1 %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_thumb_rating_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[review_thumb][rating_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_thumb_rating_display"
                                                           name="{{ codename }}_setting[review_thumb][rating_display]"
                                                           {% if setting.review_thumb.rating_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->


                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_review_thumb_image_user_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[review_thumb][image_user_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_review_thumb_image_display"
                                                           name="{{ codename }}_setting[review_thumb][image_user_display]"
                                                           {% if setting.review_thumb.image_user_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_review_user_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[review_thumb][image_user_width]"
                                                               value="{{ setting.review_thumb.image_user_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[review_thumb][image_user_height]"
                                                               value="{{ setting.review_thumb.image_user_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->
                                        </div>
                                    </div>

                                    <div class="tab-pane " id="tab_author">
                                        <div class="tab-body">

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_category_layout_type">{{ entry_author_layout_type }}</label>
                                                <div class="col-sm-10">
                                                    <div class="btn-group colors" data-toggle="buttons">
                                                        {% for  layout_type in layout_types %}
                                                            <label class="btn btn-default {% if setting.author.layout_type and layout_type.id == setting.author.layout_type %}active{% endif %}"
                                                                   data-toggle="tooltip" data-html="true"
                                                                   title="{{ layout_type.description|e('html') }}">
                                                                <input type="radio"
                                                                       name="{{ codename }}_setting[author][layout_type]"
                                                                       value="{{ layout_type.id }}" autocomplete="off"
                                                                       {% if setting.author.layout_type and layout_type.id == setting.author.layout_type %}checked{% endif %}> {{ layout_type.name }}
                                                            </label>
                                                        {% endfor %}
                                                    </div>
                                                </div>
                                            </div><!-- //status -->

                                            <div class="form-group" id="author_layout">
                                                <label class="col-sm-2 control-label"
                                                       for="input_author_layout">{{ entry_author_layout }}</label>
                                                <div class="col-sm-10 ">
                                                    <div class="input">

                                                        {% for layout in setting.author.layout %}

                                                            <div class="input-group m-b">
                                                                <select name="{{ codename }}_setting[author][layout][]"
                                                                        class="form-control">
                                                                    {% for col in cols %}
                                                                        <option value="{{ col }}" {% if layout == col %} selected="selected" {% endif %}>{{ col }}</option>
                                                                    {% endfor %}
                                                                </select>
                                                                <span class="input-group-btn">
                                                    <button class="btn btn-default remove">{{ button_remove }}</button>
                                                </span>
                                                            </div><!-- /input-group -->

                                                        {% endfor %}
                                                    </div>
                                                    <button class="btn btn-default add m-b">{{ button_add }}</button>
                                                    <div class="bs-callout bs-callout-warning">
                                                        {{ help_layout }}
                                                    </div>
                                                </div>
                                                <script type="text" id="template_input_author_layout">
                                            <div class="input-group m-b">
                                                    <select name="{{ codename }}_setting[author][layout][]" class="form-control">
                                                        {% for col in cols %}
                                                        <option value="{{ col }}">{{ col }}</option>
                                                        {% endfor %}
                                                    </select>

                                                  <span class="input-group-btn">
                                                    <button class="btn btn-default remove" >{{ button_remove }}</button>
                                                  </span>
                                            </div>

                                                </script>
                                                <script>
                                                    var $author_layout = $('#author_layout');
                                                    $(document).on('click', '#author_layout .add', function (e) {
                                                        var html = $('#template_input_author_layout').html();
                                                        $author_layout.find('.input').append(html);
                                                        e.preventDefault();
                                                    })
                                                    $(document).on('click', '#author_layout .remove', function (e) {
                                                        $(this).parents('.input-group').remove()
                                                        e.preventDefault();
                                                    })

                                                </script>
                                            </div>


                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_author_post_page_limit }}</label>
                                                <div class="col-sm-10">
                                                    <input type="text"
                                                           name="{{ codename }}_setting[author][post_page_limit]"
                                                           value="{{ setting.author.post_page_limit }}"
                                                           placeholder="{{ entry_author_post_page_limit }}"
                                                           class="form-control"/>
                                                </div>
                                            </div><!-- //post_page_limit -->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_author_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[author][image_width]"
                                                               value="{{ setting.author.image_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[author][image_height]"
                                                               value="{{ setting.author.image_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //author_image -->

                                            <div class="form-group hidden">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_author_category_display }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[author][category_display]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_author_category_display"
                                                           name="{{ codename }}_setting[author][category_display]"
                                                           {% if setting.author.category_display %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->


                                            <div class="form-group hidden">
                                                <label class="col-sm-2 control-label"
                                                       for="input_select">{{ entry_author_category_col }}</label>
                                                <div class="col-sm-10">
                                                    <select name="{{ codename }}_setting[author][category_col]"
                                                            id="input_author_category_col" class="form-control">
                                                        {% for  col in cols %}
                                                            <option value="{{ col }}" {% if setting.author.category_col == col %} selected="selected" {% endif %}>{{ col }}</option>
                                                        {% endfor %}
                                                    </select>
                                                </div>
                                            </div><!-- //select -->

                                            <div class="form-group hidden">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_author_category_image }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[author][category_image]" value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_author_category_image"
                                                           name="{{ codename }}_setting[author][category_image]"
                                                           {% if setting.author.category_image %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group hidden">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_author_category_post_count }}</label>
                                                <div class="col-sm-10">
                                                    <input type="hidden"
                                                           name="{{ codename }}_setting[author][category_post_count]"
                                                           value="0"/>
                                                    <input type="checkbox" class="switcher"
                                                           data-label-text="{{ text_enabled }}"
                                                           id="input_author_category_post_count"
                                                           name="{{ codename }}_setting[author][category_post_count]"
                                                           {% if setting.author.category_post_count %}checked="checked"{% endif %}
                                                           value="1"/>
                                                </div>
                                            </div><!-- //checkbox -->

                                            <div class="form-group hidden">
                                                <label class="col-sm-2 control-label"
                                                       for="input_text">{{ entry_author_category_image_size }}</label>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_width }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[author][category_image_width]"
                                                               value="{{ setting.author.category_image_width }}"
                                                               placeholder="{{ text_width }}" class="form-control"/>
                                                    </div>


                                                </div>
                                                <div class="col-sm-5">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">{{ text_height }}</span>
                                                        <input type="text"
                                                               name="{{ codename }}_setting[author][category_image_height]"
                                                               value="{{ setting.author.category_image_height }}"
                                                               placeholder="{{ text_height }}" class="form-control"/>
                                                    </div>
                                                </div>
                                            </div><!-- //category_image -->
                                        </div>
                                    </div>
                                    <div class="tab-pane " id="tab_design">
                                        <div class="tab-body">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_theme">{{ entry_theme }}</label>
                                                <div class="col-sm-10">
                                                    <select name="{{ codename }}_setting[theme]" id="input_theme"
                                                            class="form-control">
                                                        {% for  theme in themes %}
                                                            <option value="{{ theme }}"
                                                                    {% if theme == setting.theme %}selected="selected"{% endif %}>{{ theme }}</option>
                                                        {% endfor %}
                                                    </select>
                                                </div>
                                            </div><!-- //status -->
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_admin_style">{{ entry_admin_style }}</label>
                                                <div class="col-sm-10">
                                                    <select name="{{ codename }}_setting[admin_style]"
                                                            id="input_select_admin_side" class="form-control m-b">
                                                        {% for style in admin_styles %}
                                                            <option value="{{ style }}"
                                                                {% if style == setting.admin_style %} selected="selected" {% endif %}>
                                                                {{ style }}</option>
                                                        {% endfor %}
                                                    </select>

                                                </div>
                                            </div><!-- //admin_style -->
                                            <div class="form-group">
                                                <label class="control-label col-sm-2">{{ entry_design_custom_style }}</label>
                                                <div class="col-sm-10">
                                                    <textarea class="form-control"
                                                              name="{{ codename }}_setting[design][custom_style]"
                                                              style="height:150px;">{{ setting.design.custom_style }}</textarea>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label"
                                                       for="input_checkbox">{{ entry_enabled_ssl_url }}</label>
                                                <div class="col-sm-10">
                                                    <div class="bs-callout bs-callout-warning m-t">
                                                        {{ help_enabled_ssl_url }}
                                                    </div>
                                                    <div class="input-group m-b">
                                                        <input type="text" class="form-control"
                                                               name="{{ codename }}_setting[design][ssl_url]"
                                                               value="{{ setting.design.ssl_url }}"/>
                                                        <div class="input-group-btn">
                                                            <a class="btn btn-primary"
                                                               id="enable_ssl_url">{{ button_enabled_ssl }}</a>
                                                        </div>
                                                    </div>
                                                    <div id="notification_enable_ssl_url"
                                                         class="alert alert-success hide">{{ success_enabled_ssl }}</div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- <div class="tab-pane" id="tab_instruction" >
                                <div class="tab-body">{{ text_instruction }}</div>
                            </div> -->
                            <div class="tab-pane" id="tab_demo" >
                            {% for demo in demos %}
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"
                                           for="install_demo_data">{{ entry_install_demo_data }} {{ demo.text }}</label>
                                    <div class="col-sm-10 notification-install-demo-data">
                                        <div class="alert alert-warning"  style="overflow: inherit;">
                                            <div class="row">
                                                <div class="col-md-9">{{ demo.description }} </div>
                                                <div class="col-md-3"><a data-href="{{ demo.install }}" class="btn btn-warning btn-block install-demo-data">{{ button_install_demo_data }} {{ demo.text }}</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                {% endfor %}
                            </div>
                                </div>
                            </form>
                            <div style="text-align: center; padding: 30px;">{{text_powered_by}}</div>
                            {% if ads %}                   
                    {% endif %}                    
                </div>
            </div>
        </div>
        {% if not pro and d_shopunity %}
        <div class="col-md-3">
            <div class="d_shopunity_widget"></div>
            <script src="view/javascript/d_shopunity/d_shopunity_widget.js" type="text/javascript"></script>
            <script type="text/javascript">
                var d_shopunity_widget = jQuery.extend(true, {}, d_shopunity_widget);
                d_shopunity_widget.init({
                    class: '.d_shopunity_widget',
                    token: '{{token}}',
                    extension_id: '{{extension_id}}'
                    })
            </script>
        </div>
    </div>
    </div>
    {% endif %}
</div>
<script type="text/javascript"><!--
    // sorting fields


    $(function () {

        //checkbox
        $(".switcher[type='checkbox").bootstrapSwitch({
            'onColor': 'success',
            'labelWidth': '50',
            'onText': '{{ text_yes }}',
            'offText': '{{ text_no }}',
        });


        $(document).on('click', '#save_and_stay', function () {


            $.ajax({
                type: 'post',
                url: $('#form').attr('action') + '&save',
                data: $('#form').serialize(),
                beforeSend: function () {
                    $('#form').fadeTo('slow', 0.5);
                },
                complete: function () {
                    $('#form').fadeTo('slow', 1);
                },
                success: function (response) {
                    console.log(response);
                }
            });
        });

        $('body').on('click', '.install-demo-data', function () {
            var install = $(this).data('href');
            var $notification = $(this).parents('.notification-install-demo-data');
            bootbox.confirm("{{ warning_install_demo_data }}", function (result) {
                console.log('');

                if (result) {
                    $.ajax({
                        url: install,
                        type: 'post',
                        dataType: 'json',

                        beforeSend: function () {
                            $('#form').fadeTo('slow', 0.5);
                        },

                        complete: function () {
                            $('#form').fadeTo('slow', 1);
                        },

                        success: function (json) {
                            $notification.find('.alert').remove();

                            if (json.error) {
                                $notification.html('<div class="alert alert-danger">' + json.error + '</div>')
                            }

                            if (json.success) {
                                $notification.html('<div class="alert alert-success">' + json.success + '</div>')
                            }
                        }
                    });
                }
            });

        });

        $('body').on('click', '#enable_ssl_url', function () {
            var ssl_url = $(this).parents('.input-group').find('input[name$=\'[ssl_url]\']').val();
            $.ajax({
                url: '{{ enabled_ssl_url }}',
                type: 'post',
                dataType: 'json',
                data: 'ssl_url=' + ssl_url,

                beforeSend: function () {
                    $('#form').fadeTo('slow', 0.5);
                },

                complete: function () {
                    $('#form').fadeTo('slow', 1);
                },

                success: function (json) {
                    $('#notification_enable_ssl_url').removeClass('hide')
                }
            });
            return 0;
        });
    });
    //--></script>


{{ footer }}