<?php

N2Loader::import('libraries.form.element.text');
N2Loader::import('libraries.browse.browse');

class N2ElementFolders extends N2ElementText
{

    function fetchElement() {

        N2ImageHelper::initLightbox();

        N2JS::addInline("new N2Classes.FormElementFolders('" . $this->_id . "' );");

        return parent::fetchElement();
    }

    protected function post() {
        return N2Html::tag('a', array(
            'href'  => '#',
            'class' => 'n2-form-element-clear'
        ), N2Html::tag('i', array('class' => 'n2-i n2-it n2-i-empty n2-i-grey-opacity'), '')) . '<a id="' . $this->_id . '_button" class="n2-form-element-button n2-h5 n2-uc" href="#">' . n2_('Folders') . '</a>';
    }
}
