Example #1
1
 /**
  * Display
  *
  * @param   string  $tmpl  Template
  *
  * @return  void
  */
 public function display($tmpl = 'default')
 {
     $srcs = FabrikHelperHTML::framework();
     $app = JFactory::getApplication();
     $input = $app->input;
     FabrikHelperHTML::script($srcs);
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId($input->getInt('id', $usersConfig->get('visualizationid', $input->getInt('visualizationid', 0))));
     $visualization = $model->getVisualization();
     $pluginParams = $model->getPluginParams();
     $pluginManager = JModelLegacy::getInstance('Pluginmanager', 'FabrikModel');
     $plugin = $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->published == 0) {
         return JError::raiseWarning(500, FText::_('COM_FABRIK_SORRY_THIS_VISUALIZATION_IS_UNPUBLISHED'));
     }
     // Plugin is basically a model
     $pluginTask = $input->get('plugintask', 'render', 'request');
     // @FIXME cant set params directly like this, but I think plugin model setParams() is not right
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin = $plugin;
     $viewName = $this->getName();
     $this->addTemplatePath($this->_basePath . '/plugins/' . $this->_name . '/' . $plugin->_name . '/tmpl/' . $tmpl);
     $root = $app->isAdmin() ? JPATH_ADMINISTRATOR : JPATH_SITE;
     $this->addTemplatePath($root . '/templates/' . $app->getTemplate() . '/html/com_fabrik/visualization/' . $plugin->_name . '/' . $tmpl);
     $ab_css_file = JPATH_SITE . '/plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/template.css';
     if (JFile::exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     echo parent::display();
 }
Example #2
1
 /**
  * fetch Element 
  */
 function fetchElement($name, $values, &$node, $control_name)
 {
     $mediaPath = JURI::root() . str_replace(DS, '/', str_replace(JPATH_ROOT, '', dirname(dirname(dirname(__FILE__))))) . '/assets/';
     JHTML::stylesheet('form.css', $mediaPath);
     $attributes = $node->attributes();
     $class = isset($attributes['group']) && trim($attributes['group']) == 'end' ? 'lof-end-group' : 'lof-group';
     $title = isset($attributes['title']) ? JText::_($attributes['title']) : 'Group';
     $title = isset($attributes['title']) ? JText::_($attributes['title']) : '';
     $for = isset($attributes['for']) ? $attributes['for'] : '';
     if (isset($attributes['onoff'])) {
         // echo $control_name; die;
         // echo $name; die;
         //	echo '<pre>'.print_r($values,1); die;
         $string = '<div ' . ($title ? "" : 'style="display:none"') . '  class="' . $class . '" title="' . $for . '">';
         $checked = $values ? 'checked="checked"' : "";
         //	echo $checked; die;
         $string .= '<input type="checkbox" class="lof-onoff" id="params' . $for . '" value="" ' . $checked . ' name="' . $control_name . '[' . $for . ']" /><b>' . $title . '</b></div>';
         return $string;
     } else {
         $string = '<div ' . ($title ? "" : 'style="display:none"') . '  class="' . $class . '" title="' . $for . '">' . $title . '</div>';
         if (!defined('LOF_ADDED_TIME')) {
             $string .= '<input type="hidden" class="text_area" value="' . time() . '" id="paramsmain_lof_added_time" name="params[lof_added_time]">';
             define('LOF_ADDED_TIME', 1);
         }
     }
     if (!defined('ADD_MEDIA_CONTROL')) {
         define('ADD_MEDIA_CONTROL', 1);
         $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
         $uri = str_replace("/administrator/", "", $uri);
         JHTML::stylesheet('form.css', $uri . "/media/");
         JHTML::script('form.js', $uri . "/media/");
     }
     return $string;
 }
Example #3
0
 /**
  *  Displays the form
  * @param string $tpl   
  */
 public function _displayForm($tpl)
 {
     jimport('joomla.form.formvalidator');
     JHTML::stylesheet('fields.css', 'administrator/components/com_szavazasok/assets/');
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $user =& JFactory::getUser();
     $form = $this->get('Form');
     $lists = array();
     $editor =& JFactory::getEditor();
     //get the item
     $item =& $this->get('item');
     if (!version_compare(JVERSION, '3.0', 'lt')) {
         $form->bind(JArrayHelper::fromObject($item));
     } else {
         $form->bind($item);
     }
     $isNew = $item->id < 1;
     // Edit or Create?
     if ($isNew) {
         // initialise new record
         $item->published = 1;
     }
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $item->published);
     $this->assign('form', $form);
     $this->assignRef('lists', $lists);
     $this->assignRef('editor', $editor);
     $this->assignRef('item', $item);
     $this->assignRef('isNew', $isNew);
     parent::display($tpl);
 }
