';
}
if (!empty($infoCertificate['logo_left'])) {
- $logoLeft = '

';
+ $logoLeft = '
+

';
} else {
$logoLeft = '';
}
if (!empty($infoCertificate['logo_center'])) {
- $logoCenter = '

';
+ $logoCenter = '
+

';
} else {
$logoCenter = '';
}
if (!empty($infoCertificate['logo_right'])) {
- $logoRight = '

';
+ $logoRight = '
+

';
} else {
$logoRight = '';
}
$htmlText .= '
';
+ width="'.$workSpace.'mm"
+ style="
+ margin-left:'.$infoCertificate['margin_left'].'mm;
+ margin-right:'.$infoCertificate['margin_right'].'mm;
+ "
+ border="0">';
$htmlText .= '';
$htmlText .= '| '.$logoLeft.' | ';
$htmlText .= ''.$logoCenter.' | ';
@@ -268,57 +267,52 @@ foreach ($userList as $userInfo) {
$htmlText .= '
';
$htmlText .= '';
- $htmlText .= '|
- '.((!empty($infoCertificate['signature_text1'])) ? $infoCertificate['signature_text1'] : '').
+ $htmlText .= ' | '.
+ ((!empty($infoCertificate['signature_text1'])) ? $infoCertificate['signature_text1'] : '').
' |
-
- '.((!empty($infoCertificate['signature_text2'])) ? $infoCertificate['signature_text2'] : '').
+ | '.
+ ((!empty($infoCertificate['signature_text2'])) ? $infoCertificate['signature_text2'] : '').
' |
-
- '.((!empty($infoCertificate['signature_text3'])) ? $infoCertificate['signature_text3'] : '').
+ | '.
+ ((!empty($infoCertificate['signature_text3'])) ? $infoCertificate['signature_text3'] : '').
' |
-
- '.((!empty($infoCertificate['signature_text4'])) ? $infoCertificate['signature_text4'] : '').
+ | '.
+ ((!empty($infoCertificate['signature_text4'])) ? $infoCertificate['signature_text4'] : '').
' |
'.((!empty($infoCertificate['seal'])) ? $plugin->get_lang('Seal') : '').
' | ';
$htmlText .= '
';
$htmlText .= '';
- $htmlText .= '
- '.((!empty($infoCertificate['signature1']))
- ? ' '
- : '').
+ $htmlText .= ' | '.
+ ((!empty($infoCertificate['signature1']))
+ ? ' '
+ : '').
' |
-
- '.((!empty($infoCertificate['signature2']))
- ? ' '
- : '').
+ | '.
+ ((!empty($infoCertificate['signature2']))
+ ? ' '
+ : '').
' |
-
- '.((!empty($infoCertificate['signature3']))
- ? ' '
- : '').
+ | '.
+ ((!empty($infoCertificate['signature3']))
+ ? ' '
+ : '').
' |
-
- '.((!empty($infoCertificate['signature4']))
- ? ' '
- : '').
+ | '.
+ ((!empty($infoCertificate['signature4']))
+ ? ' '
+ : '').
' |
-
- '.((!empty($infoCertificate['seal']))
- ? ' '
- : '').
+ | '.
+ ((!empty($infoCertificate['seal']))
+ ? ' '
+ : '').
' | ';
$htmlText .= '
';
$htmlText .= '
';
@@ -329,12 +323,10 @@ foreach ($userList as $userInfo) {
if ($infoCertificate['contents_type'] == 0) {
$contentsDescription = CourseDescription::get_data_by_description_type(3, $courseId, 0);
-
$domd = new DOMDocument();
libxml_use_internal_errors(true);
$domd->loadHTML($contentsDescription['description_content']);
libxml_use_internal_errors(false);
-
$domx = new DOMXPath($domd);
$items = $domx->query("//li[@style]");
foreach ($items as $item) {
@@ -347,7 +339,6 @@ foreach ($userList as $userInfo) {
}
$output = $domd->saveHTML();
-
$htmlText .= getIndexFiltered($output);
}
@@ -358,9 +349,8 @@ foreach ($userList as $userInfo) {
$categoryTest->setId(0);
$categoryTest->setName($plugin->get_lang('WithOutCategory'));
$categoryTest->setPosition(0);
- $categories = [
- $categoryTest
- ];
+ $categories = [$categoryTest];
+
if (!empty($categoriesTempList)) {
$categories = array_merge($categories, $categoriesTempList);
}