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
page-table-connected.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * List of the providers that are globally connected. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <?php if ( 0 === count( $providers ) ) : ?> |
| 11 | |
| 12 | <div class="sui-notice sui-notice-error"> |
| 13 | |
| 14 | <div class="sui-notice-content"> |
| 15 | |
| 16 | <div class="sui-notice-message"> |
| 17 | |
| 18 | <span class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></span> |
| 19 | <p><?php esc_html_e( "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' ); ?></p> |
| 20 | |
| 21 | </div> |
| 22 | </div> |
| 23 | </div> |
| 24 | |
| 25 | <?php else : ?> |
| 26 | |
| 27 | <table class="sui-table hui-table--apps"> |
| 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 | ) |
| 39 | ); |
| 40 | ?> |
| 41 | |
| 42 | <?php endforeach; ?> |
| 43 | |
| 44 | </tbody> |
| 45 | |
| 46 | </table> |
| 47 | <?php endif; ?> |
| 48 |