Completed
Push — master ( 2f8aec...b781ca )
by Richard
16s
created
htdocs/modules/publisher/blocks/items_columns.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,9 +164,9 @@
 block discarded – undo
164 164
 
165 165
     $tempEle = new Select(_MB_PUBLISHER_TEMPLATE, 'options[4]', $options[4]);
166 166
     $tempEle->addOptionArray([
167
-                                 'normal' => _MB_PUBLISHER_TEMPLATE_NORMAL,
168
-                                 'extended' => _MB_PUBLISHER_TEMPLATE_EXTENDED,
169
-                             ]);
167
+                                    'normal' => _MB_PUBLISHER_TEMPLATE_NORMAL,
168
+                                    'extended' => _MB_PUBLISHER_TEMPLATE_EXTENDED,
169
+                                ]);
170 170
 
171 171
     $form->addElement($colEle);
172 172
     $form->addElement($catEle);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 use XoopsModules\Publisher;
27 27
 use XoopsModules\Publisher\Helper;
28 28
 
29
-require_once dirname(__DIR__) . '/include/common.php';
29
+require_once dirname(__DIR__).'/include/common.php';
30 30
 
31 31
 /**
32 32
  * Function To Show Publisher Items From Categories In Their Own Columns
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     $block['columns'] = $columns;
137 137
     $block['columnwidth'] = (int)(100 / $opt_num_columns);
138 138
 
139
-    $xoTheme->addStylesheet(XoopsBaseConfig::get('url') . '/modules/' . PUBLISHER_DIRNAME . '/css/publisher.css');
139
+    $xoTheme->addStylesheet(XoopsBaseConfig::get('url').'/modules/'.PUBLISHER_DIRNAME.'/css/publisher.css');
140 140
 
141 141
     return $block;
142 142
 }
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/date_to_date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 use Xoops\Form\DateSelect;
26 26
 use XoopsModules\Publisher\Helper;
27 27
 
28
-require_once dirname(__DIR__) . '/include/common.php';
28
+require_once dirname(__DIR__).'/include/common.php';
29 29
 
30 30
 /**
31 31
  * @param $options
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $block['lang_poster']           = _MB_PUBLISHER_POSTEDBY;
68 68
         $block['lang_date']             = _MB_PUBLISHER_DATE;
69 69
         $modulename                     = $myts->displayTarea($helper->getModule()->getVar('name'));
70
-        $block['lang_visitItem']        = _MB_PUBLISHER_VISITITEM . ' ' . $modulename;
70
+        $block['lang_visitItem']        = _MB_PUBLISHER_VISITITEM.' '.$modulename;
71 71
         $block['lang_articles_from_to'] = sprintf(_MB_PUBLISHER_ARTICLES_FROM_TO, $options[0], $options[1]);
72 72
     }
73 73
 
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/latest_files.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,10 +80,10 @@
 block discarded – undo
80 80
     $catEle = new Label(_MB_PUBLISHER_SELECTCAT, Publisher\Utils::createCategorySelect($options[0], 0, true, 'options[0]'));
81 81
     $orderEle = new Select(_MB_PUBLISHER_ORDER, 'options[1]', $options[1]);
82 82
     $orderEle->addOptionArray([
83
-                                  'datesub' => _MB_PUBLISHER_DATE,
84
-                                  'counter' => _MB_PUBLISHER_HITS,
85
-                                  'weight' => _MB_PUBLISHER_WEIGHT,
86
-                              ]);
83
+                                    'datesub' => _MB_PUBLISHER_DATE,
84
+                                    'counter' => _MB_PUBLISHER_HITS,
85
+                                    'weight' => _MB_PUBLISHER_WEIGHT,
86
+                                ]);
87 87
     $dispEle = new Text(_MB_PUBLISHER_DISP, 'options[2]', 10, 255, $options[2]);
88 88
     $directEle = new RadioYesNo(_MB_PUBLISHER_DIRECTDOWNLOAD, 'options[3]', $options[3]);
89 89
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 use XoopsModules\Publisher;
28 28
 use XoopsModules\Publisher\Helper;
29 29
 
30
-require_once dirname(__DIR__) . '/include/common.php';
30
+require_once dirname(__DIR__).'/include/common.php';
31 31
 
32 32
 /**
33 33
  * @param $options
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_new.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
     $catEle = new Label(_MB_PUBLISHER_SELECTCAT, Publisher\Utils::createCategorySelect($options[0], 0, true, 'options[0]'));
129 129
     $orderEle = new Select(_MB_PUBLISHER_ORDER, 'options[1]', $options[1]);
130 130
     $orderEle->addOptionArray([
131
-                                  'datesub' => _MB_PUBLISHER_DATE,
132
-                                  'counter' => _MB_PUBLISHER_HITS,
133
-                                  'weight' => _MB_PUBLISHER_WEIGHT,
134
-                              ]);
131
+                                    'datesub' => _MB_PUBLISHER_DATE,
132
+                                    'counter' => _MB_PUBLISHER_HITS,
133
+                                    'weight' => _MB_PUBLISHER_WEIGHT,
134
+                                ]);
135 135
 
136 136
     $showEle = new RadioYesNo(_MB_PUBLISHER_ORDER_SHOW, 'options[2]', $options[2]);
137 137
     $dispEle = new Text(_MB_PUBLISHER_DISP, 'options[3]', 2, 255, $options[3]);
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
 
140 140
     $imageEle = new Select(_MB_PUBLISHER_IMAGE_TO_DISPLAY, 'options[5]', $options[5]);
141 141
     $imageEle->addOptionArray([
142
-                                  'none' => XoopsLocale::NONE,
143
-                                  'article' => _MB_PUBLISHER_IMAGE_ARTICLE,
144
-                                  'category' => _MB_PUBLISHER_IMAGE_CATEGORY,
145
-                                  'avatar' => _MB_PUBLISHER_IMAGE_AVATAR,
146
-                              ]);
142
+                                    'none' => XoopsLocale::NONE,
143
+                                    'article' => _MB_PUBLISHER_IMAGE_ARTICLE,
144
+                                    'category' => _MB_PUBLISHER_IMAGE_CATEGORY,
145
+                                    'avatar' => _MB_PUBLISHER_IMAGE_AVATAR,
146
+                                ]);
147 147
 
148 148
     $form->addElement($catEle);
149 149
     $form->addElement($orderEle);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
31 31
 
32
-require_once dirname(__DIR__) . '/include/common.php';
32
+require_once dirname(__DIR__).'/include/common.php';
33 33
 
34 34
 /**
35 35
  * @param $options
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $criteria = null;
60 60
     } else {
61 61
         $criteria = new CriteriaCompo();
62
-        $criteria->add(new Criteria('categoryid', '(' . $options[0] . ')', 'IN'));
62
+        $criteria->add(new Criteria('categoryid', '('.$options[0].')', 'IN'));
63 63
     }
64 64
     $xoops = Xoops::getInstance();
65 65
     $thumbService = $xoops->service('thumbnail');
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
             $item['poster'] = $iValue->posterName(); // for make poster name linked, use linkedPosterName() instead of posterName()
74 74
 
75 75
             if ('article' === $image) {
76
-                $item['image'] = XoopsBaseConfig::get('url') . '/uploads/blank.gif';
76
+                $item['image'] = XoopsBaseConfig::get('url').'/uploads/blank.gif';
77 77
                 $item['image_name'] = '';
78 78
                 $images = $iValue->getImages();
79 79
                 if (is_object($images['main'])) {
80
-                    $item['image'] = $thumbService->getImgUrl('uploads/' . $images['main']->getVar('image_name'), 50, 0)->getValue();
80
+                    $item['image'] = $thumbService->getImgUrl('uploads/'.$images['main']->getVar('image_name'), 50, 0)->getValue();
81 81
 
82 82
                     $item['image_name'] = $images['main']->getVar('image_nicename');
83 83
                 }
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
             } elseif ('avatar' === $image) {
88 88
                 $auid = $iValue->getVar('uid');
89 89
                 if ('0' == $auid) {
90
-                    $item['image'] = XoopsBaseConfig::get('url') . '/uploads/blank.gif';
90
+                    $item['image'] = XoopsBaseConfig::get('url').'/uploads/blank.gif';
91 91
                     $images = $iValue->getImages();
92 92
                     if (is_object($images['main'])) {
93
-                        $item['image'] = $thumbService->getImgUrl('uploads/' . $images['main']->getVar('image_name'), 50, 0)->getValue();
93
+                        $item['image'] = $thumbService->getImgUrl('uploads/'.$images['main']->getVar('image_name'), 50, 0)->getValue();
94 94
                     }
95 95
                 } else {
96 96
                     $item['image'] = $xoops->service('avatar')->getAvatarUrl($auid)->getValue();
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_random_item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
 use XoopsModules\Publisher\Helper;
24 24
 
25
-require_once dirname(__DIR__) . '/include/common.php';
25
+require_once dirname(__DIR__).'/include/common.php';
26 26
 
27 27
 /**
28 28
  * @param $options
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_menu.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,10 +84,10 @@
 block discarded – undo
84 84
     $catEle = new Label(_MB_PUBLISHER_SELECTCAT, Publisher\Utils::createCategorySelect($options[0], 0, true, 'options[0]'));
85 85
     $orderEle = new Select(_MB_PUBLISHER_ORDER, 'options[1]', $options[1]);
86 86
     $orderEle->addOptionArray([
87
-                                  'datesub' => _MB_PUBLISHER_DATE,
88
-                                  'counter' => _MB_PUBLISHER_HITS,
89
-                                  'weight' => _MB_PUBLISHER_WEIGHT,
90
-                              ]);
87
+                                    'datesub' => _MB_PUBLISHER_DATE,
88
+                                    'counter' => _MB_PUBLISHER_HITS,
89
+                                    'weight' => _MB_PUBLISHER_WEIGHT,
90
+                                ]);
91 91
     $dispEle = new Text(_MB_PUBLISHER_DISP, 'options[2]', 10, 255, $options[2]);
92 92
 
93 93
     $form->addElement($catEle);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 use XoopsModules\Publisher;
27 27
 use XoopsModules\Publisher\Helper;
28 28
 
29
-require_once dirname(__DIR__) . '/include/common.php';
29
+require_once dirname(__DIR__).'/include/common.php';
30 30
 
31 31
 /**
32 32
  * @param $options
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/category_items_sel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,10 +94,10 @@
 block discarded – undo
94 94
     $catEle = new Label(_MB_PUBLISHER_SELECTCAT, Publisher\Utils::createCategorySelect($options[0]), 'options[0]');
95 95
     $orderEle = new Select(_MB_PUBLISHER_ORDER, 'options[1]', $options[1]);
96 96
     $orderEle->addOptionArray([
97
-                                  'datesub' => _MB_PUBLISHER_DATE,
98
-                                  'counter' => _MB_PUBLISHER_HITS,
99
-                                  'weight' => _MB_PUBLISHER_WEIGHT,
100
-                              ]);
97
+                                    'datesub' => _MB_PUBLISHER_DATE,
98
+                                    'counter' => _MB_PUBLISHER_HITS,
99
+                                    'weight' => _MB_PUBLISHER_WEIGHT,
100
+                                ]);
101 101
     $dispEle = new Text(_MB_PUBLISHER_DISP, 'options[2]', 2, 255, $options[2]);
102 102
     $charsEle = new Text(_MB_PUBLISHER_CHARS, 'options[3]', 2, 255, $options[3]);
103 103
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 use XoopsModules\Publisher;
25 25
 use XoopsModules\Publisher\Helper;
26 26
 
27
-require_once dirname(__DIR__) . '/include/common.php';
27
+require_once dirname(__DIR__).'/include/common.php';
28 28
 
29 29
 /**
30 30
  * @param $options
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/latest_news.php 1 patch
Spacing   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 use XoopsModules\Publisher;
24 24
 use XoopsModules\Publisher\Helper;
25 25
 
26
-require_once dirname(__DIR__) . '/include/common.php';
26
+require_once dirname(__DIR__).'/include/common.php';
27 27
 
28 28
 /**
29 29
  * @param $options
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
         $criteria = null;
64 64
     } else {
65 65
         $criteria = new CriteriaCompo();
66
-        $criteria->add(new Criteria('categoryid', '(' . $options[29] . ')', 'IN'));
66
+        $criteria->add(new Criteria('categoryid', '('.$options[29].')', 'IN'));
67 67
     }
68 68
 
69 69
     // Use specific ITEMS
70 70
     if (0 != $selected_stories) {
71 71
         unset($criteria); //removes category option
72 72
         $criteria = new CriteriaCompo();
73
-        $criteria->add(new Criteria('itemid', '(' . $selected_stories . ')', 'IN'));
73
+        $criteria->add(new Criteria('itemid', '('.$selected_stories.')', 'IN'));
74 74
     }
75 75
 
76 76
     $itemsObj = $helper->getItemHandler()->getItems($limit, $start, [_PUBLISHER_STATUS_PUBLISHED], -1, $sort, $order, '', true, $criteria, 'itemid');
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         $ls_height = '';
102 102
         if (0 != $options[12]) {
103
-            $ls_height = 'height="' . $imgheight . '" ';
103
+            $ls_height = 'height="'.$imgheight.'" ';
104 104
         }
105 105
 
106 106
         if ('LEFT' === $options[15]) {
@@ -116,17 +116,17 @@  discard block
 block discarded – undo
116 116
 
117 117
         //Image
118 118
         if (1 == $options[10] && '' != $item['image_path']) {
119
-            $startdiv = '<div style="' . $imgposition . '"><a href="' . $item['itemurl'] . '">';
120
-            $style = 'style="margin' . $ls_margin . ': 10px; padding: 2px; border: ' . $border . 'px solid #' . $bordercolor . '"';
121
-            $enddiv = 'width="' . $imgwidth . '" ' . $ls_height . '></a></div>';
122
-            $image = $startdiv . '<img ' . $style . ' src="' . $item['item_image'] . '" alt="' . $item['image_name'] . '" ' . $enddiv;
119
+            $startdiv = '<div style="'.$imgposition.'"><a href="'.$item['itemurl'].'">';
120
+            $style = 'style="margin'.$ls_margin.': 10px; padding: 2px; border: '.$border.'px solid #'.$bordercolor.'"';
121
+            $enddiv = 'width="'.$imgwidth.'" '.$ls_height.'></a></div>';
122
+            $image = $startdiv.'<img '.$style.' src="'.$item['item_image'].'" alt="'.$item['image_name'].'" '.$enddiv;
123 123
 
124 124
             $item['image'] = $image;
125 125
         }
126 126
 
127 127
         if ($helper->isUserAdmin()) {
128
-            $item['admin'] = "<a href='" . PUBLISHER_URL . '/submit.php?itemid=' . $itemObj->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif'" . " title='" . _CO_PUBLISHER_EDIT . "' alt='" . _CO_PUBLISHER_EDIT . "'></a>&nbsp;";
129
-            $item['admin'] .= "<a href='" . PUBLISHER_URL . '/admin/item.php?op=del&amp;itemid=' . $itemObj->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png'" . " title='" . _CO_PUBLISHER_DELETE . "' alt='" . _CO_PUBLISHER_DELETE . "'></a>";
128
+            $item['admin'] = "<a href='".PUBLISHER_URL.'/submit.php?itemid='.$itemObj->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/edit.gif'"." title='"._CO_PUBLISHER_EDIT."' alt='"._CO_PUBLISHER_EDIT."'></a>&nbsp;";
129
+            $item['admin'] .= "<a href='".PUBLISHER_URL.'/admin/item.php?op=del&amp;itemid='.$itemObj->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/delete.png'"." title='"._CO_PUBLISHER_DELETE."' alt='"._CO_PUBLISHER_DELETE."'></a>";
130 130
         } else {
131 131
             $item['admin'] = '';
132 132
         }
@@ -139,40 +139,40 @@  discard block
 block discarded – undo
139 139
          */