Example #4
0
 public function display($tpl = null)
 {
     JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/');
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL', false);
     JToolBarHelper::help('screen.statistics', true);
     JSubMenuHelper::addEntry(JText::_('Control Panel'), 'index2.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('Translation'), 'index2.php?option=com_joomfish&amp;task=translate.overview');
     JSubMenuHelper::addEntry(JText::_('Orphans'), 'index2.php?option=com_joomfish&amp;task=translate.orphans');
     JSubMenuHelper::addEntry(JText::_('Manage Translations'), 'index2.php?option=com_joomfish&amp;task=manage.overview', false);
     JSubMenuHelper::addEntry(JText::_('Statistics'), 'index2.php?option=com_joomfish&amp;task=statistics.overview', true);
     JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index2.php?option=com_joomfish&amp;task=languages.show', false);
     JSubMenuHelper::addEntry(JText::_('Content elements'), 'index2.php?option=com_joomfish&amp;task=elements.show', false);
     JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&amp;task=help.show', false);
     $this->panelStates = $this->get('PanelStates');
     $this->contentInfo = $this->get('ContentInfo');
     $this->publishedTabs = $this->get('PublishedTabs');
     $this->assignRef('panelStates', $this->panelStates);
     $this->assignRef('contentInfo', $this->contentInfo);
     $this->assignRef('publishedTabs', $this->publishedTabs);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
Example #5
0
 /**
  *
  * process input params
  * @return string element param
  */
 protected function getInput()
 {
     if (!defined('_JA_PARAM_HELPER')) {
         define('_JA_PARAM_HELPER', 1);
         $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
         $uri = str_replace("/administrator/", "", $uri);
         //mootools support joomla 1.7 and 2.5
         JHTML::_('behavior.framework', true);
         JHTML::stylesheet($uri . '/assets/css/japaramhelper.css');
         JHTML::script($uri . '/assets/js/japaramhelper.js');
     }
     $func = (string) $this->element['function'] ? (string) $this->element['function'] : '';
     $value = $this->value ? $this->value : (string) $this->element['default'];
     //  var_dump($func); die;
     if (substr($func, 0, 1) == '@') {
         $func = substr($func, 1);
         if (method_exists($this, $func)) {
             return $this->{$func}();
         }
     } else {
         $subtype = isset($this->element['subtype']) ? trim($this->element['subtype']) : '';
         if (method_exists($this, $subtype)) {
             return $this->{$subtype}();
         }
     }
     return;
 }
Example #6
0
 protected function getInput()
 {
     $document = JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $globalValue = $this->_getPhocaParams($this->element['name']);
     JHTML::stylesheet('administrator/components/com_phocadownload/assets/jcp/picker.css');
     $document->addScript(JURI::base(true) . '/components/com_phocadownload/assets/jcp/picker.js');
     // Initialize some field attributes.
     $size = $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
     $class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
     $maxLength = $this->element['maxlength'] ? ' maxlength="' . (int) $this->element['maxlength'] . '"' : '';
     $readonly = (string) $this->element['readonly'] == 'true' ? ' readonly="readonly"' : '';
     $disabled = (string) $this->element['disabled'] == 'true' ? ' disabled="disabled"' : '';
     // Initialize JavaScript field attributes.
     $onchange = $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
     $value = htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8');
     // TODO 1.6
     // MENU - Set Default value to "" because of saving "" value into the menu link ( use global = "")
     if ($option == "com_menus") {
         $DefaultValue = (string) $this->element['default'];
         if ($value == $DefaultValue) {
             $value = '';
         }
     }
     $html = '<input type="text" name="' . $this->name . '" id="' . $this->id . '" value="' . $value . '"' . $class . $size . $disabled . $readonly . $onchange . $maxLength . '/>';
     // Color Picker
     $nameCP = str_replace('[', '_', $this->name);
     $nameCP = str_replace(']', '', $nameCP);
     $html .= '<span style="margin-left:10px" onclick="openPicker(\'' . $nameCP . '\')"  class="picker_buttons">' . JText::_('COM_PHOCADOWNLOAD_PICK_COLOR') . '</span>';
     // MENU - Display the global value
     if ($option == "com_menus") {
         $html .= '<span style="margin-left:10px;">[</span><span style="background:#fff"> ' . $globalValue . ' </span><span>]</span>';
     }
     return $html;
 }
Example #7
0
 function display($tmpl = 'default')
 {
     FabrikHelperHTML::framework();
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId(JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))));
     $visualization = $model->getVisualization();
     $pluginParams = $model->getPluginParams();
     $pluginManager = JModel::getInstance('Pluginmanager', 'FabrikModel');
     $plugin = $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->published == 0) {
         return JError::raiseWarning(500, JText::_('COM_FABRIK_SORRY_THIS_VISUALIZATION_IS_UNPUBLISHED'));
     }
     //plugin is basically a model
     $pluginTask = JRequest::getVar('plugintask', 'render', 'request');
     // @FIXME cant set params directly like this, but I think plugin model setParams() is not right
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin = $plugin;
     $viewName = $this->getName();
     $this->addTemplatePath($this->_basePath . DS . 'plugins' . DS . $this->_name . DS . $plugin->_name . DS . 'tmpl' . DS . $tmpl);
     $this->addTemplatePath(JPATH_SITE . DS . 'templates' . DS . $app->getTemplate() . DS . 'html' . DS . 'com_fabrik' . DS . 'visualization' . DS . $plugin->_name . DS . $tmpl);
     $ab_css_file = JPATH_SITE . "/plugins/fabrik_visualization/" . $plugin->_name . "/tmpl/{$tmpl}/template.css";
     if (JFile::exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     echo parent::display();
 }
 function fetchElement($name, $value, &$node, $control_name)
 {
     t3_import('core/admin/util');
     if (!defined('_JA_THEME')) {
         define('_JA_THEME', 1);
         $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
         $uri = str_replace("/administrator", "", $uri);
         JHTML::stylesheet('jathemesettings.css', $uri . "/assets/css/");
         JHTML::script('jathemesettings.js', $uri . "/assets/js/");
     }
     $objutil = new JAT3_AdminUtil();
     $template = $objutil->get_active_template();
     $themes = $objutil->getThemes($template);
     if ($value && $themes) {
         if ((!isset($themes['core']) || isset($themes['core']) && !in_array($value, $themes['core'])) && (!isset($themes['local']) || isset($themes['local']) && !in_array($value, $themes['local']))) {
             $value = isset($themes['local']) ? $themes['local'][0] : $themes['core'][0];
         }
     }
     $layout = dirname(__FILE__) . DS . 'tmpl' . DS . 'jathemesettings.php';
     if (file_exists($layout)) {
         ob_start();
         require $layout;
         $content = ob_get_clean();
         return $content;
     }
     return '';
 }
