Plugin: BuyCourses: Setting to show 1 courses on mobile devices, 3 courses on medium screens and 4 courses on extra large screens. The courses or sessions tab is also disabled if there are no elements available. Category filtering is maintained in sessions. Setting to show 6 courses per page. Adjust to display categories correctly. - refs BT#17957

pull/3651/head
carlos alvarado 5 years ago committed by GitHub
parent 5e804fc044
commit 6f7e4fc005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      plugin/buycourses/resources/css/style.css
  2. 2
      plugin/buycourses/src/buy_course_plugin.class.php
  3. 9
      plugin/buycourses/src/session_catalog.php

@ -388,8 +388,15 @@ tr.sale-columns th{
}
div.items-course-info h4.title{
font-weight: bold;
height: 2.8em;
width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
@media (max-width: 991px) {
.pagination {
padding-bottom: 90px;
}
}

@ -56,7 +56,7 @@ class BuyCoursesPlugin extends Plugin
const TAX_APPLIES_TO_ONLY_COURSE = 2;
const TAX_APPLIES_TO_ONLY_SESSION = 3;
const TAX_APPLIES_TO_ONLY_SERVICES = 4;
const PAGINATION_PAGE_SIZE = 5;
const PAGINATION_PAGE_SIZE = 6;
public $isAdminPlugin = true;

@ -43,17 +43,15 @@ if ($form->validate()) {
$form->addHeader($plugin->get_lang('SearchFilter'));
$categoriesOptions = [
'0' => get_lang('None'),
];
$categoriesList = SessionManager::get_all_session_category();
if ($categoriesList != false) {
foreach ($categoriesList as $categoryItem) {
$categoriesOptions[$categoryItem['id']] = $categoryItem['name'];
}
}
$categoriesOptions = [
'0' => get_lang('None'),
];
$form->addSelect(
'session_category',
get_lang('SessionCategory'),
@ -62,6 +60,7 @@ $form->addSelect(
'id' => 'session_category',
]
);
$form->addText('name', get_lang('SessionName'), false);
$form->addElement(

Loading…
Cancel
Save