| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs Settings View when no Profiles are connected to the API |
| 4 |
* |
| 5 |
* @since 3.0.0 |
| 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 |
| 19 |
echo esc_html( |
| 20 |
sprintf( |
| 21 |
/* translators: %1$s: Social Media Service Name (Buffer, Hootsuite) */ |
| 22 |
__( 'You must connect at least one social media account in %1$s for this Plugin to send status updates to it.', 'wp-to-buffer' ), |
| 23 |
$this->base->plugin->account |
| 24 |
) |
| 25 |
); |
| 26 |
?> |
| 27 |
</p> |
| 28 |
<p class="description"> |
| 29 |
<?php esc_html_e( 'Once complete, refresh this page to enable and configure statuses for each social media account.', 'wp-to-buffer' ); ?> |
| 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 esc_html_e( 'Connect Profiles', 'wp-to-buffer' ); ?> |
| 35 |
</a> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
|