Skip to content

Commit

Permalink
Add class move
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Mar 1, 2016
1 parent 669e363 commit 68dcc8e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main/newscorm/learnpath.class.php
Expand Up @@ -1971,10 +1971,10 @@ public function get_navigation_bar($idBar = null, $display=null) {
</a>
<a class="icon-toolbar" id="view-embedded" href="lp_controller.php?action=mode&mode=embedded" target="_top" title="embedded mode">
<span class="fa fa-columns"></span><span class="sr-only">' . get_lang('ScormExitFullScreen') . '</span>
</a>
</a>
</span>';

} else {
} else {
$navbar = '
<span id="'.$idBar.'" class="buttons text-right">
<a class="icon-toolbar" href="lp_controller.php?action=stats&'.api_get_cidreq(true).'&lp_id='.$lp_id.'" onclick="window.parent.API.save_asset();return true;" target="content_name" title="stats" id="stats_link">
Expand Down Expand Up @@ -5581,14 +5581,14 @@ public function return_new_tree($update_audio = 'false', $drop_element_here = fa

$title_cut = cut($arrLP[$i]['title'], 25);

//Link for the documents
// Link for the documents
if ($arrLP[$i]['item_type'] == 'document') {
$url = api_get_self() . '?'.api_get_cidreq().'&action=view_item&mode=preview_document&id=' . $arrLP[$i]['id'] . '&lp_id=' . $this->lp_id;
$title_cut = Display::url(
$title_cut,
$url,
array(
'class' => 'ajax',
'class' => 'ajax moved',
'data-title' => $title_cut
)
);
Expand All @@ -5603,7 +5603,6 @@ public function return_new_tree($update_audio = 'false', $drop_element_here = fa

$icon_name = str_replace(' ', '', $arrLP[$i]['item_type']);

$icon = '';
if (file_exists('../img/lp_' . $icon_name . '.png')) {
$icon = '<img src="../img/lp_' . $icon_name . '.png" />';
} else {
Expand Down

0 comments on commit 68dcc8e

Please sign in to comment.