本文整理汇总了PHP中FlexicontentFields::getFieldsPerGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP FlexicontentFields::getFieldsPerGroup方法的具体用法?PHP FlexicontentFields::getFieldsPerGroup怎么用?PHP FlexicontentFields::getFieldsPerGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FlexicontentFields
的用法示例。
在下文中一共展示了FlexicontentFields::getFieldsPerGroup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$document = JFactory::getDocument();
// Form (text search / filters) configuration
$show_search_go = $params->get('show_search_go', 1);
$show_search_reset = $params->get('show_search_reset', 1);
$filter_autosubmit = $params->get('filter_autosubmit', 0);
$filter_instructions = $params->get('filter_instructions', 1);
$filter_placement = $params->get('filter_placement', 1);
$flexi_button_class_go = $params->get('flexi_button_class_go', '') != '-1' ? $params->get('flexi_button_class_go', 'btn btn-success') : $params->get('flexi_button_class_go_custom', FLEXI_J30GE ? 'btn btn-success' : 'fc_button');
$flexi_button_class_reset = $params->get('flexi_button_class_reset', '') != '-1' ? $params->get('flexi_button_class_reset', 'btn') : $params->get('flexi_button_class_reset_custom', FLEXI_J30GE ? 'btn' : 'fc_button');
$filters_in_lines = $filter_placement == 1 || $filter_placement == 2;
$filters_in_tabs = $filter_placement == 3;
$filter_container_class = $filters_in_lines ? 'fc_filter_line' : 'fc_filter';
$filter_container_class .= $filter_placement == 2 ? ' fc_clear_label' : '';
// Get field group information
$fgInfo = FlexicontentFields::getFieldsPerGroup();
// Prepare for filters inside TABs
if ($filter_placement == 3) {
$document->addStyleSheet(JURI::root(true) . '/components/com_flexicontent/assets/css/tabber.css');
$document->addScript(JURI::root(true) . '/components/com_flexicontent/assets/js/tabber-minimized.js');
$document->addScriptDeclaration(' document.write(\'<style type="text/css">.fctabber{display:none;}<\\/style>\'); ');
static $_filter_TABsetCnt = null;
if ($_filter_TABsetCnt === null) {
$_filter_TABsCnt = -1;
}
$tabSetCnt = 0;
}
// Text Search configuration
$use_search = $params->get('use_search', 1);
$show_search_label = $params->get('show_search_label', 1);
$search_autocomplete = $params->get('search_autocomplete', 1);