本文整理汇总了PHP中FLBuilderModel::get_categorized_modules方法的典型用法代码示例。如果您正苦于以下问题:PHP FLBuilderModel::get_categorized_modules方法的具体用法?PHP FLBuilderModel::get_categorized_modules怎么用?PHP FLBuilderModel::get_categorized_modules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FLBuilderModel
的用法示例。
在下文中一共展示了FLBuilderModel::get_categorized_modules方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_ui
/**
* Renders the markup for the builder interface.
*
* @since 1.0
* @return void
*/
public static function render_ui()
{
global $wp_the_query;
if (FLBuilderModel::is_builder_active()) {
$post_id = $wp_the_query->post->ID;
$categories = FLBuilderModel::get_categorized_modules();
$enabled_templates = FLBuilderModel::get_enabled_templates();
$help_button = FLBuilderModel::get_help_button_settings();
include FL_BUILDER_DIR . 'includes/ui.php';
include FL_BUILDER_DIR . 'includes/js-config.php';
}
}
示例2: render_ui
/**
* Renders the markup for the builder interface.
*
* @since 1.0
* @return void
*/
public static function render_ui()
{
global $wp_the_query;
if (FLBuilderModel::is_builder_active()) {
$post_id = $wp_the_query->post->ID;
$help_button = FLBuilderModel::get_help_button_settings();
$enabled_templates = FLBuilderModel::get_enabled_templates();
$color_presets = FLBuilderModel::get_color_presets();
$simple_ui = !current_user_can(FLBuilderModel::get_editing_capability());
$categories = FLBuilderModel::get_categorized_modules();
$row_templates = null;
$module_templates = null;
if (!FLBuilderModel::is_post_user_template('module') && !$simple_ui) {
if (class_exists('FLBuilderTemplatesOverride')) {
if (FLBuilderTemplatesOverride::show_modules()) {
$module_templates = FLBuilderTemplatesOverride::get_selector_data('module');
}
if (FLBuilderTemplatesOverride::show_rows() && !FLBuilderModel::is_post_user_template('row')) {
$row_templates = FLBuilderTemplatesOverride::get_selector_data('row');
}
}
include FL_BUILDER_DIR . 'includes/ui-panel.php';
}
include FL_BUILDER_DIR . 'includes/ui-bar.php';
include FL_BUILDER_DIR . 'includes/ui-fields.php';
include FL_BUILDER_DIR . 'includes/ui-js-templates.php';
include FL_BUILDER_DIR . 'includes/ui-js-config.php';
}
}
示例3: _e
<?php
_e('Override network settings?', 'fl-builder');
?>
</label>
<?php
}
?>
<div class="fl-settings-form-content">
<p><?php
_e('Check or uncheck modules below to enable or disable them.', 'fl-builder');
?>
</p>
<?php
$categories = FLBuilderModel::get_categorized_modules(true);
$enabled_modules = FLBuilderModel::get_enabled_modules();
$checked = in_array('all', $enabled_modules) ? 'checked' : '';
?>
<label>
<input class="fl-module-all-cb" type="checkbox" name="fl-modules[]" value="all" <?php
echo $checked;
?>
/>
<?php
_ex('All', 'Plugin setup page: Modules.', 'fl-builder');
?>
</label>
<?php
foreach ($categories as $title => $modules) {
?>