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 / dashboard / dialogs / fresh-install.php
wordpress-popup / views / admin / dashboard / dialogs Last commit date
fresh-install.php 2 years ago migrate-data.php 2 years ago release-highlight.php 3 years ago review-conditions.php 3 years ago
fresh-install.php
181 lines
1 <?php
2 /**
3 * Welcome dialog for fresh installs.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 $user = wp_get_current_user();
10 $username = ! empty( $user->user_firstname ) ? $user->user_firstname : $user->user_login;
11 ?>
12
13 <div class="sui-modal sui-modal-sm">
14
15 <div
16 role="dialog"
17 id="hustle-dialog--welcome"
18 class="sui-modal-content"
19 aria-modal="true"
20 aria-live="polite"
21 aria-label="<?php /* translators: Plugin name */ echo esc_attr( sprintf( __( 'Welcome to %s.', 'hustle' ), Opt_In_Utils::get_plugin_name() ) ); ?>"
22 data-nonce="<?php echo esc_attr( wp_create_nonce( 'hustle_dismiss_notification' ) ); ?>"
23 >
24
25 <div
26 id="hustle-dialog--welcome-first"
27 class="sui-modal-slide sui-active"
28 data-modal-size="md"
29 >
30
31 <div class="sui-box">
32
33 <div class="sui-box-header sui-flatten sui-content-center">
34
35 <figure class="sui-box-banner" role="banner" aria-hidden="true">
36
37 <?php
38 if ( ! $this->is_branding_hidden ) :
39 $image_attrs = array(
40 'path' => self::$plugin_url . 'assets/images/onboard-image.png',
41 'retina_path' => self::$plugin_url . 'assets/images/onboard-image@2x.png',
42 );
43 else :
44 $image_attrs = array(
45 'path' => $this->branding_image,
46 'width' => 172,
47 'height' => 192,
48 );
49 endif;
50 $image_attrs['class'] = 'sui-image sui-image-center';
51
52 // Image markup.
53 $this->render( 'admin/image-markup', $image_attrs );
54 ?>
55 </figure>
56
57 <button class="sui-button-icon sui-button-float--right hustle-button-dismiss-welcome" data-modal-close>
58 <span class="sui-icon-close sui-md" aria-hidden="true"></span>
59 <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span>
60 </button>
61
62 <?php /* translators: current user's name */ ?>
63 <h3 class="sui-box-title sui-lg"><?php printf( esc_html__( 'Hey, %s', 'hustle' ), esc_html( $username ) ); ?></h3>
64
65 <p class="sui-description"><?php /* translators: Plugin name */ echo esc_html( sprintf( __( "Welcome to %s, the only plugin you'll ever need to turn your visitors into loyal subscribers, leads and customers.", 'hustle' ), Opt_In_Utils::get_plugin_name() ) ); ?></p>
66
67 </div>
68
69 <div class="sui-box-body sui-content-center sui-spacing-bottom--60">
70
71 <button
72 id="getStarted"
73 class="sui-button sui-button-blue sui-button-icon-right"
74 data-modal-slide="hustle-dialog--welcome-second"
75 >
76 <?php esc_html_e( 'Get Started', 'hustle' ); ?>
77 <span class="sui-icon-chevron-right" aria-hidden="true"></span>
78 </button>
79
80 </div>
81
82 </div>
83
84 <button class="sui-modal-skip" data-modal-close><?php esc_html_e( 'Skip this, I know my way around', 'hustle' ); ?></button>
85
86 </div>
87
88 <div
89 id="hustle-dialog--welcome-second"
90 class="sui-modal-slide sui-active"
91 data-modal-size="md"
92 >
93
94 <div class="sui-box">
95
96 <div class="sui-box-header sui-flatten sui-content-center">
97
98 <figure class="sui-box-banner" role="banner" aria-hidden="true">
99 <?php
100 // Image markup.
101 $this->render( 'admin/image-markup', $image_attrs );
102 ?>
103 </figure>
104
105 <button class="sui-button-icon sui-button-float--left" data-modal-slide="hustle-dialog--welcome-first">
106 <span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span>
107 <span class="sui-screen-reader-text"><?php esc_html_e( 'Return to previous slide', 'hustle' ); ?></span>
108 </button>
109
110 <button class="sui-button-icon sui-button-float--right hustle-button-dismiss-welcome" data-modal-close>
111 <span class="sui-icon-close sui-md" aria-hidden="true"></span>
112 <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span>
113 </button>
114
115 <h3 id="dialogTitle" class="sui-box-title sui-lg"><?php esc_html_e( 'Create Module', 'hustle' ); ?></h3>
116
117 <p class="sui-description"><?php esc_html_e( 'Choose a module to get started on converting your visitors into subscribers, generate more leads and grow your social following.', 'hustle' ); ?></p>
118
119 </div>
120
121 <div class="sui-box-selectors sui-box-selectors-col-2">
122
123 <ul>
124 <?php
125 $module_types = array(
126 'popup' => array(
127 'name' => __( 'Pop-up', 'hustle' ),
128 'icon' => 'popup',
129 ),
130 'slidein' => array(
131 'name' => __( 'Slide-in', 'hustle' ),
132 'icon' => 'slide-in',
133 ),
134 'embedded' => array(
135 'name' => __( 'Embed', 'hustle' ),
136 'icon' => 'embed',
137 ),
138 'social_sharing' => array(
139 'name' => __( 'Social Share', 'hustle' ),
140 'icon' => 'share',
141 ),
142 );
143
144 foreach ( $module_types as $key => $attr ) {
145 ?>
146
147 <li><label for="hustle-create-<?php echo esc_attr( $key ); ?>" class="sui-box-selector">
148 <input type="radio" name="hustle-create-welcome" id="hustle-create-<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $key ); ?>">
149 <span>
150 <span class="sui-icon-<?php echo esc_attr( $attr['icon'] ); ?>" aria-hidden="true"></span>
151 <?php echo esc_html( $attr['name'] ); ?>
152 </span>
153 </label></li>
154
155 <?php
156 }
157 ?>
158
159 </ul>
160
161 </div>
162
163 <div class="sui-box-body sui-content-center sui-spacing-bottom--60 sui-spacing-top--0">
164
165 <button id="hustle-new-create-module" class="sui-button sui-button-blue sui-button-icon-right" disabled="disabled">
166 <span class="sui-loading-text"><?php esc_html_e( 'Create', 'hustle' ); ?></span>
167 <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
168 </button>
169
170 </div>
171
172 </div>
173
174 <button class="sui-modal-skip" data-modal-close><?php esc_html_e( "Skip this, I'll create a module later", 'hustle' ); ?></button>
175
176 </div>
177
178 </div>
179
180 </div>
181