@@ 78-86 (lines=9) @@ | ||
75 | $articles['poster'] = SoapboxUtility::getLinkedUnameFromId($category['author']); |
|
76 | $articles['bodytext'] = xoops_substr($articles['bodytext'], 0, 255); |
|
77 | //-------------------- |
|
78 | if ($articles['submit'] !== 0) { |
|
79 | $articles['headline'] = '[' . _MD_SOAPBOX_SELSUBMITS . ']' . $articles['headline']; |
|
80 | $articles['teaser'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
81 | $articles['lead'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
82 | } elseif ($_entryob->getVar('datesub') === 0 || $_entryob->getVar('datesub') > time()) { |
|
83 | $articles['headline'] = '[' . _MD_SOAPBOX_SELWAITEPUBLISH . ']' . $articles['headline']; |
|
84 | $articles['teaser'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
85 | $articles['lead'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
86 | } |
|
87 | //-------------------- |
|
88 | if (!empty($articles['artimage']) && $articles['artimage'] !== 'blank.png' |
|
89 | && file_exists(XOOPS_ROOT_PATH . '/' . $myts->htmlSpecialChars($xoopsModuleConfig['sbuploaddir']) . '/' . $articles['artimage'])) { |
@@ 102-110 (lines=9) @@ | ||
99 | $articles['poster'] = SoapboxUtility::getLinkedUnameFromId($category['author']); |
|
100 | $articles['bodytext'] = xoops_substr($articles['bodytext'], 0, 255); |
|
101 | //-------------------- |
|
102 | if ($articles['submit'] !== 0) { |
|
103 | $articles['headline'] = '[' . _MD_SOAPBOX_SELSUBMITS . ']' . $articles['headline']; |
|
104 | $articles['teaser'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
105 | $articles['lead'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
106 | } elseif (0 === $_entryob->getVar('datesub') || $_entryob->getVar('datesub') > time()) { |
|
107 | $articles['headline'] = '[' . _MD_SOAPBOX_SELWAITEPUBLISH . ']' . $articles['headline']; |
|
108 | $articles['teaser'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
109 | $articles['lead'] = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC; |
|
110 | } |
|
111 | ||
112 | // Functional links |
|
113 | $articles['adminlinks'] = $entrydataHandler->getadminlinks($_entryob, $_categoryob); |