diff --git a/plugin/buycourses/view/configuration.tpl b/plugin/buycourses/view/configuration.tpl index c39838e9fd..6e3ea10f2a 100644 --- a/plugin/buycourses/view/configuration.tpl +++ b/plugin/buycourses/view/configuration.tpl @@ -3,110 +3,122 @@ {% if sessionsAreIncluded == "YES" %} -
-{% endif %} +
+ + {% endif %} -
-
-
- - - - - - - - - {% set i = 0 %} +
+
+
+
{{ 'Title'|get_lang }}{{ 'OfficialCode'|get_lang }}{{ 'Visible'|get_lang }}{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}{{ 'Option'|get_lang }}
+ + + + + + + + {% set i = 0 %} - {% for course in courses %} - {{ i%2 == 0 ? '' : '' }} - {% set i = i + 1 %} - - - - - - - {% endfor %} -
{{ 'Title'|get_lang }}{{ 'OfficialCode'|get_lang }}{{ 'Visible'|get_lang }}{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}{{ 'Option'|get_lang }}
- {{ visibility[course.visibility] }} - {{course.title}} - {{ course.visual_code }} - - {{course.code}} - - {% if course.visible == 1 %} - - {% else %} - - {% endif %} - {{ currency }} -
ok
- -
+ {% for course in courses %} + {{ i % 2 == 0 ? '' : '' }} + {% set i = i + 1 %} + + {{ visibility[course.visibility] }} + {{course.title}} + {{ course.visual_code }} + + + {{course.code}} + + + {% if course.visible == 1 %} + + {% else %} + + {% endif %} + + {{ currency }} + +
ok
+ + + + {% endfor %} + +
+
-
-
-{% if sessionsAreIncluded == "YES" %} -
-
-
- - - - - - - - - - {% set i = 0 %} + {% if sessionsAreIncluded == "YES" %} +
+
+
+
{{ 'Title'|get_lang }}{{ 'StartDate'|get_lang }}{{ 'EndDate'|get_lang }}{{ 'Visible'|get_lang }}{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}{{ 'Option'|get_lang }}
+ + + + + + + + + {% set i = 0 %} - {% for session in sessions %} - {{ i%2 == 0 ? '' : '' }} - {% set i = i + 1 %} - - - - - - - - {% endfor %} -
{{ 'Title'|get_lang }}{{ 'StartDate'|get_lang }}{{ 'EndDate'|get_lang }}{{ 'Visible'|get_lang }}{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}{{ 'Option'|get_lang }}
- {{ visibility[session.visibility] }} - {{session.name}} - - {{ session.access_start_date }} - - {{ session.access_end_date }} - - {% if session.visible == 1 %} - - {% else %} - - {% endif %} - {{ currency }} -
ok
- -
+ {% for session in sessions %} + {{ i%2 == 0 ? '' : '' }} + {% set i = i + 1 %} + + {{ visibility[session.visibility] }} + {{session.name}} + + + {{ session.access_start_date }} + + + {{ session.access_end_date }} + + + {% if session.visible == 1 %} + + {% else %} + + {% endif %} + + {{ currency }} + +
ok
+ + + + {% endfor %} + +
+
+
-
- - {% endif %} diff --git a/plugin/buycourses/view/index.tpl b/plugin/buycourses/view/index.tpl index 9655880a87..3f6bfa59e1 100644 --- a/plugin/buycourses/view/index.tpl +++ b/plugin/buycourses/view/index.tpl @@ -1,7 +1,6 @@
- {% if isAdmin == 'true' %}
@@ -32,9 +31,7 @@
{% endif %} - + {% if isAdmin == 'true' %} -
-
- - - - -
-
- - - - - diff --git a/plugin/buycourses/view/paymentsetup.tpl b/plugin/buycourses/view/paymentsetup.tpl index ce184fdb98..fc514930a3 100644 --- a/plugin/buycourses/view/paymentsetup.tpl +++ b/plugin/buycourses/view/paymentsetup.tpl @@ -3,7 +3,9 @@
-

{{ 'PluginInstruction'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'ClickHere'|get_plugin_lang('BuyCoursesPlugin') }}

+

{{ 'PluginInstruction'|get_plugin_lang('BuyCoursesPlugin') }} + {{ 'ClickHere'|get_plugin_lang('BuyCoursesPlugin') }} +

