¿Necesitas ayuda?

Usuario de pago: Crear un ticket

Usuario gratuito: Visite los foros de soporte

Documentos relacionados

Volver a Docs

Tematización

Updated on September 13, 2023

Tematización de Sensei LMS

Una guía completa de tematización en Sensei LMS.

Si el contenido de su Sensei LMS no se muestra como debería, consulte Compatibilidad de Sensei y temas.

Sensei LMS’s templating system is simple for developers to understand and customize in their theme. You will find Sensei LMS’s template folder in the plugin’s root directory, under /templates/ – this folder contains all the HTML that Sensei LMS will output on the front end.

You can override any of the templates found in this folder by copying them to /yourthemefolder/sensei/ and editing the files there. Sensei LMS will automatically load any template files you have in that folder and use them instead of its default template files.

If you’re using a template which resides in a subdirectory of the /templates/ directory, you must preserve that subdirectory in /yourthemefolder/. This is the safest way to make changes to Sensei LMS’s templates, as your changes will not be overwritten when it is updated.

Note: Since Sensei v4.16.0, there is a new email template editor that doesn’t allow overriding email templates via PHP files.
Customization is handled directly in the editor now, so you must update there. Read more about editing email templates.

Realizar cambios

Antes de continuar viendo la estructura de archivos, por favor eche un vistazo a nuestros ganchos de plantilla. Esto te permitirá sacar el máximo partido a tus personalizaciones sin tocar nunca los archivos de plantilla.

Course Archivos

The following files handle the course archive page:

  • archivo-curso.php
  • curso-bucle.php
  • contenido-curso.php

The archive will output all courses with filters at the top, which can further filter the courses listed.

La URL de esta página será la misma que la página establecida en Admin > Sensei > Configuración > General > Course Página de archivo.

Archivos de lecciones

The following files handle the lesson archive page:

  • archive-lesson.php
  • loop-lesson.php
  • contenido-lección.php

Estos archivos mostrarán una simple lista archivada de todas las lecciones que se han creado.

Único Course

La página del curso individual se gestiona mediante single-course.php

Estos archivos mostrarán el curso individual y su contenido.

Lección única

The following files handle the individual lesson page:

  • single-lesson.php

Estos archivos mostrarán la lección individual y un enlace al cuestionario de la lección.

Cuestionario único

The individual quiz page is handled by single-quiz.php.

The single quiz page uses the following files to output questions types:

  • /single-quiz/question-type-boolean.php (Preguntas verdadero/falso)
  • /single-quiz/question-type-file-upload.php (Preguntas de carga de archivos)
  • /single-quiz/question-type-gap-fill.php (Preguntas de rellenado de huecos)
  • /single-quiz/question-type-multi-line.php (Preguntas multilínea)
  • /single-quiz/question-type-multiple-choice.php (Preguntas de respuesta múltiple)
  • /single-quiz/question-type-single-line.php (Preguntas de una sola línea)

These files will output the lessons quiz questions and handle the submission of the users’ question answers.

Perfiles de los alumnos

Las páginas de perfil del alumno se gestionan mediante learner-profile.php

Estos archivos gestionan la visualización de los perfiles de los alumnos.

Course Resultados

The course results these template files handle page:

  • resultados-curso.php
  • curso-resultados/lecciones.php

Estos archivos gestionan la visualización de los resultados del curso.

Course Categorías

La categoría de curso utiliza las plantillas del archivo de cursos. Véase más arriba.

Mis cursos

The My Courses page will show a list of the users’ Active Courses and their Completed Courses. The template file that is used is /user/my-courses.php.

Errores de acceso

If  a user cannot access a specific area of the Course, Lesson, or Quiz, the output will be handled by no-permissions.php to display the relevant error message.