footer
4 years ago
sui-accordion.php
4 years ago
sui-box-header.php
5 years ago
sui-button.php
4 years ago
sui-checkbox.php
5 years ago
sui-footer.php
5 years ago
sui-header.php
5 years ago
sui-icon.php
5 years ago
sui-notice.php
5 years ago
sui-row.php
5 years ago
sui-select.php
5 years ago
sui-settings-row.php
5 years ago
sui-tabs.php
5 years ago
sui-tutorials.php
4 years ago
sui-header.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * SUI Header. |
| 4 | * |
| 5 | * @uses ./sui-icon |
| 6 | * |
| 7 | * @package Hustle |
| 8 | * @since 4.3.0 |
| 9 | */ |
| 10 | |
| 11 | $hide_docs = apply_filters( 'wpmudev_branding_hide_doc_link', false ); |
| 12 | $notifications = ( isset( $notifications ) && ! empty( $notifications ) ) ? $notifications : true; |
| 13 | ?> |
| 14 | |
| 15 | <div class="sui-header"> |
| 16 | |
| 17 | <h1 class="sui-header-title"><?php echo esc_html( $title ); ?></h1> |
| 18 | |
| 19 | <?php if ( ! empty( $docs_section ) && ! $hide_docs ) : ?> |
| 20 | |
| 21 | <div class="sui-actions-right"> |
| 22 | |
| 23 | <a |
| 24 | href="<?php echo esc_url( Opt_In_Utils::get_link( 'docs' ) . '#' . $docs_section ); ?>" |
| 25 | target="_blank" |
| 26 | class="sui-button sui-button-ghost" |
| 27 | > |
| 28 | <?php $this->render( 'admin/global/sui-components/sui-icon', array( 'icon' => 'academy' ) ); ?> |
| 29 | <?php esc_html_e( 'View Documentation', 'hustle' ); ?> |
| 30 | </a> |
| 31 | |
| 32 | </div> |
| 33 | |
| 34 | <?php endif; ?> |
| 35 | |
| 36 | </div> |
| 37 | |
| 38 | <?php |
| 39 | // Show floating notifications wrapper. |
| 40 | if ( $notifications ) { |
| 41 | echo '<div id="hustle-floating-notifications-wrapper" class="sui-floating-notices"></div>'; |
| 42 | } |
| 43 |