get_override( 'page_title_bar', true ); if ( $override ) { Fusion_Template_Builder()->render_content( $override ); } else { avada_current_page_title_bar(); } } /** * Related Posts. * * @static * @access public * @since 6.0 * @return void */ public static function related_posts_template() { avada_render_related_posts(); } /** * Sliding Bar. * * @static * @access public * @since 6.0 * @return void */ public static function sliding_bar() { get_template_part( 'sliding_bar' ); } /** * Featured images on singular pages. * * @static * @access public * @since 6.0 * @return void */ public static function singular_featured_image() { global $post; $post_id = isset( $_POST['post_id'] ) ? sanitize_text_field( wp_unslash( $_POST['post_id'] ) ) : 0; // phpcs:ignore WordPress.Security.NonceVerification if ( ! $post_id ) { return; } $post = get_post( $post_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride // Setup the global. setup_postdata( $post ); avada_singular_featured_image( $post->post_type ); // Reset global data just in case. wp_reset_postdata(); } /** * Searchform. * * @static * @access public * @since 6.0 * @return void */ public static function searchform() { get_template_part( 'searchform' ); } /** * Main Menu. * * @static * @access public * @since 6.0 * @return void */ public static function menu() { avada_main_menu(); } /** * Social-sharing * * @static * @access public * @since 6.0 * @return void */ public static function sharingbox() { global $post; $post_id = isset( $_POST['post_id'] ) ? sanitize_text_field( wp_unslash( $_POST['post_id'] ) ) : 0; // phpcs:ignore WordPress.Security.NonceVerification if ( ! $post_id ) { return; } $post = get_post( $post_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride // Setup the global. setup_postdata( $post ); avada_render_social_sharing( $post->post_type ); } /** * WooCommerce top user container. * * @static * @access public * @since 6.0 * @return void */ public static function wc_top_user_container() { get_template_part( 'templates/wc-top-user-container' ); } /** * Privacy bar. * * @static * @access public * @since 6.0 * @return void */ public static function privacy_bar() { get_template_part( 'templates/privacy-bar' ); } }