protected function getInput() { $this->params = $this->element->attributes(); $extension = $this->get('extension'); $xml = $this->get('xml'); if (!$xml && $this->form->getValue('element')) { if ($this->form->getValue('folder')) { $xml = 'plugins/' . $this->form->getValue('folder') . '/' . $this->form->getValue('element') . '/' . $this->form->getValue('element') . '.xml'; } else { $xml = 'administrator/modules/' . $this->form->getValue('element') . '/' . $this->form->getValue('element') . '.xml'; } if (!JFile::exists(JPATH_SITE . '/' . $xml)) { return ''; } } if (!strlen($extension) || !strlen($xml)) { return ''; } $authorise = JFactory::getUser()->authorise('core.manage', 'com_installer'); if (!$authorise) { return ''; } require_once JPATH_PLUGINS . '/system/nnframework/helpers/versions.php'; return '</div><div class="hide">' . NoNumberVersions::render($extension); }
JHtml::stylesheet('nnframework/style.min.css', false, true); ?> <form action="<?php echo JRoute::_('index.php?option=com_advancedmodules'); ?> " method="post" name="adminForm" id="adminForm"> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> </div> <div id="j-main-container" class="span10"> <?php // Version check if ($this->config->show_update_notification) { echo NoNumberVersions::render('ADVANCED_MODULE_MANAGER'); } ?> <div id="filter-bar" class="btn-toolbar"> <div class="filter-search btn-group pull-left"> <label for="filter_search" class="element-invisible"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?> </label> <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?> " value="<?php echo $this->escape($this->state->get('filter.search')); ?> " class="hasTooltip" title="<?php