140 140
         $block['archivelink'] = '';
141 141
         if (1 == $options[17]) {
142
-            $block['archivelink'] = '| <a href="' . PUBLISHER_URL . '/archive.php">' . _MB_PUBLISHER_ARCHIVE . '</a> ';
142
+            $block['archivelink'] = '| <a href="'.PUBLISHER_URL.'/archive.php">'._MB_PUBLISHER_ARCHIVE.'</a> ';
143 143
         }
144 144
 
145 145
         //TODO: Should we not show link to Anonymous?
146 146
         $block['submitlink'] = '';
147 147
         if (1 == $options[18] && $xoops->isUser()) {
148
-            $block['submitlink'] = '| <a href="' . PUBLISHER_URL . '/submit.php">' . _MB_PUBLISHER_SUBMITNEWS . '</a> ';
148
+            $block['submitlink'] = '| <a href="'.PUBLISHER_URL.'/submit.php">'._MB_PUBLISHER_SUBMITNEWS.'</a> ';
149 149
         }
150 150
 
151 151
         $item['poster'] = '';
152 152
         if (1 == $options[19]) {
153
-            $item['poster'] = _MB_PUBLISHER_POSTER . ' ' . $itemObj->posterName();
153
+            $item['poster'] = _MB_PUBLISHER_POSTER.' '.$itemObj->posterName();
154 154
         }
