diff --git a/core/includes/hooks.php b/core/includes/hooks.php index bfd06a33..8b389320 100644 --- a/core/includes/hooks.php +++ b/core/includes/hooks.php @@ -303,13 +303,36 @@ function responsive_theme_options() { * Responsive_wrapper_class */ function responsive_wrapper_classes() { + global $post; + $custom = ( get_post_custom( $post->ID ) ? get_post_custom( $post->ID ) : false ); + $layout = ( isset( $custom['_responsive_layout'][0] ) ? $custom['_responsive_layout'][0] : 'default' ); + $valid_layouts = responsive_get_valid_layouts(); ?>
-
-
+
+ +
+ - -
+ +
+ +
+ '; @@ -537,4 +560,4 @@ function responsive_custom_footer() { */ function responsive_single_blog_related_posts_entry() { do_action( 'responsive_single_blog_related_posts_entry' ); -} \ No newline at end of file +} diff --git a/core/includes/post-custom-meta.php b/core/includes/post-custom-meta.php index 2250d647..ac8a6dcc 100644 --- a/core/includes/post-custom-meta.php +++ b/core/includes/post-custom-meta.php @@ -137,9 +137,6 @@ function responsive_get_valid_layouts() { 'content-sidebar-page' => __( 'Content/Sidebar', 'responsive' ), 'sidebar-content-page' => __( 'Sidebar/Content', 'responsive' ), 'full-width-page' => __( 'Full Width Page (no sidebar)', 'responsive' ), - 'blog-2-col' => __( 'Blog 2 Column', 'responsive' ), - 'blog-3-col' => __( 'Blog 3 Column', 'responsive' ), - 'blog-4-col' => __( 'Blog 4 Column', 'responsive' ), ); return apply_filters( 'responsive_valid_layouts', $layouts ); @@ -197,12 +194,27 @@ function responsive_layout_meta_box() {

ID, '_responsive_layout', $layout ); } diff --git a/core/sass/style.scss b/core/sass/style.scss index 6b41c083..4b18eaa0 100644 --- a/core/sass/style.scss +++ b/core/sass/style.scss @@ -113,4 +113,7 @@ body { .page.sidebar-position-no:not(.woocommerce) .alignwide{ margin-left: auto; margin-right: auto; +} +#wrapper .content-outer >.row.grid-right.col-620.fit{ + flex-direction: row-reverse; } \ No newline at end of file diff --git a/sidebar.php b/sidebar.php index 4c20dd53..f256615f 100644 --- a/sidebar.php +++ b/sidebar.php @@ -45,20 +45,20 @@ } elseif ( class_exists( 'LifterLMS' ) ) { - if ( in_array('post-type-archive-course', get_body_class()) || in_array('post-type-archive-llms_membership', get_body_class()) ) { + if ( in_array( 'post-type-archive-course', get_body_class() ) || in_array( 'post-type-archive-llms_membership', get_body_class() ) ) { - return; - } else { + return; + } else { - if ( ( is_page() && 'no' === get_theme_mod( 'responsive_page_sidebar_position', 'right' ) ) || - ( is_page() && 'no' === get_post_meta( get_the_ID(), 'responsive_page_meta_sidebar_position', true ) ) || - ( is_single() && 'no' === get_theme_mod( 'responsive_single_blog_sidebar_position', 'right' ) ) || - ( ( is_home() || is_search() || is_archive() ) && 'no' === get_theme_mod( 'responsive_blog_sidebar_position', 'right' ) ) - ) { - return; - } + if ( ( is_page() && 'no' === get_theme_mod( 'responsive_page_sidebar_position', 'right' ) ) || + ( is_page() && 'no' === get_post_meta( get_the_ID(), 'responsive_page_meta_sidebar_position', true ) ) || + ( is_single() && 'no' === get_theme_mod( 'responsive_single_blog_sidebar_position', 'right' ) ) || + ( ( is_home() || is_search() || is_archive() ) && 'no' === get_theme_mod( 'responsive_blog_sidebar_position', 'right' ) ) + ) { + return; + } - ?> + ?> -