template.php
6 years ago
tpl--empty-message.php
2 years ago
tpl--icons-appearance.php
4 years ago
tpl--icons-style.php
6 years ago
tpl--empty-message.php
49 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Message for when no display types were selected. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div id="hustle-appearance-empty-message" class="sui-message"<?php echo ! $is_empty ? ' style="display: none;"' : ''; ?>> |
| 11 | |
| 12 | <?php |
| 13 | if ( ! $this->is_branding_hidden ) : |
| 14 | $image_attrs = array( |
| 15 | 'path' => self::$plugin_url . 'assets/images/no-result.png', |
| 16 | 'retina_path' => self::$plugin_url . 'assets/images/no-result@2x.png', |
| 17 | ); |
| 18 | else : |
| 19 | $image_attrs = array( |
| 20 | 'path' => $this->branding_image, |
| 21 | 'width' => 172, |
| 22 | 'height' => 192, |
| 23 | ); |
| 24 | endif; |
| 25 | $image_attrs['class'] = 'sui-image'; |
| 26 | |
| 27 | // Image markup. |
| 28 | $this->render( 'admin/image-markup', $image_attrs ); |
| 29 | ?> |
| 30 | |
| 31 | <div class="sui-message-content"> |
| 32 | |
| 33 | <h2><?php esc_html_e( 'No Display Option Enabled', 'hustle' ); ?></h2> |
| 34 | |
| 35 | <p> |
| 36 | <?php |
| 37 | printf( |
| 38 | /* translators: 1: opening a tag, 2: closing a tag */ |
| 39 | esc_html__( 'Whoops, you need to choose where you want the social widget to show up first. Jump back to %1$sDisplay Options%2$s and enable a module.', 'hustle' ), |
| 40 | '<a href="#" data-tab="display" class="hustle-go-to-tab">', |
| 41 | '</a>' |
| 42 | ); |
| 43 | ?> |
| 44 | </p> |
| 45 | |
| 46 | </div> |
| 47 | |
| 48 | </div> |
| 49 |