| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Campaign Embed Wizard. |
| 10 |
* Embed popup HTML template. |
| 11 |
* |
| 12 |
* @package Charitable |
| 13 |
* @author David Bisset |
| 14 |
* @copyright Copyright (c) 2023, WP Charitable LLC |
| 15 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 16 |
* @since 1.8.0 |
| 17 |
* @version 1.8.1 |
| 18 |
*/ |
| 19 |
|
| 20 |
if ( ! \defined( 'ABSPATH' ) ) { |
| 21 |
exit; |
| 22 |
} |
| 23 |
|
| 24 |
?> |
| 25 |
<div class="charitable-admin-campaign-embed-wizard-tooltip"> |
| 26 |
<div id="charitable-admin-campaign-embed-wizard-tooltip-content"> |
| 27 |
<?php if ( charitable_is_gutenberg_active() ) : // Gutenberg content. ?> |
| 28 |
<h3><?php esc_html_e( 'Add a Campaign', 'charitable' ); ?></h3> |
| 29 |
<p> |
| 30 |
<?php |
| 31 |
printf( |
| 32 |
wp_kses( /* translators: %s - link to the Charitable documentation page. */ |
| 33 |
__( 'Click the plus button, search for Campaign Builder, click the block to<br>embed it. <a href="%s" target="_blank" rel="noopener noreferrer">Learn More</a>.', 'charitable' ), |
| 34 |
[ |
| 35 |
'a' => [ |
| 36 |
'href' => [], |
| 37 |
'rel' => [], |
| 38 |
'target' => [], |
| 39 |
], |
| 40 |
'br' => [], |
| 41 |
] |
| 42 |
), |
| 43 |
'https://www.wpcharitable.com/documentation/' |
| 44 |
); |
| 45 |
?> |
| 46 |
</p> |
| 47 |
<i class="charitable-admin-campaign-embed-wizard-tooltips-red-arrow"></i> |
| 48 |
<button type="button" class="charitable-admin-campaign-embed-wizard-done-btn"><?php esc_html_e( 'Done', 'charitable' ); ?></button> |
| 49 |
<?php endif; ?> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
|