} if (JFile::exists($file)) { // get params for plugin $key = $plugin->name . '.' . $type . '.' . $extension->extension; $params = new WFParameter($this->profile->params, $file, $key); // add element paths $params->addElementPath(array(WF_EDITOR . '/elements')); // render params if (!$params->hasParent()) { $key = array($plugin->name, $type, $extension->extension); $enabled = (int) $params->get('enable', 1); $checked = $enabled ? ' checked="checked"' : ''; $html .= '<h3><input type="hidden" id="params' . implode('', $key) . 'enable" name="params[' . implode('][', $key) . '][enable]" value="' . $enabled . '" /><input type="checkbox" data-name="' . $extension->extension . '" class="plugins-enable-checkbox"' . $checked . '/>' . WFText::_($extension->name) . '</h3>'; $html .= '<p>' . WFText::_($extension->description) . '</p>'; foreach ($params->getGroups() as $group) { $html .= $params->render('params[' . implode('][', $key) . ']', $group, array('enable')); } } } } if ($html) { echo '<fieldset class="adminform panelform"><legend>' . WFText::_('WF_EXTENSIONS_' . strtoupper($type) . '_TITLE') . '</legend>'; echo $html; echo '</fieldset>'; } } ?> </div> <?php } }
$language = JFactory::getLanguage(); $language->load('com_jce_' . $extension->folder . '_' . trim($extension->extension), JPATH_SITE); } if (JFile::exists($file)) { // get params for plugin $key = $plugin->name . '.' . $extension->type . '.' . $extension->extension; $params = new WFParameter($this->profile->params, $file, $key); // add element paths $params->addElementPath(JPATH_COMPONENT . DS . 'elements'); $params->addElementPath(JPATH_COMPONENT_SITE . DS . 'elements'); $params->addElementPath(WF_EDITOR . DS . 'elements'); // render params if (!$params->hasParent()) { echo '<fieldset class="adminform panelform"><legend>' . WFText::_($extension->name) . '</legend>'; echo '<p>' . WFText::_($extension->description) . '</p>'; foreach ($params->getGroups() as $group => $num) { echo $params->render('params[' . $plugin->name . '][' . $extension->type . '][' . $group . ']', $group); } echo '</fieldset>'; } } } ?> </div> <?php } } } if (!$count) { echo WFText::_('WF_PROFILES_NO_PLUGINS'); }