@@ -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) { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | } |
70 | 70 | $title = \constant(\htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName), \ENT_QUOTES | \ENT_HTML5)); |
71 | 71 | $img = '<img src="' . Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"' . ' title ="' . $title . '"' . ' alt = "' . $title . '"' . ' class="bnone middle">'; |
72 | - $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>'; |
|
72 | + $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>'; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | return $ret; |
@@ -175,7 +175,7 @@ |
||
175 | 175 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images'); |
176 | 176 | |
177 | 177 | \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)'); |
178 | -\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC','The maximum file size of the image file (in Bytes)'); |
|
178 | +\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)'); |
|
179 | 179 | |
180 | 180 | |
181 | 181 | //Module Stats |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | //get data for JSON-LD |
92 | 92 | if ($helper->getConfig('generate_jsonld')) { |
93 | - $content[] = [ |
|
93 | + $content[] = [ |
|
94 | 94 | 'title' => $obj->getVar('contents_title'), |
95 | 95 | 'answer' => $obj->getVar('contents_contents'), |
96 | 96 | ]; |
@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | foreach ($objects['list'] as $object) { |
134 | 134 | // only list categories and/or FAQs if user has rights |
135 | 135 | if (false !== $permHelper->checkPermission('viewcat', $object->getVar('category_id'))) { |
136 | - $category = [ |
|
136 | + $category = [ |
|
137 | 137 | 'id' => $object->getVar('category_id'), |
138 | 138 | 'name' => $object->getVar('category_title'), |
139 | 139 | ]; |
140 | - $bodyWords .= ' ' . $object->getVar('category_title'); |
|
140 | + $bodyWords .= ' ' . $object->getVar('category_title'); |
|
141 | 141 | $contentsObj = $contentsHandler->getPublished($object->getVar('category_id')); |
142 | 142 | if ($contentsObj['count']) { |
143 | 143 | $category['questions'] = []; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | 'link' => $content->getVar('contents_id'), |
148 | 148 | 'title' => $content->getVar('contents_title'), |
149 | 149 | ]; |
150 | - $bodyWords .= ' ' . $content->getVar('contents_title'); |
|
150 | + $bodyWords .= ' ' . $content->getVar('contents_title'); |
|
151 | 151 | } |
152 | 152 | } |
153 | 153 | $GLOBALS['xoopsTpl']->append_by_ref('categories', $category); |