feat: initial ACRIB WordPress deployment
- WordPress 6.9.4 (es_ES) with Kadence theme - Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto - Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold - Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI) - Plugins: Kadence Blocks, Polylang, Contact Form 7 - Custom CSS with full brand styling and responsive layout - HTTPS enforced via wp-config.php proxy detection
This commit is contained in:
31
wp-content/themes/kadence/tutor/archive-course.php
Normal file
31
wp-content/themes/kadence/tutor/archive-course.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTE: This template is from the TutorLMS plugin is is overridden in Kadence Theme for better theme support of TutorLMS.
|
||||
* Template for displaying courses
|
||||
*
|
||||
* Edited by Kadence Theme, Original Author:
|
||||
* @author Themeum
|
||||
* @url https://themeum.com
|
||||
*
|
||||
* @package TutorLMS/Templates
|
||||
* @version 1.5.8
|
||||
*/
|
||||
tutor_utils()->tutor_custom_header();
|
||||
|
||||
do_action('tutor_course/archive/before/wrap');
|
||||
|
||||
if ( isset( $_GET['course_filter'] ) ) {
|
||||
$filter = (new \Tutor\Course_Filter(false))->load_listing( $_GET, true );
|
||||
query_posts( $filter );
|
||||
}
|
||||
|
||||
// Load the
|
||||
tutor_load_template('archive-course-init', array_merge($_GET, array(
|
||||
'course_filter' => (bool) tutor_utils()->get_option('course_archive_filter', false),
|
||||
'supported_filters' => tutor_utils()->get_option('supported_course_filters', array()),
|
||||
'loop_content_only' => false
|
||||
)));
|
||||
|
||||
do_action('tutor_course/archive/after/wrap');
|
||||
|
||||
tutor_utils()->tutor_custom_footer();
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTE: This template is from the TutorLMS plugin is is overridden in Kadence Theme for better theme support of TutorLMS.
|
||||
* Template for displaying above lead info
|
||||
*
|
||||
* @package TutorLMS/Templates
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
global $post, $authordata;
|
||||
$profile_url = tutor_utils()->profile_url( $authordata->ID );
|
||||
?>
|
||||
<div class="tutor-single-course-segment tutor-single-course-lead-info">
|
||||
|
||||
<?php
|
||||
$disable = get_tutor_option( 'disable_course_review' );
|
||||
if ( ! $disable ) {
|
||||
?>
|
||||
<div class="tutor-leadinfo-top-meta">
|
||||
<span class="tutor-single-course-rating">
|
||||
<?php
|
||||
$course_rating = tutor_utils()->get_course_rating();
|
||||
tutor_utils()->star_rating_generator( $course_rating->rating_avg );
|
||||
?>
|
||||
<span class="tutor-single-rating-count">
|
||||
<?php
|
||||
echo wp_kses_post( $course_rating->rating_avg );
|
||||
echo '<i>(' . esc_html( $course_rating->rating_count ) . ')</i>';
|
||||
?>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<h1 class="tutor-course-header-h1"><?php the_title(); ?></h1>
|
||||
|
||||
<?php do_action( 'tutor_course/single/title/after' ); ?>
|
||||
<?php do_action( 'tutor_course/single/lead_meta/before' ); ?>
|
||||
|
||||
<div class="tutor-single-course-meta tutor-meta-top">
|
||||
<?php
|
||||
$disable_course_author = get_tutor_option( 'disable_course_author' );
|
||||
$disable_course_level = get_tutor_option( 'disable_course_level' );
|
||||
$disable_course_share = get_tutor_option( 'disable_course_share' );
|
||||
?>
|
||||
<ul>
|
||||
<?php if ( ! $disable_course_author ) { ?>
|
||||
<li class="tutor-single-course-author-meta">
|
||||
<div class="tutor-single-course-avatar">
|
||||
<a href="<?php echo esc_url( $profile_url ); ?>"> <?php echo wp_kses_post( tutor_utils()->get_tutor_avatar( $post->post_author ) ); ?></a>
|
||||
</div>
|
||||
<div class="tutor-single-course-author-name">
|
||||
<span><?php esc_html_e( 'by', 'kadence' ); ?></span>
|
||||
<a href="<?php echo esc_url( tutor_utils()->profile_url( $authordata->ID ) ); ?>"><?php echo wp_kses_post( get_the_author() ); ?></a>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! $disable_course_level ) { ?>
|
||||
<li class="tutor-course-level">
|
||||
<span><?php esc_html_e( 'Course level:', 'kadence' ); ?></span>
|
||||
<?php echo wp_kses_post( get_tutor_course_level() ); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! $disable_course_share ) { ?>
|
||||
<li class="tutor-social-share">
|
||||
<span><?php esc_html_e( 'Share:', 'kadence' ); ?></span>
|
||||
<?php tutor_social_share(); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTE: This template is from the TutorLMS plugin is is overridden in Kadence Theme for better theme support of TutorLMS.
|
||||
* Template for displaying in content lead info
|
||||
*
|
||||
* @package TutorLMS/Templates
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
global $post, $authordata;
|
||||
$profile_url = tutor_utils()->profile_url( $authordata->ID );
|
||||
?>
|
||||
|
||||
<div class="tutor-single-course-segment tutor-single-course-lead-info tutor-single-course-content-lead-info">
|
||||
|
||||
<div class="tutor-single-course-meta tutor-lead-meta">
|
||||
<ul>
|
||||
<?php
|
||||
$course_categories = get_tutor_course_categories();
|
||||
if ( is_array( $course_categories ) && count( $course_categories ) ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Categories', 'kadence' ); ?></span>
|
||||
<?php
|
||||
foreach ( $course_categories as $course_category ) {
|
||||
$category_name = $course_category->name;
|
||||
$category_link = get_term_link( $course_category->term_id );
|
||||
echo '<a href="' . esc_url( $category_link ) . '">' . esc_html( $category_name ) . '</a>';
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$disable_course_duration = get_tutor_option( 'disable_course_duration' );
|
||||
$disable_total_enrolled = get_tutor_option( 'disable_course_total_enrolled' );
|
||||
$disable_update_date = get_tutor_option( 'disable_course_update_date' );
|
||||
$course_duration = get_tutor_course_duration_context();
|
||||
|
||||
if ( ! empty( $course_duration ) && ! $disable_course_duration ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Duration', 'kadence' ); ?></span>
|
||||
<?php echo esc_html( $course_duration ); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( ! $disable_total_enrolled ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Total Enrolled', 'kadence' ); ?></span>
|
||||
<?php echo (int) tutor_utils()->count_enrolled_users_by_course(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( ! $disable_update_date ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Last Update', 'kadence' ); ?></span>
|
||||
<?php echo esc_html( get_the_modified_date() ); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="tutor-course-enrolled-info">
|
||||
<?php $count_completed_lesson = tutor_course_completing_progress_bar(); ?>
|
||||
</div>
|
||||
|
||||
<?php do_action( 'tutor_course/single/lead_meta/after' ); ?>
|
||||
<?php do_action( 'tutor_course/single/excerpt/before' ); ?>
|
||||
|
||||
<?php
|
||||
$excerpt = tutor_get_the_excerpt();
|
||||
$disable_about = get_tutor_option( 'disable_course_about' );
|
||||
if ( ! empty( $excerpt ) && ! $disable_about ) {
|
||||
?>
|
||||
<div class="tutor-course-summery">
|
||||
<h4 class="tutor-segment-title"><?php esc_html_e( 'About Course', 'kadence' ); ?></h4>
|
||||
<?php echo wp_kses_post( $excerpt ); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php do_action( 'tutor_course/single/excerpt/after' ); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTE: This template is from the TutorLMS plugin is is overridden in Kadence Theme for better theme support of TutorLMS.
|
||||
* Template for displaying above lead info
|
||||
*
|
||||
* @package TutorLMS/Templates
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
global $post, $authordata;
|
||||
$profile_url = tutor_utils()->profile_url( $authordata->ID );
|
||||
?>
|
||||
|
||||
<div class="tutor-single-course-segment tutor-single-course-lead-info">
|
||||
|
||||
<?php
|
||||
$disable = get_tutor_option( 'disable_course_review' );
|
||||
if ( ! $disable ) {
|
||||
?>
|
||||
<div class="tutor-leadinfo-top-meta">
|
||||
<span class="tutor-single-course-rating">
|
||||
<?php
|
||||
$course_rating = tutor_utils()->get_course_rating();
|
||||
tutor_utils()->star_rating_generator( $course_rating->rating_avg );
|
||||
?>
|
||||
<span class="tutor-single-rating-count">
|
||||
<?php
|
||||
echo esc_html( $course_rating->rating_avg );
|
||||
echo '<i>(' . esc_html( $course_rating->rating_count ) . ')</i>';
|
||||
?>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<h1 class="tutor-course-header-h1"><?php the_title(); ?></h1>
|
||||
|
||||
<?php do_action( 'tutor_course/single/title/after' ); ?>
|
||||
<?php do_action( 'tutor_course/single/lead_meta/before' ); ?>
|
||||
|
||||
<div class="tutor-single-course-meta tutor-meta-top">
|
||||
<?php
|
||||
$disable_course_author = get_tutor_option( 'disable_course_author' );
|
||||
$disable_course_level = get_tutor_option( 'disable_course_level' );
|
||||
$disable_course_share = get_tutor_option( 'disable_course_share' );
|
||||
?>
|
||||
<ul>
|
||||
<?php if ( ! $disable_course_author ) { ?>
|
||||
<li class="tutor-single-course-author-meta">
|
||||
<div class="tutor-single-course-avatar">
|
||||
<a href="<?php echo esc_url( $profile_url ); ?>"> <?php echo wp_kses_post( tutor_utils()->get_tutor_avatar( $post->post_author ) ); ?></a>
|
||||
</div>
|
||||
<div class="tutor-single-course-author-name">
|
||||
<span><?php esc_html_e( 'by', 'kadence' ); ?></span>
|
||||
<a href="<?php echo esc_url( tutor_utils()->profile_url( $authordata->ID ) ); ?>"><?php echo wp_kses_post( get_the_author() ); ?></a>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! $disable_course_level ) { ?>
|
||||
<li class="tutor-course-level">
|
||||
<span><?php esc_html_e( 'Course level:', 'kadence' ); ?></span>
|
||||
<?php echo wp_kses_post( get_tutor_course_level() ); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! $disable_course_share ) { ?>
|
||||
<li class="tutor-social-share">
|
||||
<?php tutor_social_share(); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTE: This template is from the TutorLMS plugin is is overridden in Kadence Theme for better theme support of TutorLMS.
|
||||
* Template for displaying in content lead info
|
||||
*
|
||||
* @package TutorLMS/Templates
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
global $post, $authordata;
|
||||
$profile_url = tutor_utils()->profile_url( $authordata->ID );
|
||||
?>
|
||||
<div class="tutor-single-course-segment tutor-single-course-lead-info tutor-single-course-content-lead-info">
|
||||
|
||||
<div class="tutor-single-course-meta tutor-lead-meta">
|
||||
<ul>
|
||||
<?php
|
||||
$course_categories = get_tutor_course_categories();
|
||||
if ( is_array( $course_categories ) && count( $course_categories ) ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Categories', 'kadence' ); ?></span>
|
||||
<?php
|
||||
foreach ( $course_categories as $course_category ) {
|
||||
$category_name = $course_category->name;
|
||||
$category_link = get_term_link( $course_category->term_id );
|
||||
echo '<a href="' . esc_url( $category_link ) . '">' . esc_html( $category_name ) . '</a>';
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$disable_course_duration = get_tutor_option( 'disable_course_duration' );
|
||||
$disable_total_enrolled = get_tutor_option( 'disable_course_total_enrolled' );
|
||||
$disable_update_date = get_tutor_option( 'disable_course_update_date' );
|
||||
$course_duration = get_tutor_course_duration_context();
|
||||
|
||||
if ( ! empty( $course_duration ) && ! $disable_course_duration ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Duration', 'kadence' ); ?></span>
|
||||
<?php echo esc_html( $course_duration ); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( ! $disable_total_enrolled ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Total Enrolled', 'kadence' ); ?></span>
|
||||
<?php echo (int) tutor_utils()->count_enrolled_users_by_course(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( ! $disable_update_date ) {
|
||||
?>
|
||||
<li>
|
||||
<span><?php esc_html_e( 'Last Update', 'kadence' ); ?></span>
|
||||
<?php echo esc_html( get_the_modified_date() ); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="tutor-course-enrolled-info">
|
||||
<?php $count_completed_lesson = tutor_course_completing_progress_bar(); ?>
|
||||
</div>
|
||||
|
||||
<?php do_action( 'tutor_course/single/lead_meta/after' ); ?>
|
||||
<?php do_action( 'tutor_course/single/excerpt/before' ); ?>
|
||||
|
||||
<?php
|
||||
$excerpt = tutor_get_the_excerpt();
|
||||
$disable_about = get_tutor_option( 'disable_course_about' );
|
||||
if ( ! empty( $excerpt ) && ! $disable_about ) {
|
||||
?>
|
||||
<div class="tutor-course-summery">
|
||||
<h4 class="tutor-segment-title"><?php esc_html_e( 'About Course', 'kadence' ); ?></h4>
|
||||
<?php echo wp_kses_post( $excerpt ); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php do_action( 'tutor_course/single/excerpt/after' ); ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user