registration ) { $options_name = __( 'Fusion Element Global Options', 'fusion-builder' ); } else { $options_name = __( 'Fusion Element Options', 'fusion-builder' ); } ?>

' . esc_html__( 'Element Global Options', 'fusion-builder' ) . '' ); ?>

NOTE: Elements for plugins like WooCommere or The Events Calendar will only be available in the builder, if the corresponding options are activated here and if those plugins are active.', 'fusion-builder' ); // phpcs:ignore WordPress.Security.EscapeOutput ?>

WARNING: Use with caution. Disabling an element will remove it from all pages/posts, old and new. If it was on a previous page/post, it will render as regular element markup on the frontend.', 'fusion-builder' ); // phpcs:ignore WordPress.Security.EscapeOutput ?>

WARNING: If your website has a lot of content this may not run fully.', 'fusion-builder' ); // phpcs:ignore WordPress.Security.EscapeOutput ?>

    [ 'name' => esc_html__( 'Woo Featured', 'fusion-builder' ), 'shortcode' => 'fusion_featured_products_slider', 'class' => ( class_exists( 'WooCommerce' ) ) ? '' : 'hidden', ], 'fusion_products_slider' => [ 'name' => esc_html__( 'Woo Carousel', 'fusion-builder' ), 'shortcode' => 'fusion_products_slider', 'class' => ( class_exists( 'WooCommerce' ) ) ? '' : 'hidden', ], 'fusion_woo_shortcodes' => [ 'name' => esc_html__( 'Woo Shortcodes', 'fusion-builder' ), 'shortcode' => 'fusion_woo_shortcodes', 'class' => ( class_exists( 'WooCommerce' ) ) ? '' : 'hidden', ], 'layerslider' => [ 'name' => esc_html__( 'Layer Slider', 'fusion-builder' ), 'shortcode' => 'layerslider', 'class' => ( defined( 'LS_PLUGIN_BASE' ) ) ? '' : 'hidden', ], 'rev_slider' => [ 'name' => esc_html__( 'Slider Revolution', 'fusion-builder' ), 'shortcode' => 'rev_slider', 'class' => ( defined( 'RS_PLUGIN_PATH' ) ) ? '' : 'hidden', ], 'fusion_events' => [ 'name' => esc_html__( 'Events', 'fusion-builder' ), 'shortcode' => 'fusion_events', 'class' => ( class_exists( 'Tribe__Events__Main' ) ) ? '' : 'hidden', ], 'fusion_fontawesome' => [ 'name' => esc_html__( 'Icon', 'fusion-builder' ), 'shortcode' => 'fusion_fontawesome', ], 'fusion_fusionslider' => [ 'name' => esc_html__( 'Avada Slider', 'fusion-builder' ), 'shortcode' => 'fusion_fusionslider', ], ]; $all_fusion_builder_elements = array_merge( $all_fusion_builder_elements, apply_filters( 'fusion_builder_plugin_elements', $plugin_elements ) ); usort( $all_fusion_builder_elements, 'fusion_element_sort' ); $form_elements = []; $layout_elements = []; foreach ( $all_fusion_builder_elements as $module ) : if ( empty( $module['hide_from_builder'] ) ) { $i++; // Form Components. if ( ! empty( $module['form_component'] ) ) { $form_elements[ $i ] = $module; continue; } // Layout Componnents. if ( ! empty( $module['component'] ) ) { $layout_elements[ $i ] = $module; continue; } $checked = ''; $class = ( isset( $module['class'] ) && '' !== $module['class'] ) ? $module['class'] : ''; if ( ( isset( $existing_settings['fusion_elements'] ) && is_array( $existing_settings['fusion_elements'] ) && in_array( $module['shortcode'], $existing_settings['fusion_elements'] ) ) || ( ! isset( $existing_settings['fusion_elements'] ) || ! is_array( $existing_settings['fusion_elements'] ) ) ) { // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict $checked = 'checked'; } echo '
  • '; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput echo '
  • '; } endforeach; // Layout elements output. if ( 0 < count( $layout_elements ) ) { echo '

  • ' . esc_html__( 'Layout Elements', 'fusion-builder' ) . '
  • '; } foreach ( $layout_elements as $i => $module ) : $checked = ''; $class = ( isset( $module['class'] ) && '' !== $module['class'] ) ? $module['class'] : ''; if ( ( isset( $existing_settings['fusion_elements'] ) && is_array( $existing_settings['fusion_elements'] ) && in_array( $module['shortcode'], $existing_settings['fusion_elements'] ) ) || ( ! isset( $existing_settings['fusion_elements'] ) || ! is_array( $existing_settings['fusion_elements'] ) ) ) { // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict $checked = 'checked'; } echo '
  • '; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput echo '
  • '; endforeach; // Form elements output. if ( 0 < count( $form_elements ) ) { echo '

  • ' . esc_html__( 'Form Elements', 'fusion-builder' ) . '
  • '; } foreach ( $form_elements as $i => $module ) : $checked = ''; $class = ( isset( $module['class'] ) && '' !== $module['class'] ) ? $module['class'] : ''; if ( ( isset( $existing_settings['fusion_elements'] ) && is_array( $existing_settings['fusion_elements'] ) && in_array( $module['shortcode'], $existing_settings['fusion_elements'] ) ) || ( ! isset( $existing_settings['fusion_elements'] ) || ! is_array( $existing_settings['fusion_elements'] ) ) ) { // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict $checked = 'checked'; } echo '
  • '; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput echo '
  • '; endforeach; ?>

    true, ]; $post_types = get_post_types( $args, 'names', 'and' ); // Filter out not relevant post types (can add filter later). $disabled_post_types = [ 'attachment', 'slide', 'themefusion_elastic', 'fusion_template', 'fusion_tb_section', 'fusion_tb_layout', 'fusion_form' ]; foreach ( $disabled_post_types as $disabled ) { unset( $post_types[ $disabled ] ); } $defaults = FusionBuilder::default_post_types(); $i = 0; foreach ( $post_types as $post_type ) : $i++; $post_type_obj = get_post_type_object( $post_type ); // Either selected in options saved, or in array of default post types. $checked = ( ( isset( $existing_settings['post_types'] ) && is_array( $existing_settings['post_types'] ) && in_array( $post_type, $existing_settings['post_types'] ) ) || // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict ( ! isset( $existing_settings['post_types'] ) && in_array( $post_type, $defaults ) ) ) // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict ? 'checked' : ''; echo '
  • '; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput echo '
  • '; endforeach; ?>

', '' ); ?>