function editTranslation() { if ($this->_menutype == "wrapper") { ?> <table width="100%" class="paramlist"> <tr> <td width="40%" align="right" valign="top"><span class="editlinktip"><!-- Tooltip --> <span onmouseover="return overlib('Link for Wrapper', CAPTION, 'Wrapper Link', BELOW, RIGHT);" onmouseout="return nd();" >Wrapper Link</span></span></td> <td align="left" valign="top"><input type="text" name="refField_params[url]" value="<?php echo $this->transparams->get('url', ''); ?> " class="text_area" size="30" /></td> </tr> </table> <?php } parent::editTranslation(); }
function editTranslation() { parent::editTranslation(); }
function render($type) { $sliders =& JPane::getInstance('sliders'); echo $sliders->startPane('params'); TranslateParams_xml::renderDoublecolumnParams($this->form, 'attribs', 'com_content', $sliders); echo $sliders->endPane(); return; }
function render($type) { $sliders = JPane::getInstance('sliders'); echo $sliders->startPane('params'); $fieldSets = $this->form->getFieldsets('request'); if ($fieldSets) { foreach ($fieldSets as $name => $fieldSet) { $hidden_fields = ''; $label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_' . $name . '_FIELDSET_LABEL'; echo $sliders->startPanel(JText::_($label), $name . '-options'); if (isset($fieldSet->description) && trim($fieldSet->description)) { echo '<p class="tip">' . $this->escape(JText::_($fieldSet->description)) . '</p>'; } ?> <div class="clr"></div> <fieldset class="panelform"> <ul class="adminformlist"> <?php foreach ($this->form->getFieldset($name) as $field) { ?> <?php if (!$field->hidden) { echo $field->value; ?> <li><?php echo $field->label; ?> <?php echo $field->input; ?> </li> <?php } else { $hidden_fields .= $field->input; ?> <?php } ?> <?php } ?> </ul> <?php echo $hidden_fields; ?> </fieldset> <?php echo $sliders->endPanel(); } } TranslateParams_xml::renderDoublecolumnParams($this->form, 'params', 'com_menus', $sliders); echo $sliders->endPane(); return; }
function editTranslation() { parent::editTranslation(); $output = ""; if ($this->origparams->getNumParams('advanced')) { $fieldname = 'refField_' . $this->fieldname; $output .= $this->transparams->render($fieldname, 'advanced'); } if ($this->origparams->getNumParams('other')) { $fieldname = 'refField_' . $this->fieldname; $output .= $this->transparams->render($fieldname, 'other'); } if ($this->origparams->getNumParams('legacy')) { $fieldname = 'refField_' . $this->fieldname; $output .= $this->transparams->render($fieldname, 'legacy'); } echo $output; }
function render($type) { $sliders =& JPane::getInstance('sliders'); echo $sliders->startPane('params'); TranslateParams_xml::renderDoublecolumnParams($this->form, 'params', 'com_modules', $sliders); echo $sliders->endPane(); // menu assignments // Initiasile related data. if (!class_exists('MenusHelper')) { JLoader::register('MenusHelper', JPATH_ADMINISTRATOR . '/components/com_menus/helpers/menus.php', true); } if (!class_exists('ModulesHelper')) { JLoader::register('ModulesHelper', JPATH_ADMINISTRATOR . '/components/com_modules/helpers/modules.php', true); } $menuTypes = MenusHelper::getMenuLinks(); ?> <script type="text/javascript"> window.addEvent('domready', function(){ validate(); document.getElements('select').addEvent('change', function(e){validate();}); }); function validate(){ var value = document.id('jform_assignment').value; var list = document.id('menu-assignment'); if(value == '-' || value == '0'){ $$('.jform-assignments-button').each(function(el) {el.setProperty('disabled', true); }); list.getElements('input').each(function(el){ el.setProperty('disabled', true); if (value == '-'){ el.setProperty('checked', false); } else { el.setProperty('checked', true); } }); } else { $$('.jform-assignments-button').each(function(el) {el.setProperty('disabled', false); }); list.getElements('input').each(function(el){ el.setProperty('disabled', false); }); } } </script> <div class="width-100 fltlft"> <fieldset class="adminform"> <legend><?php echo JText::_('COM_MODULES_MENU_ASSIGNMENT'); ?> </legend> <label id="jform_menus-lbl" for="jform_menus"><?php echo JText::_('COM_MODULES_MODULE_ASSIGN'); ?> </label> <fieldset id="jform_menus" class="radio"> <select name="jform[assignment]" id="jform_assignment"> <?php echo JHtml::_('select.options', ModulesHelper::getAssignmentOptions($this->item->client_id), 'value', 'text', $this->item->assignment, true); ?> </select> </fieldset> <label id="jform_menuselect-lbl" for="jform_menuselect"><?php echo JText::_('JGLOBAL_MENU_SELECTION'); ?> </label> <button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.chk-menulink').each(function(el) { el.checked = !el.checked; });"> <?php echo JText::_('JGLOBAL_SELECTION_INVERT'); ?> </button> <button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.chk-menulink').each(function(el) { el.checked = false; });"> <?php echo JText::_('JGLOBAL_SELECTION_NONE'); ?> </button> <button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.chk-menulink').each(function(el) { el.checked = true; });"> <?php echo JText::_('JGLOBAL_SELECTION_ALL'); ?> </button> <div class="clr"></div> <div id="menu-assignment"> <?php echo JHtml::_('tabs.start', 'module-menu-assignment-tabs', array('useCookie' => 1)); ?> <?php foreach ($menuTypes as &$type) { echo JHtml::_('tabs.panel', $type->title ? $type->title : $type->menutype, $type->menutype . '-details'); $count = count($type->links); $i = 0; if ($count) { ?> <ul class="menu-links"> <?php foreach ($type->links as $link) { if (trim($this->item->assignment) == '-') { $checked = ''; } elseif ($this->item->assignment == 0) { $checked = ' checked="checked"'; } elseif ($this->item->assignment < 0) { $checked = in_array(-$link->value, $this->item->assigned) ? ' checked="checked"' : ''; } elseif ($this->item->assignment > 0) { $checked = in_array($link->value, $this->item->assigned) ? ' checked="checked"' : ''; } ?> <li class="menu-link"> <input type="checkbox" class="chk-menulink" name="jform[assigned][]" value="<?php echo (int) $link->value; ?> " id="link<?php echo (int) $link->value; ?> "<?php echo $checked; ?> /> <label for="link<?php echo (int) $link->value; ?> "> <?php echo $link->text; ?> </label> </li> <?php if ($count > 20 && ++$i == ceil($count / 2)) { ?> </ul><ul class="menu-links"> <?php } ?> <?php } ?> </ul> <div class="clr"></div> <?php } ?> <?php } ?> <?php echo JHtml::_('tabs.end'); ?> </div> </fieldset> </div> <?php return; }