Example #9
0
 function display($tpl = null)
 {
     global $mainframe;
     $style = $mainframe->getUserStateFromRequest('media.list.layout', 'layout', 'thumbs', 'word');
     $listStyle = "\n\t\t\t<ul id=\"submenu\">\n\t\t\t\t<li><a id=\"thumbs\" onclick=\"MediaManager.setViewType('thumbs')\">" . JText::_('Thumbnail View') . "</a></li>\n\t\t\t\t<li><a id=\"details\" onclick=\"MediaManager.setViewType('details')\">" . JText::_('Detail View') . "</a></li>\n\t\t\t</ul>\n\t\t";
     $document =& JFactory::getDocument();
     $document->setBuffer($listStyle, 'module', 'submenu');
     JHTML::_('behavior.mootools');
     $document->addScript('components/com_media/assets/mediamanager.js');
     $document->addStyleSheet('components/com_media/assets/mediamanager.css');
     JHTML::_('behavior.modal');
     $document->addScriptDeclaration("\n\t\twindow.addEvent('domready', function() {\n\t\t\tdocument.preview = SqueezeBox;\n\t\t});");
     JHTML::script('mootree.js');
     JHTML::stylesheet('mootree.css');
     JHTML::_('behavior.uploader', 'file-upload', array('onAllComplete' => 'function(){ MediaManager.refreshFrame(); }'));
     $base = str_replace("\\", "/", JPATH_ROOT);
     $js = "\n\t\t\tvar basepath = '" . $base . '/images' . "';\n\t\t\tvar viewstyle = '" . $style . "';\n\t\t";
     $document->addScriptDeclaration($js);
     /*
      * Display form for FTP credentials?
      * Don't set them here, as there are other functions called before this one if there is any file write operation
      */
     jimport('joomla.client.helper');
     $ftp = !JClientHelper::hasCredentials('ftp');
     $this->assignRef('session', JFactory::getSession());
     $this->assignRef('config', JComponentHelper::getParams('com_media'));
     $this->assignRef('state', $this->get('state'));
     $this->assign('require_ftp', $ftp);
     $this->assign('folders_id', ' id="media-tree"');
     $this->assign('folders', $this->get('folderTree'));
     // Set the toolbar
     $this->_setToolBar();
     parent::display($tpl);
     echo JHTML::_('behavior.keepalive');
 }
Example #10
0
 function display($tmpl = 'default')
 {
     FabrikHelperHTML::packageJS();
     $model =& $this->getModel();
     $usersConfig =& JComponentHelper::getParams('com_fabrik');
     $model->setId(array('id' => JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))), 'package_id' => JRequest::getVar('package_id')));
     $visualization =& $model->getVisualization();
     $pluginParams =& $model->getPluginParams();
     $pluginManager =& JModel::getInstance('Pluginmanager', 'FabrikModel');
     $plugin =& $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->state == 0) {
         return JError::raiseWarning(500, JText::_('SORRY THIS VISUALIZATION IS UNPUBLISHED'));
     }
     //plugin is basically a model
     $pluginTask = JRequest::getVar('plugintask', 'render', 'request');
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin =& $plugin;
     $viewName = $this->getName();
     $this->_setPath('template', $this->_basePath . DS . 'plugins' . DS . $this->_name . DS . $plugin->_name . DS . 'tmpl' . DS . $tmpl);
     $ab_css_file = JPATH_SITE . "/components/com_fabrik/plugins/" . $viewName . "/" . $plugin->_name . "/tmpl/{$tmpl}/template.css";
     if (file_exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'components/com_fabrik/plugins/' . $viewName . '/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     $model->getCustomJsAction();
     if (isset($this->_isMambot) && $this->_isMambot) {
         return $this->loadTemplate();
     } else {
         parent::display();
     }
 }