155 155
 
156 156
         $item['posttime'] = '';
157 157
         if (1 == $options[20]) {
158 158
             //todo, check this concatenation
159
-            $item['posttime'] = mb_strtolower(XoopsLocale::ON) . ' ' . $itemObj->datesub();
159
+            $item['posttime'] = mb_strtolower(XoopsLocale::ON).' '.$itemObj->datesub();
160 160
         }
161 161
 
162 162
         $item['topic_title'] = '';
163 163
         if (1 == $options[21]) {
164
-            $item['topic_title'] = $itemObj->getCategoryLink() . _MB_PUBLISHER_SP;
164
+            $item['topic_title'] = $itemObj->getCategoryLink()._MB_PUBLISHER_SP;
165 165
         }
166 166
 
167 167
         $item['read'] = '';
168 168
         if (1 == $options[22]) {
169 169
             //todo, check this concatenation
170
-            $item['read'] = '&nbsp;(' . $itemObj->getVar('counter') . ' ' . mb_strtolower(XoopsLocale::READS) . ')';
170
+            $item['read'] = '&nbsp;('.$itemObj->getVar('counter').' '.mb_strtolower(XoopsLocale::READS).')';
171 171
         }
172 172
 
173 173
         $item['more'] = '';
174 174
         if ('' != $itemObj->body() || $itemObj->getVar('comments') > 0) {
175
-            $item['more'] = '<a class="publisher_spotlight_readmore" href="' . $itemObj->getItemUrl() . '">' . _MB_PUBLISHER_READMORE . '</a>';
175
+            $item['more'] = '<a class="publisher_spotlight_readmore" href="'.$itemObj->getItemUrl().'">'._MB_PUBLISHER_READMORE.'</a>';
176 176
         }
