<commit_before><?php

namespace cmsadmin\blocks;

class LayoutBlock extends \cmsadmin\base\Block
{
    public $module = 'cmsadmin';

    public function name()
    {
        return 'Layout';
    }

    public function icon()
    {
        return 'mdi-editor-border-all';
    }

    public function config()
    {
        return [
            'vars' => [
                ['var' => 'width', 'label' => 'Breite der ersten Spalte (maximal 12 Einheiten)', 'initvalue' => 6, 'type' => 'zaa-select', 'options' =>
                    [
                        ['value' => 1, 'label' => '1'],
                        ['value' => 2, 'label' => '2'],
                        ['value' => 3, 'label' => '3'],
                        ['value' => 4, 'label' => '4'],
                        ['value' => 5, 'label' => '5'],
                        ['value' => 6, 'label' => '6'],
                        ['value' => 7, 'label' => '7'],
                        ['value' => 8, 'label' => '8'],
                        ['value' => 9, 'label' => '9'],
                        ['value' => 10, 'label' => '10'],
                        ['value' => 11, 'label' => '11'],
                    ]
                ],
            ],
            'placeholders' => [
                ['var' => 'left', 'label' => 'Links'],
                ['var' => 'right', 'label' => 'Rechts'],
            ]
        ];
    }

    public function extraVars()
    {
        return [
            'leftWidth' => $this->getVarValue('width',6),
            'rightWidth' => 12 - $this->getVarValue('width',6),
        ];
    }

    public function twigFrontend()
    {
        return '<div class="row"><div class="col-md-{{ extras.leftWidth }}">{{ placeholders.left }}</div><div class="col-md-{{ extras.rightWidth }}">{{ placeholders.right }}</div>';
    }

    public function twigAdmin()
    {
        return '';
    }

}
<commit_msg>closed row div in layout-block<commit_after><?php

namespace cmsadmin\blocks;

class LayoutBlock extends \cmsadmin\base\Block
{
    public $module = 'cmsadmin';

    public function name()
    {
        return 'Layout';
    }

    public function icon()
    {
        return 'mdi-editor-border-all';
    }

    public function config()
    {
        return [
            'vars' => [
                ['var' => 'width', 'label' => 'Breite der ersten Spalte (maximal 12 Einheiten)', 'initvalue' => 6, 'type' => 'zaa-select', 'options' =>
                    [
                        ['value' => 1, 'label' => '1'],
                        ['value' => 2, 'label' => '2'],
                        ['value' => 3, 'label' => '3'],
                        ['value' => 4, 'label' => '4'],
                        ['value' => 5, 'label' => '5'],
                        ['value' => 6, 'label' => '6'],
                        ['value' => 7, 'label' => '7'],
                        ['value' => 8, 'label' => '8'],
                        ['value' => 9, 'label' => '9'],
                        ['value' => 10, 'label' => '10'],
                        ['value' => 11, 'label' => '11'],
                    ]
                ],
            ],
            'placeholders' => [
                ['var' => 'left', 'label' => 'Links'],
                ['var' => 'right', 'label' => 'Rechts'],
            ]
        ];
    }

    public function extraVars()
    {
        return [
            'leftWidth' => $this->getVarValue('width',6),
            'rightWidth' => 12 - $this->getVarValue('width',6),
        ];
    }

    public function twigFrontend()
    {
        return '<div class="row"><div class="col-md-{{ extras.leftWidth }}">{{ placeholders.left }}</div><div class="col-md-{{ extras.rightWidth }}">{{ placeholders.right }}</div></div>';
    }

    public function twigAdmin()
    {
        return '';
    }

}

{'fraction_non_alphanumeric': 0.1968857218263394, 'fraction_numerical': 0.01741884402216944, 'mean_word_length': 1.3731997495303694, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 88, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7575208', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1080, 'n_words': 244}