lite-connect
10 months ago
settings
2 years ago
did-you-know.php
2 years ago
notice-bar.php
3 years ago
did-you-know.php
61 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin/DidYouKnow Education template for Lite. |
| 4 | * |
| 5 | * @since 1.7.4 |
| 6 | * |
| 7 | * @var string $slug DYK message slug. |
| 8 | * @var int $cols Table columns count. |
| 9 | * @var string $title Message title. |
| 10 | * @var string $desc Message body. |
| 11 | * @var string $more_title Learn More button title. |
| 12 | * @var string $more_link Learn More button URL. |
| 13 | * @var string $more_class Learn More button class. |
| 14 | * @var string $icon Message icon. |
| 15 | * @var string $cont_class Container class. |
| 16 | * @var string $enabled_title Message title in enabled mode. |
| 17 | * @var string $enabled_desc Message body in enabled mode. |
| 18 | * @var string $enabled_more_title Learn More button title in enabled mode. |
| 19 | * @var string $enabled_more_link Learn More button URL in enabled mode. |
| 20 | * @var string $enabled_more_class Learn More button class in enabled mode. |
| 21 | * @var string $enabled_cont_class Container class in enabled mode. |
| 22 | */ |
| 23 | |
| 24 | if ( ! defined( 'ABSPATH' ) ) { |
| 25 | exit; |
| 26 | } |
| 27 | |
| 28 | $default_icon = '<svg viewBox="0 0 352 512"><path d="M176 0C73.05 0-.12 83.54 0 176.24c.06 44.28 16.5 84.67 43.56 115.54C69.21 321.03 93.85 368.68 96 384l.06 75.18c0 3.15.94 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84L256 384c2.26-15.72 26.99-63.19 52.44-92.22C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0zm47.94 454.31L206.85 480h-61.71l-17.09-25.69-.01-6.31h95.9v6.31zm.04-38.31h-95.97l-.07-32h96.08l-.04 32zm60.4-145.32c-13.99 15.96-36.33 48.1-50.58 81.31H118.21c-14.26-33.22-36.59-65.35-50.58-81.31C44.5 244.3 32.13 210.85 32.05 176 31.87 99.01 92.43 32 176 32c79.4 0 144 64.6 144 144 0 34.85-12.65 68.48-35.62 94.68zM176 64c-61.75 0-112 50.25-112 112 0 8.84 7.16 16 16 16s16-7.16 16-16c0-44.11 35.88-80 80-80 8.84 0 16-7.16 16-16s-7.16-16-16-16z"/></svg>'; |
| 29 | |
| 30 | ?> |
| 31 | <tr class="wpforms-dyk wpforms-dismiss-container wpforms-education-lite-connect-wrapper wpforms-dyk-<?php echo esc_attr( $slug ); ?>"> |
| 32 | <td colspan="<?php echo esc_attr( $cols ); ?>" class="<?php echo esc_attr( $cont_class ); ?>"> |
| 33 | <div class="wpforms-dyk-fbox wpforms-dismiss-out"> |
| 34 | <div class="wpforms-dyk-icon"><?php echo empty( $icon ) ? $default_icon : $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div> |
| 35 | <div class="wpforms-dyk-message"><strong><?php echo esc_html( $title ); ?></strong><br> |
| 36 | <?php echo esc_html( $desc ); ?> |
| 37 | </div> |
| 38 | <div class="wpforms-dyk-buttons"> |
| 39 | <?php if ( ! empty( $more_link ) ) : ?> |
| 40 | <a href="<?php echo esc_url( $more_link ); ?>" class="button button-primary button-learn-more <?php echo esc_attr( $more_class ); ?>"><?php echo esc_html( $more_title ); ?></a> |
| 41 | <?php endif; ?> |
| 42 | <button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="admin-did-you-know-overview"></button> |
| 43 | </div> |
| 44 | </div> |
| 45 | </td> |
| 46 | <td colspan="<?php echo esc_attr( $cols ); ?>" class="<?php echo esc_attr( $enabled_cont_class ); ?>"> |
| 47 | <div class="wpforms-dyk-fbox wpforms-dismiss-out"> |
| 48 | <div class="wpforms-dyk-icon"><?php echo empty( $icon ) ? $default_icon : $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div> |
| 49 | <div class="wpforms-dyk-message"><strong><?php echo esc_html( $enabled_title ); ?></strong><br> |
| 50 | <?php echo esc_html( $enabled_desc ); ?> |
| 51 | </div> |
| 52 | <div class="wpforms-dyk-buttons"> |
| 53 | <?php if ( ! empty( $enabled_more_link ) ) : ?> |
| 54 | <a href="<?php echo esc_url( $enabled_more_link ); ?>" class="button button-primary button-learn-more <?php echo esc_attr( $enabled_more_class ); ?>"><?php echo esc_html( $enabled_more_title ); ?></a> |
| 55 | <?php endif; ?> |
| 56 | <button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="admin-did-you-know-overview"></button> |
| 57 | </div> |
| 58 | </div> |
| 59 | </td> |
| 60 | </tr> |
| 61 |