177 177
 
178 178
         $comments = $itemObj->getVar('comments');
@@ -181,23 +181,23 @@  discard block
 block discarded – undo
181 181
                 //shows 1 comment instead of 1 comm. if comments ==1
182 182
                 //langugage file modified accordingly
183 183
                 if (1 == $comments) {
184
-                    $item['comment'] = '&nbsp;' . _MB_PUBLISHER_ONECOMMENT . '&nbsp;';
184
+                    $item['comment'] = '&nbsp;'._MB_PUBLISHER_ONECOMMENT.'&nbsp;';
185 185
                 } else {
186
-                    $item['comment'] = '&nbsp;' . $comments . '&nbsp;' . _MB_PUBLISHER_COMMENTS . '&nbsp;';
186
+                    $item['comment'] = '&nbsp;'.$comments.'&nbsp;'._MB_PUBLISHER_COMMENTS.'&nbsp;';
187 187
                 }
188 188
             } else {
189
-                $item['comment'] = '&nbsp;' . _MB_PUBLISHER_NO_COMMENTS . '&nbsp;';
189
+                $item['comment'] = '&nbsp;'._MB_PUBLISHER_NO_COMMENTS.'&nbsp;';
190 190
             }
191 191
         }
192 192
 
193 193
         $item['print'] = '';
194 194
         if (1 == $options[24]) {
195
-            $item['print'] = '<a href="' . Publisher\Utils::seoGenUrl('print', $itemObj->getVar('itemid'), $itemObj->getVar('short_url')) . '" rel="nofollow"><img src="' . PUBLISHER_URL . '/images/links/print.gif" title="' . _CO_PUBLISHER_PRINT . '" alt="' . _CO_PUBLISHER_PRINT . '"></a>&nbsp;';
195
+            $item['print'] = '<a href="'.Publisher\Utils::seoGenUrl('print', $itemObj->getVar('itemid'), $itemObj->getVar('short_url')).'" rel="nofollow"><img src="'.PUBLISHER_URL.'/images/links/print.gif" title="'._CO_PUBLISHER_PRINT.'" alt="'._CO_PUBLISHER_PRINT.'"></a>&nbsp;';
196 196
         }
197 197
 
198 198
         $item['pdf'] = '';
199 199
         if (1 == $options[25]) {
200
-            $item['pdf'] = "<a href='" . PUBLISHER_URL . '/makepdf.php?itemid=' . $itemObj->getVar('itemid') . "' rel='nofollow'><img src='" . PUBLISHER_URL . "/images/links/pdf.gif' title='" . _CO_PUBLISHER_PDF . "' alt='" . _CO_PUBLISHER_PDF . "'></a>&nbsp;";
200
+            $item['pdf'] = "<a href='".PUBLISHER_URL.'/makepdf.php?itemid='.$itemObj->getVar('itemid')."' rel='nofollow'><img src='".PUBLISHER_URL."/images/links/pdf.gif' title='"._CO_PUBLISHER_PDF."' alt='"._CO_PUBLISHER_PDF."'></a>&nbsp;";
201 201
         }
202 202
 
203 203
         $item['email'] = '';
@@ -206,12 +206,12 @@  discard block
 block discarded – undo
206 206
             $subject = $itemObj->_convert_for_japanese($subject);
207 207
             $maillink = Publisher\Utils::tellafriend($subject);
208 208
 
209
-            $item['email'] = '<a href="' . $maillink . '"><img src="' . PUBLISHER_URL . '/images/links/friend.gif" title="' . _CO_PUBLISHER_MAIL . '" alt="' . _CO_PUBLISHER_MAIL . '"></a>&nbsp;';
209
+            $item['email'] = '<a href="'.$maillink.'"><img src="'.PUBLISHER_URL.'/images/links/friend.gif" title="'._CO_PUBLISHER_MAIL.'" alt="'._CO_PUBLISHER_MAIL.'"></a>&nbsp;';
210 210
         }