Example #11
0
 function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $path = PhocaGalleryPath::getPath();
     $this->tmpl['avatarpathabs'] = $path->avatar_abs . DS . 'thumbs' . DS . 'phoca_thumb_s_';
     $this->tmpl['avatarpathrel'] = $path->avatar_rel . 'thumbs/phoca_thumb_s_';
     $this->tmpl['avtrpathrel'] = $path->avatar_rel;
     JHTML::stylesheet('administrator/components/com_phocagallery/assets/phocagallery.css');
     $document =& JFactory::getDocument();
     $document->addCustomTag(PhocaGalleryRenderAdmin::renderIeCssLink(1));
     // Button
     JHTML::_('behavior.modal', 'a.modal_phocagalleryusers');
     $this->button = new JObject();
     $this->button->set('modal', true);
     $this->button->set('methodname', 'modal-button');
     //$this->button->set('link', $link);
     $this->button->set('text', JText::_('COM_PHOCAGALLERY_DISPLAY_IMAGE_DETAIL'));
     //$this->button->set('name', 'image');
     $this->button->set('modalname', 'modal_phocagalleryusers');
     $this->button->set('options', "{handler: 'image', size: {x: 200, y: 150}}");
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Example #12
0
 /**
  * Control Panel display function
  *
  * @param template $tpl
  */
 public function display($tpl = null)
 {
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('HELP_AND_HOWTO'));
     JHTML::stylesheet('jfhelp.css', 'administrator/components/com_joomfish/assets/css/');
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('HELP_AND_HOWTO'), 'help');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false);
     JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&amp;task=translate.overview');
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&amp;task=translate.orphans');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&amp;task=manage.overview');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&amp;task=statistics.overview');
     }
     JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&amp;task=languages.show');
     JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&amp;task=elements.show');
     JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&amp;task=help.show', true);
     $layout = $this->getLayout();
     if (method_exists($this, $layout)) {
         $this->{$layout}($tpl);
     }
     $helpov = $this->getHelpPathL('help.overview');
     $this->assignRef('helppath', $helpov);
     parent::display($tpl);
 }
Example #13
0
 function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     // Preprocess the list of items to find ordering divisions.
     foreach ($this->items as &$item) {
         $this->ordering[$item->catid][] = $item->id;
     }
     $this->processImages();
     JHTML::stylesheet('media/com_phocagallery/css/administrator/phocagallery.css');
     $document = JFactory::getDocument();
     //$document->addCustomTag(PhocaGalleryRenderAdmin::renderIeCssLink(1));
     $params = JComponentHelper::getParams('com_phocagallery');
     $this->tmpl['enablethumbcreation'] = $params->get('enable_thumb_creation', 1);
     $this->tmpl['enablethumbcreationstatus'] = PhocaGalleryRenderAdmin::renderThumbnailCreationStatus((int) $this->tmpl['enablethumbcreation']);
     /*$app	= JFactory::getApplication();
     		$uri		= JFactory::getURI();
     		
     		$db		    = JFactory::getDBO();*/
     $this->tmpl['notapproved'] = $this->get('NotApprovedImage');
     // Button
     JHTML::_('behavior.modal', 'a.modal_phocagalleryimgs');
     $this->button = new JObject();
     $this->button->set('modal', true);
     $this->button->set('methodname', 'modal-button');
     //$this->button->set('link', $link);
     $this->button->set('text', JText::_('COM_PHOCAGALLERY_DISPLAY_IMAGE_DETAIL'));
     //$this->button->set('name', 'image');
     $this->button->set('modalname', 'modal_phocagalleryimgs');
     $this->button->set('options', "{handler: 'image', size: {x: 200, y: 150}}");
     $this->addToolbar();
     parent::display($tpl);
 }
