is_avada = true; } } /** * Set the sections. * * @access public * @param array $sections Our Redux sections. * @return array */ public function add_sections( $sections = [] ) { global $fusion_builder_elements; // Simplify the array. if ( null !== $fusion_builder_elements ) { $simplified_array = []; foreach ( $fusion_builder_elements as $element ) { if ( isset( $element['shortcode'] ) && isset( $element['name'] ) ) { $simplified_array[ $element['shortcode'] ] = $element['name']; } } if ( ! empty( $simplified_array ) ) { $fusion_builder_elements = $simplified_array; } } // If we can't find the builder elements from the global var, // use a hard-coded array. if ( null === $fusion_builder_elements ) { $fusion_builder_elements = [ 'fusion_alert' => 'Alert', 'fusion_blog' => 'Blog', 'fusion_button' => 'Button', 'fusion_checklist' => 'Checklist', 'fusion_code' => 'Code Block', 'fusion_content_boxes' => 'Content Boxes', 'fusion_countdown' => 'Countdown', 'fusion_counters_box' => 'Counter Boxes', 'fusion_counters_circle' => 'Counter Circles', 'fusion_events' => 'Events', 'fusion_faq' => 'FAQ', 'fusion_flip_boxes' => 'Flip Boxes', 'fusion_fusionslider' => 'Avada Slider', 'fusion_map' => 'Google Map', 'fusion_fontawesome' => 'Icon', 'fusion_images' => 'Image Carousel', 'fusion_imageframe' => 'Image Frame', 'layerslider' => 'Layer Slider', 'fusion_login' => 'User Login', 'fusion_register' => 'User Register', 'fusion_lost_password' => 'User Lost Password', 'fusion_modal' => 'Modal', 'fusion_person' => 'Person', 'fusion_postslider' => 'Post Slider', 'fusion_pricing_table' => 'Pricing Table', 'fusion_progress' => 'Progress Bar', 'fusion_recent_posts' => 'Recent Posts', 'fusion_portfolio' => 'Portfolio', 'rev_slider' => 'Slider Revolution', 'fusion_section_separator' => 'Section Separator', 'fusion_separator' => 'Separator', 'fusion_sharing' => 'Sharing Box', 'fusion_slider' => 'Slider', 'fusion_social_links' => 'Social Links', 'fusion_soundcloud' => 'Soundcloud', 'fusion_tabs' => 'Tabs', 'fusion_tagline_box' => 'Tagline Box', 'fusion_testimonials' => 'Testimonials', 'fusion_text' => 'Text Block', 'fusion_title' => 'Title', 'fusion_accordian' => 'Toggles', 'fusion_vimeo' => 'Vimeo', 'fusion_widget_area' => 'Widget Area', 'fusion_featured_products_slider' => 'Woo Featured', 'fusion_products_slider' => 'Woo Carousel', 'fusion_woo_shortcodes' => 'Woo Shortcodes', 'fusion_youtube' => 'Youtube', ]; } $option_name = 'fusion_builder_options'; if ( ! function_exists( 'fusion_builder_redux_shortcode_styling' ) ) { return $sections; } // Get the new options. return fusion_builder_redux_shortcode_styling( $sections ); } }