archie-loading.php
5 years ago
constantcontact.php
4 years ago
coupon-metabox.php
4 years ago
disable-warning-css.php
4 years ago
inline-campaign-shortcode-modal.php
4 years ago
install-plugin-form.php
3 years ago
jiggle-css.php
5 years ago
logo.svg
5 years ago
monsterlink-campaign-shortcode-modal.php
4 years ago
not-connected-buttons.php
4 years ago
plugin-banner.php
4 years ago
product-metabox.php
4 years ago
seedprod-settings-page.php
3 years ago
shortcode-modal-css.php
4 years ago
shortcode-modal.php
4 years ago
trustpulse-banner.php
4 years ago
trustpulse-settings-page.php
3 years ago
upgrade-link-css.php
4 years ago
woocommerce-marketing-card-css.php
5 years ago
woocommerce-marketing-card.php
5 years ago
inline-campaign-shortcode-modal.php
42 lines
| 1 | <?php |
| 2 | if ( empty( $data['campaigns']['inline'] ) ) { |
| 3 | echo '<p>'; |
| 4 | printf( |
| 5 | wp_kses( |
| 6 | /* translators: %s - OptinMonster Templates page. */ |
| 7 | __( 'Whoops, you haven\'t created an inline campaign yet. Want to <a href="%s">give it a go</a>?', 'optin-monster-api' ), |
| 8 | array( |
| 9 | 'a' => array( |
| 10 | 'href' => array(), |
| 11 | ), |
| 12 | ) |
| 13 | ), |
| 14 | esc_url( $data['templatesUri'] . '&type=inline' ) |
| 15 | ); |
| 16 | echo '</p>'; |
| 17 | |
| 18 | return; |
| 19 | } |
| 20 | |
| 21 | printf( '<p><label for="optin-monster-modal-select-inline-campaign">%s</label></p>', esc_html__( 'Select and display your email marketing form or smart call-to-action campaign', 'optin-monster-api' ) ); |
| 22 | echo '<select id="optin-monster-modal-select-inline-campaign">'; |
| 23 | foreach ( $data['campaigns']['inline'] as $slug => $name ) { |
| 24 | printf( '<option value="%s">%s</option>', esc_attr( $slug ), esc_html( $name ) ); |
| 25 | } |
| 26 | echo '</select>'; |
| 27 | echo '<p class="optin-monster-modal-notice">'; |
| 28 | printf( |
| 29 | wp_kses( /* translators: %s - OptinMonster documentation URL. */ |
| 30 | __( 'Or <a href="%s" target="_blank" rel="noopener noreferrer">create a new inline campaign</a> to embed in this post', 'optin-monster-api' ), |
| 31 | array( |
| 32 | 'a' => array( |
| 33 | 'href' => array(), |
| 34 | 'rel' => array(), |
| 35 | 'target' => array(), |
| 36 | ), |
| 37 | ) |
| 38 | ), |
| 39 | esc_url( $data['templatesUri'] . '&type=inline' ) |
| 40 | ); |
| 41 | echo '</p>'; |
| 42 |