dialogs
5 years ago
elements
4 years ago
tab-appearance
4 years ago
tab-behaviour
4 years ago
tab-content
4 years ago
tab-display-options
5 years ago
tab-emails
4 years ago
tab-visibility
4 years ago
templates
4 years ago
navigation.php
4 years ago
status-bar.php
5 years ago
wizard.php
4 years ago
status-bar.php
83 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Wizard status bar. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div class="sui-box sui-box-sticky"> |
| 11 | |
| 12 | <div class="sui-box-status"> |
| 13 | |
| 14 | <div class="sui-status"> |
| 15 | |
| 16 | <div class="sui-status-module"> |
| 17 | |
| 18 | <?php esc_html_e( 'Status', 'hustle' ); ?> |
| 19 | |
| 20 | <?php if ( $is_active ) : ?> |
| 21 | <span class="sui-tag sui-tag-blue"><?php esc_html_e( 'Published', 'hustle' ); ?></span> |
| 22 | <?php else : ?> |
| 23 | <span class="sui-tag"><?php esc_html_e( 'Draft', 'hustle' ); ?></span> |
| 24 | <?php endif; ?> |
| 25 | |
| 26 | </div> |
| 27 | |
| 28 | <div id="hustle-unsaved-changes-status" class="sui-status-changes sui-hidden"> |
| 29 | <span class="sui-icon-update" aria-hidden="true"></span> |
| 30 | <?php esc_html_e( 'Unsaved changes', 'hustle' ); ?> |
| 31 | </div> |
| 32 | |
| 33 | <div id="hustle-saved-changes-status" class="sui-status-changes"> |
| 34 | <span class="sui-icon-check-tick" aria-hidden="true"></span> |
| 35 | <?php esc_html_e( 'Saved', 'hustle' ); ?> |
| 36 | </div> |
| 37 | |
| 38 | </div> |
| 39 | |
| 40 | <div class="sui-actions"> |
| 41 | |
| 42 | <button class="sui-button sui-button-ghost hustle-action-save" data-active="0" style="border-color: transparent;"> |
| 43 | <span id="hustle-draft-button-save-draft-text" class="sui-loading-text<?php echo $is_active ? ' sui-hidden-important' : ''; ?>"> |
| 44 | <span class="sui-icon-save" aria-hidden="true"></span> |
| 45 | <span class="button-text"><?php esc_html_e( 'Save draft', 'hustle' ); ?></span> |
| 46 | </span> |
| 47 | <span id="hustle-draft-button-unpublish-text" class="sui-loading-text <?php echo $is_active ? '' : ' sui-hidden-important'; ?>"> |
| 48 | <span class="sui-icon-unpublish" aria-hidden="true"></span> |
| 49 | <span class="button-text"><?php esc_html_e( 'Unpublish', 'hustle' ); ?></span> |
| 50 | </span> |
| 51 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 52 | </button> |
| 53 | |
| 54 | <?php if ( 'social_sharing' !== $module_type ) : ?> |
| 55 | |
| 56 | <button id="hustle-preview-module" class="sui-button"> |
| 57 | <span class="sui-loading-text"> |
| 58 | <span class="sui-icon-eye" aria-hidden="true"></span> |
| 59 | <span class="button-text"><?php esc_html_e( 'Preview', 'hustle' ); ?></span> |
| 60 | </span> |
| 61 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 62 | </button> |
| 63 | |
| 64 | <?php endif; ?> |
| 65 | |
| 66 | <button |
| 67 | class="hustle-publish-button sui-button sui-button-blue hustle-action-save" |
| 68 | data-publish="<?php esc_attr_e( 'Publish', 'hustle' ); ?>" |
| 69 | data-update="<?php esc_attr_e( 'Update', 'hustle' ); ?>" |
| 70 | data-active="1"> |
| 71 | <span class="sui-loading-text"> |
| 72 | <span class="sui-icon-web-globe-world" aria-hidden="true"></span> |
| 73 | <span class="button-text"><?php $is_active ? esc_html_e( 'Update', 'hustle' ) : esc_html_e( 'Publish', 'hustle' ); ?></span> |
| 74 | </span> |
| 75 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 76 | </button> |
| 77 | |
| 78 | </div> |
| 79 | |
| 80 | </div> |
| 81 | |
| 82 | </div> |
| 83 |