/** * 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'; } }
/** * 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'; } }
<?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) { ?>