|
5 | 5 | require_once dirname(__FILE__) . '/buy_course.lib.php'; |
6 | 6 | require_once '../../../main/inc/global.inc.php'; |
7 | 7 | require_once 'buy_course_plugin.class.php'; |
8 | | - |
| 8 | +$plugin = Buy_CoursesPlugin::create(); |
9 | 9 | $_cid = 0; |
10 | | -$interbreadcrumb[] = array("url" => "list.php", "name" => 'Listado de cursos a la venta'); |
11 | | -$interbreadcrumb[] = array("url" => "configuration.php", "name" => get_lang('Configuración de cursos disponibles')); |
| 10 | +$interbreadcrumb[] = array("url" => "list.php", "name" => $plugin->get_lang('CourseListOnSale')); |
| 11 | +$interbreadcrumb[] = array("url" => "configuration.php", "name" => $plugin->get_lang('AvailableCoursesConfiguration')); |
12 | 12 |
|
13 | | -$tpl = new Template('Configuración de Pagos'); |
| 13 | +$tpl = new Template('PaymentConfiguration'); |
14 | 14 |
|
15 | 15 | $teacher = api_is_platform_admin(); |
16 | 16 | api_protect_course_script(true); |
17 | 17 |
|
18 | 18 | if ($teacher) { |
19 | 19 | // Sync course table with the plugin |
20 | 20 | $listCurrency = listCurrency(); |
21 | | - |
22 | 21 | $paypalParams = paypalParameters(); |
23 | 22 | $transferenceParams = transferenceParameters(); |
24 | 23 |
|
25 | | - $ruta = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/message_confirmation.png'; |
26 | | - $ruta2 = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/save.png'; |
27 | | - $ruta3 = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/more.png'; |
28 | | - $ruta4 = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/borrar.png'; |
29 | | - $ruta5 = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/acces_tool.gif'; |
| 24 | + $confirmationImg = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/message_confirmation.png'; |
| 25 | + $saveImg = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/save.png'; |
| 26 | + $moreImg = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/more.png'; |
| 27 | + $deleteImg = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/delete.png'; |
| 28 | + $showImg = api_get_path(WEB_PLUGIN_PATH) . 'buy_courses/resources/acces_tool.gif'; |
30 | 29 |
|
31 | 30 | $plugin = Buy_CoursesPlugin::create(); |
32 | | - $paypal_enable = $plugin->get('paypal_enable'); |
33 | | - $tarjeta_enable = $plugin->get('tarjet_credit_enable'); |
34 | | - $transference_enable = $plugin->get('transference_enable'); |
| 31 | + $paypalEnable = $plugin->get('paypal_enable'); |
| 32 | + $transferenceEnable = $plugin->get('transference_enable'); |
35 | 33 |
|
36 | 34 | $tpl->assign('server', $_configuration['root_web']); |
37 | 35 | $tpl->assign('currencies', $listCurrency); |
38 | 36 | $tpl->assign('paypal', $paypalParams); |
39 | | - $tpl->assign('transferencia', $transferenceParams); |
40 | | - $tpl->assign('confirmation_img', $ruta); |
41 | | - $tpl->assign('save_img', $ruta2); |
42 | | - $tpl->assign('ruta_more', $ruta3); |
43 | | - $tpl->assign('ruta_borrar', $ruta4); |
44 | | - $tpl->assign('ruta_ver', $ruta5); |
45 | | - $tpl->assign('paypal_enable', $paypal_enable); |
46 | | - $tpl->assign('tarjeta_enable', $tarjeta_enable); |
47 | | - $tpl->assign('transference_enable', $transference_enable); |
48 | | - |
| 37 | + $tpl->assign('transference', $transferenceParams); |
| 38 | + $tpl->assign('confirmation_img', $confirmationImg); |
| 39 | + $tpl->assign('save_img', $saveImg); |
| 40 | + $tpl->assign('more_img', $moreImg); |
| 41 | + $tpl->assign('delete_img', $deleteImg); |
| 42 | + $tpl->assign('show_img', $showImg); |
| 43 | + $tpl->assign('paypal_enable', $paypalEnable); |
| 44 | + $tpl->assign('transference_enable', $transferenceEnable); |
49 | 45 |
|
50 | 46 | $listing_tpl = 'buy_courses/view/paymentsetup.tpl'; |
51 | 47 | $content = $tpl->fetch($listing_tpl); |
|
0 commit comments