|
@@ -28,31 +28,6 @@ class BxBaseModTextTemplate extends BxBaseModGeneralTemplate
|
|
|
return $this->parseHtmlByName($sTemplateName, $this->getUnit($aData, $aParams));
|
|
return $this->parseHtmlByName($sTemplateName, $this->getUnit($aData, $aParams));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function entryText ($aData, $sTemplateName = 'entry-text.html')
|
|
|
|
|
- {
|
|
|
|
|
- $CNF = &$this->getModule()->_oConfig->CNF;
|
|
|
|
|
-
|
|
|
|
|
- $aVars = $aData;
|
|
|
|
|
- $aVars['entry_title'] = isset($aData[$CNF['FIELD_TITLE']]) ? bx_process_output($aData[$CNF['FIELD_TITLE']]) : '';
|
|
|
|
|
- $aVars['entry_text'] = $aData[$CNF['FIELD_TEXT']];
|
|
|
|
|
-
|
|
|
|
|
- if (!empty($CNF['OBJECT_METATAGS'])) {
|
|
|
|
|
- $oMetatags = BxDolMetatags::getObjectInstance($CNF['OBJECT_METATAGS']);
|
|
|
|
|
-
|
|
|
|
|
- // keywords
|
|
|
|
|
- if ($oMetatags->keywordsIsEnabled()) {
|
|
|
|
|
- $aFields = $oMetatags->keywordsFields($aData, $CNF, $CNF['OBJECT_FORM_ENTRY_DISPLAY_VIEW']);
|
|
|
|
|
- foreach ($aFields as $sField)
|
|
|
|
|
- $aVars[$sField] = $oMetatags->keywordsParse($aData[$CNF['FIELD_ID']], $aVars[$sField]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // location
|
|
|
|
|
- $aVars['location'] = $oMetatags->locationsIsEnabled() ? $oMetatags->locationsString($aData[$CNF['FIELD_ID']]) : '';
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- return $this->parseHtmlByName($sTemplateName, $aVars);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
function entryAuthor ($aData, $iProfileId = false, $sFuncAuthorDesc = 'getAuthorDesc', $sTemplateName = 'author.html', $sFuncAuthorAddon = 'getAuthorAddon')
|
|
function entryAuthor ($aData, $iProfileId = false, $sFuncAuthorDesc = 'getAuthorDesc', $sTemplateName = 'author.html', $sFuncAuthorAddon = 'getAuthorAddon')
|
|
|
{
|
|
{
|
|
|
$CNF = &$this->getModule()->_oConfig->CNF;
|
|
$CNF = &$this->getModule()->_oConfig->CNF;
|