publish; endif; $user = wp_get_current_user(); $allowed_roles = array('editor', 'administrator', 'author'); if( array_intersect($allowed_roles, $user->roles ) ) { if ( $content_type == '1' ) : get_template_part( 'templates/blogger', 'template' ); elseif ( $content_type == '2' && is_plugin_active( 'woocommerce/woocommerce.php') && $count_product_posts != null ) : get_template_part( 'templates/storefront', 'template' ); else : get_template_part( 'templates/onepage', 'template' ); endif; } else { if ( $status == '0' || $status == null) : get_template_part( 'templates/comingsoon', 'template' ); elseif ( $status == '1' ) : if ( $content_type == '1' ) : get_template_part( 'templates/blogger', 'template' ); elseif ( $content_type == '2' && is_plugin_active( 'woocommerce/woocommerce.php') && $count_product_posts != null ) : get_template_part( 'templates/storefront', 'template' ); else : get_template_part( 'templates/onepage', 'template' ); endif; elseif ( $status == '2' ) : get_template_part( 'templates/maintenance', 'template' ); endif; } } else { get_template_part( 'templates/free', 'template' ); } ?>