<?php
/**
 * Outputs Settings View when an error occured fetching Profiles from the API
 *
 * @since    1.0.0
 *
 * @package Social_Post_Flow
 * @author  Social Post Flow
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
?>
<div class="postbox">
	<div class="wpzinc-option">
		<p class="description">
			<?php echo esc_html( $profiles->get_error_message() ); ?>
		</p>
		<p class="description">
			<?php
			esc_html_e( 'Visit your Social Post Flow account to resolve this error.', 'social-post-flow' );
			?>
		</p>
	</div>
	<div class="wpzinc-option">
		<a href="<?php echo esc_attr( social_post_flow()->get_class( 'api' )->get_connect_profiles_url() ); ?>" target="_blank" rel="nofollow noopener" class="button button-primary">
			<?php
			esc_html_e( 'Visit Social Post Flow', 'social-post-flow' );
			?>
		</a>
	</div>
</div>
