position-horizontal-vertical.php
3 years ago
position-offset.php
6 years ago
template.php
6 years ago
tpl--floating-social.php
6 years ago
tpl--inline-content.php
5 years ago
tpl--position-settings.php
5 years ago
tpl--shortcode.php
6 years ago
tpl--widget.php
5 years ago
tpl--floating-social.php
87 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Floating display type section. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div class="sui-box-settings-row"> |
| 11 | |
| 12 | <div class="sui-box-settings-col-1"> |
| 13 | |
| 14 | <span class="sui-settings-label"><?php esc_html_e( 'Floating Social', 'hustle' ); ?></span> |
| 15 | |
| 16 | <span class="sui-description"><?php esc_html_e( 'Add a floating social bar to your website and also customize its location.', 'hustle' ); ?></span> |
| 17 | |
| 18 | </div> |
| 19 | |
| 20 | <div class="sui-box-settings-col-2"> |
| 21 | |
| 22 | <?php |
| 23 | // SETTINGS: Enable on desktop. |
| 24 | $this->render( |
| 25 | 'admin/sshare/display-options/tpl--position-settings', |
| 26 | array( |
| 27 | 'label' => esc_html__( 'on desktop', 'hustle' ), |
| 28 | 'description' => esc_html__( 'Enabling this will add a floating social bar to your website when visitors are on a desktop.', 'hustle' ), |
| 29 | 'prefix' => 'float_desktop', |
| 30 | 'settings' => $settings, |
| 31 | 'offset_x' => true, |
| 32 | 'offset_y' => true, |
| 33 | 'positions' => array( |
| 34 | 'left' => array( |
| 35 | 'label' => esc_html__( 'Left', 'hustle' ), |
| 36 | 'image1x' => 'social-position/float-desktop-left.png', |
| 37 | 'image2x' => 'social-position/float-desktop-left@2x.png', |
| 38 | ), |
| 39 | 'right' => array( |
| 40 | 'label' => esc_html__( 'Right', 'hustle' ), |
| 41 | 'image1x' => 'social-position/float-desktop-right.png', |
| 42 | 'image2x' => 'social-position/float-desktop-right@2x.png', |
| 43 | ), |
| 44 | 'center' => array( |
| 45 | 'label' => esc_html__( 'Centered', 'hustle' ), |
| 46 | 'image1x' => 'social-position/float-desktop-center.png', |
| 47 | 'image2x' => 'social-position/float-desktop-center@2x.png', |
| 48 | ), |
| 49 | ), |
| 50 | ) |
| 51 | ); |
| 52 | |
| 53 | // SETTINGS: Enable on mobile. |
| 54 | $this->render( |
| 55 | 'admin/sshare/display-options/tpl--position-settings', |
| 56 | array( |
| 57 | 'label' => esc_html__( 'on mobile', 'hustle' ), |
| 58 | 'description' => esc_html__( 'Enabling this will add a floating social bar to your website when visitors are on a mobile device.', 'hustle' ), |
| 59 | 'prefix' => 'float_mobile', |
| 60 | 'settings' => $settings, |
| 61 | 'offset_x' => true, |
| 62 | 'offset_y' => true, |
| 63 | 'positions' => array( |
| 64 | 'left' => array( |
| 65 | 'label' => esc_html__( 'Left', 'hustle' ), |
| 66 | 'image1x' => 'social-position/float-mobile-left.png', |
| 67 | 'image2x' => 'social-position/float-mobile-left@2x.png', |
| 68 | ), |
| 69 | 'right' => array( |
| 70 | 'label' => esc_html__( 'Right', 'hustle' ), |
| 71 | 'image1x' => 'social-position/float-mobile-right.png', |
| 72 | 'image2x' => 'social-position/float-mobile-right@2x.png', |
| 73 | ), |
| 74 | 'center' => array( |
| 75 | 'label' => esc_html__( 'Centered', 'hustle' ), |
| 76 | 'image1x' => 'social-position/float-mobile-center.png', |
| 77 | 'image2x' => 'social-position/float-mobile-center@2x.png', |
| 78 | ), |
| 79 | ), |
| 80 | ) |
| 81 | ); |
| 82 | ?> |
| 83 | |
| 84 | </div> |
| 85 | |
| 86 | </div> |
| 87 |