@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * |
241 | 241 | * @param CriteriaElement|string sort order ('id', 'cid', 'title', 'publish', or 'weight') default: 'id' |
242 | 242 | * |
243 | - * @return mixed XoopsfaqContents object | false on failure |
|
243 | + * @return boolean XoopsfaqContents object | false on failure |
|
244 | 244 | */ |
245 | 245 | public function getObj($sort = 'id') |
246 | 246 | { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * XoopsfaqContentsHandler::getPublished() |
266 | 266 | * |
267 | 267 | * @param string $id |
268 | - * @return mixed array of XoopsfaqContent objects | false on failure |
|
268 | + * @return boolean array of XoopsfaqContent objects | false on failure |
|
269 | 269 | */ |
270 | 270 | public function getPublished($id = '') |
271 | 271 | { |
@@ -95,14 +95,14 @@ discard block |
||
95 | 95 | |
96 | 96 | include_once $GLOBALS['xoops']->path('/class/xoopsformloader.php'); |
97 | 97 | |
98 | - $caption = ($this->isNew()) ? _AM_XOOPSFAQ_CREATE_NEW: sprintf(_AM_XOOPSFAQ_MODIFY_ITEM, $this->getVar('contents_title')); |
|
98 | + $caption = ($this->isNew()) ? _AM_XOOPSFAQ_CREATE_NEW : sprintf(_AM_XOOPSFAQ_MODIFY_ITEM, $this->getVar('contents_title')); |
|
99 | 99 | $form = new XoopsThemeForm($caption, 'content', $_SERVER['REQUEST_URI'], 'post', true); |
100 | 100 | // $form->addElement(new XoopsFormHiddenToken()); |
101 | 101 | $form->addElement(new xoopsFormHidden('op', 'save')); |
102 | 102 | $form->addElement(new xoopsFormHidden('contents_id', $this->getVar('contents_id', 'e'))); |
103 | 103 | |
104 | 104 | // Active |
105 | - $contents_active = new XoopsFormRadioYN(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE, 'contents_active', $this->getVar('contents_active', 'e'), ' ' . _YES . '', ' ' . _NO . '' ); |
|
105 | + $contents_active = new XoopsFormRadioYN(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE, 'contents_active', $this->getVar('contents_active', 'e'), ' ' . _YES . '', ' ' . _NO . ''); |
|
106 | 106 | $contents_active->setDescription(_AM_XOOPSFAQ_E_CONTENTS_ACTIVE_DESC); |
107 | 107 | $form->addElement($contents_active, false); |
108 | 108 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $form->addElement($contents_weight, false); |
128 | 128 | |
129 | 129 | // Editor |
130 | - $options_tray = new XoopsFormElementTray(_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>'); |
|
130 | + $options_tray = new XoopsFormElementTray(_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>'); |
|
131 | 131 | if (class_exists('XoopsFormEditor')) { |
132 | 132 | // $editorConfigs = array('editor' => $GLOBALS['xoopsConfig']['general_editor'], |
133 | 133 | $editorConfigs = array('editor' => $xfHelper->getConfig('use_wysiwyg', 'dhtmltextarea'), |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $criteria->setLimit(0); |
256 | 256 | $obj['list'] = $this->getObjects($criteria, false); |
257 | 257 | } else { |
258 | - $obj['list'] = $this->getObjects($sort, false); |
|
258 | + $obj['list'] = $this->getObjects($sort, false); |
|
259 | 259 | } |
260 | 260 | $obj['count'] = (false !== $obj['list']) ? count($obj['list']) : 0; |
261 | 261 | return $obj; |
@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | */ |
31 | 31 | class XoopsfaqContents extends XoopsObject |
32 | 32 | { |
33 | - /** |
|
34 | - * @var string contains this modules directory name |
|
35 | - */ |
|
33 | + /** |
|
34 | + * @var string contains this modules directory name |
|
35 | + */ |
|
36 | 36 | protected $dirname; |
37 | 37 | |
38 | 38 | /** |
@@ -131,11 +131,11 @@ discard block |
||
131 | 131 | if (class_exists('XoopsFormEditor')) { |
132 | 132 | // $editorConfigs = array('editor' => $GLOBALS['xoopsConfig']['general_editor'], |
133 | 133 | $editorConfigs = array('editor' => $xfHelper->getConfig('use_wysiwyg', 'dhtmltextarea'), |
134 | - 'rows' => 25, |
|
135 | - 'cols' => '100%', |
|
134 | + 'rows' => 25, |
|
135 | + 'cols' => '100%', |
|
136 | 136 | 'width' => '100%', |
137 | - 'height' => '600px', |
|
138 | - 'name' => 'contents_contents', |
|
137 | + 'height' => '600px', |
|
138 | + 'name' => 'contents_contents', |
|
139 | 139 | 'value' => $this->getVar('contents_contents', 'e') |
140 | 140 | ); |
141 | 141 | $contents_contents = new XoopsFormEditor('', 'contents_contents', $editorConfigs); |
@@ -352,18 +352,18 @@ discard block |
||
352 | 352 | $buttons = array('edit', 'delete'); |
353 | 353 | |
354 | 354 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
355 | - . ' <thead>' |
|
356 | - . ' <tr class="center">' |
|
357 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ID . '</th>' |
|
358 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ACTIVE . '</th>' |
|
359 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_WEIGHT . '</th>' |
|
360 | - . ' <th class="left">' . _AM_XOOPSFAQ_CONTENTS_TITLE . '</th>' |
|
361 | - . ' <th class="left">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
362 | - . ' <th>' . _AM_XOOPSFAQ_CONTENTS_PUBLISH . '</th>' |
|
363 | - . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
364 | - . ' </tr>' |
|
365 | - . ' </thead>' |
|
366 | - . ' <tbody>'; |
|
355 | + . ' <thead>' |
|
356 | + . ' <tr class="center">' |
|
357 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ID . '</th>' |
|
358 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ACTIVE . '</th>' |
|
359 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_WEIGHT . '</th>' |
|
360 | + . ' <th class="left">' . _AM_XOOPSFAQ_CONTENTS_TITLE . '</th>' |
|
361 | + . ' <th class="left">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
362 | + . ' <th>' . _AM_XOOPSFAQ_CONTENTS_PUBLISH . '</th>' |
|
363 | + . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
364 | + . ' </tr>' |
|
365 | + . ' </thead>' |
|
366 | + . ' <tbody>'; |
|
367 | 367 | if ($objects['count'] > 0) { |
368 | 368 | $tdClass = 0; |
369 | 369 | /** @var \XoopsfaqContents $object */ |
@@ -374,23 +374,23 @@ discard block |
||
374 | 374 | ++$tdClass; |
375 | 375 | $dispClass = ($tdClass % 1) ? 'even' : 'odd'; |
376 | 376 | $ret .= ' <tr class="center middle">' |
377 | - . ' <td class="' . $dispClass . '">' . $object->getVar('contents_id') . '</td>' |
|
378 | - . ' <td class="' . $dispClass . '">' . $object->getActiveIcon() . '</td>' |
|
379 | - . ' <td class="' . $dispClass . '">' . $object->getVar('contents_weight') . '</td>' |
|
380 | - . ' <td class="' . $dispClass . ' left">' . $thisContentTitle . '</td>' |
|
381 | - . ' <td class="' . $dispClass . ' left">' . $thisCatTitle . '</td>' |
|
382 | - . ' <td class="' . $dispClass . '">' . $object->getPublished(_SHORTDATESTRING) . '</td>' |
|
383 | - . ' <td class="' . $dispClass . '">'; |
|
377 | + . ' <td class="' . $dispClass . '">' . $object->getVar('contents_id') . '</td>' |
|
378 | + . ' <td class="' . $dispClass . '">' . $object->getActiveIcon() . '</td>' |
|
379 | + . ' <td class="' . $dispClass . '">' . $object->getVar('contents_weight') . '</td>' |
|
380 | + . ' <td class="' . $dispClass . ' left">' . $thisContentTitle . '</td>' |
|
381 | + . ' <td class="' . $dispClass . ' left">' . $thisCatTitle . '</td>' |
|
382 | + . ' <td class="' . $dispClass . '">' . $object->getPublished(_SHORTDATESTRING) . '</td>' |
|
383 | + . ' <td class="' . $dispClass . '">'; |
|
384 | 384 | $ret .= XoopsfaqUtility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) |
385 | - . '</td>' |
|
386 | - . ' </tr>'; |
|
385 | + . '</td>' |
|
386 | + . ' </tr>'; |
|
387 | 387 | } |
388 | 388 | } else { |
389 | 389 | $ret .= ' <tr class="center"><td colspan="7" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
390 | 390 | } |
391 | 391 | $ret .= ' </tbody>' |
392 | 392 | // . ' <tr class="center"><td colspan="7" class="foot"> </td></tr>' |
393 | - . '</table>'; |
|
393 | + . '</table>'; |
|
394 | 394 | return $ret; |
395 | 395 | } |
396 | 396 |
@@ -268,8 +268,8 @@ |
||
268 | 268 | /** |
269 | 269 | * Render the icon links |
270 | 270 | * |
271 | - * @param array $icon_array contains operation=>icon_name as key=>value |
|
272 | - * @param mixed $param HTML parameter |
|
271 | + * @param string[] $icon_array contains operation=>icon_name as key=>value |
|
272 | + * @param string $param HTML parameter |
|
273 | 273 | * @param mixed $value HTML parameter value to set |
274 | 274 | * @param mixed $extra are any additional HTML attributes desired for the <a> tag |
275 | 275 | * @return string |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | static::rrmdir($fObj->getPathname()); |
183 | 183 | } |
184 | 184 | } |
185 | - $iterator = null; // clear iterator Obj to close file/directory |
|
185 | + $iterator = null; // clear iterator Obj to close file/directory |
|
186 | 186 | return rmdir($src); // remove the directory & return results |
187 | 187 | } |
188 | 188 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | static::rmove($fObj->getPathname(), $dest . '/' . $fObj->getFilename()); |
222 | 222 | } |
223 | 223 | } |
224 | - $iterator = null; // clear iterator Obj to close file/directory |
|
224 | + $iterator = null; // clear iterator Obj to close file/directory |
|
225 | 225 | return rmdir($src); // remove the directory & return results |
226 | 226 | } |
227 | 227 | |
@@ -255,11 +255,11 @@ discard block |
||
255 | 255 | |
256 | 256 | // Open the source directory to read in files |
257 | 257 | $iterator = new DirectoryIterator($src); |
258 | - foreach($iterator as $fObj) { |
|
259 | - if($fObj->isFile()) { |
|
258 | + foreach ($iterator as $fObj) { |
|
259 | + if ($fObj->isFile()) { |
|
260 | 260 | copy($fObj->getPathname(), $dest . '/' . $fObj->getFilename()); |
261 | - } else if(!$fObj->isDot() && $fObj->isDir()) { |
|
262 | - static::rcopy($fObj->getPathname(), $dest . '/' . $fObj-getFilename()); |
|
261 | + } else if (!$fObj->isDot() && $fObj->isDir()) { |
|
262 | + static::rcopy($fObj->getPathname(), $dest . '/' . $fObj - getFilename()); |
|
263 | 263 | } |
264 | 264 | } |
265 | 265 | return true; |
@@ -280,19 +280,19 @@ discard block |
||
280 | 280 | xoops_loadLanguage('admin', $moduleDirName); |
281 | 281 | $ret = ''; |
282 | 282 | if (null !== $value) { |
283 | - foreach($icon_array as $_op => $icon) { |
|
283 | + foreach ($icon_array as $_op => $icon) { |
|
284 | 284 | if (false === strpos($icon, '.')) { |
285 | 285 | $iconName = $icon; |
286 | 286 | $iconExt = 'png'; |
287 | 287 | } else { |
288 | - $iconName = substr($icon, 0, strlen($icon)-strrchr($icon, '.')); |
|
288 | + $iconName = substr($icon, 0, strlen($icon) - strrchr($icon, '.')); |
|
289 | 289 | $iconExt = substr(strrchr($icon, '.'), 1); |
290 | 290 | } |
291 | 291 | $url = (!is_numeric($_op)) ? $_op . '?' . $param . '=' . $value : xoops_getenv('PHP_SELF') . '?op=' . $iconName . '&' . $param . '=' . $value; |
292 | 292 | if (null !== $extra) { |
293 | 293 | $url .= ' ' . $extra; |
294 | 294 | } |
295 | - $title = constant (htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName))); |
|
295 | + $title = constant(htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName))); |
|
296 | 296 | $img = '<img src="' . Xmf\Module\Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"' |
297 | 297 | . ' title ="' . $title . '"' |
298 | 298 | . ' alt = "' . $title . '"' |
@@ -22,12 +22,12 @@ discard block |
||
22 | 22 | * @since:: File available since version 4.10 |
23 | 23 | */ |
24 | 24 | |
25 | - /** |
|
26 | - * XoopsfaqUtility |
|
27 | - * |
|
28 | - * Static utility class to provide common functionality |
|
29 | - * |
|
30 | - */ |
|
25 | + /** |
|
26 | + * XoopsfaqUtility |
|
27 | + * |
|
28 | + * Static utility class to provide common functionality |
|
29 | + * |
|
30 | + */ |
|
31 | 31 | class XoopsfaqUtility |
32 | 32 | { |
33 | 33 | /** |
@@ -294,9 +294,9 @@ discard block |
||
294 | 294 | } |
295 | 295 | $title = constant (htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName))); |
296 | 296 | $img = '<img src="' . Xmf\Module\Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"' |
297 | - . ' title ="' . $title . '"' |
|
298 | - . ' alt = "' . $title . '"' |
|
299 | - . ' class="bnone middle">'; |
|
297 | + . ' title ="' . $title . '"' |
|
298 | + . ' alt = "' . $title . '"' |
|
299 | + . ' class="bnone middle">'; |
|
300 | 300 | $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>'; |
301 | 301 | } |
302 | 302 | } |
@@ -118,7 +118,7 @@ |
||
118 | 118 | * |
119 | 119 | * @param string $sort order ('id', order', or 'title') - default: id |
120 | 120 | * |
121 | - * @return mixed XoopsfaqCategory | false on failure |
|
121 | + * @return boolean XoopsfaqCategory | false on failure |
|
122 | 122 | */ |
123 | 123 | public function getObj($sort = 'id') |
124 | 124 | { |
@@ -170,33 +170,33 @@ |
||
170 | 170 | $buttons = array('edit', 'delete'); |
171 | 171 | |
172 | 172 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
173 | - . ' <thead>' |
|
174 | - . ' <tr class="xoopsCenter">' |
|
175 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ORDER . '</th>' |
|
176 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ID . '</th>' |
|
177 | - . ' <th class="txtleft">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
178 | - . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
179 | - . ' </tr>' |
|
180 | - . ' </thead>' |
|
181 | - . ' <tbody>'; |
|
173 | + . ' <thead>' |
|
174 | + . ' <tr class="xoopsCenter">' |
|
175 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ORDER . '</th>' |
|
176 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ID . '</th>' |
|
177 | + . ' <th class="txtleft">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
178 | + . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
179 | + . ' </tr>' |
|
180 | + . ' </thead>' |
|
181 | + . ' <tbody>'; |
|
182 | 182 | if ($objects['count'] > 0) { |
183 | 183 | /** @var XoopsObject $object */ |
184 | 184 | foreach ($objects['list'] as $object) { |
185 | 185 | $ret .= ' <tr class="xoopsCenter">' |
186 | - . ' <td class="even txtcenter">' . $object->getVar('category_order') . '</td>' |
|
187 | - . ' <td class="even txtcenter">' . $object->getVar('category_id') . '</td>' |
|
188 | - . ' <td class="even txtleft">' . $object->getVar('category_title') . '</td>' |
|
189 | - . ' <td class="even txtcenter">'; |
|
186 | + . ' <td class="even txtcenter">' . $object->getVar('category_order') . '</td>' |
|
187 | + . ' <td class="even txtcenter">' . $object->getVar('category_id') . '</td>' |
|
188 | + . ' <td class="even txtleft">' . $object->getVar('category_title') . '</td>' |
|
189 | + . ' <td class="even txtcenter">'; |
|
190 | 190 | $ret .= XoopsfaqUtility::renderIconLinks($buttons, 'category_id', $object->getVar('category_id')); |
191 | 191 | $ret .= ' </td>' |
192 | - . ' </tr>'; |
|
192 | + . ' </tr>'; |
|
193 | 193 | } |
194 | 194 | } else { |
195 | 195 | $ret .= ' <tr class="txtcenter"><td colspan="4" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
196 | 196 | } |
197 | 197 | $ret .= ' </tbody>' |
198 | 198 | // . ' <tfoot><tr class="txtcenter"><td colspan="4" class="head"> </td></tr></tfoot>' |
199 | - . '</table>'; |
|
199 | + . '</table>'; |
|
200 | 200 | return $ret; |
201 | 201 | } |
202 | 202 |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | ); |
96 | 96 | } |
97 | 97 | $block['faq'][] = array('title' => $faqTitle, |
98 | - 'ans' => $faqAns, |
|
98 | + 'ans' => $faqAns, |
|
99 | 99 | 'published' => $faqObj->getPublished(_SHORTDATESTRING) |
100 | 100 | ); |
101 | 101 | } |
@@ -136,15 +136,15 @@ discard block |
||
136 | 136 | $nchck = !empty($ychck) ? '' : ' checked'; |
137 | 137 | |
138 | 138 | $form = '<div class="line140">' |
139 | - . _MB_XOOPSFAQ_NUM_FAQS . ' ' |
|
140 | - . '<input type="number" name="options[0]" value="' . $options[0] . '" style="width: 5em;" min="0" class="right"><br>' |
|
141 | - . _MB_XOOPSFAQ_CHARS . ' <input type="number" name="options[1]" value="' . $options[1] . '" style="width: 5em;" min="0" class="right"> ' |
|
142 | - . _MB_XOOPSFAQ_LENGTH . '<br>' . _MB_XOOPSFAQ_SHOW_DATE . ' ' |
|
143 | - . '<label for="r0">' . _NO . '</label>' |
|
144 | - . '<input type="radio" name="options[2]" id="r0" value="0"' . $nchck . '> ' |
|
145 | - . '<label for="r1">' . _YES . '</label>' |
|
146 | - . '<input type="radio" name="options[2]" id="r1" value="1"' . $ychck . '>' |
|
147 | - . '<br><br>' . _MB_XOOPSFAQ_ALL_CATS_INTRO . ' ' . $selectCat |
|
148 | - . '</div>'; |
|
139 | + . _MB_XOOPSFAQ_NUM_FAQS . ' ' |
|
140 | + . '<input type="number" name="options[0]" value="' . $options[0] . '" style="width: 5em;" min="0" class="right"><br>' |
|
141 | + . _MB_XOOPSFAQ_CHARS . ' <input type="number" name="options[1]" value="' . $options[1] . '" style="width: 5em;" min="0" class="right"> ' |
|
142 | + . _MB_XOOPSFAQ_LENGTH . '<br>' . _MB_XOOPSFAQ_SHOW_DATE . ' ' |
|
143 | + . '<label for="r0">' . _NO . '</label>' |
|
144 | + . '<input type="radio" name="options[2]" id="r0" value="0"' . $nchck . '> ' |
|
145 | + . '<label for="r1">' . _YES . '</label>' |
|
146 | + . '<input type="radio" name="options[2]" id="r1" value="1"' . $ychck . '>' |
|
147 | + . '<br><br>' . _MB_XOOPSFAQ_ALL_CATS_INTRO . ' ' . $selectCat |
|
148 | + . '</div>'; |
|
149 | 149 | return $form; |
150 | 150 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $moduleDirName = basename(dirname(__DIR__)); |
40 | 40 | xoops_load('constants', $moduleDirName); |
41 | 41 | |
42 | - $myts = MyTextSanitizer::getInstance(); |
|
42 | + $myts = MyTextSanitizer::getInstance(); |
|
43 | 43 | |
44 | 44 | /** @var XoopsfaqCategoryHandler $xfCatHandler */ |
45 | 45 | /** @var XoopsfaqContentsHandler $xfFaqHandler */ |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $faqTitle = $myts->displayTarea($faqObj->getVar('contents_title')); |
85 | 85 | if (!empty($options[1])) { |
86 | 86 | $txtAns = strip_tags($faqObj->getVar('contents_contents')); // get rid of html for block |
87 | - $faqAns = $myts->displayTarea(xoops_substr($txtAns, 0, $options[1]), 0, 0 ,0 ,0 ,0); |
|
87 | + $faqAns = $myts->displayTarea(xoops_substr($txtAns, 0, $options[1]), 0, 0, 0, 0, 0); |
|
88 | 88 | } else { |
89 | 89 | $faqAns = $myts->displayTarea($faqObj->getVar('contents_contents'), |
90 | 90 | (int)$faqObj->getVar('dohtml'), |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $formSelect->addOptionArray($optionArray); |
131 | 131 | $selOptions = (false === strpos($options[3], ',')) ? $options[3] : explode(',', $options[3]); |
132 | 132 | $formSelect->setValue($selOptions); |
133 | - $selectCat = $formSelect->render(); |
|
133 | + $selectCat = $formSelect->render(); |
|
134 | 134 | |
135 | 135 | $ychck = (isset($options[2]) && ($options[2] > 0)) ? ' checked' : ''; |
136 | 136 | $nchck = !empty($ychck) ? '' : ' checked'; |
@@ -28,23 +28,23 @@ |
||
28 | 28 | |
29 | 29 | $adminmenu = array( |
30 | 30 | array('title' => _MI_XOOPSFAQ_MENU_ADMIN_INDEX, |
31 | - 'link' => 'admin/index.php', |
|
32 | - 'desc' => _MI_XOOPSFAQ_ADMIN_INDEX_DESC, |
|
33 | - 'icon' => Admin::menuIconPath('home.png') |
|
31 | + 'link' => 'admin/index.php', |
|
32 | + 'desc' => _MI_XOOPSFAQ_ADMIN_INDEX_DESC, |
|
33 | + 'icon' => Admin::menuIconPath('home.png') |
|
34 | 34 | ), |
35 | 35 | array('title' => _MI_XOOPSFAQ_MENU_ADMIN_CATEGORY, |
36 | - 'link' => 'admin/category.php', |
|
37 | - 'desc' => _MI_XOOPSFAQ_ADMIN_CATEGORY_DESC, |
|
38 | - 'icon' => Admin::menuIconPath('category.png') |
|
36 | + 'link' => 'admin/category.php', |
|
37 | + 'desc' => _MI_XOOPSFAQ_ADMIN_CATEGORY_DESC, |
|
38 | + 'icon' => Admin::menuIconPath('category.png') |
|
39 | 39 | ), |
40 | 40 | array('title' => _MI_XOOPSFAQ_MENU_ADMIN_FAQ, |
41 | - 'link' => 'admin/main.php', |
|
42 | - 'desc' => _MI_XOOPSFAQ_ADMIN_FAQ_DESC, |
|
43 | - 'icon' => Admin::menuIconPath('faq.png') |
|
41 | + 'link' => 'admin/main.php', |
|
42 | + 'desc' => _MI_XOOPSFAQ_ADMIN_FAQ_DESC, |
|
43 | + 'icon' => Admin::menuIconPath('faq.png') |
|
44 | 44 | ), |
45 | 45 | array('title' => _MI_XOOPSFAQ_MENU_ADMIN_ABOUT, |
46 | - 'link' => 'admin/about.php', |
|
47 | - 'desc' => _MI_XOOPSFAQ_ADMIN_ABOUT_DESC, |
|
48 | - 'icon' => Admin::menuIconPath('about.png') |
|
46 | + 'link' => 'admin/about.php', |
|
47 | + 'desc' => _MI_XOOPSFAQ_ADMIN_ABOUT_DESC, |
|
48 | + 'icon' => Admin::menuIconPath('about.png') |
|
49 | 49 | ) |
50 | 50 | ); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | /** @var XoopsObject $contentObj */ |
60 | 60 | foreach ($contentObjs as $contentObj) { |
61 | 61 | $retVal[] = array ('image' => '', |
62 | - 'title' => $contentObj->getVar('contents_title'), |
|
62 | + 'title' => $contentObj->getVar('contents_title'), |
|
63 | 63 | 'link' => $contentObj->getVar('contents_contents'), |
64 | 64 | 'time' => $contentObj->getVar('contents_publish'), |
65 | 65 | 'desc' => '', |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | /** @var XoopsObject $contentObj */ |
60 | 60 | foreach ($contentObjs as $contentObj) { |
61 | - $retVal[] = array ('image' => '', |
|
61 | + $retVal[] = array('image' => '', |
|
62 | 62 | 'title' => $contentObj->getVar('contents_title'), |
63 | 63 | 'link' => $contentObj->getVar('contents_contents'), |
64 | 64 | 'time' => $contentObj->getVar('contents_publish'), |
@@ -71,8 +71,8 @@ |
||
71 | 71 | /** @var XoopsObject $obj */ |
72 | 72 | foreach ($contentsObj['list'] as $obj) { |
73 | 73 | $question = array('id' => $obj->getVar('contents_id'), |
74 | - 'title' => $obj->getVar('contents_title'), |
|
75 | - 'answer' => $obj->getVar('contents_contents') |
|
74 | + 'title' => $obj->getVar('contents_title'), |
|
75 | + 'answer' => $obj->getVar('contents_contents') |
|
76 | 76 | ); |
77 | 77 | $GLOBALS['xoopsTpl']->append('questions', $question); |
78 | 78 | $bodyWords .= ' ' . $obj->getVar('contents_title') . ' ' . $obj->getVar('contents_contents'); |