parent
32e6ade738
commit
be32a954d0
@ -1,66 +1,68 @@ |
|||||||
<script type="text/javascript"> |
{if !(empty($hot_courses)) } |
||||||
$(document).ready( function() { |
|
||||||
$('.star-rating li a').live('click', function(event) { |
<script type="text/javascript"> |
||||||
var id = $(this).parents('ul').attr('id'); |
$(document).ready( function() { |
||||||
$('#vote_label2_' + id).html("{'Loading'|get_lang}"); |
$('.star-rating li a').live('click', function(event) { |
||||||
$.ajax({ |
var id = $(this).parents('ul').attr('id'); |
||||||
url: $(this).attr('data-link'), |
$('#vote_label2_' + id).html("{'Loading'|get_lang}"); |
||||||
success: function(data) { |
$.ajax({ |
||||||
$("#rating_wrapper_"+id).html(data); |
url: $(this).attr('data-link'), |
||||||
if(data == 'added') { |
success: function(data) { |
||||||
//$('#vote_label2_' + id).html("{'Saved'|get_lang}"); |
$("#rating_wrapper_"+id).html(data); |
||||||
|
if(data == 'added') { |
||||||
|
//$('#vote_label2_' + id).html("{'Saved'|get_lang}"); |
||||||
|
} |
||||||
|
if(data == 'updated') { |
||||||
|
//$('#vote_label2_' + id).html("{'Saved'|get_lang}"); |
||||||
|
} |
||||||
} |
} |
||||||
if(data == 'updated') { |
}); |
||||||
//$('#vote_label2_' + id).html("{'Saved'|get_lang}"); |
}); |
||||||
} |
|
||||||
} |
|
||||||
}); |
|
||||||
}); |
}); |
||||||
|
</script> |
||||||
}); |
<section id="hot_courses"> |
||||||
</script> |
<div class="row"> |
||||||
|
<div class="span9"> |
||||||
|
<h3>{"HottestCourses"|get_lang}</h3> |
||||||
|
</div> |
||||||
|
{foreach $hot_courses as $hot_course} |
||||||
|
<div class="span9"> |
||||||
|
<div class="categories-block-course "> |
||||||
|
<div class="categories-content-course"> |
||||||
|
|
||||||
{if !(empty($hot_courses)) } |
<div class="categories-course-picture"> |
||||||
<div class="row"> |
<img src="{$hot_course.extra_info.course_image}" /> |
||||||
<div class="span9"> |
{* html_image file=$hot_course.extra_info.course_image *} |
||||||
<h3>{"HottestCourses"|get_lang}</h3> |
</div> |
||||||
</div> |
|
||||||
{foreach $hot_courses as $hot_course} |
|
||||||
<div class="span9"> |
|
||||||
<div class="categories-block-course "> |
|
||||||
<div class="categories-content-course"> |
|
||||||
|
|
||||||
<div class="categories-course-picture"> |
|
||||||
<img src="{$hot_course.extra_info.course_image}" /> |
|
||||||
{* html_image file=$hot_course.extra_info.course_image *} |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="categories-course-description"> |
|
||||||
<div class="course-block-title">{$hot_course.extra_info.name|truncate:60}</div> |
|
||||||
{$hot_course.extra_info.rating_html} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="categories-course-links"> |
|
||||||
<div class="course-link-desc right"> |
|
||||||
{if ($hot_course.extra_info.visibility == 3)} |
|
||||||
<a class="ajax a_button white small" title="" href="{$_p.web_ajax}course_home.ajax.php?a=show_course_information&code={$hot_course.course_code}"> |
|
||||||
{"Description"|get_lang} |
|
||||||
</a> |
|
||||||
{/if} |
|
||||||
</div> |
|
||||||
|
|
||||||
{* World *} |
<div class="categories-course-description"> |
||||||
{if ($hot_course.extra_info.visibility == 3)} |
<div class="course-block-title">{$hot_course.extra_info.name|truncate:60}</div> |
||||||
<div class="course-link-desc right"> |
{$hot_course.extra_info.rating_html} |
||||||
<a class="a_button gray small" title="" href="{$_p.web_course}{$hot_course.extra_info.path}/index.php"> |
</div> |
||||||
{"GoToCourse"|get_lang} |
</div> |
||||||
</a> |
|
||||||
</div> |
<div class="categories-course-links"> |
||||||
{/if} |
<div class="course-link-desc right"> |
||||||
</div> |
{if ($hot_course.extra_info.visibility == 3)} |
||||||
</div> |
<a class="ajax a_button white small" title="" href="{$_p.web_ajax}course_home.ajax.php?a=show_course_information&code={$hot_course.course_code}"> |
||||||
</div> |
{"Description"|get_lang} |
||||||
{/foreach} |
</a> |
||||||
</div> |
{/if} |
||||||
|
</div> |
||||||
|
|
||||||
|
{* World *} |
||||||
|
{if ($hot_course.extra_info.visibility == 3)} |
||||||
|
<div class="course-link-desc right"> |
||||||
|
<a class="a_button gray small" title="" href="{$_p.web_course}{$hot_course.extra_info.path}/index.php"> |
||||||
|
{"GoToCourse"|get_lang} |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
{/if} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{/foreach} |
||||||
|
</div> |
||||||
|
</section> |
||||||
{/if} |
{/if} |
||||||
Loading…
Reference in new issue