template.php
6 years ago
tpl--empty-message.php
5 years ago
tpl--icons-appearance.php
5 years ago
tpl--icons-style.php
6 years ago
tpl--icons-style.php
66 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Icons style section. |
| 4 | * |
| 5 | * @var bool $is_empty True if neither inline nor floating display types are enabled. |
| 6 | * |
| 7 | * @package Hustle |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | $options = array( |
| 12 | 'flat' => array( |
| 13 | 'value' => 'flat', |
| 14 | 'label' => __( 'Default', 'hustle' ), |
| 15 | 'hui-icon' => 'social-facebook', |
| 16 | 'icon-size' => 'sm', |
| 17 | ), |
| 18 | 'outline' => array( |
| 19 | 'value' => 'outline', |
| 20 | 'label' => __( 'Outlined', 'hustle' ), |
| 21 | 'hui-icon' => 'social-facebook hui-icon-outlined', |
| 22 | 'icon-size' => 'sm', |
| 23 | ), |
| 24 | 'rounded' => array( |
| 25 | 'value' => 'rounded', |
| 26 | 'label' => __( 'Circle', 'hustle' ), |
| 27 | 'hui-icon' => 'social-facebook hui-icon-circle', |
| 28 | 'icon-size' => 'sm', |
| 29 | ), |
| 30 | 'squared' => array( |
| 31 | 'value' => 'squared', |
| 32 | 'label' => __( 'Square', 'hustle' ), |
| 33 | 'hui-icon' => 'social-facebook hui-icon-square', |
| 34 | 'icon-size' => 'sm', |
| 35 | ), |
| 36 | ); |
| 37 | ?> |
| 38 | <div id="hustle-appearance-icons-style" class="sui-box-settings-row"<?php echo $is_empty ? ' style="display: none;"' : ''; ?>> |
| 39 | |
| 40 | <div class="sui-box-settings-col-1"> |
| 41 | |
| 42 | <span class="sui-settings-label"><?php esc_html_e( 'Icons Style', 'hustle' ); ?></span> |
| 43 | <span class="sui-description"><?php esc_html_e( 'Choose the style for your social icons as per your need.', 'hustle' ); ?></span> |
| 44 | |
| 45 | </div> |
| 46 | |
| 47 | <div class="sui-box-settings-col-2"> |
| 48 | |
| 49 | <?php |
| 50 | $this->render( |
| 51 | 'admin/global/sui-components/sui-tabs', |
| 52 | array( |
| 53 | 'name' => 'icon_style', |
| 54 | 'radio' => true, |
| 55 | 'saved_value' => $icon_style, |
| 56 | 'sidetabs' => true, |
| 57 | 'content' => false, |
| 58 | 'options' => $options, |
| 59 | ) |
| 60 | ); |
| 61 | ?> |
| 62 | |
| 63 | </div> |
| 64 | |
| 65 | </div> |
| 66 |