211 211
 
212 212
         $block['morelink'] = '';
213 213
         if (1 == $options[27]) {
214
-            $block['morelink'] = '<a href="' . PUBLISHER_URL . '/index.php">' . _MB_PUBLISHER_MORE_ITEMS . '</a> ';
214
+            $block['morelink'] = '<a href="'.PUBLISHER_URL.'/index.php">'._MB_PUBLISHER_MORE_ITEMS.'</a> ';
215 215
         }
216 216
 
217 217
         $block['latestnews_scroll'] = false;
@@ -260,24 +260,24 @@  discard block
 block discarded – undo
260 260
     $tabletag4 = '</td></tr>';
261 261
 
262 262
     $form = "<table border='0' cellpadding='0' cellspacing='0'>";
263
-    $form .= $tabletag3 . _MB_PUBLISHER_GENERALCONFIG . $tabletag4; // General Options
264
-    $form .= $tabletag1 . _MB_PUBLISHER_FIRST . $tabletag2;
265
-    $form .= "<input type='text' name='options[]' value='" . $options[0] . "' size='4'>&nbsp;" . _MB_PUBLISHER_ITEMS . '</td></tr>';
266
-    $form .= $tabletag1 . _MB_PUBLISHER_DISP . $tabletag2;
267
-    $form .= "<input type='text' name='options[]' value='" . $options[1] . "' size='4'>&nbsp;" . _MB_PUBLISHER_ITEMS . '</td></tr>';
268
-    $form .= $tabletag1 . _MB_PUBLISHER_COLUMNS . $tabletag2;
269
-    $form .= "<input type='text' name='options[]' value='" . $options[2] . "' size='4'>&nbsp;" . _MB_PUBLISHER_COLUMN . '</td></tr>';
270
-    $form .= $tabletag1 . _MB_PUBLISHER_TEXTLENGTH . $tabletag2;
271
-    $form .= "<input type='text' name='options[]' value='" . $options[3] . "' size='4'>&nbsp;" . _MB_PUBLISHER_LETTER . '</td></tr>';
272
-    $form .= $tabletag1 . _MB_PUBLISHER_SELECTEDSTORIES . $tabletag2;
273
-    $form .= "<input type='text' name='options[]' value='" . $options[4] . "' size='16'></td></tr>";
274
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLL . $tabletag2;
263
+    $form .= $tabletag3._MB_PUBLISHER_GENERALCONFIG.$tabletag4; // General Options
264
+    $form .= $tabletag1._MB_PUBLISHER_FIRST.$tabletag2;
265
+    $form .= "<input type='text' name='options[]' value='".$options[0]."' size='4'>&nbsp;"._MB_PUBLISHER_ITEMS.'</td></tr>';
266
+    $form .= $tabletag1._MB_PUBLISHER_DISP.$tabletag2;
267
+    $form .= "<input type='text' name='options[]' value='".$options[1]."' size='4'>&nbsp;"._MB_PUBLISHER_ITEMS.'</td></tr>';
268
+    $form .= $tabletag1._MB_PUBLISHER_COLUMNS.$tabletag2;
269
+    $form .= "<input type='text' name='options[]' value='".$options[2]."' size='4'>&nbsp;"._MB_PUBLISHER_COLUMN.'</td></tr>';
270
+    $form .= $tabletag1._MB_PUBLISHER_TEXTLENGTH.$tabletag2;
271
+    $form .= "<input type='text' name='options[]' value='".$options[3]."' size='4'>&nbsp;"._MB_PUBLISHER_LETTER.'</td></tr>';
272
+    $form .= $tabletag1._MB_PUBLISHER_SELECTEDSTORIES.$tabletag2;
273
+    $form .= "<input type='text' name='options[]' value='".$options[4]."' size='16'></td></tr>";
274
+    $form .= $tabletag1._MB_PUBLISHER_SCROLL.$tabletag2;
275 275
     $form .= publisher_mk_chkbox($options, 5);
276
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLHEIGHT . $tabletag2;
277
-    $form .= "<input type='text' name='options[]' value='" . $options[6] . "' size='4'></td></tr>";
278
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLSPEED . $tabletag2;
279
-    $form .= "<input type='text' name='options[]' value='" . $options[7] . "' size='4'></td></tr>";
280
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLDIR . $tabletag2;
276
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLHEIGHT.$tabletag2;
277
+    $form .= "<input type='text' name='options[]' value='".$options[6]."' size='4'></td></tr>";
278
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLSPEED.$tabletag2;
279
+    $form .= "<input type='text' name='options[]' value='".$options[7]."' size='4'></td></tr>";
280
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLDIR.$tabletag2;
281 281
 
282 282
     $form .= "<select size='1' name='options[8]'>";
283 283
 
@@ -291,89 +291,89 @@  discard block
 block discarded – undo
291 291
     }
292 292
     $form .= '</select></td></tr>';
293 293
 
294
-    $form .= $tabletag1 . _MB_PUBLISHER_ORDER . $tabletag2;
294
+    $form .= $tabletag1._MB_PUBLISHER_ORDER.$tabletag2;
295 295
 
296 296
     $form .= "<select name='options[9]'>";
297 297
     $form .= "<option value='datesub'";
298 298
     if ('datesub' === $options[9]) {
299 299
         $form .= " selected='selected'";
300 300
     }
301
-    $form .= '>' . _MB_PUBLISHER_DATE . '</option>';
301
+    $form .= '>'._MB_PUBLISHER_DATE.'</option>';
302 302
 
303 303
     $form .= "<option value='counter'";
304 304
     if ('counter' === $options[9]) {
305 305
         $form .= " selected='selected'";
306 306
     }
307
-    $form .= '>' . _MB_PUBLISHER_HITS . '</option>';
307
+    $form .= '>'._MB_PUBLISHER_HITS.'</option>';
308 308
 
