PluginProbe
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.6.4
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.6.4
7.8.14.2 7.8.14 7.8.14.1 7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 All 103 releases
wordpress-popup / views / admin / sshare / display-options / position-horizontal-vertical.php
position-horizontal-vertical.php
99 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Positioning - Horizontal and Vertical sections.
4 *
5 * @package Hustle
6 * @since 4.3.0
7 */
8
9 ?>
10 <div class="sui-form-field">
11
12 <?php // SETTINGS: Horizontal Position. ?>
13 <?php if ( 'inline' !== $prefix ) : ?>
14
15 <label class="sui-settings-label"><?php esc_html_e( 'Horizontal Position', 'hustle' ); ?></label>
16 <span class="sui-description"><?php esc_html_e( 'Choose the horizontal position of the Floating Social.', 'hustle' ); ?></span>
17
18 <?php else : ?>
19
20 <label class="sui-settings-label"><?php esc_html_e( 'Position', 'hustle' ); ?></label>
21 <span class="sui-description"><?php esc_html_e( 'Choose the position for the Floating Social.', 'hustle' ); ?></span>
22
23 <?php endif; ?>
24
25 <?php if ( ! empty( $positions ) ) : ?>
26
27 <div style="margin-top: 10px;">
28
29 <?php foreach ( $positions as $pkey => $position ) : ?>
30
31 <label
32 for="hustle-position-<?php echo esc_html( $prefix ); ?>-<?php echo esc_html( $pkey ); ?>"
33 class="sui-radio-image"
34 >
35
36 <?php
37 $image_path = self::$plugin_url . 'assets/images/' . $position['image1x'];
38 $image_retina_path = self::$plugin_url . 'assets/images/' . $position['image2x'];
39 echo $this->render_image_markup( $image_path, $image_retina_path ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
40 ?>
41
42 <span class="sui-radio">
43 <input
44 type="radio"
45 name="<?php echo esc_html( $prefix ); ?>_position"
46 data-attribute="<?php echo esc_html( $prefix ); ?>_position"
47 value="<?php echo esc_html( $pkey ); ?>"
48 id="hustle-position-<?php echo esc_html( $prefix ); ?>-<?php echo esc_html( $pkey ); ?>"
49 <?php checked( $settings[ $prefix . '_position' ], $pkey ); ?>
50 />
51 <span aria-hidden="true"></span>
52 <span><?php echo esc_html( $position['label'] ); ?></span>
53 </span>
54
55 </label>
56
57 <?php endforeach; ?>
58
59 </div>
60
61 <?php endif; ?>
62
63 </div>
64
65 <?php // SETTINGS: Vertical Position. ?>
66 <?php if ( isset( $offset_y ) && ( true === $offset_y ) ) : ?>
67
68 <div class="sui-form-field">
69
70 <label class="sui-settings-label"><?php esc_html_e( 'Vertical Position', 'hustle' ); ?></label>
71 <span class="sui-description" style="margin-bottom: 10px;"><?php esc_html_e( 'Choose the vertical position of the Floating Social.', 'hustle' ); ?></span>
72
73 <?php
74 $this->render(
75 'admin/global/sui-components/sui-tabs',
76 array(
77 'name' => $prefix . '_position_y',
78 'radio' => true,
79 'saved_value' => $settings[ $prefix . '_position_y' ],
80 'sidetabs' => true,
81 'content' => false,
82 'options' => array(
83 'top' => array(
84 'value' => 'top',
85 'label' => __( 'Top', 'hustle' ),
86 ),
87 'bottom' => array(
88 'value' => 'bottom',
89 'label' => __( 'Bottom', 'hustle' ),
90 ),
91 ),
92 )
93 );
94 ?>
95
96 </div>
97
98 <?php endif; ?>
99