demo-sites.php
1 year ago
get-started.php
2 years ago
upgrade-pro.php
1 year ago
website-starter.php
6 days ago
get-started.php
101 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | function kubio_admin_page_get_connect_options() { |
| 5 | return array( |
| 6 | array( |
| 7 | 'description' => __( 'Kubio Website', 'kubio' ), |
| 8 | 'icon' => KUBIO_LOGO_SVG, |
| 9 | 'link' => kubio_get_site_url_for( 'homepage', array( 'source' => 'get-started' ) ), |
| 10 | ), |
| 11 | array( |
| 12 | 'description' => __( 'Kubio Documentation', 'kubio' ), |
| 13 | 'icon' => KUBIO_LOGO_SVG, |
| 14 | 'link' => kubio_get_site_url_for( 'documentation', array( 'source' => 'get-started' ) ), |
| 15 | ), |
| 16 | array( |
| 17 | 'description' => __( 'Talk to support', 'kubio' ), |
| 18 | 'icon-file' => 'email.svg', |
| 19 | 'link' => kubio_get_site_url_for( 'contact', array( 'source' => 'get-started' ) ), |
| 20 | ), |
| 21 | array( |
| 22 | 'description' => __( 'Connect with us', 'kubio' ), |
| 23 | 'icon-file' => 'facebook.svg', |
| 24 | 'link' => kubio_get_site_url_for( 'facebook' ), |
| 25 | ), |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | ?> |
| 30 | |
| 31 | <div class="tab-page"> |
| 32 | |
| 33 | <div class="get-started-with-kubio limited-width"> |
| 34 | |
| 35 | <?php |
| 36 | do_action( 'kubio/admin-page/before-get-started' ); |
| 37 | ?> |
| 38 | |
| 39 | <div class="kubio-admin-page-section kubio-get-started-section-1"> |
| 40 | <div class="get-started-demo"> |
| 41 | <div class="demo-title"> |
| 42 | <?php esc_html_e( 'Check out our 2 min getting started video', 'kubio' ); ?> |
| 43 | </div> |
| 44 | <div class="kubio-demo-video"> |
| 45 | <div class="kubio-demo-video-wrapper"> |
| 46 | <iframe width="100%" height="100%" |
| 47 | src="https://player.vimeo.com/video/655007132?h=d0d9a5f8a3&title=0&byline=0&portrait=0"> |
| 48 | </iframe> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 | </div> |
| 53 | |
| 54 | <div class="kubio-admin-page-section kubio-get-started-section-2"> |
| 55 | |
| 56 | |
| 57 | |
| 58 | <div class="get-started-connect"> |
| 59 | |
| 60 | <div class="connect-title"> |
| 61 | <?php esc_html_e( 'Connect with us', 'kubio' ); ?> |
| 62 | </div> |
| 63 | |
| 64 | <div class="connect-body"> |
| 65 | <ul class="body-items"> |
| 66 | <?php foreach ( kubio_admin_page_get_connect_options() as $kubio_admin_page_resource ) : ?> |
| 67 | <li> |
| 68 | <div class="item-icon"> |
| 69 | <?php |
| 70 | $icon = false; |
| 71 | if ( isset( $kubio_admin_page_resource['icon'] ) ) { |
| 72 | $icon = $kubio_admin_page_resource['icon']; |
| 73 | } |
| 74 | if ( isset( $kubio_admin_page_resource['icon-file'] ) ) { |
| 75 | $icon_file = kubio_admin_assets_path() . sanitize_file_name( $kubio_admin_page_resource['icon-file'] ); |
| 76 | $icon = file_exists( $icon_file ) ? file_get_contents( $icon_file ) : ''; |
| 77 | } |
| 78 | |
| 79 | $output = $icon ? $icon : ''; |
| 80 | echo wp_kses_post( $icon ); |
| 81 | ?> |
| 82 | </div> |
| 83 | <a target="_blank" href=" <?php echo esc_url( $kubio_admin_page_resource['link'] ); ?>" class="item-description"> |
| 84 | <?php echo esc_html( $kubio_admin_page_resource['description'] ); ?> |
| 85 | </a> |
| 86 | </li> |
| 87 | <?php endforeach; ?> |
| 88 | </ul> |
| 89 | |
| 90 | </div> |
| 91 | </div> |
| 92 | |
| 93 | </div> |
| 94 | |
| 95 | </div> |
| 96 | |
| 97 | </div> |
| 98 | |
| 99 | |
| 100 | |
| 101 |