309 309
     $form .= "<option value='weight'";
310 310
     if ('weight' === $options[9]) {
311 311
         $form .= " selected='selected'";
312 312
     }
313
-    $form .= '>' . _MB_PUBLISHER_WEIGHT . '</option>';
313
+    $form .= '>'._MB_PUBLISHER_WEIGHT.'</option>';
314 314
 
315 315
     $form .= '</select></td></tr>';
316 316
 
317
-    $form .= $tabletag3 . _MB_PUBLISHER_PHOTOSCONFIG . $tabletag4; // Photos Options
318
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGDISPLAY . $tabletag2;
317
+    $form .= $tabletag3._MB_PUBLISHER_PHOTOSCONFIG.$tabletag4; // Photos Options
318
+    $form .= $tabletag1._MB_PUBLISHER_IMGDISPLAY.$tabletag2;
319 319
     $form .= publisher_mk_chkbox($options, 10);
320
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGWIDTH . $tabletag2;
321
-    $form .= "<input type='text' name='options[]' value='" . $options[11] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . '</td></tr>';
322
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGHEIGHT . $tabletag2;
323
-    $form .= "<input type='text' name='options[]' value='" . $options[12] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . '</td></tr>';
324
-    $form .= $tabletag1 . _MB_PUBLISHER_BORDER . $tabletag2;
325
-    $form .= "<input type='text' name='options[]' value='" . $options[13] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . '</td></tr>';
326
-    $form .= $tabletag1 . _MB_PUBLISHER_BORDERCOLOR . $tabletag2;
327
-    $form .= "<input type='text' name='options[]' value='" . $options[14] . "' size='8'></td></tr>";
328
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGPOSITION . $tabletag2;
320
+    $form .= $tabletag1._MB_PUBLISHER_IMGWIDTH.$tabletag2;
321
+    $form .= "<input type='text' name='options[]' value='".$options[11]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL.'</td></tr>';
322
+    $form .= $tabletag1._MB_PUBLISHER_IMGHEIGHT.$tabletag2;
323
+    $form .= "<input type='text' name='options[]' value='".$options[12]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL.'</td></tr>';
324
+    $form .= $tabletag1._MB_PUBLISHER_BORDER.$tabletag2;
325
+    $form .= "<input type='text' name='options[]' value='".$options[13]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL.'</td></tr>';
326
+    $form .= $tabletag1._MB_PUBLISHER_BORDERCOLOR.$tabletag2;
327
+    $form .= "<input type='text' name='options[]' value='".$options[14]."' size='8'></td></tr>";
328
+    $form .= $tabletag1._MB_PUBLISHER_IMGPOSITION.$tabletag2;
329 329
     $form .= "<select name='options[]'>";
330 330
     $form .= "<option value='LEFT'";
331 331
     if ('LEFT' === $options[15]) {
332 332
         $form .= " selected='selected'";
333 333
     }
334
-    $form .= '>' . XoopsLocale::LEFT . "</option>\n";
334
+    $form .= '>'.XoopsLocale::LEFT."</option>\n";
335 335
 
336 336
     $form .= "<option value='CENTER'";
337 337
     if ('CENTER' === $options[15]) {
338 338
         $form .= " selected='selected'";
339 339
     }
340
-    $form .= '>' . XoopsLocale::CENTER . "</option>\n";
340
+    $form .= '>'.XoopsLocale::CENTER."</option>\n";
341 341
 
342 342
     $form .= "<option value='RIGHT'";
343 343
     if ('RIGHT' === $options[15]) {
344 344
         $form .= " selected='selected'";
345 345
     }
346
-    $form .= '>' . XoopsLocale::RIGHT . '</option>';
346
+    $form .= '>'.XoopsLocale::RIGHT.'</option>';
347 347
     $form .= '</select></td></tr>';
348 348
 
349
-    $form .= $tabletag3 . _MB_PUBLISHER_LINKSCONFIG . $tabletag4; // Links Options
350
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_TOPICLINK . $tabletag2;
349
+    $form .= $tabletag3._MB_PUBLISHER_LINKSCONFIG.$tabletag4; // Links Options
350
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_TOPICLINK.$tabletag2;
351 351
     $form .= publisher_mk_chkbox($options, 16);
352
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_ARCHIVELINK . $tabletag2;
352
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_ARCHIVELINK.$tabletag2;
353 353
     $form .= publisher_mk_chkbox($options, 17);
354
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_SUBMITLINK . $tabletag2;
354
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_SUBMITLINK.$tabletag2;
355 355
     $form .= publisher_mk_chkbox($options, 18);
356
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_POSTEDBY . $tabletag2;
356
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_POSTEDBY.$tabletag2;
357 357
     $form .= publisher_mk_chkbox($options, 19);
358
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_POSTTIME . $tabletag2;
358
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_POSTTIME.$tabletag2;
359 359
     $form .= publisher_mk_chkbox($options, 20);
360
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_TOPICTITLE . $tabletag2;
360
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_TOPICTITLE.$tabletag2;
361 361
     $form .= publisher_mk_chkbox($options, 21);
362
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_READ . $tabletag2;
362
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_READ.$tabletag2;
363 363
     $form .= publisher_mk_chkbox($options, 22);
364
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_COMMENT . $tabletag2;
364
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_COMMENT.$tabletag2;
365 365
     $form .= publisher_mk_chkbox($options, 23);
366
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_PRINT . $tabletag2;
366
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_PRINT.$tabletag2;
367 367
     $form .= publisher_mk_chkbox($options, 24);
368
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_PDF . $tabletag2;
368
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_PDF.$tabletag2;
369 369
     $form .= publisher_mk_chkbox($options, 25);
