get_queried_object_id() : ''; if ( $aleanta_page_id == $aleanta_postpage_id && $aleanta_postpage_id != $aleanta_frontpage_id ) : $aleanta_custom = isset( $wp_query ) ? get_post_custom( $wp_query->get_queried_object_id() ) : ''; $aleanta_layout = isset( $aleanta_custom['pix_page_layout'] ) ? $aleanta_custom['pix_page_layout'][0] : '2'; $aleanta_sidebar = isset( $aleanta_custom['pix_selected_sidebar'][0] ) ? $aleanta_custom['pix_selected_sidebar'][0] : 'sidebar-1'; else : $aleanta_layout = aleanta_get_option('blog_settings_sidebar_type', '2'); $aleanta_sidebar = aleanta_get_option('blog_settings_sidebar_content', 'sidebar-1'); endif; if ( ! is_active_sidebar($aleanta_sidebar) ) $aleanta_layout = '1'; ?>