Minor changes due the new hot courses feature see #4200

skala
Julio Montoya 14 years ago
parent d49099fce7
commit 385ab79135
  1. 10
      main/inc/lib/display.lib.php
  2. 4
      main/inc/lib/userportal.lib.php
  3. 2
      main/template/default/auth/courses_categories.php
  4. 4
      user_portal.php

@ -1286,11 +1286,11 @@ class Display {
}
$html = '<ul id = "'.$id.'" class="star-rating">
<li class="current-rating" style="width:'.$percentage.'px;"></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=1" title="1 star out of 5" class="one-star">1</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=2" title="2 stars out of 5" class="two-stars">2</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=3" title="3 stars out of 5" class="three-stars">3</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=4" title="4 stars out of 5" class="four-stars">4</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=5" title="5 stars out of 5" class="five-stars">5</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=1" title="'.get_lang('OneStarOutOf5').'" class="one-star">1</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=2" title="'.get_lang('TwoStarsOutOf5').'" class="two-stars">2</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=3" title="'.get_lang('ThreeStarsOutOf5').'" class="three-stars">3</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=4" title="'.get_lang('FourStarsOutOf5').'" class="four-stars">4</a></li>
<li><a href="javascript:void(0)" rel="'.$url.'&star=5" title="'.get_lang('FiveStarsOutOf5').'" class="five-stars">5</a></li>
</ul>';
//if (!isset($number_of_users_who_voted)) {

@ -1324,4 +1324,8 @@ class IndexManager {
}
}
}
function return_hot_courses() {
Course::manager
}
}

@ -33,7 +33,7 @@ $stok = Security::get_token();
$.ajax({
url: $(this).attr('rel'),
success: function(data) {
if(data == 'added') {
if(data == 'added') {
//$('#vote_label_' + id).html('Saved');
$('#vote_label2_' + id).html("<?php echo get_lang('Saved')?>");
}

@ -224,7 +224,9 @@ if (stripos("flash_yes", $_SESSION['sniff_check_some_activex'])===0 || stripos("
//js verification - To annoying of redirecting every time the page
//$controller->tpl->assign('sniff_notification', $sniff_notification);
}
}
$controller->tpl->assign('hot_courses', $controller->return_hot_courses());
$controller->tpl->assign('plugin_courses_block', $controller->return_courses_main_plugin());
$controller->tpl->assign('profile_block', $controller->return_profile_block());

Loading…
Cancel
Save