mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-71457 theme_boost: activity icon styling
This commit is contained in:
parent
5958c0df0c
commit
f2ddd23ec1
44 changed files with 319 additions and 158 deletions
|
@ -51,7 +51,7 @@ defined('MOODLE_INTERNAL') || die;
|
|||
/**
|
||||
* List of features supported in URL module
|
||||
* @param string $feature FEATURE_xx constant for requested feature
|
||||
* @return mixed True if module supports feature, false if not, null if doesn't know
|
||||
* @return mixed True if module supports feature, false if not, null if doesn't know or string for the module purpose.
|
||||
*/
|
||||
function lti_supports($feature) {
|
||||
switch ($feature) {
|
||||
|
@ -65,6 +65,8 @@ function lti_supports($feature) {
|
|||
case FEATURE_BACKUP_MOODLE2:
|
||||
case FEATURE_SHOW_DESCRIPTION:
|
||||
return true;
|
||||
case FEATURE_MOD_PURPOSE:
|
||||
return MOD_PURPOSE_CONTENT;
|
||||
|
||||
default:
|
||||
return null;
|
||||
|
@ -281,7 +283,8 @@ function lti_get_course_content_items(\core_course\local\entity\content_item $de
|
|||
$defaultmodulecontentitem->get_icon(),
|
||||
$defaultmodulecontentitem->get_help(),
|
||||
$defaultmodulecontentitem->get_archetype(),
|
||||
$defaultmodulecontentitem->get_component_name()
|
||||
$defaultmodulecontentitem->get_component_name(),
|
||||
$defaultmodulecontentitem->get_purpose()
|
||||
)];
|
||||
}
|
||||
|
||||
|
@ -308,7 +311,8 @@ function lti_get_course_content_items(\core_course\local\entity\content_item $de
|
|||
$preconfiguredtool->icon,
|
||||
$preconfiguredtool->help,
|
||||
$defaultmodulecontentitem->get_archetype(),
|
||||
$defaultmodulecontentitem->get_component_name()
|
||||
$defaultmodulecontentitem->get_component_name(),
|
||||
$defaultmodulecontentitem->get_purpose()
|
||||
);
|
||||
}
|
||||
return $types;
|
||||
|
@ -333,7 +337,8 @@ function mod_lti_get_all_content_items(\core_course\local\entity\content_item $d
|
|||
$defaultmodulecontentitem->get_icon(),
|
||||
$defaultmodulecontentitem->get_help(),
|
||||
$defaultmodulecontentitem->get_archetype(),
|
||||
$defaultmodulecontentitem->get_component_name()
|
||||
$defaultmodulecontentitem->get_component_name(),
|
||||
$defaultmodulecontentitem->get_purpose()
|
||||
)];
|
||||
|
||||
foreach (lti_get_lti_types() as $ltitype) {
|
||||
|
@ -368,7 +373,8 @@ function mod_lti_get_all_content_items(\core_course\local\entity\content_item $d
|
|||
$type->icon,
|
||||
$type->help,
|
||||
$defaultmodulecontentitem->get_archetype(),
|
||||
$defaultmodulecontentitem->get_component_name()
|
||||
$defaultmodulecontentitem->get_component_name(),
|
||||
$defaultmodulecontentitem->get_purpose()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -404,7 +404,8 @@ class mod_lti_lib_testcase extends advanced_testcase {
|
|||
'icon',
|
||||
'Description of the module',
|
||||
MOD_ARCHETYPE_OTHER,
|
||||
'mod_lti'
|
||||
'mod_lti',
|
||||
MOD_PURPOSE_CONTENT
|
||||
);
|
||||
|
||||
// The lti_get_lti_types_by_course method (used by the callbacks) assumes the global user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue