<div id="fl-post-types-form" class="fl-settings-form"> <h3 class="fl-settings-form-header"><?php _e('Post Types', 'fl-builder'); ?> </h3> <form id="post-types-form" action="<?php FLBuilderAdminSettings::render_form_action('post-types'); ?> " method="post"> <?php if (FLBuilderAdminSettings::multisite_support() && !is_network_admin()) { ?> <label> <input class="fl-override-ms-cb" type="checkbox" name="fl-override-ms" value="1" <?php if (get_option('_fl_builder_post_types')) { echo 'checked="checked"'; } ?> /> <?php _e('Override network settings?', 'fl-builder'); ?> </label> <?php } ?> <div class="fl-settings-form-content">
<div id="fl-editing-form" class="fl-settings-form"> <h3 class="fl-settings-form-header"><?php _e('Editing Settings', 'fl-builder'); ?> </h3> <form id="editing-form" action="<?php FLBuilderAdminSettings::render_form_action('editing'); ?> " method="post"> <?php if (FLBuilderAdminSettings::multisite_support() && !is_network_admin()) { ?> <label> <input class="fl-override-ms-cb" type="checkbox" name="fl-override-ms" value="1" <?php if (get_option('_fl_builder_editing_capability')) { echo 'checked="checked"'; } ?> /> <?php _e('Override network settings?', 'fl-builder'); ?> </label> <?php } ?> <div class="fl-settings-form-content">
</p> <?php if (is_multisite()) { ?> <p><strong style="color:#ff0000;"><?php _e('NOTE:', 'fl-builder'); ?> </strong> <?php _e('This applies to all sites on the network.', 'fl-builder'); ?> </p> <?php } ?> <form id="uninstall-form" action="<?php FLBuilderAdminSettings::render_form_action('uninstall'); ?> " method="post"> <p> <input type="submit" name="uninstall-submit" class="button button-primary" value="<?php _e('Uninstall', 'fl-builder'); ?> "> <?php wp_nonce_field('uninstall', 'fl-uninstall'); ?> </p> </form> </div>
global $blog_id; if (BLOG_ID_CURRENT_SITE == $blog_id) { ?> <p><?php _e('Icons for the main site must be managed in the network admin.', 'fl-builder'); ?> </p> </div> <?php return; } } ?> <form id="icons-form" action="<?php FLBuilderAdminSettings::render_form_action('icons'); ?> " method="post"> <?php if (FLBuilderAdminSettings::multisite_support() && !is_network_admin()) { ?> <label> <input class="fl-override-ms-cb" type="checkbox" name="fl-override-ms" value="1" <?php if (get_option('_fl_builder_enabled_icons')) { echo 'checked="checked"'; } ?> /> <?php _e('Override network settings?', 'fl-builder');
<?php $settings = FLBuilderModel::get_help_button_settings(); ?> <div id="fl-help-button-form" class="fl-settings-form"> <h3 class="fl-settings-form-header"><?php _e('Help Button Settings', 'fl-builder'); ?> </h3> <form id="help-button-form" action="<?php FLBuilderAdminSettings::render_form_action('help-button'); ?> " method="post"> <div class="fl-settings-form-content"> <p> <label> <input type="checkbox" name="fl-help-button-enabled" value="1" <?php checked($settings['enabled'], 1); ?> /> <span><?php _e('Enable Help Button', 'fl-builder'); ?> </span> </label> </p>
<div id="fl-cache-form" class="fl-settings-form"> <h3 class="fl-settings-form-header"><?php _e('Cache', 'fl-builder'); ?> </h3> <form id="cache-form" action="<?php FLBuilderAdminSettings::render_form_action('cache'); ?> " method="post"> <div class="fl-settings-form-content"> <p><?php _e('A CSS and JavaScript file is dynamically generated and cached each time you create a new layout. Sometimes the cache needs to be refreshed when you migrate your site to another server or update to the latest version. If you are running into any issues, please try clearing the cache by clicking the button below.', 'fl-builder'); ?> </p> <?php if (is_network_admin()) { ?> <p><strong><?php _e('NOTE:', 'fl-builder'); ?> </strong> <?php _e('This applies to all sites on the network.', 'fl-builder'); ?> </p> <?php } elseif (!is_network_admin() && is_multisite()) {
<div id="fl-branding-form" class="fl-settings-form"> <form class="fl-settings-form-content" action="<?php FLBuilderAdminSettings::render_form_action('branding'); ?> " method="post"> <h3 class="fl-settings-form-header"><?php _e('Plugin Branding', 'fl-builder'); ?> </h3> <p><?php _e('White label the page builder plugin using the settings below.', 'fl-builder'); ?> </p> <h4><?php _e('Plugin Name', 'fl-builder'); ?> </h4> <input type="text" name="fl-branding" value="<?php echo esc_html(FLBuilderModel::get_branding()); ?> " class="regular-text" /> <h4><?php _e('Plugin Icon URL', 'fl-builder'); ?> </h4> <input type="text" name="fl-branding-icon" value="<?php echo esc_html(FLBuilderModel::get_branding_icon());
<?php $enabled_templates = FLBuilderModel::get_enabled_templates(); $template_admin_ui = FLBuilderModel::user_templates_admin_enabled() ? 1 : 0; ?> <div id="fl-templates-form" class="fl-settings-form"> <h3 class="fl-settings-form-header"><?php _e('Template Settings', 'fl-builder'); ?> </h3> <form id="templates-form" action="<?php FLBuilderAdminSettings::render_form_action('templates'); ?> " method="post"> <?php if (FLBuilderAdminSettings::multisite_support() && !is_network_admin()) { ?> <label> <input class="fl-override-ms-cb" type="checkbox" name="fl-override-ms" value="1" <?php if (get_option('_fl_builder_enabled_templates')) { echo 'checked="checked"'; } ?> /> <?php _e('Override network settings?', 'fl-builder'); ?> </label>
<div id="fl-modules-form" class="fl-settings-form"> <h3 class="fl-settings-form-header"><?php _e('Enabled Modules', 'fl-builder'); ?> </h3> <form id="modules-form" action="<?php FLBuilderAdminSettings::render_form_action('modules'); ?> " method="post"> <?php if (FLBuilderAdminSettings::multisite_support() && !is_network_admin()) { ?> <label> <input class="fl-override-ms-cb" type="checkbox" name="fl-override-ms" value="1" <?php if (get_option('_fl_builder_enabled_modules')) { echo 'checked="checked"'; } ?> /> <?php _e('Override network settings?', 'fl-builder'); ?> </label> <?php } ?> <div class="fl-settings-form-content">