app/lib/widget/TAccordion.class.php
/**
     * Shows the widget at the screen
     */
Shows the widget at the screen
Shows the widget at the screen
public function show()
    {
        foreach ($this->elements as $child)
        {
            $title = new TElement('button');
            $title->class = 'taccordion';
            $title->add($child[0]);
            $content = new TElement('div');
            $content->class = 'taccordion-content';
            $content->add($child[1]);
            parent::add($title);
            parent::add($content);
        }
        TStyle::importFromFile('app/lib/include/taccordion/taccordion.css');
        TScript::importFromFile('app/lib/include/taccordion/taccordion.js');
        parent::show();
    }
public function show ( ) { foreach ( $ this -> elements as $ child ) { $ title = new TElement ( 'button' ) ; $ title -> class = 'taccordion' ; $ title -> add ( $ child [ 0 ] ) ; $ content = new TElement ( 'div' ) ; $ content -> class = 'taccordion-content' ; $ content -> add ( $ child [ 1 ] ) ; parent :: add ( $ title ) ; parent :: add ( $ content ) ; } TStyle :: importFromFile ( 'app/lib/include/taccordion/taccordion.css' ) ; TScript :: importFromFile ( 'app/lib/include/taccordion/taccordion.js' ) ; parent :: show ( ) ; }
Shows the widget at the screen
Shows the widget at the screen