Busify_Theme_Options::get_option( 'field-sidebar-type' ), ); //Post Sidebar $global_sidebar = ! empty( $sidebar_layout['field-sidebar-type'] ) ? $sidebar_layout['field-sidebar-type'] : false; //Return global sidebar $sidebar = $global_sidebar; if ( $global_sidebar !== "none" ) { $sidebar = get_busify_sidebar_style( $sidebar ); } return apply_filters( 'busify_sidebar_layout', $sidebar, $sidebar_layout ); } else { return false; } } add_action( 'busify_before_main_content', 'busify_before_main_content_wrapper_start' ); function busify_before_main_content_wrapper_start() { if ( ! busify_search_results() ) { echo "
"; } else if ( ! busify_check_elementor_builtwith() ) { $sidebar_layout = get_busify_sidebar_layout(); if ( $sidebar_layout !== 'none' ) { echo "
"; } else { echo "
"; } } } add_action( 'busify_after_main_content', 'busify_after_main_content_wrapper_end' ); function busify_after_main_content_wrapper_end() { if ( ! busify_check_elementor_builtwith() ) { echo "
"; } } /** * Return row as a class if its not built with elementor builder * @return string */ function busify_page_post_class_row_class() { if ( ! busify_check_elementor_builtwith() ) { $data = 'class="row"'; } else { $data = 'class="busify-elementor-start"'; } return $data; } /** * Make Content Sortable Here */ add_action( 'busify_main_content', 'busify_content_post_sortable', 10 ); if ( ! function_exists( 'busify_content_post_sortable' ) ) { function busify_content_post_sortable() { if ( is_singular() ) { //Blog Single pages $post_content = Busify_Theme_Options::get_option( 'field-single-post-structure' ); } else { //Blog Archive Page $post_content = Busify_Theme_Options::get_option( 'field-blog-page-layout' ); } if ( ! empty( $post_content ) ) { foreach ( $post_content as $cont ) { switch ( $cont ) { case 'title': ?>
', '' ); else : the_title( '

', '

' ); endif; ?>