integration-row.php
5 years ago
page-table-connected.php
5 years ago
page-table-not-connected.php
6 years ago
wizard-table-connected.php
5 years ago
wizard-table-not-connected.php
5 years ago
wizard-table-connected.php
52 lines
| 1 | <?php |
| 2 | /** |
| 3 | * List of the integrations that are connected to the module. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <?php |
| 11 | if ( 0 === count( $providers ) ) : |
| 12 | |
| 13 | $notice_message = esc_html__( "You need at least one active app to send your opt-in's submissions to. If you don't want to use any 3rd party app, you can always use the Local Hustle List to save the submissions.", 'hustle' ); |
| 14 | $notice_options = array( |
| 15 | array( |
| 16 | 'type' => 'inline_notice', |
| 17 | 'class' => 'sui-notice-error', |
| 18 | 'icon' => 'info', |
| 19 | 'value' => $notice_message, |
| 20 | ), |
| 21 | ); |
| 22 | $this->get_html_for_options( $notice_options ); |
| 23 | |
| 24 | else : |
| 25 | ?> |
| 26 | |
| 27 | <table class="sui-table hui-table--apps hui-connected" style="margin-bottom: 10px;"> |
| 28 | |
| 29 | <tbody> |
| 30 | |
| 31 | <?php foreach ( $providers as $provider ) : ?> |
| 32 | |
| 33 | <?php |
| 34 | $this->render( |
| 35 | 'admin/integrations/integration-row', |
| 36 | array( |
| 37 | 'provider' => $provider, |
| 38 | 'module_id' => $module_id, |
| 39 | ) |
| 40 | ); |
| 41 | ?> |
| 42 | |
| 43 | <?php endforeach; ?> |
| 44 | |
| 45 | </tbody> |
| 46 | |
| 47 | </table> |
| 48 | |
| 49 | <span class="sui-description"><?php esc_html_e( 'These applications are collecting data of your popup.', 'hustle' ); ?></span> |
| 50 | |
| 51 | <?php endif; ?> |
| 52 |