Linux 软件免费装
Banner图

Kouib Blocks for Tutor LMS

开发者 kouiderbounama
更新时间 2026年9月9日 01:43
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

gutenberg carousel filter courses tutor lms

下载

1.0.0 1.0.1

详情介绍:

The Kouib Blocks for Tutor LMS package turns a static course listing into a fast, interactive experience inside the Gutenberg block editor — no complex setup. Add a block and display it anywhere. The five blocks:
  1. Courses Filter — a grid of courses with category buttons, custom ordering by student count, and a cache per settings combination. Works on the frontend and in the editor (ServerSideRender).
  2. Courses Carousel — a responsive slider with side arrows, columns adjustable from the editor, and ordering by newest, most enrolled, or random.
  3. Course Category Boxes — a grid of categories with a course counter and a link per category, plus a custom icon (PNG/SVG) per category uploaded straight from the media library.
  4. Quick Search — an instant (AJAX) search field with live results and no page reload, featuring:
  5. Full Arabic normalization: (أ/إ/آ/ٱ → ا), (ة → ه), (ى → ي) and diacritics removal, so searching "الحساب" also finds "المحاسبة".
  6. Smart relevance ranking: title match > starts with the phrase > contains it.
  7. A "match exact phrase" option and a two-letter minimum for words.
  8. Form colors, size and shape adjustable from the editor, with results floating over the page when needed.
  9. Platform Stats — prominent counters (icon + number + label) for students, instructors, courses and lessons, with a responsive grid (3 breakpoints) and a full panel to show/hide each statistic and its style.
Guaranteed performance:

安装:

  1. Upload the plugin folder to /wp-content/plugins/ or install it from "Plugins → Add New → Upload Plugin" (zip file).
  2. Activate the plugin from the "Plugins" screen.
  3. Activate Tutor LMS (the plugin works without it, but shows zero courses).
  4. Open the editor and add any block from the Kouib Blocks category at the top of the block inserter.
  5. Configure each block from the sidebar settings panel, then publish the page.
Optional tuning: the HTML cache duration, via the filter: add_filter( 'kouib_cache_ttl', fn() => 2 * HOUR_IN_SECONDS );

屏幕截图:

  • Courses filter with category buttons.
  • Courses carousel.
  • Category boxes with counter and custom icons.
  • Quick search with instant results.

常见问题:

Does the plugin work without Tutor LMS?

Yes, it activates and registers the blocks; but zero courses/lessons appear because the content types belong to Tutor. The students statistic relies on the total WordPress user count.

Does it affect site speed?

No; each block gets its own cache, data is computed with light SQL statements and stored in a Transient (30 minutes, adjustable via the filter above), and each block's assets load only when the block is used.

How do I recompute student counts after changes?

They are refreshed automatically on: saving/deleting a course, a new enrollment, or any tutor_after_* event — and the whole cache is flushed when the plugin is updated.

Is there an API for programmatic customization?

Yes: kouib_cache_ttl (duration), the shared render key kouib_render_course_card, and the reusable cache layer kouib_register_active_key/kouib_flush_courses_cache.

Do I need coding skills to use it?

No; everything happens in the editor: live preview, colors, columns, icons, show/hide elements.

更新日志:

1.0.1 Initial release