From 25a00f07ad9aa702740a7dc9353582ba6c23a80c Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 31 May 2017 10:53:40 -0500 Subject: [PATCH] Minor - Add alt attribute and use for improved WCAG compliance --- main/template/default/layout/hot_course_item.tpl | 4 ++-- plugin/buycourses/src/buy_course_plugin.class.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/template/default/layout/hot_course_item.tpl b/main/template/default/layout/hot_course_item.tpl index 9dd9eb9e5d..3a71a706d9 100755 --- a/main/template/default/layout/hot_course_item.tpl +++ b/main/template/default/layout/hot_course_item.tpl @@ -37,11 +37,11 @@ {% if item.teachers | length > 2 %} - + {{ 'TeacherPicture' | get_lang }} {% else %} - + {{ 'TeacherPicture' | get_lang }}
diff --git a/plugin/buycourses/src/buy_course_plugin.class.php b/plugin/buycourses/src/buy_course_plugin.class.php index 70f25cc071..34e96a9036 100644 --- a/plugin/buycourses/src/buy_course_plugin.class.php +++ b/plugin/buycourses/src/buy_course_plugin.class.php @@ -175,10 +175,10 @@ class BuyCoursesPlugin extends Plugin $item = $this->getItemByProduct($productId, $productType); $return['html'] = '
'; if ($item) { - $return['html'] .= ''.$item['iso_code'].' '.$item['price'].''; + $return['html'] .= ''.$item['iso_code'].' '.$item['price'].''; $return['verificator'] = true; } else { - $return['html'] .= ''.$this->get_lang('Free').''; + $return['html'] .= ''.$this->get_lang('Free').''; $return['verificator'] = false; } $return['html'] .= '
';