Example #14
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     JHtml::_('behavior.tooltip');
     JHtml::_('behavior.formvalidation');
     JHtml::_('behavior.keepalive');
     JHtml::_('formbehavior.chosen', 'select');
     JHtml::_('behavior.tooltip');
     JHtml::_('behavior.formvalidation');
     JHtml::_('behavior.keepalive');
     JHtml::_('formbehavior.chosen', 'select');
     //Frontend Changes
     $tUri = '';
     if (!$app->isAdmin()) {
         $tUri = JURI::base();
     }
     $document = JFactory::getDocument();
     $uri = JFactory::getURI();
     JHTML::stylesheet('media/com_phocadownload/css/administrator/phocadownload.css');
     $eName = $app->input->get('e_name');
     $eName = preg_replace('#[^A-Z0-9\\-\\_\\[\\]]#i', '', $eName);
     $this->t['linkcategories'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkcats&amp;tmpl=component&amp;e_name=' . $eName;
     $this->t['linkcategory'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkcat&amp;tmpl=component&amp;e_name=' . $eName;
     $this->t['linkfile'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkfile&amp;tmpl=component&amp;e_name=' . $eName;
     $this->t['linkytb'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkytb&amp;tmpl=component&amp;e_name=' . $eName;
     $this->assignRef('tmpl', $this->t);
     parent::display($tpl);
 }
    /**
     * fetch Element 
     */
    protected function getInput()
    {
        if (!defined('LOF_LOADMEDIACONTROL')) {
            define('LOF_LOADMEDIACONTROL', 1);
            $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
            $uri = str_replace("/administrator/", "", $uri);
            JHTML::stylesheet($uri . "/media/" . 'form.css');
            JHTML::script($uri . "/media/" . 'form.js');
        }
        if ($this->title == 'end_form') {
            ?>
            	<script type="text/javascript">
					var panels = $$("#module-form .pane-sliders  > .panel").fade("out").removeClass("panel").addClass("lof-panel");
					var div = new Element("div", {"class":"lof-wrapper"});
					var container = new Element("div", {"class":"lof-container"});
					container.innerHTML='<fieldset class="fs-form"><legend><?php 
            echo JText::_("Module Setting");
            ?>
</legend><div class="lof-toolbars"></div><div class="lof-fscontainer"></div></legend></fieldset>';
					var _toolbar = container.getElement(".lof-toolbars");
					var _container = container.getElement(".lof-fscontainer");
					$$("#module-form .pane-sliders").adopt(  div.adopt(container) );
					new LofForm(panels, _toolbar, _container );
				</script>
            <?php 
        }
        //    $text   = (string)$this->element['text']?(string)$this->element['text']:'';
        ///   return '<div class="lof-header">'.JText::_($text).'</div>';
    }
Example #16
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     JHTML::stylesheet('media/com_phocagallery/css/administrator/phocagallery.css');
     $this->state = $this->get('State');
     $this->item = $this->get('Item');
     $this->form = $this->get('Form');
     $this->ftp = JClientHelper::setCredentialsFromRequest('ftp');
     $this->tmpl = new StdClass();
     $model = $this->getModel();
     // Set CSS for codemirror
     JFactory::getApplication()->setUserState('editor.source.syntax', 'css');
     // New or edit
     if (!$this->form->getValue('id') || $this->form->getValue('id') == 0) {
         $this->form->setValue('source', null, '');
         $this->form->setValue('type', null, 2);
         $this->tmpl->suffixtype = JText::_('COM_PHOCAGALERY_WILL_BE_CREATED_FROM_TITLE');
     } else {
         $this->source = $model->getSource($this->form->getValue('id'), $this->form->getValue('filename'), $this->form->getValue('type'));
         $this->form->setValue('source', null, $this->source->source);
         $this->tmpl->suffixtype = '';
     }
     // Only help input form field - to display Main instead of 1 and Custom instead of 2
     if ($this->form->getValue('type') == 1) {
         $this->form->setValue('typeoutput', null, JText::_('COM_PHOCAGALLERY_MAIN_CSS'));
     } else {
         $this->form->setValue('typeoutput', null, JText::_('COM_PHOCAGALLERY_CUSTOM_CSS'));
     }
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Example #17
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     JHtml::_('behavior.tooltip');
     JHtml::_('behavior.formvalidation');
     JHtml::_('behavior.keepalive');
     JHtml::_('formbehavior.chosen', 'select');
     //Frontend Changes
     $tUri = '';
     if (!$app->isAdmin()) {
         $tUri = JURI::base();
     }
     $document = JFactory::getDocument();
     $uri =& JFactory::getURI();
     JHTML::stylesheet('media/com_phocagallery/css/administrator/phocagallery.css');
     $eName = JRequest::getVar('e_name');
     $eName = preg_replace('#[^A-Z0-9\\-\\_\\[\\]]#i', '', $eName);
     $tmpl['categories'] = $tUri . 'index.php?option=com_phocagallery&amp;view=phocagallerylinkcats&amp;tmpl=component&amp;e_name=' . $eName;
     //$tmpl['COM_PHOCAGALLERY_CATEGORY']		= 'index.php?option=com_phocagallery&amp;view=phocagallerylinkcat&amp;tmpl=component&amp;e_name='.$eName;
     $tmpl['images'] = $tUri . 'index.php?option=com_phocagallery&amp;view=phocagallerylinkimg&amp;type=2&amp;tmpl=component&amp;e_name=' . $eName;
     $tmpl['image'] = $tUri . 'index.php?option=com_phocagallery&amp;view=phocagallerylinkimg&amp;type=1&amp;tmpl=component&amp;e_name=' . $eName;
     $tmpl['switchimage'] = $tUri . 'index.php?option=com_phocagallery&amp;view=phocagallerylinkimg&amp;type=3&amp;tmpl=component&amp;e_name=' . $eName;
     $tmpl['slideshow'] = $tUri . 'index.php?option=com_phocagallery&amp;view=phocagallerylinkimg&amp;type=4&amp;tmpl=component&amp;e_name=' . $eName;
     $this->assignRef('tmpl', $tmpl);
     parent::display($tpl);
 }
Example #18
0
    function display($tmpl = 'default')
    {
        FabrikHelperHTML::framework();
        $app = JFactory::getApplication();
        $params = $app->getParams('com_fabrik');
        $document = JFactory::getDocument();
        $usersConfig = JComponentHelper::getParams('com_fabrik');
        $model = $this->getModel();
        $model->setId(JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))));
        $this->row = $model->getVisualization();
        $this->assign('params', $model->getParams());
        $pluginParams = $model->getPluginParams();
        $tmpl = $pluginParams->get('fb_gm_layout', $tmpl);
        $tmplpath = JPATH_ROOT . DS . 'plugins' . DS . 'fabrik_visualization' . DS . 'kaltura' . DS . 'views' . DS . 'kaltura' . DS . 'tmpl' . DS . $tmpl;
        $js = <<<EOT
