PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.9
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.9
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 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / views / admin / sshare / display-options / position-horizontal-vertical.php
wordpress-popup / views / admin / sshare / display-options Last commit date
position-horizontal-vertical.php 3 years ago position-offset.php 5 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 3 years ago tpl--shortcode.php 10 months ago tpl--widget.php 3 years ago
position-horizontal-vertical.php
102 lines
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 <?php
36 $image_attrs = array(
37 'path' => self::$plugin_url . 'assets/images/' . $position['image1x'],
38 'retina_path' => self::$plugin_url . 'assets/images/' . $position['image2x'],
39 );
40
41 // Image markup.
42 $this->render( 'admin/image-markup', $image_attrs );
43 ?>
44
45 <span class="sui-radio">
46 <input
47 type="radio"
48 name="<?php echo esc_html( $prefix ); ?>_position"
49 data-attribute="<?php echo esc_html( $prefix ); ?>_position"
50 value="<?php echo esc_html( $pkey ); ?>"
51 id="hustle-position-<?php echo esc_html( $prefix ); ?>-<?php echo esc_html( $pkey ); ?>"
52 <?php checked( $settings[ $prefix . '_position' ], $pkey ); ?>
53 />
54 <span aria-hidden="true"></span>
55 <span><?php echo esc_html( $position['label'] ); ?></span>
56 </span>
57
58 </label>
59
60 <?php endforeach; ?>
61
62 </div>
63
64 <?php endif; ?>
65
66 </div>
67
68 <?php // SETTINGS: Vertical Position. ?>
69 <?php if ( isset( $offset_y ) && ( true === $offset_y ) ) : ?>
70
71 <div class="sui-form-field">
72
73 <label class="sui-settings-label"><?php esc_html_e( 'Vertical Position', 'hustle' ); ?></label>
74 <span class="sui-description" style="margin-bottom: 10px;"><?php esc_html_e( 'Choose the vertical position of the Floating Social.', 'hustle' ); ?></span>
75
76 <?php
77 $this->render(
78 'admin/global/sui-components/sui-tabs',
79 array(
80 'name' => $prefix . '_position_y',
81 'radio' => true,
82 'saved_value' => $settings[ $prefix . '_position_y' ],
83 'sidetabs' => true,
84 'content' => false,
85 'options' => array(
86 'top' => array(
87 'value' => 'top',
88 'label' => __( 'Top', 'hustle' ),
89 ),
90 'bottom' => array(
91 'value' => 'bottom',
92 'label' => __( 'Bottom', 'hustle' ),
93 ),
94 ),
95 )
96 );
97 ?>
98
99 </div>
100
101 <?php endif; ?>
102