Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-pro/templates/components/sticky-header.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * Sticky header for using on course / bundle frontend builder
4 + *
5 + * @package TutorPro\Templates
6 + * @author Themeum <support@themeum.com>
7 + * @link https://themeum.com
8 + * @since 2.2.0
9 + */
10 +
11 + $can_publish_course = (bool) tutor_utils()->get_option( 'instructor_can_publish_course' ) || current_user_can( 'administrator' );
12 + ?>
13 + <header class="tutor-dashboard-builder-header tutor-mb-32">
14 + <div class="tutor-container-fluid">
15 + <div class="tutor-row tutor-align-center">
16 + <div class="tutor-col-auto">
17 + <div class="tutor-dashboard-builder-header-left">
18 + <div class="tutor-dashboard-builder-logo">
19 + <?php $tutor_course_builder_logo_src = apply_filters( 'tutor_course_builder_logo_src', tutor()->url . 'assets/images/tutor-logo.png' ); ?>
20 + <img src="<?php echo esc_url( $tutor_course_builder_logo_src ); ?>" alt="">
21 + </div>
22 + </div>
23 + </div>
24 +
25 + <div class="tutor-col tutor-mt-12 tutor-mb-12">
26 + <div class="tutor-dashboard-builder-header-right tutor-d-flex tutor-align-center tutor-justify-end">
27 + <?php if ( 'draft' === $post->post_status || 'auto-draft' === $post->post_status ) : ?>
28 + <a href="#" id="tutor-course-save-draft" class="tutor-btn tutor-btn-ghost tutor-btn-md tutor-mr-20" name="course_submit_btn" value="save_course_as_draft">
29 + <i class="tutor-icon-save-line tutor-mr-8" area-hidden="true"></i>
30 + <?php esc_html_e( 'Save as Draft', 'tutor-pro' ); ?>
31 + </a>
32 + <?php endif; ?>
33 +
34 + <a class="tutor-btn tutor-btn-secondary tutor-btn-md" href="<?php echo esc_url( get_the_permalink( get_the_ID() ) ); ?>" target="_blank">
35 + <?php esc_html_e( 'Preview', 'tutor-pro' ); ?>
36 + </a>
37 +
38 + <?php if ( $can_publish_course ) : ?>
39 + <button class="tutor-btn tutor-btn-primary tutor-btn-md tutor-ml-20 tutor-static-loader" type="submit" name="course_submit_btn" value="publish_course">
40 + <?php esc_html_e( 'Publish', 'tutor-pro' ); ?>
41 + </button>
42 + <?php else : ?>
43 + <button class="tutor-btn tutor-btn-primary tutor-btn-md tutor-ml-20" type="submit" name="course_submit_btn" value="submit_for_review" title="<?php esc_html_e( 'Submit for Review', 'tutor-pro' ); ?>">
44 + <?php esc_html_e( 'Submit', 'tutor-pro' ); ?>
45 + </button>
46 + <?php endif; ?>
47 +
48 + <a href="<?php echo esc_url( tutor_utils()->tutor_dashboard_url() ); ?>" class="tutor-iconic-btn tutor-iconic-btn-md tutor-ml-12" title="<?php esc_html_e( 'Exit', 'tutor-pro' ); ?>"><i class="tutor-icon-times" area-hidden="true"></i></a>
49 + </div>
50 + </div>
51 + </div>
52 + </div>
53 + </header>
54 +