本文整理汇总了PHP中WFParameter::render方法的典型用法代码示例。如果您正苦于以下问题:PHP WFParameter::render方法的具体用法?PHP WFParameter::render怎么用?PHP WFParameter::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WFParameter
的用法示例。
在下文中一共展示了WFParameter::render方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: WFParameter
}
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
}
}
示例2: trim
$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');
}