@@ -1911,17 +1911,18 @@ public function get_navigation_bar($barId = '')
1911
1911
$previousText = get_lang('ScormPrevious');
1912
1912
$nextText = get_lang('ScormNext');
1913
1913
$fullScreenText = get_lang('ScormExitFullScreen');
1914
+ $lessonsText = get_lang('LearningPathList');
1914
1915
1915
1916
$settings = api_get_configuration_value('lp_view_settings');
1916
1917
$display = isset($settings['display']) ? $settings['display'] : false;
1917
1918
$reportingIcon = '
1918
- <a class="icon-toolbar"
1919
- id="stats_link"
1920
- href="lp_controller.php?action=stats&'.api_get_cidreq(true).'&lp_id='.$lpId.'"
1921
- onclick="window.parent.API.save_asset(); return true;"
1922
- target="content_name" title="'.$reportingText.'">
1923
- <span class="fa fa-info"></span><span class="sr-only">'.$reportingText.'</span>
1924
- </a>';
1919
+ <a class="icon-toolbar"
1920
+ id="stats_link"
1921
+ href="lp_controller.php?action=stats&'.api_get_cidreq(true).'&lp_id='.$lpId.'"
1922
+ onclick="window.parent.API.save_asset(); return true;"
1923
+ target="content_name" title="'.$reportingText.'">
1924
+ <span class="fa fa-info"></span><span class="sr-only">'.$reportingText.'</span>
1925
+ </a>';
1925
1926
1926
1927
if (!empty($display)) {
1927
1928
$showReporting = isset($display['show_reporting_icon']) ? $display['show_reporting_icon'] : true;
@@ -1939,36 +1940,45 @@ public function get_navigation_bar($barId = '')
1939
1940
$nextIcon = '';
1940
1941
if ($hideArrows === false) {
1941
1942
$previousIcon = '
1942
- <a class="icon-toolbar" id="scorm-previous" href="#"
1943
- onclick="switch_item('.$mycurrentitemid.',\'previous\');return false;" title="'.$previousText.'">
1944
- <span class="fa fa-chevron-left"></span><span class="sr-only">'.$previousText.'</span>
1945
- </a>';
1943
+ <a class="icon-toolbar" id="scorm-previous" href="#"
1944
+ onclick="switch_item('.$mycurrentitemid.',\'previous\');return false;" title="'.$previousText.'">
1945
+ <span class="fa fa-chevron-left"></span><span class="sr-only">'.$previousText.'</span>
1946
+ </a>';
1946
1947
1947
1948
$nextIcon = '
1948
- <a class="icon-toolbar" id="scorm-next" href="#"
1949
- onclick="switch_item('.$mycurrentitemid.',\'next\');return false;" title="'.$nextText.'">
1950
- <span class="fa fa-chevron-right"></span><span class="sr-only">'.$nextText.'</span>
1951
- </a>';
1949
+ <a class="icon-toolbar" id="scorm-next" href="#"
1950
+ onclick="switch_item('.$mycurrentitemid.',\'next\');return false;" title="'.$nextText.'">
1951
+ <span class="fa fa-chevron-right"></span><span class="sr-only">'.$nextText.'</span>
1952
+ </a>';
1952
1953
}
1953
1954
1955
+ $lessonsIcon = '
1956
+ <a class="icon-toolbar" id="lessons-link" href="lp_controller.php?'.api_get_cidreq(true).'&reduced=true&isStudentView=true&hide_course_breadcrumb=true"
1957
+ onclick="window.parent.API.save_asset(); return true;"
1958
+ target="content_name" title="'.$lessonsText.'">
1959
+ <span class="fa fa-star"></span><span class="sr-only">'.$lessonsText.'</span>
1960
+ </a>';
1961
+
1954
1962
if ($this->mode === 'fullscreen') {
1955
1963
$navbar = '
1956
- <span id="'.$barId.'" class="buttons">
1957
- '.$reportingIcon.'
1958
- '.$previousIcon.'
1959
- '.$nextIcon.'
1960
- <a class="icon-toolbar" id="view-embedded"
1961
- href="lp_controller.php?action=mode&mode=embedded" target="_top" title="'.$fullScreenText.'">
1962
- <span class="fa fa-columns"></span><span class="sr-only">'.$fullScreenText.'</span>
1963
- </a>
1964
- </span>';
1964
+ <span id="'.$barId.'" class="buttons">
1965
+ '.$reportingIcon.'
1966
+ '.$previousIcon.'
1967
+ '.$nextIcon.'
1968
+ '.$lessonsIcon.'
1969
+ <a class="icon-toolbar" id="view-embedded"
1970
+ href="lp_controller.php?action=mode&mode=embedded" target="_top" title="'.$fullScreenText.'">
1971
+ <span class="fa fa-columns"></span><span class="sr-only">'.$fullScreenText.'</span>
1972
+ </a>
1973
+ </span>';
1965
1974
} else {
1966
1975
$navbar = '
1967
- <span id="'.$barId.'" class="buttons text-right">
1968
- '.$reportingIcon.'
1969
- '.$previousIcon.'
1970
- '.$nextIcon.'
1971
- </span>';
1976
+ <span id="'.$barId.'" class="buttons text-right">
1977
+ '.$reportingIcon.'
1978
+ '.$previousIcon.'
1979
+ '.$nextIcon.'
1980
+ '.$lessonsIcon.'
1981
+ </span>';
1972
1982
}
1973
1983
1974
1984
return $navbar;
0 commit comments