footer
2 years ago
sui-accordion.php
10 months ago
sui-box-header.php
3 years ago
sui-button.php
4 years ago
sui-checkbox.php
3 years ago
sui-footer.php
3 years ago
sui-header.php
4 years ago
sui-icon.php
5 years ago
sui-notice.php
3 years ago
sui-row.php
3 years ago
sui-select.php
3 years ago
sui-settings-row.php
3 years ago
sui-tabs.php
3 years ago
sui-tutorials.php
4 years ago
sui-footer.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * SUI Footer. |
| 4 | * |
| 5 | * @uses ./footer/cross-sell |
| 6 | * @uses ./footer/navigation |
| 7 | * @uses ./footer/social-media |
| 8 | * |
| 9 | * @package Hustle |
| 10 | * @since 4.3.0 |
| 11 | */ |
| 12 | |
| 13 | $is_free = ( isset( $is_free ) && ! empty( $is_free ) ) ? $is_free : Opt_In_Utils::is_free(); |
| 14 | |
| 15 | /* translators: heart icon */ |
| 16 | $footer_text = sprintf( __( 'Made with %s by WPMU DEV', 'hustle' ), ' <span class="sui-icon-heart" aria-hidden="true"></span>' ); |
| 17 | |
| 18 | // TODO: Check if the user is member to apply these filters. |
| 19 | $hide_footer = apply_filters( 'wpmudev_branding_change_footer', false ); |
| 20 | $footer_text = apply_filters( 'wpmudev_branding_footer_text', $footer_text ); |
| 21 | |
| 22 | // Display cross-sell row when it's free and the footer type is "large". |
| 23 | if ( $is_free && ! empty( $is_large ) && ! $hide_footer ) : |
| 24 | $this->render( 'admin/global/sui-components/footer/cross-sell' ); |
| 25 | endif; |
| 26 | ?> |
| 27 | |
| 28 | <div class="sui-footer"><?php echo wp_kses_post( $footer_text ); ?></div> |
| 29 | |
| 30 | <?php |
| 31 | if ( ! $hide_footer ) { |
| 32 | // FOOTER: Navigation. |
| 33 | $this->render( 'admin/global/sui-components/footer/navigation' ); |
| 34 | |
| 35 | // FOOTER: Social. |
| 36 | $this->render( 'admin/global/sui-components/footer/social' ); |
| 37 | } |
| 38 |