@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | $_in_course = true; |
| 10 | 10 | |
| 11 | -require_once __DIR__ . '/../inc/global.inc.php'; |
|
| 11 | +require_once __DIR__.'/../inc/global.inc.php'; |
|
| 12 | 12 | |
| 13 | 13 | $current_course_tool = TOOL_GRADEBOOK; |
| 14 | 14 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'normal', |
| 52 | 52 | false |
| 53 | 53 | ), |
| 54 | - api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/service_catalog.php' |
|
| 54 | + api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_catalog.php' |
|
| 55 | 55 | ); |
| 56 | 56 | $tpl->assign('content', $content); |
| 57 | 57 | $tpl->display_blank_template(); |
@@ -201,19 +201,19 @@ discard block |
||
| 201 | 201 | <div class='row'> |
| 202 | 202 | <div class='col-md-2 col-xs-4'> |
| 203 | 203 | <div class='thumbnail'> |
| 204 | - <img class='skill-badge-img' src='" . $skill->getWebIconPath() . "' > |
|
| 204 | + <img class='skill-badge-img' src='" . $skill->getWebIconPath()."' > |
|
| 205 | 205 | </div> |
| 206 | 206 | </div> |
| 207 | 207 | <div class='col-md-8 col-xs-8'> |
| 208 | - <h5><b>" . $skill->getName() . "</b></h5> |
|
| 209 | - " . $skill->getDescription() . " |
|
| 208 | + <h5><b>" . $skill->getName()."</b></h5> |
|
| 209 | + " . $skill->getDescription()." |
|
| 210 | 210 | </div> |
| 211 | 211 | <div class='col-md-2 col-xs-12'> |
| 212 | - <h5><b>" . get_lang('ShareWithYourFriends') . "</b></h5> |
|
| 213 | - <a href='http://www.facebook.com/sharer.php?u=" . api_get_path(WEB_PATH) . "badge/" . $skill->getId() . "/user/" . $userId . "' target='_new'> |
|
| 212 | + <h5><b>" . get_lang('ShareWithYourFriends')."</b></h5> |
|
| 213 | + <a href='http://www.facebook.com/sharer.php?u=" . api_get_path(WEB_PATH)."badge/".$skill->getId()."/user/".$userId."' target='_new'> |
|
| 214 | 214 | <em class='fa fa-facebook-square fa-3x text-info' aria-hidden='true'></em> |
| 215 | 215 | </a> |
| 216 | - <a href='https://twitter.com/home?status=" . sprintf(get_lang('IHaveObtainedSkillXOnY'), '"' . $skill->getName() . '"', api_get_setting('siteName')) . ' - ' . api_get_path(WEB_PATH) . 'badge/' . $skill->getId() . '/user/' . $userId . "' target='_new'> |
|
| 216 | + <a href='https://twitter.com/home?status=" . sprintf(get_lang('IHaveObtainedSkillXOnY'), '"'.$skill->getName().'"', api_get_setting('siteName')).' - '.api_get_path(WEB_PATH).'badge/'.$skill->getId().'/user/'.$userId."' target='_new'> |
|
| 217 | 217 | <em class='fa fa-twitter-square fa-3x text-light' aria-hidden='true'></em> |
| 218 | 218 | </a> |
| 219 | 219 | </div> |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | $badgeLink .= " |
| 224 | 224 | <div class='panel panel-default'> |
| 225 | 225 | <div class='panel-body'> |
| 226 | - <h3 class='text-center'>" . get_lang('AdditionallyYouHaveObtainedTheFollowingSkills') . "</h3> |
|
| 226 | + <h3 class='text-center'>" . get_lang('AdditionallyYouHaveObtainedTheFollowingSkills')."</h3> |
|
| 227 | 227 | $skillList |
| 228 | 228 | </div> |
| 229 | 229 | </div> |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | function generateLPFinalItemTemplateCertificateLinks($certificate) |
| 241 | 241 | { |
| 242 | 242 | $downloadCertificateLink = Display::url( |
| 243 | - Display::returnFontAwesomeIcon('file-pdf-o') . get_lang('DownloadCertificatePdf'), |
|
| 243 | + Display::returnFontAwesomeIcon('file-pdf-o').get_lang('DownloadCertificatePdf'), |
|
| 244 | 244 | $certificate['pdf_url'], |
| 245 | 245 | ['class' => 'btn btn-default'] |
| 246 | 246 | ); |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | $downloadCertificateLink = " |
| 249 | 249 | <div class='panel panel-default'> |
| 250 | 250 | <div class='panel-body'> |
| 251 | - <h3 class='text-center'>" . get_lang('NowDownloadYourCertificateClickHere') . "</h3> |
|
| 251 | + <h3 class='text-center'>" . get_lang('NowDownloadYourCertificateClickHere')."</h3> |
|
| 252 | 252 | <div class='text-center'>$downloadCertificateLink $viewCertificateLink</div> |
| 253 | 253 | </div> |
| 254 | 254 | </div> |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | require_once '../config.php'; |
| 14 | 14 | |
| 15 | 15 | if (!isset($_REQUEST['t'], $_REQUEST['i'])) {
|
| 16 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/service_catalog.php');
|
|
| 16 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_catalog.php');
|
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | $currentUserId = api_get_user_id(); |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | $typeUser = intval($_REQUEST['t']) === BuyCoursesPlugin::SERVICE_TYPE_USER; |
| 39 | 39 | $typeCourse = intval($_REQUEST['t']) === BuyCoursesPlugin::SERVICE_TYPE_COURSE; |
| 40 | 40 | $typeSession = intval($_REQUEST['t']) === BuyCoursesPlugin::SERVICE_TYPE_SESSION; |
| 41 | -$typeFinalLp= intval($_REQUEST['t']) === BuyCoursesPlugin::SERVICE_TYPE_LP_FINAL_ITEM; |
|
| 42 | -$queryString = 'i=' . intval($_REQUEST['i']) . '&t=' . intval($_REQUEST['t']).$additionalQueryString; |
|
| 41 | +$typeFinalLp = intval($_REQUEST['t']) === BuyCoursesPlugin::SERVICE_TYPE_LP_FINAL_ITEM; |
|
| 42 | +$queryString = 'i='.intval($_REQUEST['i']).'&t='.intval($_REQUEST['t']).$additionalQueryString; |
|
| 43 | 43 | |
| 44 | 44 | $serviceInfo = $plugin->getServices(intval($_REQUEST['i'])); |
| 45 | 45 | $userInfo = api_get_user_info($currentUserId); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | Display::addFlash( |
| 54 | 54 | Display::return_message($plugin->get_lang('NeedToSelectPaymentType'), 'error', false)
|
| 55 | 55 | ); |
| 56 | - header('Location:' . api_get_self() . '?' . $queryString);
|
|
| 56 | + header('Location:'.api_get_self().'?'.$queryString);
|
|
| 57 | 57 | exit; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | Display::addFlash( |
| 62 | 62 | Display::return_message($plugin->get_lang('AdditionalInfoRequired'), 'error', false)
|
| 63 | 63 | ); |
| 64 | - header('Location:' . api_get_self() . '?' . $queryString);
|
|
| 64 | + header('Location:'.api_get_self().'?'.$queryString);
|
|
| 65 | 65 | exit; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if ($serviceSaleId !== false) {
|
| 71 | 71 | $_SESSION['bc_service_sale_id'] = $serviceSaleId; |
| 72 | 72 | |
| 73 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/service_process_confirm.php');
|
|
| 73 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_process_confirm.php');
|
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | exit; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | if ($typeUser) {
|
| 103 | 103 | $users = $em->getRepository('ChamiloUserBundle:User')->findAll();
|
| 104 | - $selectOptions[$userInfo['user_id']] = api_get_person_name($userInfo['firstname'], $userInfo['lastname']) . ' (' . get_lang('Myself') . ')';
|
|
| 104 | + $selectOptions[$userInfo['user_id']] = api_get_person_name($userInfo['firstname'], $userInfo['lastname']).' ('.get_lang('Myself').')';
|
|
| 105 | 105 | if (!empty($users)) {
|
| 106 | 106 | foreach ($users as $user) {
|
| 107 | 107 | if (intval($userInfo['user_id']) !== intval($user->getId())) {
|
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $thisLpList = $em->getRepository('ChamiloCourseBundle:CLp')->findBy(['cId' => $course->getCourse()->getId()]);
|
| 147 | 147 | foreach ($thisLpList as $lp) {
|
| 148 | 148 | |
| 149 | - $courseLpList[$lp->getCId()] = $lp->getName() . ' (' . $course->getCourse()->getTitle() . ')';;
|
|
| 149 | + $courseLpList[$lp->getCId()] = $lp->getName().' ('.$course->getCourse()->getTitle().')'; ;
|
|
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | 152 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | //Now only we need the final item and return the current LP |
| 164 | 164 | if ($item->getItemType() == TOOL_LP_FINAL_ITEM) {
|
| 165 | 165 | $checker = true; |
| 166 | - $sessionLpList[$lp->getCId()] = $lp->getName() . ' (' . $session->getSession()->getName() . ')';
|
|
| 166 | + $sessionLpList[$lp->getCId()] = $lp->getName().' ('.$session->getSession()->getName().')';
|
|
| 167 | 167 | } |
| 168 | 168 | } |
| 169 | 169 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | //Now only we need the final item and return the current LP |
| 179 | 179 | if ($item->getItemType() == TOOL_LP_FINAL_ITEM) {
|
| 180 | 180 | $checker = true; |
| 181 | - $sessionLpList[$lp->getCId()] = $lp->getName() . ' (' . $session->getSession()->getName() . ')';
|
|
| 181 | + $sessionLpList[$lp->getCId()] = $lp->getName().' ('.$session->getSession()->getName().')';
|
|
| 182 | 182 | } |
| 183 | 183 | } |
| 184 | 184 | } |