예제 #1
0
    function make()
    {
        global $mainframe;
        $url = wysiwygPro::stripTrailingSlash($mainframe->isAdmin() ? $mainframe->getSiteURL() : JURI::base());
        $tpl = new wproTemplate();
        //$tpl->templates = $this->template->templates;
        $tpl->bulkAssign(array('nodes' => $this->nodes, 'UID' => 'treeUI' . $this->uid, 'editorURL' => $url . '/plugins/editors/wysiwygPro3/wysiwygPro/', 'themeURL' => $url . '/plugins/editors/wysiwygPro3/wysiwygPro/themes/default/wysiwygpro/', 'width' => $this->width, 'height' => $this->height));
        $output = $tpl->fetch(WPRO_DIR . 'core/tpl/UITree.tpl.php');
        //if ($this->uid==1) {
        $output = '<script type="text/javascript" src="' . $url . '/plugins/editors/wysiwygPro3/wysiwygPro/core/js/COOLjsTreePro/cooltreepro.js"></script>
			<script type="text/javascript" src="' . $url . '/plugins/editors/wysiwygPro3/wysiwygPro/core/js/COOLjsTreePro/tree_format.js"></script>' . $output;
        //}
        return $output;
    }