@@ -17,12 +19,12 @@ @@ -40,73 +42,73 @@
{% if paypal_enable == "true" %} -
-
-
- {{ 'PayPalConfig'|get_plugin_lang('BuyCoursesPlugin') }} -
-
-
- - -
-
- - +
+
+
+ {{ 'PayPalConfig'|get_plugin_lang('BuyCoursesPlugin') }}
-
- - +
+
+ + +
+
+ + +
+
+ + +
+
+ {% if paypal.sandbox == "YES" %} + + {% else %} + + {% endif %} +
+
-
- {% if paypal.sandbox == "YES" %} - - {% else %} - - {% endif %} -
-
-
{% endif %}
- + {% if transfer_enable == "true" %}

{{ 'TransfersConfig'|get_plugin_lang('BuyCoursesPlugin') }}

-
- - - - - - - - {% set i = 0 %} +
+
{{ 'Name'|get_lang }}{{ 'BankAccount'|get_plugin_lang('BuyCoursesPlugin') }}{{ 'SWIFT'|get_lang }}{{ 'Option'|get_lang }}
+ + + + + + + {% set i = 0 %} - {% for transf in transfer %} - {{ i%2==0 ? ' + {% for transf in transfer %} + {{ i%2==0 ? ' ' : ' ' }} - {% set i = i + 1 %} - - - - - - {% endfor %} - {{ i%2==0 ? ' + {% set i = i + 1 %} + + + + + + {% endfor %} + {{ i%2==0 ? ' ' : ' ' }} @@ -115,10 +117,10 @@ - -
{{ 'Name'|get_lang }}{{ 'BankAccount'|get_plugin_lang('BuyCoursesPlugin') }}{{ 'SWIFT'|get_lang }}{{ 'Option'|get_lang }}
{{ transf.name | e }}{{ transf.account | e }}{{ transf.swift | e }} - - -
{{ transf.name | e }}{{ transf.account | e }}{{ transf.swift | e }} + + +
add account
-
+ + +
{% endif %} -
-
+
+
diff --git a/plugin/buycourses/view/pending_orders.tpl b/plugin/buycourses/view/pending_orders.tpl index caa1d16492..3a6172e98b 100644 --- a/plugin/buycourses/view/pending_orders.tpl +++ b/plugin/buycourses/view/pending_orders.tpl @@ -17,23 +17,23 @@ {% for order in pending %} {{ i%2==0 ? '' : '' }} - {% set i = i + 1 %} - {{ order.reference }} - {{ order.name }} - {{ order.title }} - {{ order.price }} {{ currency }} - {{ order.date }} - - ok -    - delete - - -{% endfor %} + {% set i = i + 1 %} + {{ order.reference }} + {{ order.name }} + {{ order.title }} + {{ order.price }} {{ currency }} + {{ order.date }} + + ok +    + delete + + + {% endfor %} - -
-
+ +
+
diff --git a/plugin/buycourses/view/success.tpl b/plugin/buycourses/view/success.tpl index 3abbc88ab5..c39be878bc 100644 --- a/plugin/buycourses/view/success.tpl +++ b/plugin/buycourses/view/success.tpl @@ -6,13 +6,21 @@
@@ -21,25 +29,51 @@
{% if isSession == "YES" %} -
-
-
-

{{ session.name }}

-
{{ 'From'|get_lang }} {{ session.access_start_date }} {{ 'To'|get_lang }} {{ session.access_end_date }}
+
+
+
+

{{ session.name }}

+
{{ 'From'|get_lang }} {{ session.access_start_date }} {{ 'To'|get_lang }} {{ session.access_end_date }}
+
-
-
-
- {{ session.price }} {{ currency }} +
+
+ {{ session.price }} {{ currency }} +
+
-
-
- {% for course in session.courses %} + {% for course in session.courses %} +
+
+
+ + + +
+
+
+
+

{{ course.title }}

+
{{ 'Teacher'|get_lang }}: {{ course.teacher }}
+
+
+ +
+ {% endfor %} + {% else %}
@@ -51,41 +85,13 @@
+
{{ course.price }} {{ currency }}
- {% endfor %} - {% else %} -
-
-
- - - -
-
-
-
-

{{ course.title }}

-
{{ 'Teacher'|get_lang }}: {{ course.teacher }}
-
-
-
-
{{ course.price }} {{ currency }}
-
- -
-
{% endif %}