lite-connect
1 year ago
did-you-know.php
5 years ago
providers-item.php
3 years ago
settings-item.php
4 years ago
did-you-know.php
35 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Builder/DidYouKnow Education template for Lite. |
| 4 | * |
| 5 | * @since 1.6.6 |
| 6 | * |
| 7 | * @var string $desc Message body. |
| 8 | * @var string $more Learn More button URL. |
| 9 | * @var string $link Upgrade to Pro page URL. |
| 10 | * @var string $section The slug of the dismissible section. |
| 11 | */ |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | ?> |
| 18 | <section class="wpforms-dyk wpforms-dismiss-container"> |
| 19 | <div class="wpforms-dyk-fbox wpforms-dismiss-out"> |
| 20 | <div class="wpforms-dyk-message"> |
| 21 | <b><?php esc_html_e( 'Did You Know?', 'wpforms-lite' ); ?></b><br> |
| 22 | <?php echo esc_html( $desc ); ?> |
| 23 | </div> |
| 24 | <div class="wpforms-dyk-buttons"> |
| 25 | <?php |
| 26 | if ( ! empty( $more ) ) { |
| 27 | echo '<a href="' . esc_url( $more ) . '" class="learn-more">' . esc_html__( 'Learn More', 'wpforms-lite' ) . '</a>'; |
| 28 | } |
| 29 | ?> |
| 30 | <a href="<?php echo esc_url( $link ); ?>" target="_blank" rel="noopener noreferrer" class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey"><?php esc_html_e( 'Upgrade to Pro', 'wpforms-lite' ); ?></a> |
| 31 | <button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="builder-did-you-know-<?php echo esc_attr( $section ); ?>"></button> |
| 32 | </div> |
| 33 | </div> |
| 34 | </section> |
| 35 |