| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs Settings View when an error occured fetching Profiles from the API |
| 4 |
* |
| 5 |
* @since 4.6.9 |
| 6 |
* |
| 7 |
* @package WP_To_Social_Pro |
| 8 |
* @author WP Zinc |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; // Exit if accessed directly. |
| 13 |
} |
| 14 |
?> |
| 15 |
<div class="postbox"> |
| 16 |
<div class="wpzinc-option"> |
| 17 |
<p class="description"> |
| 18 |
<?php echo esc_html( $profiles->get_error_message() ); ?> |
| 19 |
</p> |
| 20 |
<p class="description"> |
| 21 |
<?php |
| 22 |
echo esc_html( |
| 23 |
sprintf( |
| 24 |
/* translators: Social Media Service Name (Buffer, Hootsuite) */ |
| 25 |
__( 'Visit your %s account to resolve this error.', 'wp-to-buffer' ), |
| 26 |
$this->base->plugin->account |
| 27 |
) |
| 28 |
); |
| 29 |
?> |
| 30 |
</p> |
| 31 |
</div> |
| 32 |
<div class="wpzinc-option"> |
| 33 |
<a href="<?php echo esc_attr( $this->base->get_class( 'api' )->get_connect_profiles_url() ); ?>" target="_blank" rel="nofollow noopener" class="button button-primary"> |
| 34 |
<?php |
| 35 |
echo esc_html( |
| 36 |
sprintf( |
| 37 |
/* translators: Social Media Service Name (Buffer, Hootsuite) */ |
| 38 |
__( 'Visit %s', 'wp-to-buffer' ), |
| 39 |
$this->base->plugin->account |
| 40 |
) |
| 41 |
); |
| 42 |
?> |
| 43 |
</a> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
|