370
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_EMAIL . $tabletag2;
370
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_EMAIL.$tabletag2;
371 371
     $form .= publisher_mk_chkbox($options, 26);
372
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_MORELINK . $tabletag2;
372
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_MORELINK.$tabletag2;
373 373
     $form .= publisher_mk_chkbox($options, 27);
374 374
 
375
-    $form .= $tabletag3 . _MB_PUBLISHER_TEMPLATESCONFIG . $tabletag4; // Templates Options
376
-    $form .= $tabletag1 . _MB_PUBLISHER_TEMPLATE . $tabletag2;
375
+    $form .= $tabletag3._MB_PUBLISHER_TEMPLATESCONFIG.$tabletag4; // Templates Options
376
+    $form .= $tabletag1._MB_PUBLISHER_TEMPLATE.$tabletag2;
377 377
     $form .= "<select size='1' name='options[28]'>";
378 378
 
379 379
     $templates = ['normal' => _MB_PUBLISHER_TEMPLATE_NORMAL, 'extended' => _MB_PUBLISHER_TEMPLATE_EXTENDED, 'ticker' => _MB_PUBLISHER_TEMPLATE_TICKER, 'slider1' => _MB_PUBLISHER_TEMPLATE_SLIDER1, 'slider2' => _MB_PUBLISHER_TEMPLATE_SLIDER2];
@@ -387,8 +387,8 @@  discard block
 block discarded – undo
387 387
     $form .= '</select></td></tr>';
388 388
 
389 389
     //Select Which Categories To Show
390
-    $form .= $tabletag3 . _MB_PUBLISHER_TOPICSCONFIG . $tabletag4; // Topics Options
391
-    $form .= $tabletag1 . _MB_PUBLISHER_TOPICSDISPLAY . $tabletag2;
390
+    $form .= $tabletag3._MB_PUBLISHER_TOPICSCONFIG.$tabletag4; // Topics Options
391
+    $form .= $tabletag1._MB_PUBLISHER_TOPICSDISPLAY.$tabletag2;
392 392
     $form .= Publisher\Utils::createCategorySelect($options[29], 0, true, 'options[29]');
393 393
     $form .= '</td></tr>';
394 394
 
@@ -413,12 +413,12 @@  discard block
 block discarded – undo
413 413
     if (1 == $options[$number]) {
414 414
         $chk = " checked";
415 415
     }
416
-    $chkbox = "<input type='radio' name='options[{$number}]' value='1'" . $chk . '>&nbsp;' . XoopsLocale::YES . '&nbsp;&nbsp;';
416
+    $chkbox = "<input type='radio' name='options[{$number}]' value='1'".$chk.'>&nbsp;'.XoopsLocale::YES.'&nbsp;&nbsp;';
417 417
     $chk = '';
418 418
     if (0 == $options[$number]) {
419 419
         $chk = " checked";
420 420
     }
421
-    $chkbox .= "<input type='radio' name='options[{$number}]' value='0'" . $chk . '>&nbsp;' . XoopsLocale::NO . '</td></tr>';
421
+    $chkbox .= "<input type='radio' name='options[{$number}]' value='0'".$chk.'>&nbsp;'.XoopsLocale::NO.'</td></tr>';
422 422
 
423 423
     return $chkbox;
424 424
 }
@@ -439,17 +439,17 @@  discard block
 block discarded – undo
439 439
     if (2 == $options[$number]) {
440 440
         $slc = " checked";
441 441
     }
442
-    $select = "<input type='radio' name='options[{$number}]' value='2'" . $slc . '>&nbsp;' . XoopsLocale::LEFT . '&nbsp;&nbsp;';
442
+    $select = "<input type='radio' name='options[{$number}]' value='2'".$slc.'>&nbsp;'.XoopsLocale::LEFT.'&nbsp;&nbsp;';
443 443
     $slc = '';
444 444
     if (1 == $options[$number]) {
445 445
         $slc = " checked";
446 446
     }
447
-    $select .= "<input type='radio' name='options[{$number}]' value='1'" . $slc . '>&nbsp;' . XoopsLocale::CENTER . '&nbsp;&nbsp;';
447
+    $select .= "<input type='radio' name='options[{$number}]' value='1'".$slc.'>&nbsp;'.XoopsLocale::CENTER.'&nbsp;&nbsp;';
448 448
     $slc = '';
449 449
     if (0 == $options[$number]) {
450 450
         $slc = " checked";
451 451
     }
452
-    $select .= "<input type='radio' name='options[{$number}]' value='0'" . $slc . '>&nbsp;' . XoopsLocale::RIGHT . '</td></tr>';
452
+    $select .= "<input type='radio' name='options[{$number}]' value='0'".$slc.'>&nbsp;'.XoopsLocale::RIGHT.'</td></tr>';
453 453
 
454 454
     return $select;
455 455
 }
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/search.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 use XoopsModules\Publisher\Helper;
23 23
 
24
-require_once dirname(__DIR__) . '/include/common.php';
24
+require_once dirname(__DIR__).'/include/common.php';
25 25
 
26 26
 /**
27 27
  * @param $options
@@ -61,17 +61,17 @@  discard block
 block discarded – undo
61 61
     if ('OR' === $andor) {
62 62
         $type_select .= ' selected="selected"';
63 63
     }
64
-    $type_select .= '>' . XoopsLocale::ANY_OR . '</option>';
64
+    $type_select .= '>'.XoopsLocale::ANY_OR.'</option>';
65 65
     $type_select .= '<option value="AND"';
66 66
     if ('AND' === $andor) {
67 67
         $type_select .= ' selected="selected"';
68 68
     }
69
-    $type_select .= '>' . XoopsLocale::ALL . '</option>';
69
+    $type_select .= '>'.XoopsLocale::ALL.'</option>';
70 70
     $type_select .= '<option value="EXACT"';
71 71
     if ('exact' === $andor) {
72 72
         $type_select .= ' selected="selected"';
73 73
     }
74
-    $type_select .= '>' . XoopsLocale::EXACT_MATCH . '</option>';
74
+    $type_select .= '>'.XoopsLocale::EXACT_MATCH.'</option>';
75 75
     $type_select .= '</select>';
76 76
 
77 77
     /* category */
