Helper/Bootstrap/Box.php
public function render()
    {
        $this->addCssClass('box');
        $this->addCssClass('box-' . $this->getStatus(), $this->getStatus());
        $this->addCssClass('collapsed-box', $this->expandable);
        $this->addCssClass('box-solid', $this->coloredTitleBox);
        $boxTools = isset($this->badges[0]) || $this->expandable || $this->collapsable || $this->removable;
        $badges =  isset($this->badges[0]) ? $this->getBadgesHtml() : '';
        return $this
            ->html('<div id="' . $this->containerId . '">', $this->containerId)
            ->html($this->getPrepend(), $this->hasPrepend())
            ->html('<div' . $this->getEltDecorationStr() . '>')
            ->html('  <div class="box-header with-border">')
            ->html('    <div class="lg-head">', $this->largeHeader)
            ->html('    ' . $this->getIconHtml(), $this->icon)
            ->html('    <h3 class="box-title">' . $this->title . '</h3>')
            ->html('    </div>', $this->largeHeader)
            ->html('    <div class="box-tools pull-right">', $boxTools)
            ->html($badges)
            ->html('      <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>', $this->expandable)
            ->html('      <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>', $this->collapsable)
            ->html('      <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>', $this->removable)
            ->html('    </div>', $boxTools)
            ->html('    <div class="pull-right">' . $this->header . '</div>', $this->header)
            ->html('  </div>')
            ->html('  <div class="box-body' . ($this->stackContainer ? ' no-padding' : '') . '">' . $this->content . '</div>')
            ->html('  <div class="' . implode(' ', $this->footerClasses) . '">', $this->footer)
            ->html('    <div class="pull-right">', $this->footer && $this->footerAlignRight)
            ->html($this->footer, $this->footer)
            ->html('    </div>', $this->footer && $this->footerAlignRight)
            ->html('  </div>', $this->footer)
            ->html('</div>')
            ->html($this->getAppend(), $this->hasAppend())
            ->html('</div>', $this->containerId)
            ->getHtml();
    }
public function render()
    {
        $this->addCssClass('box');
        $this->addCssClass('box-' . $this->getStatus(), $this->getStatus());
        $this->addCssClass('collapsed-box', $this->expandable);
        $this->addCssClass('box-solid', $this->coloredTitleBox);
        $boxTools = isset($this->badges[0]) || $this->expandable || $this->collapsable || $this->removable;
        $badges =  isset($this->badges[0]) ? $this->getBadgesHtml() : '';
        return $this
            ->html('<div id="' . $this->containerId . '">', $this->containerId)
            ->html($this->getPrepend(), $this->hasPrepend())
            ->html('<div' . $this->getEltDecorationStr() . '>')
            ->html('  <div class="box-header with-border">')
            ->html('    <div class="lg-head">', $this->largeHeader)
            ->html('    ' . $this->getIconHtml(), $this->icon)
            ->html('    <h3 class="box-title">' . $this->title . '</h3>')
            ->html('    </div>', $this->largeHeader)
            ->html('    <div class="box-tools pull-right">', $boxTools)
            ->html($badges)
            ->html('      <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>', $this->expandable)
            ->html('      <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>', $this->collapsable)
            ->html('      <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>', $this->removable)
            ->html('    </div>', $boxTools)
            ->html('    <div class="pull-right">' . $this->header . '</div>', $this->header)
            ->html('  </div>')
            ->html('  <div class="box-body' . ($this->stackContainer ? ' no-padding' : '') . '">' . $this->content . '</div>')
            ->html('  <div class="' . implode(' ', $this->footerClasses) . '">', $this->footer)
            ->html('    <div class="pull-right">', $this->footer && $this->footerAlignRight)
            ->html($this->footer, $this->footer)
            ->html('    </div>', $this->footer && $this->footerAlignRight)
            ->html('  </div>', $this->footer)
            ->html('</div>')
            ->html($this->getAppend(), $this->hasAppend())
            ->html('</div>', $this->containerId)
            ->getHtml();
    }
public function render ( ) { $ this -> addCssClass ( 'box' ) ; $ this -> addCssClass ( 'box-' . $ this -> getStatus ( ) , $ this -> getStatus ( ) ) ; $ this -> addCssClass ( 'collapsed-box' , $ this -> expandable ) ; $ this -> addCssClass ( 'box-solid' , $ this -> coloredTitleBox ) ; $ boxTools = isset ( $ this -> badges [ 0 ] ) || $ this -> expandable || $ this -> collapsable || $ this -> removable ; $ badges = isset ( $ this -> badges [ 0 ] ) ? $ this -> getBadgesHtml ( ) : '' ; return $ this -> html ( '<div id="' . $ this -> containerId . '">' , $ this -> containerId ) -> html ( $ this -> getPrepend ( ) , $ this -> hasPrepend ( ) ) -> html ( '<div' . $ this -> getEltDecorationStr ( ) . '>' ) -> html ( '  <div class="box-header with-border">' ) -> html ( '    <div class="lg-head">' , $ this -> largeHeader ) -> html ( '    ' . $ this -> getIconHtml ( ) , $ this -> icon ) -> html ( '    <h3 class="box-title">' . $ this -> title . '</h3>' ) -> html ( '    </div>' , $ this -> largeHeader ) -> html ( '    <div class="box-tools pull-right">' , $ boxTools ) -> html ( $ badges ) -> html ( '      <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>' , $ this -> expandable ) -> html ( '      <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>' , $ this -> collapsable ) -> html ( '      <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>' , $ this -> removable ) -> html ( '    </div>' , $ boxTools ) -> html ( '    <div class="pull-right">' . $ this -> header . '</div>' , $ this -> header ) -> html ( '  </div>' ) -> html ( '  <div class="box-body' . ( $ this -> stackContainer ? ' no-padding' : '' ) . '">' . $ this -> content . '</div>' ) -> html ( '  <div class="' . implode ( ' ' , $ this -> footerClasses ) . '">' , $ this -> footer ) -> html ( '    <div class="pull-right">' , $ this -> footer && $ this -> footerAlignRight ) -> html ( $ this -> footer , $ this -> footer ) -> html ( '    </div>' , $ this -> footer && $ this -> footerAlignRight ) -> html ( '  </div>' , $ this -> footer ) -> html ( '</div>' ) -> html ( $ this -> getAppend ( ) , $ this -> hasAppend ( ) ) -> html ( '</div>' , $ this -> containerId ) -> getHtml ( ) ; }
Render the box at the end of configuration
@return string
Render the box at the end of configuration