shortcode.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Shortcode section under the "unsubscribe" tab. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div class="sui-box-settings-row"> |
| 11 | |
| 12 | <div class="sui-box-settings-col-1"> |
| 13 | <span class="sui-settings-label"><?php esc_html_e( 'Shortcode', 'hustle' ); ?></span> |
| 14 | <span class="sui-description"><?php esc_html_e( 'Use shortcode to display unsubscribe form anywhere you want to.', 'hustle' ); ?></span> |
| 15 | </div> |
| 16 | |
| 17 | <div class="sui-box-settings-col-2"> |
| 18 | |
| 19 | <div class="sui-with-button sui-with-button-inside"> |
| 20 | <input type="text" |
| 21 | value='[wd_hustle_unsubscribe id="" ]' |
| 22 | class="sui-form-control" |
| 23 | readonly="readonly"> |
| 24 | <button class="sui-button-icon hustle-copy-shortcode-button"> |
| 25 | <span class="sui-icon-copy" aria-hidden="true"></span> |
| 26 | <span class="sui-screen-reader-text"><?php esc_html_e( 'Copy shortcode', 'hustle' ); ?></span> |
| 27 | </button> |
| 28 | </div> |
| 29 | |
| 30 | <span class="sui-description"> |
| 31 | <?php esc_html_e( 'By default, the Unsubscribe form works for all the modules. If you want to let visitors unsubscribe from specific modules only, add the comma separated module ids in the id attribute.', 'hustle' ); ?> |
| 32 | </span> |
| 33 | <span class="sui-description"> |
| 34 | <?php /* translators: example of where to find the id in the url */ ?> |
| 35 | <?php printf( esc_html__( 'You can find the module\'s ID in the URL of the module\'s wizard page: %s.', 'hustle' ), '/wp-admin/admin.php?page=hustle_popup&<b>id=58</b>' ); ?> |
| 36 | </span> |
| 37 | |
| 38 | </div> |
| 39 | |
| 40 | </div> |
| 41 |