\t\t<script type="text/javascript" >
function entryClicked ( entry_id )
{
\twindow.location = "./player.php?entry_id=" + entry_id;
}
</script>
EOT;
        $this->assignRef('data', $this->get('Data'));
        FabrikHelperHTML::addScriptDeclaration($js);
        $ab_css_file = $tmplpath . DS . "template.css";
        if (JFile::exists($ab_css_file)) {
            JHTML::stylesheet('template.css', 'plugins/fabrik_visualization/googlemap/views/googlemap/tmpl/' . $tmpl . '/', true);
        }
        $template = null;
        $this->assign('containerId', $this->get('ContainerId'));
        $this->assign('showFilters', JRequest::getInt('showfilters', 1) === 1 ? 1 : 0);
        $this->assignRef('filters', $this->get('Filters'));
        $this->_setPath('template', $tmplpath);
        echo parent::display($template);
    }
 /**
  * Method to get the field input markup.
  *
  * @return  string  The field input markup.
  */
 protected function getInput()
 {
     if (!defined('_JA_PARAM_HELPER_T3')) {
         define('_JA_PARAM_HELPER_T3', 1);
         $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
         $uri = str_replace("/administrator", "", $uri);
         $javersion = new JVersion();
         if ($javersion->RELEASE == '1.7') {
             JHtml::_('behavior.framework', true);
         } else {
             JHTML::_('behavior.mootools');
         }
         JHTML::stylesheet($uri . '/assets/css/japaramhelper.css');
         JHTML::script($uri . '/assets/js/japaramhelper.js');
     }
     $func = (string) $this->element['function'] ? (string) $this->element['function'] : '';
     $value = $this->value ? $this->value : (string) $this->element['default'];
     if (substr($func, 0, 1) == '@') {
         $func = substr($func, 1);
         if (method_exists($this, $func)) {
             return $this->{$func}();
         }
     } else {
         $subtype = isset($this->element['subtype']) ? trim($this->element['subtype']) : '';
         if (method_exists($this, $subtype)) {
             return $this->{$subtype}();
         }
     }
     return;
 }
Example #20
0
 /**
  * return - map_key, function="@map_key"
  */
 function mapkey()
 {
     $value = $this->value ? $this->value : (string) $this->element['default'];
     $paramname = $this->name;
     $id = $this->id;
     $cols = isset($this->element['cols']) && $this->element['cols'] != '' ? 'cols="' . intval($this->element['cols']) . '"' : '';
     $rows = isset($this->element['rows']) && $this->element['rows'] != '' ? 'rows="' . intval($this->element['rows']) . '"' : '';
     //LOAD ASSETS
     $plugin = new stdClass();
     $plugin->type = 'system';
     $plugin->name = 'jagooglemap';
     //popup
     JHTML::_('behavior.modal');
     //
     $path = 'plugins/' . $plugin->type . '/' . $plugin->name . '/assets/';
     JHTML::stylesheet($path . 'style.css');
     JHTML::script($path . 'script.js');
     JHTML::script($path . 'jagencode.js');
     //google map
     //$map_js = 'http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=' . $value;
     $map_js = 'https://maps.googleapis.com/maps/api/js?sensor=true&amp;key=' . $value;
     //v3
     JHTML::script($map_js);
     //
     $html = "";
     $html .= "\n\t<textarea name=\"{$paramname}\" id=\"{$id}\" {$cols} {$rows} >{$value}</textarea><br />";
     return $html;
 }
Example #21
0
 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $uri = JFactory::getURI();
     JHTML::stylesheet('media/com_phocagallery/css/administrator/phocagallery.css');
     $this->field = JRequest::getVar('field');
     $this->fce = 'phocaSelectFbAlbum_' . $this->field;
     //$eName	= JRequest::getVar('e_name');
     //$eName	= preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
     $uid = JRequest::getVar('uid', 0, '', 'int');
     $db = JFactory::getDBO();
     $query = 'SELECT a.*' . ' FROM #__phocagallery_fb_users AS a' . ' WHERE a.published = 1' . ' AND a.id = ' . (int) $uid . ' ORDER BY a.ordering';
     $db->setQuery($query);
     $user = $db->loadObject();
     if (!isset($user->uid)) {
         $this->userInfo = 0;
     } else {
         $session = PhocaGalleryFbSystem::setSessionData($user);
         $this->albums = PhocaGalleryFb::getFbAlbums($user->appid, $user->fanpageid, $user->appsid, $session);
         $this->userInfo = 1;
     }
     //$this->assignRef('tmpl',	$tmpl);
     parent::display($tpl);
 }
