> ID ) ){ $post_id = $post->ID; } $amazing_blog_default_layout_meta = get_post_meta( $post_id, 'amazing-blog-default-layout', true ); if( false != $amazing_blog_default_layout_meta ) { $amazing_blog_default_layout = $amazing_blog_default_layout_meta; } return $amazing_blog_default_layout; } endif; if ( ! function_exists( 'amazing_blog_body_class' ) ) : /** * add body class * * @since Amazing Blog 1.0.0 * * @param null * @return null * */ function amazing_blog_body_class( $amazing_blog_body_classes ) { $amazing_blog_default_layout = amazing_blog_default_layout(); if( !empty( $amazing_blog_default_layout ) ){ if( 'left-sidebar' == $amazing_blog_default_layout ){ $amazing_blog_body_classes[] = 'evision-left-sidebar'; } elseif( 'right-sidebar' == $amazing_blog_default_layout ){ $amazing_blog_body_classes[] = 'evision-right-sidebar'; } elseif( 'both-sidebar' == $amazing_blog_default_layout ){ $amazing_blog_body_classes[] = 'evision-both-sidebar'; } elseif( 'no-sidebar' == $amazing_blog_default_layout ){ $amazing_blog_body_classes[] = 'evision-no-sidebar'; } else{ $amazing_blog_body_classes[] = 'evision-right-sidebar'; } } else{ $amazing_blog_body_classes[] = 'evision-right-sidebar'; } return $amazing_blog_body_classes; } endif; add_action( 'body_class', 'amazing_blog_body_class', 10, 1); if ( ! function_exists( 'amazing_blog_page_start' ) ) : /** * page start * * @since Amazing Blog 1.0.0 * * @param null * @return null * */ function amazing_blog_page_start() { ?>
'; amazing_blog_simple_breadcrumb(); echo '
'; return; } endif; add_action( 'amazing_blog_action_after_header', 'amazing_blog_add_breadcrumb', 10 ); if( ! function_exists( 'amazing_blog_content_wrapper' ) ) : /** * Post Content * * @since Amazing Blog 1.0.0 * * @param null * @return null * */ function amazing_blog_content_wrapper(){ echo '
'; } endif; add_action( 'amazing_blog_action_before_content', 'amazing_blog_content_wrapper', 40 );