PluginProbe
EmailKit – Email Customizer for WooCommerce & WP / 1.5.2
EmailKit – Email Customizer for WooCommerce & WP v1.5.2
1.6.9 1.6.8 1.6.7 trunk 1.0.0 1.2.0 1.4.0 1.4.5 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6
emailkit / Promotional / Onboard / views / layout-onboard.php

layout-onboard.php in EmailKit – Email Customizer for WooCommerce & WP 1.5.2, at Promotional/Onboard/views/layout-onboard.php

77 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!-- onboard_steps nav begins -->
2 <?php
3
4 $onboard_steps = [
5 'step-01' => [
6 'title' => esc_html__('Tutorial', 'emailkit'),
7 'sub-title' => esc_html__('Tutorial info', 'emailkit'),
8 'icon' => esc_attr('xs-onboard-youtube')
9
10 ],
11 'step-02' => [
12 'title' => esc_html__('Sign Up', 'emailkit'),
13 'sub-title' => esc_html__('Sign Up info', 'emailkit'),
14 'icon' => esc_attr('xs-onboard-user')
15 ],
16 'step-03' => [
17 'title' => esc_html__('Website Powerup', 'emailkit'),
18 'sub-title' => esc_html__('Website Powerup info', 'emailkit'),
19 'icon' => esc_attr('xs-onboard-layout')
20 ],
21 // 'step-05' => [
22 // 'title' => esc_html__('Surprise', 'emailkit'),
23 // 'sub-title' => esc_html__('Surprise info', 'emailkit'),
24 // 'icon' => esc_attr('xs-onboard-gift')
25 // ],
26 'step-06' => [
27 'title' => esc_html__('Finalizing', 'emailkit'),
28 'sub-title' => esc_html__('Finalizing info', 'emailkit'),
29 'icon' => esc_attr('xs-onboard-smile')
30 ]
31 ];
32
33 // if(\MetForm\Plugin::instance()->package_type() != 'free'){
34 // unset($onboard_steps['step-05']);
35 // }
36
37 $onboard_steps = apply_filters('elementskit/admin/onboard_steps/list', $onboard_steps);
38
39 echo wp_kses( '<ul class="emailkit-onboard-nav"><div class="emailkit-onboard-progressbar"></div>', array( 'ul' => array( 'class' => array() ), 'div' => array( 'class' => array() ) ) );
40
41 $count = 1;
42 foreach ( $onboard_steps as $step_key => $step ):
43 $icon = ! empty( $step['icon'] ) ? $step['icon'] : '';
44 $title = ! empty( $step['title'] ) ? $step['title'] : '';
45 ?>
46 <li data-step_key="<?php echo esc_attr( $step_key ); ?>"
47 class="emailkit-onboard-nav-item <?php echo esc_attr($count === 1 ? 'active' : '');
48 echo esc_attr($count === count( $onboard_steps ) ? 'last' : ''); ?>">
49 <?php if ( ! empty( $icon ) ) : ?>
50 <i class="emailkit-onboard-nav-icon <?php echo esc_attr( $icon ); ?>"></i>
51 <?php endif; ?>
52 <?php if ( ! empty( $title ) ) : ?>
53 <span class="emailkit-onboard-nav-text"><?php echo esc_html( $title ); ?></span>
54 <?php endif; ?>
55 </li>
56 <?php $count ++; endforeach;
57 echo wp_kses('</ul>', array('ul' => array( 'class' => array() )));
58 ?>
59 <!-- onboard_steps nav ends -->
60
61 <!-- onboard_steps content begins -->
62 <?php foreach ( $onboard_steps as $step_key => $step ): ?>
63
64 <!-- includes view file for this step -->
65 <?php
66 $path = isset( $step['view_path'] )
67 ? $step['view_path']
68 : self::get_dir() . 'views/onboard-steps/' . $step_key . '.php';
69
70 if ( file_exists( $path ) ) {
71 echo '<div class="emailkit-onboard-step-wrapper emailkit-onboard-' . esc_attr( $step_key ) . '">';
72 include( $path );
73 echo '</div>';
74 } ?>
75
76 <?php endforeach; ?>
77 <!-- onboard_steps content ends -->