src/admin/widgets/Inspinia.php
private function _getBodyToolbar()
    {
        if ($this->bodyToolbar !== null) {
            Html::addCssClass($this->bodyToolbarOptions, 'widget-body-toolbar');
            $toolbars = is_string($this->bodyToolbar) ? [$this->bodyToolbar] : $this->bodyToolbar;
            foreach ($toolbars as $toolbar) {
                if (is_array($toolbar)) {
                    $body = isset($toolbar['body']) ? $toolbar['body'] : null;
                    $options = isset($toolbar['options']) ? $toolbar['options'] : [];
                    Html::addCssClass($options, 'widget-body-toolbar');
                    echo Html::tag('div', $body, $options);
                } else {
                    echo Html::tag('div', $toolbar, $this->bodyToolbarOptions);
                }
            }
        }
    }
private function _getBodyToolbar()
    {
        if ($this->bodyToolbar !== null) {
            Html::addCssClass($this->bodyToolbarOptions, 'widget-body-toolbar');
            $toolbars = is_string($this->bodyToolbar) ? [$this->bodyToolbar] : $this->bodyToolbar;
            foreach ($toolbars as $toolbar) {
                if (is_array($toolbar)) {
                    $body = isset($toolbar['body']) ? $toolbar['body'] : null;
                    $options = isset($toolbar['options']) ? $toolbar['options'] : [];
                    Html::addCssClass($options, 'widget-body-toolbar');
                    echo Html::tag('div', $body, $options);
                } else {
                    echo Html::tag('div', $toolbar, $this->bodyToolbarOptions);
                }
            }
        }
    }
private function _getBodyToolbar ( ) { if ( $ this -> bodyToolbar !== null ) { Html :: addCssClass ( $ this -> bodyToolbarOptions , 'widget-body-toolbar' ) ; $ toolbars = is_string ( $ this -> bodyToolbar ) ? [ $ this -> bodyToolbar ] : $ this -> bodyToolbar ; foreach ( $ toolbars as $ toolbar ) { if ( is_array ( $ toolbar ) ) { $ body = isset ( $ toolbar [ 'body' ] ) ? $ toolbar [ 'body' ] : null ; $ options = isset ( $ toolbar [ 'options' ] ) ? $ toolbar [ 'options' ] : [ ] ; Html :: addCssClass ( $ options , 'widget-body-toolbar' ) ; echo Html :: tag ( 'div' , $ body , $ options ) ; } else { echo Html :: tag ( 'div' , $ toolbar , $ this -> bodyToolbarOptions ) ; } } } }
Get body toolbar
Get body toolbar