@@ -81,13 +81,13 @@  discard block
 block discarded – undo
81 81
     if (empty($category) || 0 == count($category)) {
82 82
         $select_category .= 'selected="selected"';
83 83
     }
84
-    $select_category .= '>' . XoopsLocale::ALL . '</option>';
84
+    $select_category .= '>'.XoopsLocale::ALL.'</option>';
85 85
     foreach ($categories as $id => $cat) {
86
-        $select_category .= '<option value="' . $id . '"';
86
+        $select_category .= '<option value="'.$id.'"';
87 87
         if (in_array($id, $category)) {
88 88
             $select_category .= 'selected="selected"';
89 89
         }
90
-        $select_category .= '>' . $cat . '</option>';
90
+        $select_category .= '>'.$cat.'</option>';
91 91
     }
92 92
     $select_category .= '</select>';
93 93
 
@@ -97,32 +97,32 @@  discard block
 block discarded – undo
97 97
     if (in_array('title', $searchin)) {
98 98
         $searchin_select .= ' checked';
99 99
     }
100
-    $searchin_select .= '>' . _CO_PUBLISHER_TITLE . '&nbsp;&nbsp;';
100
+    $searchin_select .= '>'._CO_PUBLISHER_TITLE.'&nbsp;&nbsp;';
101 101
     $searchin_select .= '<input type="checkbox" name="searchin[]" value="subtitle"';
102 102
     if (in_array('subtitle', $searchin)) {
103 103
         $searchin_select .= ' checked';
104 104
     }
105
-    $searchin_select .= '>' . _CO_PUBLISHER_SUBTITLE . '&nbsp;&nbsp;';
105
+    $searchin_select .= '>'._CO_PUBLISHER_SUBTITLE.'&nbsp;&nbsp;';
106 106
     $searchin_select .= '<input type="checkbox" name="searchin[]" value="summary"';
107 107
     if (in_array('summary', $searchin)) {
108 108
         $searchin_select .= ' checked';
109 109
     }
110
-    $searchin_select .= '>' . _CO_PUBLISHER_SUMMARY . '&nbsp;&nbsp;';
110
+    $searchin_select .= '>'._CO_PUBLISHER_SUMMARY.'&nbsp;&nbsp;';
111 111
     $searchin_select .= '<input type="checkbox" name="searchin[]" value="text"';
112 112
     if (in_array('body', $searchin)) {
113 113
         $searchin_select .= ' checked';
114 114
     }
115
-    $searchin_select .= '>' . _CO_PUBLISHER_BODY . '&nbsp;&nbsp;';
115
+    $searchin_select .= '>'._CO_PUBLISHER_BODY.'&nbsp;&nbsp;';
116 116
     $searchin_select .= '<input type="checkbox" name="searchin[]" value="keywords"';
117 117
     if (in_array('meta_keywords', $searchin)) {
118 118
         $searchin_select .= ' checked';
119 119
     }
120
-    $searchin_select .= '>' . _CO_PUBLISHER_ITEM_META_KEYWORDS . '&nbsp;&nbsp;';
120
+    $searchin_select .= '>'._CO_PUBLISHER_ITEM_META_KEYWORDS.'&nbsp;&nbsp;';
121 121
     $searchin_select .= '<input type="checkbox" name="searchin[]" value="all"';
122 122
     if (in_array('all', $searchin) || empty($searchin)) {
123 123
         $searchin_select .= ' checked';
124 124
     }
125
-    $searchin_select .= '>' . XoopsLocale::ALL . '&nbsp;&nbsp;';
125
+    $searchin_select .= '>'.XoopsLocale::ALL.'&nbsp;&nbsp;';
126 126
 
127 127
     /* sortby */
128 128
     $sortby_select = '<select name="sortby">';
@@ -130,22 +130,22 @@  discard block
 block discarded – undo
130 130
     if ('itemid' === $sortby || empty($sortby)) {
131 131
         $sortby_select .= ' selected="selected"';
132 132
     }
133
-    $sortby_select .= '>' . XoopsLocale::NONE . '</option>';
133
+    $sortby_select .= '>'.XoopsLocale::NONE.'</option>';
134 134
     $sortby_select .= '<option value="datesub"';
135 135
     if ('datesub' === $sortby) {
136 136
         $sortby_select .= ' selected="selected"';
137 137
     }
138
-    $sortby_select .= '>' . _CO_PUBLISHER_DATESUB . '</option>';
138
+    $sortby_select .= '>'._CO_PUBLISHER_DATESUB.'</option>';
139 139
     $sortby_select .= '<option value="title"';
140 140
     if ('title' === $sortby) {
141 141
         $sortby_select .= ' selected="selected"';
142 142
     }
143
-    $sortby_select .= '>' . _CO_PUBLISHER_TITLE . '</option>';
143
+    $sortby_select .= '>'._CO_PUBLISHER_TITLE.'</option>';
144 144
     $sortby_select .= '<option value="categoryid"';
145 145
     if ('categoryid' === $sortby) {
146 146
         $sortby_select .= ' selected="selected"';
147 147
     }
148
-    $sortby_select .= '>' . _CO_PUBLISHER_CATEGORY . '</option>';
148
+    $sortby_select .= '>'._CO_PUBLISHER_CATEGORY.'</option>';
149 149
     $sortby_select .= '</select>';
150 150
 
151 151
     $block['type_select'] = $type_select;
Please login to merge, or discard this patch.