<commit_before>{headLink()->appendStyleSheet('/resource/cmsAdmin/css/category.css')}
{headScript()->appendFile('/resource/cmsAdmin/js/jquery-ui/jquery-ui.min.js')}
{headScript()->appendFile('/resource/cmsAdmin/js/category.js')}

<div class="container-fluid">
    <div class="animated fadeIn">
        <div class="row">
            <div class="col-md-12">
                <div class="card">
                    <div class="card-header">
                        <strong>{#Zarządzanie treścią#}</strong>
                    </div>
                    <div class="card-body">
                        <div id="categoryTreeContainer">
                            <div id="jstree">
                                {jsTree([], $baseUrl . '/resource/cmsAdmin/js/tree.js')}
                            </div>
                        </div>
                        <div id="categoryNodeContainer">
                            <div id="categoryMessageContainer"></div>
                            <div id="categoryContentContainer">
                                {if $categoryForm}
                                    {$attributeCount = 0}
                                    {* zliczanie atrybutów *}
                                    {foreach $categoryForm->getElements() as $element}
                                    {if php_substr($element->getName(), 0 ,12) != 'cmsAttribute'}{continue}{/if}
                                    {$attributeCount++}
                                {/foreach}
                                <ul class="tabs">
                                    <li>
                                        <a href="#tab-config">Konfiguracja</a>
                                    </li>
                                    {if $attributeCount > 0}
                                        <li>
                                            <a href="#tab-content">Atrybuty</a>
                                        </li>
                                    {/if}
                                    <li>
                                        <a href="#tab-seo">SEO</a>
                                    </li>
                                    <li>
                                        <a href="#tab-advanced">Zaawansowane</a>
                                    </li>
                                    {if aclAllowed(['module' => 'cmsAdmin', 'controller' => 'categoryWidgetRelation', 'action' => 'preview'])}
                                        <li>
                                            <a href="#tab-widget">Widgety</a>
                                        </li>
                                    {/if}
                                    <li>
                                        <a class="reload-preview" href="#tab-preview">Podgląd</a>
                                    </li>
                                </ul>
                                {$categoryForm->start()}
                                <div class="tab-content clearfix" id="tab-config">
                                    {$categoryForm->getElement('cmsCategoryTypeId')}
                                    {$categoryForm->getElement('cmsCategoryTypeChanged')}
                                    {if $duplicateAlert}<span class="red">Nazwa jest zduplikowana, treść może nie wyświetlać się poprawnie</span>{/if}
                                    {$categoryForm->getElement('name')}
                                    {$categoryForm->getElement('dateStart')}
                                    {$categoryForm->getElement('dateEnd')}
                                    {$categoryForm->getElement('cacheLifetime')}
                                    {$categoryForm->getElement('active')}
                                    {$categoryForm->getElement('submit1')}
                                </div>
                                <div class="tab-content clearfix" id="tab-seo">
                                    {$categoryForm->getElement('title')}
                                    {$categoryForm->getElement('description')}
                                    {$categoryForm->getElement('customUri')}
                                    {$categoryForm->getElement('follow')}
                                    {$categoryForm->getElement('submit2')}
                                </div>
                                {if $attributeCount > 0}
                                    <div class="tab-content clearfix" id="tab-content">
                                        {foreach $categoryForm->getElements() as $element}
                                        {if php_substr($element->getName(), 0 ,12) != 'cmsAttribute'}{continue}{/if}
                                        {$element}
                                    {/foreach}
                                    {$categoryForm->getElement('submit3')}
                                </div>
                            {/if}
                            <div class="tab-content clearfix" id="tab-advanced">
                                {$categoryForm->getElement('redirectUri')}
                                {$categoryForm->getElement('mvcParams')}
                                {$categoryForm->getElement('configJson')}
                                {$categoryForm->getElement('https')}
                                {$categoryForm->getElement('blank')}
                                {$categoryForm->getElement('submit4')}
                            </div>
                            {$categoryForm->end()}
                            {$categoryId = $categoryForm->getRecord()->id}
                            {if aclAllowed(['module' => 'cmsAdmin', 'controller' => 'categoryWidgetRelation', 'action' => 'preview'])}
                                <div class="tab-content clearfix" id="tab-widget">
                                    {if aclAllowed(['module' => 'cmsAdmin', 'controller' => 'categoryWidgetRelation', 'action' => 'add'])}<a href="{@module=cmsAdmin&controller=categoryWidgetRelation&action=add&id={$categoryId}@}" class="button new-window" target="_blank"><i class="icon-plus"></i> dodaj widget</a>{/if}
                                    <div id="widget-list-container" data-category-id="{$categoryId}">
                                        {widget('cmsAdmin', 'categoryWidgetRelation', 'preview', ['categoryId' => $categoryId])}
                                    </div>
                                </div>
                            {/if}
                            <div class="tab-content clearfix" id="tab-preview">
                                <iframe id="preview-frame" src="{$categoryForm->getRecord()->getUrl()}?preview=1"></iframe>
                            </div>
                        {/if}
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="clear"></div>
<commit_msg>no message<commit_after>{headLink()->appendStyleSheet('/resource/cmsAdmin/css/category.css')}
{headScript()->appendFile('/resource/cmsAdmin/js/jquery-ui/jquery-ui.min.js')}
{headScript()->appendFile('/resource/cmsAdmin/js/category.js')}

<div class="container-fluid">
    <div class="animated fadeIn">
        <div class="row">
            <div class="col-md-4">
                <div class="card">
                    <div class="card-header">
                        <strong>{#Zarządzanie treścią#}</strong>
                    </div>
                    <div class="card-body">
                        <div id="categoryTreeContainer">
                            <div id="jstree">
                                {jsTree([], $baseUrl . '/resource/cmsAdmin/js/tree.js')}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {if $categoryForm}
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header">
                        <strong>{#Zarządzanie treścią#}</strong>
                    </div>
                    {$attributeCount = 0}
                    {* zliczanie atrybutów *}
                    {foreach $categoryForm->getElements() as $element}
                    {if php_substr($element->getName(), 0 ,12) != 'cmsAttribute'}{continue}{/if}
                    {$attributeCount++}
                    {/foreach}
                    <div class="card-body">
                        <!-- Nav tabs -->
                        <ul class="nav nav-tabs" role="tablist">
                            <li class="nav-item">
                                <a class="nav-link active" data-toggle="tab-config" href="#tab-config" role="tab">Konfiguracja</a>
                            </li>
                            {if $attributeCount > 0}
                            <li class="nav-item">
                                <a class="nav-link" data-toggle="tab-seo" href="#tab-seo" role="tab">Atrybuty</a>
                            </li>
                            {/if}
                            <li class="nav-item">
                                <a class="nav-link" data-toggle="tab-advanced" href="#tab-advanced" role="tab">Zaawansowane</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" data-toggle="tab-widget" href="#tab-widget" role="tab">Widgety</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" data-toggle="tab-preview" href="#tab-preview" role="tab">Podgląd</a>
                            </li>
                        </ul>

                        <!-- Tab panes -->
                        <div class="tab-content">
                            {$categoryForm->start()}
                            <div class="tab-pane active" id="tab-config" role="tabpanel">
                                {$categoryForm->getElement('cmsCategoryTypeId')}
                                {$categoryForm->getElement('cmsCategoryTypeChanged')}
                                {if $duplicateAlert}<span class="red">Nazwa jest zduplikowana, treść może nie wyświetlać się poprawnie</span>{/if}
                                {$categoryForm->getElement('name')}
                                {$categoryForm->getElement('dateStart')}
                                {$categoryForm->getElement('dateEnd')}
                                {$categoryForm->getElement('cacheLifetime')}
                                {$categoryForm->getElement('active')}
                                {$categoryForm->getElement('submit1')}
                            </div>
                            {if $attributeCount > 0}
                            <div class="tab-pane" id="tab-seo" role="tabpanel">
                                {foreach $categoryForm->getElements() as $element}
                                {if php_substr($element->getName(), 0 ,12) != 'cmsAttribute'}{continue}{/if}
                                {$element}
                                {/foreach}
                                {$categoryForm->getElement('submit3')}
                            </div>
                            {/if}
                            <div class="tab-pane" id="tab-advanced" role="tabpanel">
                                {$categoryForm->getElement('redirectUri')}
                                {$categoryForm->getElement('mvcParams')}
                                {$categoryForm->getElement('configJson')}
                                {$categoryForm->getElement('https')}
                                {$categoryForm->getElement('blank')}
                                {$categoryForm->getElement('submit4')}
                            </div>
                            {$categoryForm->end()}
                            {$categoryId = $categoryForm->getRecord()->id}
                            {if aclAllowed(['module' => 'cmsAdmin', 'controller' => 'categoryWidgetRelation', 'action' =>
                            'preview'])}
                            <div class="tab-pane" id="tab-widget" role="tabpanel">
                                {if aclAllowed(['module' => 'cmsAdmin', 'controller' => 'categoryWidgetRelation', 'action'
                                => 'add'])}<a
                                        href="{@module=cmsAdmin&controller=categoryWidgetRelation&action=add&id={$categoryId}@}"
                                        class="button new-window" target="_blank"><i class="icon-plus"></i> dodaj widget</a>{/if}
                                <div id="widget-list-container" data-category-id="{$categoryId}">
                                    {widget('cmsAdmin', 'categoryWidgetRelation', 'preview', ['categoryId' => $categoryId])}
                                </div>
                            </div>
                            <div class="tab-pane" id="tab-preview" role="tabpanel">
                                <iframe id="preview-frame" src="{$categoryForm->getRecord()->getUrl()}?preview=1"></iframe>
                            </div>
                            {/if}
                        </div>
                    </div>
                </div>
            </div>
            {/if}
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.13292892982850296, 'fraction_numerical': 0.00232157567587808, 'mean_word_length': 0.988978254393804, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 237, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 75, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '364332', 'n_tokens_mistral': 3105, 'n_tokens_neox': 2925, 'n_words': 449}