| 1 |
<?php |
| 2 |
/** |
| 3 |
* Setup wizard template. |
| 4 |
* |
| 5 |
* @category Visualizer |
| 6 |
* @package Templates |
| 7 |
*/ |
| 8 |
|
| 9 |
$dashboard_url = add_query_arg( |
| 10 |
array( |
| 11 |
'action' => 'visualizer_dismiss_wizard', |
| 12 |
'status' => 0, |
| 13 |
), |
| 14 |
admin_url( 'admin.php' ) |
| 15 |
); |
| 16 |
|
| 17 |
$chart_id = ! empty( $this->wizard_data['chart_id'] ) ? (int) $this->wizard_data['chart_id'] : ''; |
| 18 |
$chart_type_default = ! empty( $this->wizard_data['chart_type'] ) ? $this->wizard_data['chart_type'] : 'pie'; |
| 19 |
$wp_optimole_active = is_plugin_active( 'optimole-wp/optimole-wp.php' ); |
| 20 |
$wp_otter_active = is_plugin_active( 'otter-blocks/otter-blocks.php' ); |
| 21 |
$wp_spc_active = is_plugin_active( 'wp-cloudflare-page-cache/wp-cloudflare-super-page-cache.php' ); |
| 22 |
$last_step_number = 3; |
| 23 |
|
| 24 |
// Check if we are in the Live Preview which is used to showcase only the plugin features without any other distractions. Ideal for marketing purposes (like Live Preview on WordPress.org or on the plugin's website) |
| 25 |
$is_live_preview = ! empty( $_GET['env'] ) ? ( 'preview' === sanitize_key( $_GET['env'] ) ) : false; |
| 26 |
|
| 27 |
?> |
| 28 |
<div class="vz-wizard-wrap vz-wrap"> |
| 29 |
<div class="vz-header--small"> |
| 30 |
<div class="container"> |
| 31 |
<div class="vz-logo"> |
| 32 |
<div class="vz-logo-icon"> |
| 33 |
<img src="<?php echo esc_url( VISUALIZER_ABSURL . 'images/visualizer-logo.svg' ); ?>" width="136" height="54" alt=""> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
<div class="back-btn"> |
| 37 |
<a href="<?php echo esc_url( $dashboard_url ); ?>" class="btn-link"> |
| 38 |
<span class="dashicons dashicons-arrow-left-alt"></span><?php esc_html_e( 'Go to dashboard', 'visualizer' ); ?> |
| 39 |
</a> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<div class="container"> |
| 44 |
<div class="vz-wizard"> |
| 45 |
<div id="smartwizard" class="sw"> |
| 46 |
<ul class="nav"> |
| 47 |
<li class="nav-item"> |
| 48 |
<a class="nav-link" href="#step-1"> |
| 49 |
1 |
| 50 |
</a> |
| 51 |
</li> |
| 52 |
<li class="nav-item"> |
| 53 |
<a class="nav-link" href="#step-2"> |
| 54 |
2 |
| 55 |
</a> |
| 56 |
</li> |
| 57 |
<?php if ( ! $is_live_preview ) { ?> |
| 58 |
<li class="nav-item"> |
| 59 |
<a class="nav-link" href="#step-3"> |
| 60 |
3 |
| 61 |
</a> |
| 62 |
</li> |
| 63 |
<?php } ?> |
| 64 |
</ul> |
| 65 |
<div class="tab-content"> |
| 66 |
<div id="step-1" class="tab-pane" role="tabpanel" aria-labelledby="step-1"> |
| 67 |
<div class="vz-accordion-item"> |
| 68 |
<div class="vz-accordion-item__title"> |
| 69 |
<div class="vz-accordion-item__button"> |
| 70 |
<h2 class="h2 pb-8"> |
| 71 |
<?php esc_html_e( 'Select a chart from the options available below', 'visualizer' ); ?></h2> |
| 72 |
<p class="p"> |
| 73 |
<?php esc_html_e( 'Pro tip: Keep your requirements in mind and choose the best chart to meet them.', 'visualizer' ); ?> |
| 74 |
</p> |
| 75 |
</div> |
| 76 |
</div> |
| 77 |
<div class="vz-accordion-item__content border-top"> |
| 78 |
<div class="vz-form-wrap"> |
| 79 |
<div class="form-block pb-0"> |
| 80 |
<div class="vz-chart-list"> |
| 81 |
<ul> |
| 82 |
<li> |
| 83 |
<label class="vz-chart-option" for="vz-chart-1"> |
| 84 |
<input type="radio" class="vz-radio-btn" id="vz-chart-1" name="visualizer[wizard_data][chart_type]" value="pie" <?php echo checked( $chart_type_default, 'pie', false ); ?>> |
| 85 |
<h3 class="h3"><?php esc_html_e( 'Pie/Donut chart', 'visualizer' ); ?></h3> |
| 86 |
<div class="img type-box-pie"></div> |
| 87 |
<div class="bg"></div> |
| 88 |
</label> |
| 89 |
</li> |
| 90 |
<li> |
| 91 |
<label class="vz-chart-option" for="vz-chart-2"> |
| 92 |
<input type="radio" class="vz-radio-btn" id="vz-chart-2" name="visualizer[wizard_data][chart_type]" value="bar" <?php echo checked( $chart_type_default, 'bar', false ); ?>> |
| 93 |
<h3 class="h3"><?php esc_html_e( 'Bar chart', 'visualizer' ); ?></h3> |
| 94 |
<div class="img type-box-bar"></div> |
| 95 |
<div class="bg"></div> |
| 96 |
</label> |
| 97 |
</li> |
| 98 |
<li> |
| 99 |
<label class="vz-chart-option" for="vz-chart-3"> |
| 100 |
<input type="radio" class="vz-radio-btn" id="vz-chart-3" name="visualizer[wizard_data][chart_type]" value="line" <?php echo checked( $chart_type_default, 'line', false ); ?>> |
| 101 |
<h3 class="h3"><?php esc_html_e( 'Line chart', 'visualizer' ); ?></h3> |
| 102 |
<div class="img type-box-line"></div> |
| 103 |
<div class="bg"></div> |
| 104 |
</label> |
| 105 |
</li> |
| 106 |
<li> |
| 107 |
<label class="vz-chart-option" for="vz-chart-4"> |
| 108 |
<input type="radio" class="vz-radio-btn" id="vz-chart-4" name="visualizer[wizard_data][chart_type]" value="tabular" <?php echo checked( $chart_type_default, 'tabular', false ); ?>> |
| 109 |
<h3 class="h3"><?php esc_html_e( 'Table', 'visualizer' ); ?></h3> |
| 110 |
<div class="img type-box-tabular"></div> |
| 111 |
<div class="bg"></div> |
| 112 |
</label> |
| 113 |
</li> |
| 114 |
<li> |
| 115 |
<div class="vz-pro-option"> |
| 116 |
<label class="vz-chart-option"> |
| 117 |
<input type="radio" class="vz-radio-btn" id="vz-chart-5" readonly> |
| 118 |
<div class="vz-pro-label-wrap"> |
| 119 |
<h3><?php esc_html_e( 'Geo chart', 'visualizer' ); ?></h3> |
| 120 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 121 |
</div> |
| 122 |
<div class="img type-box-geo"></div> |
| 123 |
<div class="bg"></div> |
| 124 |
</label> |
| 125 |
<div class="pro-overlay"> |
| 126 |
<div class="pro-box"> |
| 127 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 128 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 129 |
</div> |
| 130 |
</div> |
| 131 |
</div> |
| 132 |
</li> |
| 133 |
<li> |
| 134 |
<div class="vz-pro-option"> |
| 135 |
<label class="vz-chart-option"> |
| 136 |
<input type="radio" class="vz-radio-btn" id="vz-chart-6" readonly> |
| 137 |
<div class="vz-pro-label-wrap"> |
| 138 |
<h3><?php esc_html_e( 'Area chart', 'visualizer' ); ?></h3> |
| 139 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 140 |
</div> |
| 141 |
<div class="img type-box-area"></div> |
| 142 |
<div class="bg"></div> |
| 143 |
</label> |
| 144 |
<div class="pro-overlay"> |
| 145 |
<div class="pro-box"> |
| 146 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 147 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 148 |
</div> |
| 149 |
</div> |
| 150 |
</div> |
| 151 |
</li> |
| 152 |
<li> |
| 153 |
<div class="vz-pro-option"> |
| 154 |
<label class="vz-chart-option"> |
| 155 |
<input type="radio" class="vz-radio-btn" id="vz-chart-7" readonly> |
| 156 |
<div class="vz-pro-label-wrap"> |
| 157 |
<h3><?php esc_html_e( 'Column chart', 'visualizer' ); ?></h3> |
| 158 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 159 |
</div> |
| 160 |
<div class="img type-box-column"></div> |
| 161 |
<div class="bg"></div> |
| 162 |
</label> |
| 163 |
<div class="pro-overlay"> |
| 164 |
<div class="pro-box"> |
| 165 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 166 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 167 |
</div> |
| 168 |
</div> |
| 169 |
</div> |
| 170 |
</li> |
| 171 |
<li> |
| 172 |
<div class="vz-pro-option"> |
| 173 |
<label class="vz-chart-option"> |
| 174 |
<input type="radio" class="vz-radio-btn" id="vz-chart-8" readonly> |
| 175 |
<div class="vz-pro-label-wrap"> |
| 176 |
<h3><?php esc_html_e( 'Bubble chart', 'visualizer' ); ?></h3> |
| 177 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 178 |
</div> |
| 179 |
<div class="img type-box-bubble"></div> |
| 180 |
<div class="bg"></div> |
| 181 |
</label> |
| 182 |
<div class="pro-overlay"> |
| 183 |
<div class="pro-box"> |
| 184 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 185 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 186 |
</div> |
| 187 |
</div> |
| 188 |
</div> |
| 189 |
</li> |
| 190 |
<li> |
| 191 |
<div class="vz-pro-option"> |
| 192 |
<label class="vz-chart-option"> |
| 193 |
<input type="radio" class="vz-radio-btn" id="vz-chart-9" readonly> |
| 194 |
<div class="vz-pro-label-wrap"> |
| 195 |
<h3><?php esc_html_e( 'Scatter chart', 'visualizer' ); ?></h3> |
| 196 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 197 |
</div> |
| 198 |
<div class="img type-box-scatter"></div> |
| 199 |
<div class="bg"></div> |
| 200 |
</label> |
| 201 |
<div class="pro-overlay"> |
| 202 |
<div class="pro-box"> |
| 203 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 204 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 205 |
</div> |
| 206 |
</div> |
| 207 |
</div> |
| 208 |
</li> |
| 209 |
<li> |
| 210 |
<div class="vz-pro-option"> |
| 211 |
<label class="vz-chart-option"> |
| 212 |
<input type="radio" class="vz-radio-btn" id="vz-chart-10" readonly> |
| 213 |
<div class="vz-pro-label-wrap"> |
| 214 |
<h3><?php esc_html_e( 'Gauge chart', 'visualizer' ); ?></h3> |
| 215 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 216 |
</div> |
| 217 |
<div class="img type-box-gauge"></div> |
| 218 |
<div class="bg"></div> |
| 219 |
</label> |
| 220 |
<div class="pro-overlay"> |
| 221 |
<div class="pro-box"> |
| 222 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 223 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 224 |
</div> |
| 225 |
</div> |
| 226 |
</div> |
| 227 |
</li> |
| 228 |
<li> |
| 229 |
<div class="vz-pro-option"> |
| 230 |
<label class="vz-chart-option"> |
| 231 |
<input type="radio" class="vz-radio-btn" id="vz-chart-11" readonly> |
| 232 |
<div class="vz-pro-label-wrap"> |
| 233 |
<h3><?php esc_html_e( 'Candlestick chart', 'visualizer' ); ?></h3> |
| 234 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 235 |
</div> |
| 236 |
<div class="img type-box-candlestick"></div> |
| 237 |
<div class="bg"></div> |
| 238 |
</label> |
| 239 |
<div class="pro-overlay"> |
| 240 |
<div class="pro-box"> |
| 241 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 242 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 243 |
</div> |
| 244 |
</div> |
| 245 |
</div> |
| 246 |
</li> |
| 247 |
<li> |
| 248 |
<div class="vz-pro-option"> |
| 249 |
<label class="vz-chart-option"> |
| 250 |
<input type="radio" class="vz-radio-btn" id="vz-chart-12" readonly> |
| 251 |
<div class="vz-pro-label-wrap"> |
| 252 |
<h3><?php esc_html_e( 'Timeline', 'visualizer' ); ?></h3> |
| 253 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 254 |
</div> |
| 255 |
<div class="img type-box-timeline"></div> |
| 256 |
<div class="bg"></div> |
| 257 |
</label> |
| 258 |
<div class="pro-overlay"> |
| 259 |
<div class="pro-box"> |
| 260 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 261 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 262 |
</div> |
| 263 |
</div> |
| 264 |
</div> |
| 265 |
</li> |
| 266 |
<li> |
| 267 |
<div class="vz-pro-option"> |
| 268 |
<label class="vz-chart-option"> |
| 269 |
<input type="radio" class="vz-radio-btn" id="vz-chart-13" readonly> |
| 270 |
<div class="vz-pro-label-wrap"> |
| 271 |
<h3><?php esc_html_e( 'Combo', 'visualizer' ); ?></h3> |
| 272 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 273 |
</div> |
| 274 |
<div class="img type-box-combo"></div> |
| 275 |
<div class="bg"></div> |
| 276 |
</label> |
| 277 |
<div class="pro-overlay"> |
| 278 |
<div class="pro-box"> |
| 279 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 280 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 281 |
</div> |
| 282 |
</div> |
| 283 |
</div> |
| 284 |
</li> |
| 285 |
<li> |
| 286 |
<div class="vz-pro-option"> |
| 287 |
<label class="vz-chart-option"> |
| 288 |
<input type="radio" class="vz-radio-btn" id="vz-chart-14" readonly> |
| 289 |
<div class="vz-pro-label-wrap"> |
| 290 |
<h3><?php esc_html_e( 'Polar Area', 'visualizer' ); ?></h3> |
| 291 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 292 |
</div> |
| 293 |
<div class="img type-box-polarArea"></div> |
| 294 |
<div class="bg"></div> |
| 295 |
</label> |
| 296 |
<div class="pro-overlay"> |
| 297 |
<div class="pro-box"> |
| 298 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 299 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 300 |
</div> |
| 301 |
</div> |
| 302 |
</div> |
| 303 |
</li> |
| 304 |
<li> |
| 305 |
<div class="vz-pro-option"> |
| 306 |
<label class="vz-chart-option"> |
| 307 |
<input type="radio" class="vz-radio-btn" id="vz-chart-15" readonly> |
| 308 |
<div class="vz-pro-label-wrap"> |
| 309 |
<h3><?php esc_html_e( 'Radar', 'visualizer' ); ?></h3> |
| 310 |
<span class="pro-label"><?php esc_html_e( 'PREMIUM', 'visualizer' ); ?></span> |
| 311 |
</div> |
| 312 |
<div class="img type-box-radar"></div> |
| 313 |
<div class="bg"></div> |
| 314 |
</label> |
| 315 |
<div class="pro-overlay"> |
| 316 |
<div class="pro-box"> |
| 317 |
<a href="<?php echo esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'setupWizard' ) ); ?>" |
| 318 |
class="btn btn-secondary" target="_blank"><?php esc_html_e( 'Upgrade to Pro', 'visualizer' ); ?></a> |
| 319 |
</div> |
| 320 |
</div> |
| 321 |
</div> |
| 322 |
</li> |
| 323 |
</ul> |
| 324 |
</div> |
| 325 |
</div> |
| 326 |
<div class="form-block"> |
| 327 |
<button class="btn btn-primary disabled" data-step_number="1"><?php esc_html_e( 'Save And Continue', 'visualizer' ); ?> <span class="dashicons dashicons-arrow-right-alt"></span></button> |
| 328 |
<span class="spinner"></span> |
| 329 |
<div class="vz-import-status" style="display: none;"> |
| 330 |
<div class="vz-error-notice notice notice-error hidden"></div> |
| 331 |
<p class="p pb-8" data-import_message="<?php esc_attr_e( 'Done! Demo data has been successfully imported.', 'visualizer' ); ?>" data-import_initial="<?php esc_attr_e( 'Importing demo data for your selected chart...', 'visualizer' ); ?>"><?php esc_html_e( 'Importing demo data for your selected chart...', 'visualizer' ); ?></p> |
| 332 |
<div class="vz-progress"> |
| 333 |
<div class="vz-progress-bar"></div> |
| 334 |
</div> |
| 335 |
</div> |
| 336 |
</div> |
| 337 |
</div> |
| 338 |
</div> |
| 339 |
</div> |
| 340 |
</div> |
| 341 |
<div id="step-2" class="tab-pane" role="tabpanel" aria-labelledby="step-2"> |
| 342 |
<div class="vz-accordion-item"> |
| 343 |
<div class="vz-accordion-item__title"> |
| 344 |
<div class="vz-accordion-item__button"> |
| 345 |
<h2 class="h2 pb-8"><?php esc_html_e( 'Insert a chart into the draft page', 'visualizer' ); ?></h2> |
| 346 |
<p class="p"><?php esc_html_e( 'Create a draft page featuring a Visualizer chart with just one click.', 'visualizer' ); ?></p> |
| 347 |
</div> |
| 348 |
</div> |
| 349 |
<div class="vz-accordion-item__content border-top"> |
| 350 |
<div class="vz-form-wrap"> |
| 351 |
<div class="form-block"> |
| 352 |
<div class="vz-accordion-item vz-features-accordion mb-0"> |
| 353 |
<div class="vz-shortcode-preview-box"> |
| 354 |
<div class="vz-accordion-item__title vz-accordion-checkbox__title vz-accordion-title--static"> |
| 355 |
<div class="vz-checkbox"> |
| 356 |
<input type="checkbox" class="vz-checkbox-btn" id="insert_shortcode" checked <?php echo $is_live_preview ? 'disabled' : ''; ?>> |
| 357 |
</div> |
| 358 |
<div> |
| 359 |
<div class="vz-accordion__step-title h4 pb-4"><?php esc_html_e( 'Create a draft page', 'visualizer' ); ?></div> |
| 360 |
<p class="help-text"><?php esc_html_e( 'We will automatically create a draft page with Visualizer chart for preview', 'visualizer' ); ?></p> |
| 361 |
</div> |
| 362 |
</div> |
| 363 |
<div class="vz-accordion-item__content vz-accordion-content--static"> |
| 364 |
<div class="vz-shortcode-preview-content"> |
| 365 |
<?php $shortcode = '[visualizer id="{{chart_id}}" class=""]'; ?> |
| 366 |
<?php if ( $is_live_preview ) { ?> |
| 367 |
<p class="pb-16"><?php esc_html_e( 'Charts are added in the page/post via Gutenberg Blocks.', 'visualizer' ); ?></p> |
| 368 |
<p class="pb-16"><?php esc_html_e( 'Alternatively, you can use a shortcode with the following structure:', 'visualizer' ); ?></p> |
| 369 |
<?php } else { ?> |
| 370 |
<h4 class="h4 pb-16"><?php esc_html_e( 'Chart preview', 'visualizer' ); ?></h4> |
| 371 |
<div class="vz-chart pb-30"> |
| 372 |
<?php |
| 373 |
if ( ! empty( $_GET['preview_chart'] ) ) { |
| 374 |
$shortcode = str_replace( '{{chart_id}}', $chart_id, $shortcode ); |
| 375 |
echo do_shortcode( $shortcode ); |
| 376 |
} |
| 377 |
?> |
| 378 |
</div> |
| 379 |
<?php } ?> |
| 380 |
<div class="vz-code-box"> |
| 381 |
<input type="text" id="basic_shortcode" value="<?php echo esc_attr( $shortcode ); ?>" readonly> |
| 382 |
<button type="button" class="vz-copy-code-btn" data-clipboard-target="#basic_shortcode"><?php esc_html_e( 'click to copy', 'visualizer' ); ?> <img src="<?php echo esc_url( VISUALIZER_ABSURL . 'images/copy.svg' ); ?>" alt=""> |
| 383 |
</button> |
| 384 |
</div> |
| 385 |
</div> |
| 386 |
</div> |
| 387 |
</div> |
| 388 |
</div> |
| 389 |
</div> |
| 390 |
<div class="form-block"> |
| 391 |
<button class="btn btn-primary vz-create-page"><?php esc_html_e( 'Save And Continue', 'visualizer' ); ?> <span class="dashicons dashicons-arrow-right-alt"></span></button> |
| 392 |
<span class="spinner"></span> |
| 393 |
</div> |
| 394 |
</div> |
| 395 |
</div> |
| 396 |
</div> |
| 397 |
</div> |
| 398 |
<?php if ( ! $is_live_preview ) { ?> |
| 399 |
<div id="step-<?php echo esc_attr( $last_step_number ); ?>" class="tab-pane" role="tabpanel" aria-labelledby="step-<?php echo esc_attr( $last_step_number ); ?>"> |
| 400 |
<div class="vz-accordion-item"> |
| 401 |
<div class="vz-accordion-item__title"> |
| 402 |
<div class="vz-accordion-item__button"> |
| 403 |
<h2 class="h2 pb-8"><?php esc_html_e( 'You\'re all set!', 'visualizer' ); ?></h2> |
| 404 |
<p class="p"><?php esc_html_e( 'Optionally enhance your site and stay updated.', 'visualizer' ); ?></p> |
| 405 |
</div> |
| 406 |
</div> |
| 407 |
<div class="vz-accordion-item__content border-top"> |
| 408 |
<div class="vz-form-wrap"> |
| 409 |
<div class="form-block no-sep vz-final-block"> |
| 410 |
<div class="vz-error-notice notice notice-error hidden"></div> |
| 411 |
<div class="vz-final-options"> |
| 412 |
<div class="vz-option-card"> |
| 413 |
<label class="vz-option-check"> |
| 414 |
<input type="checkbox" id="enable_performance" <?php echo $wp_optimole_active ? 'checked disabled' : 'checked'; ?>> |
| 415 |
</label> |
| 416 |
<div class="vz-option-icon"> |
| 417 |
<img src="<?php echo esc_url( VISUALIZER_ABSURL . 'images/boost-logo.png' ); ?>" width="37" height="30" alt=""> |
| 418 |
</div> |
| 419 |
<div class="vz-option-body"> |
| 420 |
<div class="vz-option-title"> |
| 421 |
<?php esc_html_e( 'Boost your website speed', 'visualizer' ); ?> |
| 422 |
<span class="pro-label free-label"><?php esc_html_e( 'Free', 'visualizer' ); ?></span> |
| 423 |
</div> |
| 424 |
<p class="help-text"> |
| 425 |
<?php |
| 426 |
if ( $wp_optimole_active ) { |
| 427 |
esc_html_e( 'Optimole is already active on your site.', 'visualizer' ); |
| 428 |
} else { |
| 429 |
esc_html_e( 'Improve your website speed and images by 80% with Optimole.', 'visualizer' ); |
| 430 |
} |
| 431 |
?> |
| 432 |
</p> |
| 433 |
</div> |
| 434 |
<span class="vz-install-status" data-install-status="optimole-wp"></span> |
| 435 |
</div> |
| 436 |
<div class="vz-option-card"> |
| 437 |
<label class="vz-option-check"> |
| 438 |
<input type="checkbox" id="enable_otter_blocks" <?php echo $wp_otter_active ? 'checked disabled' : 'checked'; ?>> |
| 439 |
</label> |
| 440 |
<div class="vz-option-icon"> |
| 441 |
<img src="<?php echo esc_url( VISUALIZER_ABSURL . 'images/otter-logo.png' ); ?>" width="28" height="28" alt=""> |
| 442 |
</div> |
| 443 |
<div class="vz-option-body"> |
| 444 |
<div class="vz-option-title"> |
| 445 |
<?php esc_html_e( 'Build better pages', 'visualizer' ); ?> |
| 446 |
<span class="pro-label free-label"><?php esc_html_e( 'Free', 'visualizer' ); ?></span> |
| 447 |
</div> |
| 448 |
<p class="help-text"> |
| 449 |
<?php |
| 450 |
if ( $wp_otter_active ) { |
| 451 |
esc_html_e( 'Otter Blocks is already active on your site.', 'visualizer' ); |
| 452 |
} else { |
| 453 |
esc_html_e( 'Add powerful Gutenberg blocks for layouts, forms, and more with Otter Blocks.', 'visualizer' ); |
| 454 |
} |
| 455 |
?> |
| 456 |
</p> |
| 457 |
</div> |
| 458 |
<span class="vz-install-status" data-install-status="otter-blocks"></span> |
| 459 |
</div> |
| 460 |
<div class="vz-option-card"> |
| 461 |
<label class="vz-option-check"> |
| 462 |
<input type="checkbox" id="enable_page_cache" <?php echo $wp_spc_active ? 'checked disabled' : 'checked'; ?>> |
| 463 |
</label> |
| 464 |
<div class="vz-option-icon"> |
| 465 |
<img src="<?php echo esc_url( VISUALIZER_ABSURL . 'images/spc-logo.svg' ); ?>" width="28" height="28" alt=""> |
| 466 |
</div> |
| 467 |
<div class="vz-option-body"> |
| 468 |
<div class="vz-option-title"> |
| 469 |
<?php esc_html_e( 'Cache your pages', 'visualizer' ); ?> |
| 470 |
<span class="pro-label free-label"><?php esc_html_e( 'Free', 'visualizer' ); ?></span> |
| 471 |
</div> |
| 472 |
<p class="help-text"> |
| 473 |
<?php |
| 474 |
if ( $wp_spc_active ) { |
| 475 |
esc_html_e( 'Super Page Cache is already active on your site.', 'visualizer' ); |
| 476 |
} else { |
| 477 |
esc_html_e( 'Make your site load faster with Super Page Cache for Cloudflare.', 'visualizer' ); |
| 478 |
} |
| 479 |
?> |
| 480 |
</p> |
| 481 |
</div> |
| 482 |
<span class="vz-install-status" data-install-status="wp-cloudflare-page-cache"></span> |
| 483 |
</div> |
| 484 |
<div class="vz-option-card vz-option-card--newsletter"> |
| 485 |
<label class="vz-option-check"> |
| 486 |
<input type="checkbox" id="enable_newsletter" checked> |
| 487 |
</label> |
| 488 |
<div class="vz-option-icon"> |
| 489 |
<span class="dashicons dashicons-email-alt"></span> |
| 490 |
</div> |
| 491 |
<div class="vz-option-body"> |
| 492 |
<div class="vz-option-title"><?php esc_html_e( 'Stay in the loop', 'visualizer' ); ?></div> |
| 493 |
<p class="help-text"> |
| 494 |
<?php esc_html_e( 'Get tutorials, tips, and special offers at', 'visualizer' ); ?> |
| 495 |
<span class="vz-email-text" data-email="<?php echo esc_attr( get_bloginfo( 'admin_email' ) ); ?>"><?php echo esc_html( get_bloginfo( 'admin_email' ) ); ?></span> |
| 496 |
<button type="button" class="vz-change-email"><?php esc_html_e( 'Change', 'visualizer' ); ?></button> |
| 497 |
<?php esc_html_e( '· Unsubscribe anytime.', 'visualizer' ); ?> |
| 498 |
</p> |
| 499 |
<div class="vz-option-input" style="display: none;"> |
| 500 |
<input type="email" class="form-control" id="vz_subscribe_email" value="<?php echo esc_attr( get_bloginfo( 'admin_email' ) ); ?>"> |
| 501 |
<button type="button" class="btn btn-primary vz-save-email"><?php esc_html_e( 'Save', 'visualizer' ); ?></button> |
| 502 |
</div> |
| 503 |
</div> |
| 504 |
</div> |
| 505 |
</div> |
| 506 |
</div> |
| 507 |
<div class="form-block"> |
| 508 |
<div class="vz-btn-group"> |
| 509 |
<button class="btn btn-primary vz-subscribe" data-vz_subscribe="true"><?php esc_html_e( 'Finish Setup', 'visualizer' ); ?></button> |
| 510 |
<span class="spinner"></span> |
| 511 |
</div> |
| 512 |
</div> |
| 513 |
</div> |
| 514 |
</div> |
| 515 |
</div> |
| 516 |
</div> |
| 517 |
<?php } ?> |
| 518 |
</div> |
| 519 |
</div> |
| 520 |
</div> |
| 521 |
</div> |
| 522 |
|
| 523 |
<div class="redirect-popup"> |
| 524 |
<div class="redirect-popup-box"> |
| 525 |
<div class="icon"> |
| 526 |
<svg width="5" height="23" viewBox="0 0 5 23" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 527 |
<path |
| 528 |
d="M0.6875 23V6.4375H4.57812V23H0.6875ZM4.15625 3.65625C3.73958 4.0625 3.22917 4.26562 2.625 4.26562C2.02083 4.26562 1.51042 4.0625 1.09375 3.65625C0.677083 3.23958 0.46875 2.73958 0.46875 2.15625C0.46875 1.5625 0.677083 1.0625 1.09375 0.65625C1.51042 0.239583 2.02083 0.03125 2.625 0.03125C3.22917 0.03125 3.73958 0.239583 4.15625 0.65625C4.58333 1.0625 4.79688 1.5625 4.79688 2.15625C4.79688 2.73958 4.58333 3.23958 4.15625 3.65625Z" |
| 529 |
fill="#39C3D2" fill-opacity="0.75" /> |
| 530 |
</svg> |
| 531 |
</div> |
| 532 |
<h3 class="h3 popup-title"></h3> |
| 533 |
<div class="redirect-loader"> |
| 534 |
<img src="<?php echo esc_url( VISUALIZER_ABSURL . 'images/mask-loader.png' ); ?>" width="45" height="45" |
| 535 |
alt="loader"> |
| 536 |
</div> |
| 537 |
</div> |
| 538 |
</div> |
| 539 |
</div> |
| 540 |
|