Example #22
0
 /**
  * Displays the view.
  *
  * @param  string $tpl the template name
  *
  * @return void
  * @since  1.0
  */
 public function display($tpl = null)
 {
     //TODO: Need to move css/js to SetDocument
     JHTML::stylesheet('media/com_newsletter/css/admin.css');
     JHTML::stylesheet('media/com_newsletter/css/bounceds.css');
     JHTML::script('media/com_newsletter/js/migur/js/core.js');
     JHTML::script('media/com_newsletter/js/migur/js/filterpanel.js');
     JHTML::script('media/com_newsletter/js/migur/js/search.js');
     JHTML::script(JURI::root() . "/administrator/components/com_newsletter/views/newsletters/bounceds.js");
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     // Let's work with model 'newsletters' !
     $model = $this->getModel('bounceds');
     $items = $model->getItems();
     $pagination = $model->getPagination();
     $state = $model->getState();
     $listOrder = $model->getState('list.ordering');
     $listDirn = $model->getState('list.direction');
     $saveOrder = $listOrder == 'a.ordering';
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('state', $state);
     $this->assignRef('listOrder', $listOrder);
     $this->assignRef('listDirn', $listDirn);
     $this->assignRef('saveOrder', $saveOrder);
     parent::display($tpl);
 }
Example #23
0
 function display($tpl = null)
 {
     JHTML::stylesheet('falang.css', 'administrator/components/com_falang/assets/css/');
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_FALANG_TITLE') . ' :: ' . JText::_('COM_FALANG_TITLE_MANAGEMENT'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_FALANG_TITLE_MANAGEMENT'), 'manage');
     //		JToolBarHelper::custom( 'cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL' , false );
     JToolBarHelper::help('screen.manage', true);
     JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTROL_PANEL'), 'index.php?option=com_falang');
     JSubMenuHelper::addEntry(JText::_('COM_FALANG_TRANSLATION'), 'index.php?option=com_falang&amp;task=translate.overview');
     JSubMenuHelper::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&amp;task=translate.orphans');
     //		JSubMenuHelper::addEntry(JText::_('Manage Translations'), 'index.php?option=com_falang&amp;task=manage.overview', true);
     //		JSubMenuHelper::addEntry(JText::_('Statistics'), 'index.php?option=com_falang&amp;task=statistics.overview', false);
     //		JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index.php?option=com_falang&amp;task=languages.show', false);
     JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&amp;task=elements.show', false);
     JSubMenuHelper::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&amp;task=help.show', false);
     $this->panelStates = $this->get('PanelStates');
     $this->contentInfo = $this->get('ContentInfo');
     $this->publishedTabs = $this->get('PublishedTabs');
     $this->assignRef('panelStates', $this->panelStates);
     $this->assignRef('contentInfo', $this->contentInfo);
     $this->assignRef('publishedTabs', $this->publishedTabs);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
Example #24
0
 function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     // Preprocess the list of items to find ordering divisions.
     foreach ($this->items as &$item) {
         $this->ordering[$item->parent_id][] = $item->id;
     }
     /*
      * We need to load all items because of creating tree
      * After creating tree we get info from pagination
      * and will set displaying of categories for current pagination
      * E.g. pagination is limitstart 5, limit 5 - so only categories from 5 to 10 will be displayed
      */
     if (!empty($this->items)) {
         $text = '';
         // text is tree name e.g. Category >> Subcategory
         $tree = array();
         $this->items = $this->processTree($this->items, $tree, 0, $text, -1, 0);
     }
     //$mainframe	= JFactory::getApplication();
     //$document	= JFactory::getDocument();
     //$uri		= JFactory::getURI();
     $this->tmpl['notapproved'] = $this->get('NotApprovedCategory');
     JHTML::stylesheet('media/com_phocagallery/css/administrator/phocagallery.css');
     $document = JFactory::getDocument();
     //$document->addCustomTag(PhocaGalleryRenderAdmin::renderIeCssLink(1));
     $params = JComponentHelper::getParams('com_phocagallery');
     $this->tmpl['enablethumbcreation'] = $params->get('enable_thumb_creation', 1);
     $this->tmpl['enablethumbcreationstatus'] = PhocaGalleryRenderAdmin::renderThumbnailCreationStatus((int) $this->tmpl['enablethumbcreation']);
     $this->addToolbar();
     parent::display($tpl);
 }
Example #25
0
 function onDisplay($name, $asset, $author)
 {
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $template = $app->getTemplate();
     $enableFrontend = $this->params->get('enable_frontend', 0);
     if ($template != 'beez_20') {
         JHTML::stylesheet('plugins/editors-xtd/phocadownload/assets/css/phocadownload.css');
     }
     $link = 'index.php?option=com_phocadownload&amp;view=phocadownloadlinks&amp;tmpl=component&amp;e_name=' . $name;
     JHTML::_('behavior.modal');
     $button = new JObject();
     $button->modal = true;
     $button->class = 'btn';
     $button->link = $link;
     $button->text = JText::_('PLG_EDITORS-XTD_PHOCADOWNLOAD_FILE');
     $button->name = 'file';
     $button->options = "{handler: 'iframe', size: {x: 800, y: 500}}";
     if ($enableFrontend == 0) {
         if (!$app->isAdmin()) {
             $button = null;
         }
     }
     return $button;
 }
