function make()
 {
     $tpl = new wproTemplate();
     $tpl->templates = $this->template->templates;
     $tpl->bulkAssign(array('selected' => $this->selected, 'options' => $this->options, 'label' => $this->label, 'UID' => 'ddUI' . $this->uid, 'onChange' => $this->onChange));
     $output = $tpl->fetch(WPRO_DIR . 'core/tpl/UIDropDown.tpl.php');
     if ($this->uid == 1) {
         $output = '<script type="text/javascript" src="core/js/wproUISelect_src.js"></script>' . $output;
     }
     return $output;
 }
 function make()
 {
     $tpl = new wproTemplate();
     $tpl->templates = $this->template->templates;
     $tpl->bulkAssign(array('name' => $this->name, 'color' => $this->color, 'UID' => 'cpUI' . $this->uid, 'onChange' => $this->onChange, 'showInput' => $this->showInput, 'accessKey' => $this->accessKey));
     $output = $tpl->fetch(WPRO_DIR . 'core/tpl/UIColorPicker.tpl.php');
     if ($this->uid == 1) {
         $output = '<script type="text/javascript" src="core/js/wproUIColorPicker_src.js"></script>' . $output;
     }
     return $output;
 }
 function make()
 {
     global $DIALOG, $EDITOR;
     $tpl = new wproTemplate();
     $tpl->templates = $this->template->templates;
     $tpl->bulkAssign(array('headContent' => &$DIALOG->headContent, 'EDITOR' => &$EDITOR, 'name' => $this->name, 'UID' => 'irUI' . $this->uid, 'options' => $this->options, 'onChange' => $this->onChange, 'selected' => $this->selected, 'width' => $this->width, 'height' => $this->height));
     $output = $tpl->fetch(WPRO_DIR . 'core/tpl/UIImageRadio.tpl.php');
     if ($this->uid == 1) {
         $output = '<script type="text/javascript" src="core/js/wproUIImageRadio_src.js"></script>' . $output;
     }
     return $output;
 }
    function make()
    {
        $tpl = new wproTemplate();
        $tpl->templates = $this->template->templates;
        $tpl->bulkAssign(array('nodes' => $this->nodes, 'UID' => 'treeUI' . $this->uid, 'editorURL' => $this->template->editorURL, 'themeURL' => $this->template->themeURL, 'width' => $this->width, 'height' => $this->height));
        $output = $tpl->fetch(WPRO_DIR . 'core/tpl/UITree.tpl.php');
        if ($this->uid == 1) {
            $this->template->addOutputFilter('wproTemplate_UITree_outputfilter');
            $output = '<script type="text/javascript" src="core/js/COOLjsTreePro/cooltreepro.js"></script>
			<script type="text/javascript" src="core/js/COOLjsTreePro/tree_format.js"></script>' . $output;
        }
        return $output;
    }
 function make()
 {
     // close any unclosed tabs
     /*$o = array_reverse($this->options);
     		foreach ($o as $k=>$v) {
     			if ($v == '##capture##') {
     				$this->options[$label] = ob_get_contents();
     				ob_end_clean();
     			}
     		}*/
     $tpl = new wproTemplate();
     $tpl->templates = $this->template->templates;
     $tpl->bulkAssign(array('selected' => $this->selected, 'options' => $this->options, 'attributes' => $this->attributes, 'onswap' => $this->onswap, 'UID' => 'tUI' . $this->uid));
     $output = $tpl->fetch(WPRO_DIR . 'core/tpl/UITabbed.tpl.php');
     if ($this->uid == 1) {
         $output = '<script type="text/javascript" src="core/js/wproUITabbed_src.js"></script>' . $output;
     }
     return $output;
 }
    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;
    }
 function display()
 {
     global $EDITOR, $WPRO_EDITOR_URL;
     $this->_setDefaults();
     require_once WPRO_DIR . 'core/libs/wproTemplate.class.php';
     if (empty($this->options)) {
         $this->options = array(array('type' => 'submit', 'name' => 'ok', 'value' => $this->getLang('ok', 'OK')), array('type' => 'submit', 'name' => 'cancel', 'value' => $this->getLang('cancel', 'Cancel')));
     }
     if (empty($EDITOR)) {
         //exit ($_SERVER['REQUEST_URI']);
         $iframeDialogs = false;
         $frameID = 0;
         if (defined('WPRO_IN_ROUTE')) {
             $editorURL = wproRoute::getEditorURL();
         } else {
             $editorURL = $WPRO_EDITOR_URL;
         }
         $themeURL = $this->varReplace(WPRO_THEME_URL, array('EDITOR_URL' => $WPRO_EDITOR_URL)) . WPRO_THEME . '/wysiwygpro';
         $tpl = new wproTemplate();
         $tpl->path = WPRO_DIR . 'core/tpl/';
         if (isset($_GET['iframe'])) {
             $iframeDialogs = true;
         }
         if (isset($_GET['dialogFrameID'])) {
             $iframeDialogs = true;
             $frameID = intval($_GET['dialogFrameID']);
         }
         if (isset($_GET['dialogOpenerID'])) {
             $openerID = intval($_GET['dialogOpenerID']);
         } else {
             $openerID = null;
         }
     } else {
         require_once WPRO_DIR . 'core/libs/wproDialog.class.php';
         $DIALOG = new wproDialog();
         $tpl =& $DIALOG->template;
         $DIALOG->bodyInclude = WPRO_DIR . 'core/tpl/messageExitBody.tpl.php';
         $DIALOG->title = $this->title;
         $DIALOG->options = $this->options;
         $DIALOG->chromeless = $this->chromeless;
         if (isset($_GET['iframe'])) {
             $iframeDialogs = true;
         }
         if (isset($_GET['dialogFrameID'])) {
             $iframeDialogs = true;
             $DIALOG->frameID = intval($_GET['dialogFrameID']);
         }
         if (isset($_GET['dialogOpenerID'])) {
             $DIALOG->openerID = intval($_GET['dialogOpenerID']);
         }
         $editorURL = $EDITOR->editorURL;
         $themeURL = $EDITOR->themeFolderURL . $EDITOR->theme . '/wysiwygpro';
         $iframeDialogs = $EDITOR->iframeDialogs;
         $frameID = $DIALOG->frameID;
         $openerID = $DIALOG->openerID;
     }
     $tpl->bulkAssign(array('iframeDialogs' => $iframeDialogs, 'frameID' => $frameID, 'openerID' => $openerID, 'editorURL' => $editorURL, 'themeURL' => $themeURL, 'hidden' => $this->hidden, 'jsAction' => $this->jsAction, 'action' => $this->action, 'title' => $this->title, 'icon' => $this->icon, 'options' => $this->options, 'msg' => $this->msg));
     /**  
      * Echo the results.  
      */
     if (empty($EDITOR)) {
         $tpl->display('messageExit.tpl.php');
     } else {
         $DIALOG->display();
     }
     exit;
 }