parent
b6099390e8
commit
0f6dd58234
@ -1 +1 @@ |
||||
{$content} |
||||
{{ content}} |
||||
@ -1,69 +1,70 @@ |
||||
{if !(empty($hot_courses)) } |
||||
{% if hot_courses is not null %} |
||||
|
||||
<script type="text/javascript"> |
||||
$(document).ready( function() { |
||||
<script type="text/javascript"> |
||||
$(document).ready( function() { |
||||
$('.star-rating li a').live('click', function(event) { |
||||
var id = $(this).parents('ul').attr('id'); |
||||
$('#vote_label2_' + id).html("{'Loading'|get_lang}"); |
||||
$('#vote_label2_' + id).html("{{'Loading'|get_lang}}"); |
||||
$.ajax({ |
||||
url: $(this).attr('data-link'), |
||||
success: function(data) { |
||||
$("#rating_wrapper_"+id).html(data); |
||||
if(data == 'added') { |
||||
//$('#vote_label2_' + id).html("{'Saved'|get_lang}"); |
||||
//$('#vote_label2_' + id).html("{{'Saved'|get_lang}}"); |
||||
} |
||||
if(data == 'updated') { |
||||
//$('#vote_label2_' + id).html("{'Saved'|get_lang}"); |
||||
//$('#vote_label2_' + id).html("{{'Saved'|get_lang}}"); |
||||
} |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
}); |
||||
</script> |
||||
}); |
||||
</script> |
||||
|
||||
<section id="hot_courses"> |
||||
<div class="row"> |
||||
<div class="span9"> |
||||
<div class="page-header"> |
||||
<h3>{"HottestCourses"|get_lang}</h3> |
||||
<h3>{{"HottestCourses"|get_lang}}</h3> |
||||
</div> |
||||
</div> |
||||
{foreach $hot_courses as $hot_course} |
||||
{% for hot_course in hot_courses %} |
||||
<div class="span9"> |
||||
<div class="well_border"> |
||||
<div class="row"> |
||||
<div class="span2"> |
||||
<div class="thumbnail"> |
||||
<img src="{$hot_course.extra_info.course_image}" /> |
||||
{* html_image file=$hot_course.extra_info.course_image *} |
||||
<img src="{{ hot_course.extra_info.course_image}}" /> |
||||
{# html_image file=$hot_course.extra_info.course_image #} |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="span6"> |
||||
<div class="categories-course-description"> |
||||
<h3>{$hot_course.extra_info.name|truncate:60}</h3> |
||||
{$hot_course.extra_info.rating_html} |
||||
<h3>{{hot_course.extra_info.name}}</h3> |
||||
{{ hot_course.extra_info.rating_html}} |
||||
</div> |
||||
<p> |
||||
{* World *} |
||||
{if ($hot_course.extra_info.visibility == 3 OR ($hot_course.extra_info.visibility == 2 AND $_u.logged == 1 ))} |
||||
<a class="btn btn-primary" title="" href="{$_p.web_course}{$hot_course.extra_info.path}/index.php"> |
||||
{"GoToCourse"|get_lang} |
||||
{# World #} |
||||
{% if hot_course.extra_info.visibility == 3 or (hot_course.extra_info.visibility == 2 and _u.logged == 1 ) %} |
||||
<a class="btn btn-primary" title="" href="{{_p.web_course}} {{hot_course.extra_info.path}}/index.php"> |
||||
{{"GoToCourse"|get_lang}} |
||||
</a> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* Description *} |
||||
{if ($hot_course.extra_info.visibility == 3)} |
||||
<a class="ajax btn" title="" href="{$_p.web_ajax}course_home.ajax.php?a=show_course_information&code={$hot_course.course_code}"> |
||||
{"Description"|get_lang} |
||||
{# Description #} |
||||
{% if hot_course.extra_info.visibility == 3 %} |
||||
<a class="ajax btn" title="" href="{{ _p.web_ajax}}course_home.ajax.php?a=show_course_information&code={{hot_course.course_code}}"> |
||||
{{"Description"|get_lang}} |
||||
</a> |
||||
{/if} |
||||
{% endif %} |
||||
</p> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{/foreach} |
||||
{% endfor %} |
||||
</div> |
||||
</section> |
||||
{/if} |
||||
{% endif %} |
||||
@ -1,39 +1,40 @@ |
||||
{extends file="default/layout/main.tpl"} |
||||
{* Header *} |
||||
{block name="header"} |
||||
{include file="default/layout/main_header.tpl"} |
||||
{/block} |
||||
{* 1 column *} |
||||
{block name=body} |
||||
{* Plugin top *} |
||||
{% extends "default/layout/main.tpl" %} |
||||
{# Header #} |
||||
{% block header %} |
||||
{% include "default/layout/main_header.tpl" %} |
||||
{% endblock %} |
||||
|
||||
{if !empty($plugin_content_top)} |
||||
{# 1 column #} |
||||
{% block body %} |
||||
{# Plugin top #} |
||||
|
||||
{% if plugin_content_top is not null %} |
||||
<div id="plugin_content_top" class="span12"> |
||||
{$plugin_content_top} |
||||
{{ plugin_content_top}} |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
<div class="span12"> |
||||
{include file="default/layout/page_body.tpl"} |
||||
{if !empty($content)} |
||||
{% include "default/layout/page_body.tpl" %} |
||||
|
||||
{% if content is not null %} |
||||
<section id="main_content"> |
||||
{$content} |
||||
{{ content}} |
||||
</section> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
</div> |
||||
|
||||
{* Plugin bottom *} |
||||
|
||||
{if !empty($plugin_content_bottom)} |
||||
{# Plugin bottom #} |
||||
{% if plugin_content_bottom is not null %} |
||||
<div id="plugin_content_bottom" class="span12"> |
||||
{$plugin_content_bottom} |
||||
{{ plugin_content_bottom }} |
||||
</div> |
||||
{/if} |
||||
{/block} |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
{* Footer *} |
||||
{block name=footer} |
||||
{if $show_footer == 1} |
||||
{include file="default/layout/main_footer.tpl"} |
||||
{/if} |
||||
{/block} |
||||
{# Footer #} |
||||
{% block footer %} |
||||
{% if show_footer == 1 %} |
||||
{% include "default/layout/main_footer.tpl" %} |
||||
{% endif %} |
||||
{% endblock %} |
||||
@ -1,113 +1,114 @@ |
||||
{extends file="default/layout/main.tpl"} |
||||
{* Header *} |
||||
{block name=header} |
||||
{if $show_header == 1 } |
||||
{include file="default/layout/main_header.tpl"} |
||||
{/if} |
||||
{/block} |
||||
{% extends "default/layout/main.tpl" %} |
||||
|
||||
{block name=body} |
||||
{% block header %} |
||||
{% if show_header == 1 %} |
||||
{% include "default/layout/main_header.tpl" %} |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
{* Main content*} |
||||
{% block body %} |
||||
|
||||
{if $show_sniff == 1 } |
||||
{include file="default/layout/sniff.tpl"} |
||||
{/if} |
||||
{# Main content #} |
||||
|
||||
{% if show_sniff == 1 %} |
||||
{% include "default/layout/sniff.tpl" %} |
||||
{% endif %} |
||||
|
||||
<div class="span9"> |
||||
|
||||
{* Plugin bottom *} |
||||
{if !empty($plugin_content_top)} |
||||
{# Plugin bottom #} |
||||
{% if plugin_content_top is not null %} |
||||
<div id="plugin_content_top"> |
||||
{$plugin_content_top} |
||||
{{ plugin_content_top }} |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* ?? *} |
||||
{if !empty($home_page_block)} |
||||
{# ?? #} |
||||
{% if home_page_block is not null %} |
||||
<section id="home_page"> |
||||
{$home_page_block} |
||||
{{ home_page_block}} |
||||
</section> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* ?? *} |
||||
{$sniff_notification} |
||||
{# ?? #} |
||||
{{ sniff_notification }} |
||||
|
||||
{include file="default/layout/page_body.tpl"} |
||||
{% include "default/layout/page_body.tpl" %} |
||||
|
||||
{if !empty($content)} |
||||
{% if content is not null %} |
||||
<section id="main_content"> |
||||
{$content} |
||||
{{ content }} |
||||
</section> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* Announcements *} |
||||
{if !empty($announcements_block)} |
||||
{# Announcements #} |
||||
{% if announcements_block is not null %} |
||||
<section id="announcements_page"> |
||||
{$announcements_block} |
||||
{{ announcements_block }} |
||||
</section> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* Hot courses template *} |
||||
{include file="default/layout/hot_courses.tpl"} |
||||
{# Hot courses template #} |
||||
{% include "default/layout/hot_courses.tpl" %} |
||||
|
||||
{* Content bottom *} |
||||
{if !empty($plugin_content_bottom)} |
||||
{# Content bottom #} |
||||
{% if plugin_content_bottom is not null %} |
||||
<div id="plugin_content_bottom"> |
||||
{$plugin_content_bottom} |
||||
{{plugin_content_bottom}} |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
</div> |
||||
|
||||
{* Right column *} |
||||
{# Right column #} |
||||
<div class="span3"> |
||||
{if !empty($plugin_menu_top)} |
||||
{% if plugin_menu_top is not null %} |
||||
<div id="plugin_menu_top"> |
||||
{$plugin_menu_top} |
||||
{{plugin_menu_top}} |
||||
</div> |
||||
{/if} |
||||
{*if user is not login show the login form*} |
||||
{if $_u.logged == 0} |
||||
{include file="default/layout/login_form.tpl"} |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{# if user is not login show the login form #} |
||||
{% if _u.logged == 0 %} |
||||
{% include "default/layout/login_form.tpl" %} |
||||
{% endif %} |
||||
|
||||
{* My account - user picture *} |
||||
{$profile_block} |
||||
{$account_block} |
||||
{$teacher_block} |
||||
{# My account - user picture #} |
||||
{{ profile_block }} |
||||
{{ account_block }} |
||||
{{ teacher_block }} |
||||
|
||||
{* Notices *} |
||||
{$notice_block} |
||||
{# Notices #} |
||||
{{ notice_block }} |
||||
|
||||
{* Links that are not added in the tabs*} |
||||
{$navigation_course_links} |
||||
{# Links that are not added in the tabs #} |
||||
{{ navigation_course_links }} |
||||
|
||||
{* Reservation block *} |
||||
{$reservation_block} |
||||
{# Reservation block #} |
||||
{{ reservation_block }} |
||||
|
||||
{* Search (xapian)*} |
||||
{$search_block} |
||||
{# Search (xapian) #} |
||||
{{ search_block }} |
||||
|
||||
{* Classes *} |
||||
{$classes_block} |
||||
{# Classes #} |
||||
{{ classes_block }} |
||||
|
||||
{* Skills*} |
||||
{$skills_block} |
||||
{# Skills #} |
||||
{{ skills_block }} |
||||
|
||||
{* Plugin courses sidebar *} |
||||
{* Plugins for footer section *} |
||||
{if !empty($plugin_menu_bottom)} |
||||
{# Plugin courses sidebar #} |
||||
{# Plugins for footer section #} |
||||
|
||||
{% if plugin_menu_bottom is not null %} |
||||
<div id="plugin_menu_bottom"> |
||||
{$plugin_menu_bottom} |
||||
{{ plugin_menu_bottom }} |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
</div> |
||||
{/block} |
||||
|
||||
{* Footer *} |
||||
{block name=footer} |
||||
{if $show_footer == 1 } |
||||
{include file="default/layout/main_footer.tpl"} |
||||
{/if} |
||||
{/block} |
||||
{% endblock %} |
||||
|
||||
{% block footer %} |
||||
{% if show_footer == 1 %} |
||||
{% include "default/layout/main_footer.tpl" %} |
||||
{% endif %} |
||||
{% endblock %} |
||||
@ -1,23 +1,24 @@ |
||||
<div id="menu" class="menu well"> |
||||
<div class="menusection"> |
||||
<span class="menusectioncaption"> |
||||
{"Login"|get_lang} |
||||
{{"Login"|get_lang}} |
||||
</span> |
||||
</div> |
||||
|
||||
{$login_language_form} |
||||
{if !empty($plugin_login_top)} |
||||
{{ login_language_form }} |
||||
{% if plugin_login_top is not null %} |
||||
<div id="plugin_login_top"> |
||||
{$plugin_login_top} |
||||
{{ plugin_login_top }} |
||||
</div> |
||||
{/if} |
||||
{$login_form} |
||||
{$login_failed} |
||||
{$login_options} |
||||
{% endif %} |
||||
|
||||
{if !empty($plugin_login_bottom)} |
||||
{{login_form}} |
||||
{{login_failed}} |
||||
{{login_options}} |
||||
|
||||
{% if plugin_login_bottom is not null %} |
||||
<div id="plugin_login_bottom"> |
||||
{$plugin_login_bottom} |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
</div> |
||||
@ -1,7 +1,8 @@ |
||||
{block name="header"}{/block} |
||||
{% block header %} |
||||
{% endblock %} |
||||
|
||||
{* body *} |
||||
{block name="body"}{/block} |
||||
{% block body %} |
||||
{% endblock %} |
||||
|
||||
{* footer *} |
||||
{block name="footer"}{/block} |
||||
{% block footer %} |
||||
{% endblock %} |
||||
@ -1,15 +1,16 @@ |
||||
<!DOCTYPE html> |
||||
<!--[if lt IE 7]> <html lang="{$document_language}" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> |
||||
<!--[if IE 7]> <html lang="{$document_language}" class="no-js lt-ie9 lt-ie8"> <![endif]--> |
||||
<!--[if IE 8]> <html lang="{$document_language}" class="no-js lt-ie9"> <![endif]--> |
||||
<!--[if gt IE 8]><!--><html lang="{$document_language}" class="no-js"> <!--<![endif]--> |
||||
<!--[if lt IE 7]> <html lang="{{document_language}}" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> |
||||
<!--[if IE 7]> <html lang="{{document_language}}" class="no-js lt-ie9 lt-ie8"> <![endif]--> |
||||
<!--[if IE 8]> <html lang="{{document_language}}" class="no-js lt-ie9"> <![endif]--> |
||||
<!--[if gt IE 8]><!--><html lang="{{document_language}}" class="no-js"> <!--<![endif]--> |
||||
<head> |
||||
{include file="default/layout/head.tpl"} |
||||
{% include "default/layout/head.tpl" %} |
||||
</head> |
||||
<body dir="{$text_direction}" class="{$section_name}"> |
||||
{block name="header"}{/block} |
||||
{block name="body"} |
||||
{$content} |
||||
{/block} |
||||
<body dir="{{text_direction}}" class="{{section_name}}"> |
||||
{% block name%} |
||||
{% endblock %} |
||||
{% block body %} |
||||
{{content}} |
||||
{% endblock %} |
||||
</body> |
||||
</html> |
||||
@ -1,20 +1,20 @@ |
||||
{* Actions *} |
||||
{if (!empty($actions)) } |
||||
{# Actions #} |
||||
{% if actions is not null %} |
||||
<div class="actions"> |
||||
{$actions} |
||||
{{ actions }} |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* Page header*} |
||||
{if !empty($header) } |
||||
{# Page header #} |
||||
{% if header is not null %} |
||||
<div class="page-header"> |
||||
<h1>{$header}</h1> |
||||
<h1>{{ header }}</h1> |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* Show messages*} |
||||
{if !empty($message) } |
||||
{# Show messages #} |
||||
{% if message is not null %} |
||||
<section id="messages"> |
||||
{$message} |
||||
{{ message}} |
||||
</section> |
||||
{/if} |
||||
{% endif %} |
||||
@ -1,16 +1,16 @@ |
||||
{* |
||||
{# |
||||
show_header and show_footer templates are only called when using the Display::display_header and Display::display_footer |
||||
for backward compatibility we suppose that the default layout is one column which means using a div with class span12 |
||||
*} |
||||
{if $show_header} |
||||
#} |
||||
{% if show_header is not null %} |
||||
</section> |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
|
||||
{* Plugin bottom *} |
||||
{if !empty($plugin_content_bottom)} |
||||
{# Plugin bottom #} |
||||
{% if plugin_content_bottom is not null %} |
||||
<div id="plugin_content_bottom" class="span12"> |
||||
{$plugin_content_bottom} |
||||
{{ plugin_content_bottom}} |
||||
</div> |
||||
{/if} |
||||
{include file="default/layout/main_footer.tpl"} |
||||
{% endif %} |
||||
{% include "default/layout/main_footer.tpl" %} |
||||
@ -1,15 +1,15 @@ |
||||
{* |
||||
{# |
||||
show_header and show_footer templates are only called when using the Display::display_header and Display::display_footer |
||||
for backward compatibility we suppose that the default layout is one column which means using a div with class span12 |
||||
*} |
||||
{include file="default/layout/main_header.tpl"} |
||||
{if $show_header} |
||||
{if !empty($plugin_content_top)} |
||||
#} |
||||
{% include "default/layout/main_header.tpl" %} |
||||
{% if show_header is not null%} |
||||
{% if plugin_content_top is not null %} |
||||
<div id="plugin_content_top" class="span12"> |
||||
{$plugin_content_top} |
||||
{{ plugin_content_top }} |
||||
</div> |
||||
{/if} |
||||
{% endif %} |
||||
<div class="span12"> |
||||
{include file="default/layout/page_body.tpl"} |
||||
{% include "default/layout/page_body.tpl" %} |
||||
<section id="main_content"> |
||||
{/if} |
||||
{% endif %} |
||||
@ -1,11 +1,11 @@ |
||||
<div class="row"> |
||||
<div class="span3"> |
||||
{$social_left_content} |
||||
{$social_left_menu} |
||||
{{ social_left_content }} |
||||
{{ social_left_menu }} |
||||
</div> |
||||
<div class="span9"> |
||||
<div class="row"> |
||||
{$social_right_content} |
||||
{{ social_right_content}} |
||||
<div class="span9" id="display_response_id"></div> |
||||
</div> |
||||
</div> |
||||
|
||||
@ -1,7 +1,7 @@ |
||||
<div class="page-header"> |
||||
<h2>{$work.title}</h2> |
||||
<h2>{{ work.title}}</h2> |
||||
</div> |
||||
|
||||
<p> |
||||
{$work.description} |
||||
{{ work.description}} |
||||
</p> |
||||
Loading…
Reference in new issue