-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from themeum/ibrahim
wpml conflict,translation,add to cart , lesson edit issue fixed
- Loading branch information
Showing
17 changed files
with
266 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
<?php | ||
global $post, $authordata; | ||
$profile_url = tutor_utils()->profile_url( $authordata->ID, true ); | ||
$course_categories = get_tutor_course_categories(); | ||
$show_avatar = $settings['course_carousel_avatar_settings']; | ||
$show_author = $settings['course_carousel_author_settings']; | ||
$show_categories = $settings['course_carousel_category_settings']; | ||
$profile_url = tutor_utils()->profile_url( $authordata->ID, true ); | ||
$course_categories = get_tutor_course_categories(); | ||
$show_avatar = $settings['course_carousel_avatar_settings']; | ||
$show_author = $settings['course_carousel_author_settings']; | ||
$show_categories = $settings['course_carousel_category_settings']; | ||
?> | ||
|
||
<?php if ( $show_avatar || $show_author || $show_categories ) : ?> | ||
<div class="tutor-meta tutor-mt-auto"> | ||
<?php if ( $show_avatar ) : ?> | ||
<div> | ||
<a href="<?php echo $profile_url; ?>" class="tutor-d-flex"> | ||
<?php echo tutor_utils()->get_tutor_avatar( $post->post_author ); ?> | ||
</a> | ||
</div> | ||
<?php endif; ?> | ||
<?php if ( $show_avatar ) : ?> | ||
<div> | ||
<a href="<?php echo $profile_url; ?>" class="tutor-d-flex"> | ||
<?php echo tutor_utils()->get_tutor_avatar( $post->post_author ); ?> | ||
</a> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<div> | ||
<?php if ( $show_author ) : ?> | ||
<span class="etlms-course-author-meta tutor-meta-key"><?php esc_html_e('By', 'tutor') ?></span> | ||
<a class="etlms-course-author-meta tutor-meta-value" href="<?php echo $profile_url; ?>"><?php esc_html_e(get_the_author()); ?></a> | ||
<?php endif; ?> | ||
<div> | ||
<?php if ( $show_author ) : ?> | ||
<span class="etlms-course-author-meta tutor-meta-key"><?php esc_html_e( 'By', 'tutor-lms-elementor-addons' ); ?></span> | ||
<a class="etlms-course-author-meta tutor-meta-value" href="<?php echo $profile_url; ?>"><?php esc_html_e( get_the_author() ); ?></a> | ||
<?php endif; ?> | ||
|
||
<?php if( $show_categories && ( !empty( $course_categories ) && is_array( $course_categories ) && count( $course_categories ) ) ) : ?> | ||
<span class="etlms-course-category-meta tutor-meta-key"><?php esc_html_e('In', 'tutor'); ?></span> | ||
<?php | ||
$category_links = array(); | ||
foreach ( $course_categories as $course_category ) : | ||
$category_name = $course_category->name; | ||
$category_link = get_term_link($course_category->term_id); | ||
$category_links[] = wp_sprintf( '<a class="etlms-course-category-meta tutor-meta-value" href="%1$s">%2$s</a>', esc_url( $category_link ), esc_html( $category_name ) ); | ||
endforeach; | ||
echo implode(', ', $category_links); | ||
?> | ||
<?php endif; ?> | ||
</div> | ||
<?php if ( $show_categories && ( ! empty( $course_categories ) && is_array( $course_categories ) && count( $course_categories ) ) ) : ?> | ||
<span class="etlms-course-category-meta tutor-meta-key"><?php esc_html_e( 'In', 'tutor-lms-elementor-addons' ); ?></span> | ||
<?php | ||
$category_links = array(); | ||
foreach ( $course_categories as $course_category ) : | ||
$category_name = $course_category->name; | ||
$category_link = get_term_link( $course_category->term_id ); | ||
$category_links[] = wp_sprintf( '<a class="etlms-course-category-meta tutor-meta-value" href="%1$s">%2$s</a>', esc_url( $category_link ), esc_html( $category_name ) ); | ||
endforeach; | ||
echo implode( ', ', $category_links ); | ||
?> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
<?php endif; ?> | ||
<?php endif; ?> |
Oops, something went wrong.