| @@ 99-103 (lines=5) @@ | ||
| 96 | $editor2 = NewsUtility::getWysiwygForm(_AM_EXTEXT, 'bodytext', $bodytext, 15, 60, 'bodytext_hidden'); |
|
| 97 | $sform->addElement($editor2, false); |
|
| 98 | ||
| 99 | if (xoops_isActiveModule('tag') && NewsUtility::getModuleOption('tags')) { |
|
| 100 | $itemIdForTag = isset($storyid) ? $storyid : 0; |
|
| 101 | require_once XOOPS_ROOT_PATH . '/modules/tag/include/formtag.php'; |
|
| 102 | $sform->addElement(new TagFormTag('item_tag', 60, 255, $itemIdForTag, 0)); |
|
| 103 | } |
|
| 104 | ||
| 105 | if (NewsUtility::getModuleOption('metadata')) { |
|
| 106 | $sform->addElement(new xoopsFormText(_NW_META_DESCRIPTION, 'description', 50, 255, $description), false); |
|
| @@ 109-115 (lines=7) @@ | ||
| 106 | $sform->addElement(new xoopsFormText(_NW_META_DESCRIPTION, 'description', 50, 255, $description), false); |
|
| 107 | $sform->addElement(new xoopsFormText(_NW_META_KEYWORDS, 'keywords', 50, 255, $keywords), false); |
|
| 108 | } |
|
| 109 | } else { |
|
| 110 | if (xoops_isActiveModule('tag') && NewsUtility::getModuleOption('tags')) { |
|
| 111 | $itemIdForTag = isset($storyid) ? $storyid : 0; |
|
| 112 | require_once XOOPS_ROOT_PATH . '/modules/tag/include/formtag.php'; |
|
| 113 | $sform->addElement(new TagFormTag('item_tag', 60, 255, $itemIdForTag, 0)); |
|
| 114 | } |
|
| 115 | } |
|
| 116 | // Manage upload(s) |
|
| 117 | $allowupload = false; |
|
| 118 | switch ($xoopsModuleConfig['uploadgroups']) { |
|
| @@ 101-105 (lines=5) @@ | ||
| 98 | $editor2 = NewsUtility::getWysiwygForm(_AM_EXTEXT, 'bodytext', $bodytext, 15, 60, 'bodytext_hidden'); |
|
| 99 | $sform->addElement($editor2, false); |
|
| 100 | ||
| 101 | if (xoops_isActiveModule('tag') && NewsUtility::getModuleOption('tags')) { |
|
| 102 | $itemIdForTag = isset($storyid) ? $storyid : 0; |
|
| 103 | require_once XOOPS_ROOT_PATH . '/modules/tag/include/formtag.php'; |
|
| 104 | $sform->addElement(new TagFormTag('item_tag', 60, 255, $itemIdForTag, 0)); |
|
| 105 | } |
|
| 106 | ||
| 107 | if (NewsUtility::getModuleOption('metadata')) { |
|
| 108 | $sform->addElement(new xoopsFormText(_NW_META_DESCRIPTION, 'description', 50, 255, $description), false); |
|