Example #26
0
 function fetchElement($name, $value, &$node, $control_name)
 {
     $document =& JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $globalValue =& $this->_getPhocaParameter($name);
     // Color Picker
     JHTML::stylesheet('picker.css', 'administrator/components/com_phocaguestbook/assets/jcp/');
     $document->addScript(JURI::base(true) . '/components/com_phocaguestbook/assets/jcp/picker.js');
     $size = $node->attributes('size') ? 'size="' . $node->attributes('size') . '"' : '';
     $class = $node->attributes('class') ? 'class="' . $node->attributes('class') . '"' : 'class="text_area"';
     /*
      * Required to avoid a cycle of encoding &
      * html_entity_decode was used in place of htmlspecialchars_decode because
      * htmlspecialchars_decode is not compatible with PHP 4
      */
     $value = htmlspecialchars(html_entity_decode($value, ENT_QUOTES), ENT_QUOTES);
     // MENU - Set default value to "" because of saving "" value into the menu link ( use global = "")
     if ($option == "com_menus") {
         $defaultValue = $node->attributes('default');
         if ($value == $defaultValue) {
             $value = '';
         }
     }
     $html = '<input type="text" name="' . $control_name . '[' . $name . ']" id="' . $control_name . $name . '" value="' . $value . '" ' . $class . ' ' . $size . ' />';
     // Color Picker
     $html .= '<span style="margin-left:10px" onclick="openPicker(\'' . $control_name . $name . '\')"  class="picker_buttons">' . JText::_('Pick color') . '</span>';
     // MENU - Display the global value
     if ($option == "com_menus") {
         $html .= '<span style="margin-left:10px;">[</span><span style="background:#fff"> ' . $globalValue . ' </span><span>]</span>';
     }
     return $html;
 }
Example #27
0
 function display($tmpl = 'default')
 {
     require_once COM_FABRIK_FRONTEND . DS . 'helpers' . DS . 'html.php';
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $id = JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0)));
     $model->setId($id);
     $this->assign('id', $id);
     $this->assignRef('row', $this->get('Visualization'));
     $this->assign('rows', $this->get('Rows'));
     $this->assign('containerId', $this->get('ContainerId'));
     $this->calName = $this->get('VizName');
     $this->assignRef('params', $this->get('PluginParams'));
     $tmpl = $this->params->get('approvals_layout', $tmpl);
     $tmplpath = JPATH_SITE . DS . 'plugins' . DS . 'fabrik_visualization' . DS . 'approvals' . DS . 'views' . DS . 'approvals' . DS . 'tmpl' . DS . $tmpl;
     $this->_setPath('template', $tmplpath);
     $ab_css_file = $tmplpath . DS . "template.css";
     if (file_exists($ab_css_file)) {
         JHTML::stylesheet('/plugins/fabrik_visualization/approvals/views/approvals/tmpl/' . $tmpl . '/template.css');
     }
     FabrikHelperHTML::script('plugins/fabrik_visualization/approvals/approvals.js', true, "var approvals = new fbVisApprovals('approvals_" . $id . "');");
     $text = $this->loadTemplate();
     $opt = JRequest::getVar('option');
     $view = JRequest::getCmd('view');
     JRequest::setVar('view', 'article');
     JRequest::setVar('option', 'com_content');
     jimport('joomla.html.html.content');
     $text .= '{emailcloak=off}';
     $text = JHTML::_('content.prepare', $text);
     $text = preg_replace('/\\{emailcloak\\=off\\}/', '', $text);
     JRequest::setVar('option', $opt);
     echo $text;
 }
Example #28
0
 public function display($tpl = null)
 {
     $this->t = PhocaDownloadUtils::setVars('cat');
     $this->state = $this->get('State');
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $user = JFactory::getUser();
     $model = $this->getModel();
     JHTML::_('behavior.calendar');
     JHTML::stylesheet($this->t['s']);
     //Data from model
     //$this->item	=& $this->get('Data');
     $lists = array();
     $isNew = (int) $this->item->id == 0;
     // Edit or Create?
     if (!$isNew) {
         $model->checkout($user->get('id'));
     } else {
         // Initialise new record
         $this->item->approved = 1;
         $this->item->published = 1;
         $this->item->order = 0;
         $this->item->access = 0;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Example #29
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     JHTML::stylesheet('imageshow.css', 'administrator/components/com_imageshow/assets/css/');
     JHTML::script('jsn_is_imageshow.js', 'administrator/components/com_imageshow/assets/js/');
     parent::display($tpl);
 }
Example #30
0
 public function display($tpl = null)
 {
     JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/');
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false);
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.statistics', true);
     JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&amp;task=translate.overview');
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&amp;task=translate.orphans');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&amp;task=manage.overview', false);
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&amp;task=statistics.overview', true);
     }
     JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&amp;task=languages.show');
     JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&amp;task=elements.show');
     JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&amp;task=help.show');
     $this->panelStates = $this->get('PanelStates');
     $this->contentInfo = $this->get('ContentInfo');
     $this->publishedTabs = $this->get('PublishedTabs');
     $this->assignRef('panelStates', $this->panelStates);
     $this->assignRef('contentInfo', $this->contentInfo);
     $this->assignRef('publishedTabs', $this->publishedTabs);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }