File "add-connection.php"

Full Path: /home/romayxjt/public_html/wp-content/plugins/the-events-calendar/common/src/admin-views/components/integration/add-connection.php
File size: 926 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * View: Integration Add Connection Button.
 *
 * Override this template in your own theme by creating a file at:
 * [your-theme]/tribe/admin-views/components/integration/add-connection.php
 *
 * See more documentation about our views templating system.
 *
 * @since 1.4.0
 *
 * @version 1.4.0
 *
 * @link    http://evnt.is/1aiy
 *
 * @var Api $api An instance of the Integration  API handler.
 * @var Url $url An instance of the URL handler.
 */

$add_link      = $url->to_add_connection_link();
$connect_label = _x( 'Add Connection', 'Label to add an integration connection fields.', 'tribe-common' );

$classes = [
	'button'                                     => true,
	'tec-automator-settings__add-api-key-button' => true,
];
?>
<a
	href="<?php echo esc_url( $add_link ); ?>"
	<?php tribe_classes( $classes ); ?>
>
	<span class="dashicons dashicons-plus"></span>
	<?php echo esc_html( $connect_label ); ?>
</a>