| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs a screen with a button/link/form to authenticate the Plugin |
| 4 |
* with the third party API service. |
| 5 |
* |
| 6 |
* @package WP_To_Social_Pro |
| 7 |
* @author WP Zinc |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; // Exit if accessed directly. |
| 12 |
} |
| 13 |
?> |
| 14 |
<header> |
| 15 |
<h1> |
| 16 |
<?php echo esc_html( $this->base->plugin->displayName ); ?> |
| 17 |
|
| 18 |
<span> |
| 19 |
<?php esc_html_e( 'Settings', 'wp-to-buffer' ); ?> |
| 20 |
</span> |
| 21 |
</h1> |
| 22 |
</header> |
| 23 |
|
| 24 |
<div class="wrap"> |
| 25 |
<div class="wrap-inner"> |
| 26 |
<!-- Notices --> |
| 27 |
<hr class="wp-header-end" /> |
| 28 |
|
| 29 |
<div id="poststuff"> |
| 30 |
<div id="post-body" class="metabox-holder columns-1"> |
| 31 |
<div id="post-body-content"> |
| 32 |
<div id="normal-sortables" class="meta-box-sortables ui-sortable"> |
| 33 |
<div class="postbox"> |
| 34 |
<div class="wpzinc-option"> |
| 35 |
<p class="description"> |
| 36 |
<?php |
| 37 |
echo esc_html( |
| 38 |
sprintf( |
| 39 |
/* translators: %1$s: Social Media Service Name (Buffer, Hootsuite), %2$s: Social Media Service Name (Buffer, Hootsuite) */ |
| 40 |
__( 'To allow this Plugin to post updates to your social media profiles using %1$s, please authorize %2$s below.', 'wp-to-buffer' ), |
| 41 |
$this->base->plugin->account, |
| 42 |
$this->base->plugin->account |
| 43 |
) |
| 44 |
); |
| 45 |
?> |
| 46 |
</p> |
| 47 |
<p class="description"> |
| 48 |
<?php |
| 49 |
echo esc_html( |
| 50 |
sprintf( |
| 51 |
/* translators: %1$s: Social Media Service Name (Buffer, Hootsuite) */ |
| 52 |
__( 'Don\'t have a %1$s account?', 'wp-to-buffer' ), |
| 53 |
$this->base->plugin->account |
| 54 |
) |
| 55 |
); |
| 56 |
?> |
| 57 |
<a href="<?php echo esc_attr( $this->base->get_class( 'api' )->get_registration_url() ); ?>" target="_blank" rel="nofollow noopener"> |
| 58 |
<?php esc_html_e( 'Sign up for free', 'wp-to-buffer' ); ?> |
| 59 |
</a> |
| 60 |
</p> |
| 61 |
</div> |
| 62 |
|
| 63 |
<?php |
| 64 |
/** |
| 65 |
* Allow the API to output its authentication button link or form, to authenticate |
| 66 |
* with the API. |
| 67 |
* |
| 68 |
* @since 4.2.0 |
| 69 |
* |
| 70 |
* @param array $schedule Schedule Options |
| 71 |
*/ |
| 72 |
do_action( $this->base->plugin->filter_name . '_output_auth' ); |
| 73 |
?> |
| 74 |
</div> |
| 75 |
</div> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
</div> |
| 81 |
|