|
@@ -8,7 +8,7 @@ discard block |
|
|
block discarded – undo |
|
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
|
|
|
@@ -45,7 +45,7 @@ discard block |
|
|
block discarded – undo |
|
45
|
45
|
if (empty($serviceSale)) { |
|
46
|
46
|
// Instance a new template : No page tittle, No header, No footer |
|
47
|
47
|
$tpl = new Template(null, false, false); |
|
48
|
|
- $content = sprintf(Display::return_message($plugin->get_lang('IfYouWantToGetTheCertificateAndOrSkillsAsociatedToThisCourseYouNeedToBuyTheCertificateServiceYouCanGoToServiceCatalogClickingHere'), 'normal', false), api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/service_catalog.php'); |
|
|
48
|
+ $content = sprintf(Display::return_message($plugin->get_lang('IfYouWantToGetTheCertificateAndOrSkillsAsociatedToThisCourseYouNeedToBuyTheCertificateServiceYouCanGoToServiceCatalogClickingHere'), 'normal', false), api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_catalog.php'); |
|
49
|
49
|
$tpl->assign('content', $content); |
|
50
|
50
|
$tpl->display_blank_template(); |
|
51
|
51
|
exit; |
|
@@ -194,19 +194,19 @@ discard block |
|
|
block discarded – undo |
|
194
|
194
|
<div class='row'> |
|
195
|
195
|
<div class='col-md-2 col-xs-4'> |
|
196
|
196
|
<div class='thumbnail'> |
|
197
|
|
- <img class='skill-badge-img' src='" . $skill->getWebIconPath() . "' > |
|
|
197
|
+ <img class='skill-badge-img' src='" . $skill->getWebIconPath()."' > |
|
198
|
198
|
</div> |
|
199
|
199
|
</div> |
|
200
|
200
|
<div class='col-md-8 col-xs-8'> |
|
201
|
|
- <h5><b>" . $skill->getName() . "</b></h5> |
|
202
|
|
- " . $skill->getDescription() . " |
|
|
201
|
+ <h5><b>" . $skill->getName()."</b></h5> |
|
|
202
|
+ " . $skill->getDescription()." |
|
203
|
203
|
</div> |
|
204
|
204
|
<div class='col-md-2 col-xs-12'> |
|
205
|
|
- <h5><b>" . get_lang('ShareWithYourFriends') . "</b></h5> |
|
206
|
|
- <a href='http://www.facebook.com/sharer.php?u=" . api_get_path(WEB_PATH) . "badge/" . $skill->getId() . "/user/" . $userId . "' target='_new'> |
|
|
205
|
+ <h5><b>" . get_lang('ShareWithYourFriends')."</b></h5> |
|
|
206
|
+ <a href='http://www.facebook.com/sharer.php?u=" . api_get_path(WEB_PATH)."badge/".$skill->getId()."/user/".$userId."' target='_new'> |
|
207
|
207
|
<em class='fa fa-facebook-square fa-3x text-info' aria-hidden='true'></em> |
|
208
|
208
|
</a> |
|
209
|
|
- <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'> |
|
|
209
|
+ <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'> |
|
210
|
210
|
<em class='fa fa-twitter-square fa-3x text-light' aria-hidden='true'></em> |
|
211
|
211
|
</a> |
|
212
|
212
|
</div> |
|
@@ -216,7 +216,7 @@ discard block |
|
|
block discarded – undo |
|
216
|
216
|
$badgeLink .= " |
|
217
|
217
|
<div class='panel panel-default'> |
|
218
|
218
|
<div class='panel-body'> |
|
219
|
|
- <h3 class='text-center'>" . get_lang('AdditionallyYouHaveObtainedTheFollowingSkills') . "</h3> |
|
|
219
|
+ <h3 class='text-center'>" . get_lang('AdditionallyYouHaveObtainedTheFollowingSkills')."</h3> |
|
220
|
220
|
$skillList |
|
221
|
221
|
</div> |
|
222
|
222
|
</div> |
|
@@ -233,7 +233,7 @@ discard block |
|
|
block discarded – undo |
|
233
|
233
|
function generateLPFinalItemTemplateCertificateLinks($certificate) |
|
234
|
234
|
{ |
|
235
|
235
|
$downloadCertificateLink = Display::url( |
|
236
|
|
- Display::returnFontAwesomeIcon('file-pdf-o') . get_lang('DownloadCertificatePdf'), |
|
|
236
|
+ Display::returnFontAwesomeIcon('file-pdf-o').get_lang('DownloadCertificatePdf'), |
|
237
|
237
|
$certificate['pdf_url'], |
|
238
|
238
|
['class' => 'btn btn-default'] |
|
239
|
239
|
); |
|
@@ -241,7 +241,7 @@ discard block |
|
|
block discarded – undo |
|
241
|
241
|
$downloadCertificateLink = " |
|
242
|
242
|
<div class='panel panel-default'> |
|
243
|
243
|
<div class='panel-body'> |
|
244
|
|
- <h3 class='text-center'>" . get_lang('NowDownloadYourCertificateClickHere') . "</h3> |
|
|
244
|
+ <h3 class='text-center'>" . get_lang('NowDownloadYourCertificateClickHere')."</h3> |
|
245
|
245
|
<div class='text-center'>$downloadCertificateLink $viewCertificateLink</div> |
|
246
|
246
|
</div> |
|
247
|
247
|
</div> |