@@ -110,16 +110,16 @@ |
||
110 | 110 | $ychck = (isset($options[0]) && ($options[0] > 0)) ? ' checked' : ''; |
111 | 111 | $nchck = !empty($ychck) ? '' : ' checked'; |
112 | 112 | $form = '<div class="line140">' |
113 | - . _MB_XOOPSFAQ_SHOW_EMPTY |
|
114 | - . ' <label for="r0">' |
|
115 | - . _NO |
|
116 | - . '</label><input type="radio" name="options[0]" id="r0" value="0"' |
|
117 | - . $nchck |
|
118 | - . '> <label for="r1">' |
|
119 | - . _YES |
|
120 | - . '</label><input type="radio" name="options[0]" id="r1" value="1"' |
|
121 | - . $ychck |
|
122 | - . '></div>' |
|
123 | - . "\n"; |
|
113 | + . _MB_XOOPSFAQ_SHOW_EMPTY |
|
114 | + . ' <label for="r0">' |
|
115 | + . _NO |
|
116 | + . '</label><input type="radio" name="options[0]" id="r0" value="0"' |
|
117 | + . $nchck |
|
118 | + . '> <label for="r1">' |
|
119 | + . _YES |
|
120 | + . '</label><input type="radio" name="options[0]" id="r1" value="1"' |
|
121 | + . $ychck |
|
122 | + . '></div>' |
|
123 | + . "\n"; |
|
124 | 124 | return $form; |
125 | 125 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | self::rrmdir($fObj->getPathname()); |
147 | 147 | } |
148 | 148 | } |
149 | - $iterator = null; // clear iterator Obj to close file/directory |
|
149 | + $iterator = null; // clear iterator Obj to close file/directory |
|
150 | 150 | return \rmdir($src); // remove the directory & return results |
151 | 151 | } |
152 | 152 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | // rmdir($fObj->getPath()); // now delete the directory |
187 | 187 | } |
188 | 188 | } |
189 | - $iterator = null; // clear iterator Obj to close file/directory |
|
189 | + $iterator = null; // clear iterator Obj to close file/directory |
|
190 | 190 | return \rmdir($src); // remove the directory & return results |
191 | 191 | } |
192 | 192 |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | $thisContentTitle = '<a href="' . $helper->url('index.php?cat_id=' . $thisCatId . '#q' . $object->getVar('contents_id')) . '" title="' . \_AM_XOOPSFAQ_CONTENTS_VIEW . '">' . $object->getVar('contents_title') . '</a>'; |
200 | 200 | ++$tdClass; |
201 | 201 | $dispClass = ($tdClass % 1) ? 'even' : 'odd'; |
202 | - $ret .= ' <tr class="center middle">' |
|
202 | + $ret .= ' <tr class="center middle">' |
|
203 | 203 | . ' <td class="' |
204 | 204 | . $dispClass |
205 | 205 | . '">' |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | . ' <td class="' |
234 | 234 | . $dispClass |
235 | 235 | . '">'; |
236 | - $ret .= Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . ' </tr>'; |
|
236 | + $ret .= Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . ' </tr>'; |
|
237 | 237 | } |
238 | 238 | } else { |
239 | 239 | $ret .= ' <tr class="center"><td colspan="7" class="even">' . \_AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
@@ -163,32 +163,32 @@ discard block |
||
163 | 163 | $buttons = ['edit', 'delete']; |
164 | 164 | |
165 | 165 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
166 | - . ' <thead>' |
|
167 | - . ' <tr class="center">' |
|
168 | - . ' <th class="width5">' |
|
169 | - . \_AM_XOOPSFAQ_CONTENTS_ID |
|
170 | - . '</th>' |
|
171 | - . ' <th class="width5">' |
|
172 | - . \_AM_XOOPSFAQ_CONTENTS_ACTIVE |
|
173 | - . '</th>' |
|
174 | - . ' <th class="width5">' |
|
175 | - . \_AM_XOOPSFAQ_CONTENTS_WEIGHT |
|
176 | - . '</th>' |
|
177 | - . ' <th class="left">' |
|
178 | - . \_AM_XOOPSFAQ_CONTENTS_TITLE |
|
179 | - . '</th>' |
|
180 | - . ' <th class="left">' |
|
181 | - . \_AM_XOOPSFAQ_CATEGORY_TITLE |
|
182 | - . '</th>' |
|
183 | - . ' <th>' |
|
184 | - . \_AM_XOOPSFAQ_CONTENTS_PUBLISH |
|
185 | - . '</th>' |
|
186 | - . ' <th class="width20">' |
|
187 | - . \_AM_XOOPSFAQ_ACTIONS |
|
188 | - . '</th>' |
|
189 | - . ' </tr>' |
|
190 | - . ' </thead>' |
|
191 | - . ' <tbody>'; |
|
166 | + . ' <thead>' |
|
167 | + . ' <tr class="center">' |
|
168 | + . ' <th class="width5">' |
|
169 | + . \_AM_XOOPSFAQ_CONTENTS_ID |
|
170 | + . '</th>' |
|
171 | + . ' <th class="width5">' |
|
172 | + . \_AM_XOOPSFAQ_CONTENTS_ACTIVE |
|
173 | + . '</th>' |
|
174 | + . ' <th class="width5">' |
|
175 | + . \_AM_XOOPSFAQ_CONTENTS_WEIGHT |
|
176 | + . '</th>' |
|
177 | + . ' <th class="left">' |
|
178 | + . \_AM_XOOPSFAQ_CONTENTS_TITLE |
|
179 | + . '</th>' |
|
180 | + . ' <th class="left">' |
|
181 | + . \_AM_XOOPSFAQ_CATEGORY_TITLE |
|
182 | + . '</th>' |
|
183 | + . ' <th>' |
|
184 | + . \_AM_XOOPSFAQ_CONTENTS_PUBLISH |
|
185 | + . '</th>' |
|
186 | + . ' <th class="width20">' |
|
187 | + . \_AM_XOOPSFAQ_ACTIONS |
|
188 | + . '</th>' |
|
189 | + . ' </tr>' |
|
190 | + . ' </thead>' |
|
191 | + . ' <tbody>'; |
|
192 | 192 | if (\is_array($objects) && ($objects['count'] > 0)) { |
193 | 193 | $tdClass = 0; |
194 | 194 | /** @var \Contents $object */ |
@@ -199,39 +199,39 @@ discard block |
||
199 | 199 | ++$tdClass; |
200 | 200 | $dispClass = ($tdClass % 1) ? 'even' : 'odd'; |
201 | 201 | $ret .= ' <tr class="center middle">' |
202 | - . ' <td class="' |
|
203 | - . $dispClass |
|
204 | - . '">' |
|
205 | - . $object->getVar('contents_id') |
|
206 | - . '</td>' |
|
207 | - . ' <td class="' |
|
208 | - . $dispClass |
|
209 | - . '">' |
|
210 | - . $object->getActiveIcon() |
|
211 | - . '</td>' |
|
212 | - . ' <td class="' |
|
213 | - . $dispClass |
|
214 | - . '">' |
|
215 | - . $object->getVar('contents_weight') |
|
216 | - . '</td>' |
|
217 | - . ' <td class="' |
|
218 | - . $dispClass |
|
219 | - . ' left">' |
|
220 | - . $thisContentTitle |
|
221 | - . '</td>' |
|
222 | - . ' <td class="' |
|
223 | - . $dispClass |
|
224 | - . ' left">' |
|
225 | - . $thisCatTitle |
|
226 | - . '</td>' |
|
227 | - . ' <td class="' |
|
228 | - . $dispClass |
|
229 | - . '">' |
|
230 | - . $object->getPublished(\_SHORTDATESTRING) |
|
231 | - . '</td>' |
|
232 | - . ' <td class="' |
|
233 | - . $dispClass |
|
234 | - . '">'; |
|
202 | + . ' <td class="' |
|
203 | + . $dispClass |
|
204 | + . '">' |
|
205 | + . $object->getVar('contents_id') |
|
206 | + . '</td>' |
|
207 | + . ' <td class="' |
|
208 | + . $dispClass |
|
209 | + . '">' |
|
210 | + . $object->getActiveIcon() |
|
211 | + . '</td>' |
|
212 | + . ' <td class="' |
|
213 | + . $dispClass |
|
214 | + . '">' |
|
215 | + . $object->getVar('contents_weight') |
|
216 | + . '</td>' |
|
217 | + . ' <td class="' |
|
218 | + . $dispClass |
|
219 | + . ' left">' |
|
220 | + . $thisContentTitle |
|
221 | + . '</td>' |
|
222 | + . ' <td class="' |
|
223 | + . $dispClass |
|
224 | + . ' left">' |
|
225 | + . $thisCatTitle |
|
226 | + . '</td>' |
|
227 | + . ' <td class="' |
|
228 | + . $dispClass |
|
229 | + . '">' |
|
230 | + . $object->getPublished(\_SHORTDATESTRING) |
|
231 | + . '</td>' |
|
232 | + . ' <td class="' |
|
233 | + . $dispClass |
|
234 | + . '">'; |
|
235 | 235 | $ret .= Utility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) . '</td>' . ' </tr>'; |
236 | 236 | } |
237 | 237 | } else { |
@@ -101,23 +101,23 @@ |
||
101 | 101 | $buttons = ['edit', 'delete']; |
102 | 102 | |
103 | 103 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
104 | - . ' <thead>' |
|
105 | - . ' <tr class="xoopsCenter">' |
|
106 | - . ' <th class="width5">' |
|
107 | - . \_AM_XOOPSFAQ_CATEGORY_ORDER |
|
108 | - . '</th>' |
|
109 | - . ' <th class="width5">' |
|
110 | - . \_AM_XOOPSFAQ_CATEGORY_ID |
|
111 | - . '</th>' |
|
112 | - . ' <th class="txtleft">' |
|
113 | - . \_AM_XOOPSFAQ_CATEGORY_TITLE |
|
114 | - . '</th>' |
|
115 | - . ' <th class="width20">' |
|
116 | - . \_AM_XOOPSFAQ_ACTIONS |
|
117 | - . '</th>' |
|
118 | - . ' </tr>' |
|
119 | - . ' </thead>' |
|
120 | - . ' <tbody>'; |
|
104 | + . ' <thead>' |
|
105 | + . ' <tr class="xoopsCenter">' |
|
106 | + . ' <th class="width5">' |
|
107 | + . \_AM_XOOPSFAQ_CATEGORY_ORDER |
|
108 | + . '</th>' |
|
109 | + . ' <th class="width5">' |
|
110 | + . \_AM_XOOPSFAQ_CATEGORY_ID |
|
111 | + . '</th>' |
|
112 | + . ' <th class="txtleft">' |
|
113 | + . \_AM_XOOPSFAQ_CATEGORY_TITLE |
|
114 | + . '</th>' |
|
115 | + . ' <th class="width20">' |
|
116 | + . \_AM_XOOPSFAQ_ACTIONS |
|
117 | + . '</th>' |
|
118 | + . ' </tr>' |
|
119 | + . ' </thead>' |
|
120 | + . ' <tbody>'; |
|
121 | 121 | if ($objects['count'] > 0) { |
122 | 122 | /** @var XoopsObject $object */ |
123 | 123 | foreach ($objects['list'] as $object) { |
@@ -182,7 +182,7 @@ |
||
182 | 182 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images'); |
183 | 183 | |
184 | 184 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)'); |
185 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC','The maximum file size of the image file (in Bytes)'); |
|
185 | +\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)'); |
|
186 | 186 | |
187 | 187 | //Module Stats |
188 | 188 | \define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics'); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | $title = \constant(\htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName), \ENT_QUOTES | \ENT_HTML5)); |
67 | 67 | $img = '<img src="' . Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"' . ' title ="' . $title . '"' . ' alt = "' . $title . '"' . ' class="bnone middle">'; |
68 | - $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>'; |
|
68 | + $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>'; |
|
69 | 69 | } |
70 | 70 | } |
71 | 71 |
@@ -146,7 +146,7 @@ |
||
146 | 146 | $options_tray = new \XoopsFormElementTray(\_AM_XOOPSFAQ_E_CONTENTS_CONTENT, '<br>'); |
147 | 147 | if (\class_exists('XoopsFormEditor')) { |
148 | 148 | // $editorConfigs = array('editor' => $GLOBALS['xoopsConfig']['general_editor'], |
149 | - $editorConfigs = [ |
|
149 | + $editorConfigs = [ |
|
150 | 150 | 'editor' => $helper->getConfig('use_wysiwyg', 'dhtmltextarea'), |
151 | 151 | 'rows' => 25, |
152 | 152 | 'cols' => '100%', |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'text' => $value['answer'], |
27 | 27 | ], |
28 | 28 | ]; |
29 | - $jsonld[] = $schema; |
|
29 | + $jsonld[] = $schema; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | $out .= '<script type="application/ld+json">' . json_encode($jsonld, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES) . '</script>'; |
@@ -70,7 +70,7 @@ |
||
70 | 70 | //$pathModIcon16 = XOOPS_URL . '/modules/' . $moduleDirName . '/' . $helper->getConfig('modicons16'); |
71 | 71 | $pathModIcon16 = $helper->url( |
72 | 72 | $helper->getModule() |
73 | - ->getInfo('modicons16') |
|
73 | + ->getInfo('modicons16') |
|
74 | 74 | ); |
75 | 75 | |
76 | 76 | $selectView = '<form name="form_switch" id="form_switch" action="' . Request::getString('REQUEST_URI', '', 'SERVER') . '" method="post"><span style="font-weight: bold;">' . $text . '</span>'; |