Completed
Push — master ( 3f8ec2...f62223 )
by Michael
03:23 queued 14s
created
admin/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 use XoopsModules\Extcal;
21 21
 use XoopsModules\Extcal\Common;
22 22
 
23
-require_once __DIR__ . '/admin_header.php';
23
+require_once __DIR__.'/admin_header.php';
24 24
 // Display Admin header
25 25
 xoops_cp_header();
26 26
 /** @var Extcal\Utility $utilityClass */
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 
40 40
 if ($helper->getConfig('displaySampleButton')) {
41 41
     xoops_loadLanguage('admin/modulesadmin', 'system');
42
-    require_once __DIR__ . '/../testdata/index.php';
42
+    require_once __DIR__.'/../testdata/index.php';
43 43
 
44
-    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
44
+    $adminObject->addItemButton(constant('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
45 45
 
46
-    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
46
+    $adminObject->addItemButton(constant('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
47 47
 
48 48
     //    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA'), '__DIR__ . /../../testdata/index.php?op=exportschema', 'add');
49 49
 
@@ -57,4 +57,4 @@  discard block
 block discarded – undo
57 57
 echo $utility::getServerStats();
58 58
 
59 59
 //codeDump(__FILE__);
60
-require_once __DIR__ . '/admin_footer.php';
60
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/main.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-require_once __DIR__ . '/../../../include/cp_header.php';
8
-include __DIR__ . '/../../../class/xoopsformloader.php';
9
-require_once __DIR__ . '/admin_header.php';
7
+require_once __DIR__.'/../../../include/cp_header.php';
8
+include __DIR__.'/../../../class/xoopsformloader.php';
9
+require_once __DIR__.'/admin_header.php';
10 10
 
11 11
 function extgalleryLastVersion()
12 12
 {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         switch ($fct) {
42 42
             case 'send':
43 43
                 if (!$GLOBALS['xoopsSecurity']->check()) {
44
-                    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
44
+                    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
45 45
                 }
46 46
                 xoops_cp_header();
47 47
                 adminMenu(1);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                     'EV_TITLE' => $event->getVar('event_title'),
74 74
                     'EV_START' => $extcalTime->getFormatedDate($helper->getConfig('date_long'), $event->getVar('event_start')),
75 75
                     'EV_END'   => $extcalTime->getFormatedDate($helper->getConfig('date_long'), $event->getVar('event_end')),
76
-                    'EV_LINK'  => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
76
+                    'EV_LINK'  => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
77 77
                 ];
78 78
                 $xoopsMailer->assign($tag);
79 79
                 $xoopsMailer->send(true);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             default:
89 89
                 xoops_cp_header();
90 90
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
91
-                $subjectCaption = _AM_EXTCAL_SUBJECT . "<br><br><span style='font-size:x-small;font-weight:bold;'>" . _AM_EXTCAL_USEFUL_TAGS . "</span><br><span style='font-size:x-small;font-weight:normal;'>" . _AM_EXTCAL_MAILTAGS6 . '<br>' . _AM_EXTCAL_MAILTAGS2 . '</span>&nbsp;&nbsp;&nbsp;';
91
+                $subjectCaption = _AM_EXTCAL_SUBJECT."<br><br><span style='font-size:x-small;font-weight:bold;'>"._AM_EXTCAL_USEFUL_TAGS."</span><br><span style='font-size:x-small;font-weight:normal;'>"._AM_EXTCAL_MAILTAGS6.'<br>'._AM_EXTCAL_MAILTAGS2.'</span>&nbsp;&nbsp;&nbsp;';
92 92
                 $bodyCaption    = _AM_EXTCAL_BODY
93 93
                                   . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
94 94
                                   . _AM_EXTCAL_USEFUL_TAGS
@@ -111,12 +111,12 @@  discard block
 block discarded – undo
111 111
                                   . '<br>'
112 112
                                   . _AM_EXTCAL_MAILTAGS9
113 113
                                   . '</span>&nbsp;&nbsp;&nbsp;';
114
-                $toCheckBbox    = new \XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
114
+                $toCheckBbox = new \XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
115 115
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
116 116
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
117 117
 
118
-                echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
119
-                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
118
+                echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
119
+                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
120 120
                 echo _AM_EXTCAL_INFO_SEND_NOTIF;
121 121
                 echo '</fieldset><br>';
122 122
                 $form = new \XoopsThemeForm(_AM_EXTCAL_SEND_NOTIFICATION, 'mailusers', 'index.php?op=notification&amp;fct=send', 'post', true);
@@ -146,13 +146,13 @@  discard block
 block discarded – undo
146 146
         //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
147 147
         $adminObject = \Xmf\Module\Admin::getInstance();
148 148
         $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD);
149
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount()), '', 'Green');
150
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 1))), '', 'Green');
151
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 0))), '', 'Red');
149
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount()), '', 'Green');
150
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 1))), '', 'Green');
151
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 0))), '', 'Red');
152 152
         $criteriaCompo = new \CriteriaCompo();
153 153
         $criteriaCompo->add(new \Criteria('event_approved', 1));
154 154
         $criteriaCompo->add(new \Criteria('event_start', time(), '>='));
155
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>'), '', 'Green');
155
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>'), '', 'Green');
156 156
 
157 157
         $adminObject->addConfigBoxLine();
158 158
         $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
@@ -169,42 +169,42 @@  discard block
 block discarded – undo
169 169
         $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), ['cat_id']);
170 170
         $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
171 171
 
172
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
173
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
172
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
173
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
174 174
         //        echo '<img src="../assets/images/icons/on.png" >&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
175
-        echo '<img src=' . $pathIcon16 . '/edit.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>';
176
-        echo '<img src=' . $pathIcon16 . '/delete.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>';
175
+        echo '<img src='.$pathIcon16.'/edit.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>';
176
+        echo '<img src='.$pathIcon16.'/delete.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>';
177 177
         echo '</fieldset><br>';
178 178
 
179 179
         echo '<table class="outer" style="width:100%;">';
180 180
         echo '<tr style="text-align:center;">';
181
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
182
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
183
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
184
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
181
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
182
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
183
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
184
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
185 185
         echo '</tr>';
186 186
 
187 187
         if (count($pendingEvent) > 0) {
188 188
             $i = 0;
189 189
             foreach ($pendingEvent as $event) {
190 190
                 $class = (0 == ++$i % 2) ? 'even' : 'odd';
191
-                echo '<tr style="text-align:center;" class="' . $class . '">';
192
-                echo '<td>' . $event['Category']['cat_name'] . '</td>';
193
-                echo '<td>' . $event['event_title'] . '</td>';
194
-                echo '<td>' . $event['formated_event_start'] . '</td>';
191
+                echo '<tr style="text-align:center;" class="'.$class.'">';
192
+                echo '<td>'.$event['Category']['cat_name'].'</td>';
193
+                echo '<td>'.$event['event_title'].'</td>';
194
+                echo '<td>'.$event['formated_event_start'].'</td>';
195 195
                 echo '<td style="width:10%; text-align:center;">';
196
-                echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a>&nbsp;&nbsp;';
197
-                echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>';
196
+                echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png></a>&nbsp;&nbsp;';
197
+                echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png></a>';
198 198
                 echo '</td>';
199 199
                 echo '</tr>';
200 200
             }
201 201
         } else {
202
-            echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
202
+            echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
203 203
         }
204 204
 
205 205
         echo '</table></fieldset><br>';
206 206
 
207
-        require_once __DIR__ . '/admin_footer.php';
207
+        require_once __DIR__.'/admin_footer.php';
208 208
 
209 209
         break;
210 210
 }
Please login to merge, or discard this patch.
admin/event.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 /** @var Extcal\Helper $helper */
22 22
 $helper = Extcal\Helper::getInstance();
23 23
 
24
-require_once __DIR__ . '/../../../include/cp_header.php';
25
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
26
-require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
24
+require_once __DIR__.'/../../../include/cp_header.php';
25
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
26
+require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
27 27
 // require_once __DIR__ . '/../class/form/extcalform.php';
28
-require_once __DIR__ . '/admin_header.php';
28
+require_once __DIR__.'/admin_header.php';
29 29
 // require_once __DIR__ . '/../class/Utility.php';
30 30
 
31 31
 $gepeto = array_merge($_GET, $_POST);
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
     //    while (list($k, $t) = each($rst)) {
55 55
     foreach ($rst as $k => $t) {
56 56
         if ('' != $t['event_picture1']) {
57
-            $f = XOOPS_ROOT_PATH . '/uploads/extcal/' . $t['event_picture1'];
57
+            $f = XOOPS_ROOT_PATH.'/uploads/extcal/'.$t['event_picture1'];
58 58
             unlink($f);
59
-            echo $f . '<br>';
59
+            echo $f.'<br>';
60 60
         }
61 61
 
62 62
         if ('' != $t['event_picture2']) {
63
-            $f = XOOPS_ROOT_PATH . '/uploads/extcal/' . $t['event_picture1'];
63
+            $f = XOOPS_ROOT_PATH.'/uploads/extcal/'.$t['event_picture1'];
64 64
             unlink($f);
65
-            echo $f . '<br>';
65
+            echo $f.'<br>';
66 66
         }
67 67
     }
68 68
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             if (!$eventHandler->modifyEvent($_POST['event_id'], $data)) {
125 125
                 redirect_header('event.php', 3, _AM_EXTCAL_EVENT_EDIT_FAILED, false);
126 126
             } else {
127
-                $fileHandler->createFile((int)$_POST['event_id']);
127
+                $fileHandler->createFile((int) $_POST['event_id']);
128 128
                 redirect_header('event.php', 3, _AM_EXTCAL_EVENT_EDITED, false);
129 129
             }
130 130
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $eventId      = $_GET['event_id'];
197 197
         $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
198 198
 
199
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _MD_EXTCAL_EDIT_EVENT . '</legend>';
199
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._MD_EXTCAL_EDIT_EVENT.'</legend>';
200 200
 
201 201
         if ($form = $eventHandler->getEventForm('admin', $action, ['event_id' => $eventId])) {
202 202
             $form->display();
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
             $data[$key] = $val['value'];
222 222
         }
223 223
 
224
-        $data['event_id']    = 0;
225
-        $data['event_title'] .= ' (' . _AM_EXTCAL_CLONE_OF . $eventId . ')';
224
+        $data['event_id'] = 0;
225
+        $data['event_title'] .= ' ('._AM_EXTCAL_CLONE_OF.$eventId.')';
226 226
 
227 227
         $newEvent = $eventHandler->create();
228 228
         $newEvent->setVars($data);
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 
239 239
         if (isset($_POST['confirm'])) {
240 240
             if (!$GLOBALS['xoopsSecurity']->check()) {
241
-                redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
241
+                redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
242 242
             }
243 243
             //             $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
244 244
             //             $eventHandler->deleteEvent($_POST['event_id']);
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         if (isset($_POST['deleteSelection'][0])) {
304 304
         } else {
305 305
             if (!$GLOBALS['xoopsSecurity']->check()) {
306
-                redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
306
+                redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
307 307
             }
308 308
 
309 309
             deleteEvents($_POST['event_ids']);
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     default:
318 318
 
319 319
         //global $extcalConfig;
320
-        $extcalConfig      = Extcal\Config::getHandler();
320
+        $extcalConfig = Extcal\Config::getHandler();
321 321
 
322 322
         $start          = \Xmf\Request::getInt('start', 0, 'GET');
323 323
         $nbEventsByPage = $helper->getConfig('nbEventsByPage');
@@ -334,32 +334,32 @@  discard block
 block discarded – undo
334 334
         $events       = $eventHandler->objectToArray($eventHandler->getNewEvent($start, $nbEventsByPage, 0, true), ['cat_id']);
335 335
         $eventHandler->formatEventsDate($events, _SHORTDATESTRING);
336 336
 
337
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
338
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
337
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
338
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
339 339
         //echo'<img src='. XOOPS_URL .'/'. $moduleInfo->getInfo('dirmoduleadmin').'/assets/images/action/edit.png' .' '.'style=vertical-align:middle;>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT . '<br>';
340 340
         //echo'<img src='. XOOPS_URL .'/'. $moduleInfo->getInfo('dirmoduleadmin').'/assets/images/action/delete.png'. ' '."style=vertical-align:middle;>&nbsp;&nbsp;". _AM_EXTCAL_INFO_DELETE;
341 341
 
342
-        echo '<img src=' . $pathIcon16 . '/edit.png' . ' ' . 'style=vertical-align:middle;>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT . '<br>';
343
-        echo '<img src=' . $pathIcon16 . '/delete.png' . ' ' . 'style=vertical-align:middle;>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE . '<br>';
342
+        echo '<img src='.$pathIcon16.'/edit.png'.' '.'style=vertical-align:middle;>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT.'<br>';
343
+        echo '<img src='.$pathIcon16.'/delete.png'.' '.'style=vertical-align:middle;>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE.'<br>';
344 344
 
345 345
         echo '</fieldset><br>';
346 346
 
347
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _MD_EXTCAL_SUBMITED_EVENT . '</legend>';
347
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._MD_EXTCAL_SUBMITED_EVENT.'</legend>';
348 348
 
349 349
         echo '<form method="POST" action="event.php">';
350 350
         echo '<input type="hidden" name="op" value="deleteSelection">';
351 351
 
352 352
         echo '<table class="outer" style="width:100%;">';
353 353
         echo '<tr style="text-align:center;">';
354
-        echo '<th>' . _AM_EXTCAL_DELETE . '</th>';
354
+        echo '<th>'._AM_EXTCAL_DELETE.'</th>';
355 355
         echo '<th>#</th>';
356
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
357
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
358
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
359
-        echo '<th>' . _AM_EXTCAL_END_DATE . '</th>';
360
-        echo '<th>' . _AM_EXTCAL_RECURRENT . '</th>';
361
-        echo '<th>' . _AM_EXTCAL_START_RULES . '</th>';
362
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
356
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
357
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
358
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
359
+        echo '<th>'._AM_EXTCAL_END_DATE.'</th>';
360
+        echo '<th>'._AM_EXTCAL_RECURRENT.'</th>';
361
+        echo '<th>'._AM_EXTCAL_START_RULES.'</th>';
362
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
363 363
 
364 364
         echo '</tr>';
365 365
 
@@ -367,15 +367,15 @@  discard block
 block discarded – undo
367 367
             $i = 0;
368 368
             foreach ($events as $event) {
369 369
                 $class = (0 == ++$i % 2) ? 'even' : 'odd';
370
-                echo '<tr style="text-align:left;" class="' . $class . '">';
370
+                echo '<tr style="text-align:left;" class="'.$class.'">';
371 371
                 echo "<td width='10%' align='center'>";
372 372
                 echo "<input type='checkbox' name='deleteEvents[{$event['event_id']}]' value='1' >";
373 373
                 echo "<input type='hidden' name='deleteAllEvents[{$event['event_id']}]' value='1'>";
374 374
                 echo '</td>';
375
-                echo "<td align = 'center' width='5%'>" . $event['event_id'] . '</td>';
376
-                echo "<td  width='10%'>" . '<a href=cat.php?op=modify&amp;cat_id=' . $event['Category']['cat_id'] . '&form_modify' . '>' . $event['Category']['cat_name'] . '</a>' . '</td>';
375
+                echo "<td align = 'center' width='5%'>".$event['event_id'].'</td>';
376
+                echo "<td  width='10%'>".'<a href=cat.php?op=modify&amp;cat_id='.$event['Category']['cat_id'].'&form_modify'.'>'.$event['Category']['cat_name'].'</a>'.'</td>';
377 377
 
378
-                echo '<td>' . '<a href=event.php?op=modify&amp;event_id=' . $event['event_id'] . '>' . $event['event_title'] . '</a>' . '</td>';
378
+                echo '<td>'.'<a href=event.php?op=modify&amp;event_id='.$event['event_id'].'>'.$event['event_title'].'</a>'.'</td>';
379 379
 
380 380
                 //                 if ($event['event_isrecur']) {
381 381
                 //                     echo '<td>' . $event['formated_reccur_rule'] . '</td>';
@@ -383,18 +383,18 @@  discard block
 block discarded – undo
383 383
                 //                     echo '<td>' . $event['formated_event_start'] . '</td>';
384 384
                 //                 }
385 385
 
386
-                echo "<td align = 'center' width='10%'>" . $event['formated_event_start'] . '</td>';
387
-                echo "<td align = 'center' width='10%'>" . $event['formated_event_end'] . '</td>';
388
-                echo '<td align="center">' . ((1 == $event['event_isrecur']) ? _YES : _NO) . '</td>';
386
+                echo "<td align = 'center' width='10%'>".$event['formated_event_start'].'</td>';
387
+                echo "<td align = 'center' width='10%'>".$event['formated_event_end'].'</td>';
388
+                echo '<td align="center">'.((1 == $event['event_isrecur']) ? _YES : _NO).'</td>';
389 389
                 if (!isset($event['formated_reccur_rule'])) {
390 390
                     $event['formated_reccur_rule'] = '';
391 391
                 }
392
-                echo '<td>' . $event['formated_reccur_rule'] . '</td>';
392
+                echo '<td>'.$event['formated_reccur_rule'].'</td>';
393 393
 
394 394
                 echo '<td style="width:10%; text-align:center;">';
395
-                echo '<a href=event.php?op=modify&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/edit.png' title='" . _AM_EXTCAL_ICONE_EDIT . "'></a>&nbsp;&nbsp;";
396
-                echo '<a href=event.php?op=delete&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/delete.png' title='" . _AM_EXTCAL_ICONE_DELETE . "'></a>&nbsp;&nbsp;";
397
-                echo '<a href=event.php?op=clone&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/editcopy.png' title='" . _AM_EXTCAL_ICONE_CLONE . "'></a>";
395
+                echo '<a href=event.php?op=modify&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/edit.png' title='"._AM_EXTCAL_ICONE_EDIT."'></a>&nbsp;&nbsp;";
396
+                echo '<a href=event.php?op=delete&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/delete.png' title='"._AM_EXTCAL_ICONE_DELETE."'></a>&nbsp;&nbsp;";
397
+                echo '<a href=event.php?op=clone&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/editcopy.png' title='"._AM_EXTCAL_ICONE_CLONE."'></a>";
398 398
                 echo '</td>';
399 399
 
400 400
                 echo '</tr>';
@@ -408,13 +408,13 @@  discard block
 block discarded – undo
408 408
 
409 409
             echo '<td colspan="2" style="text-align: right;">';
410 410
 
411
-            echo '<input type="submit" value="' . _AM_EXTCAL_DELETE_ALL . '" name="deleteSelection[0]">';
412
-            echo '<input type="submit" value="' . _AM_EXTCAL_DELETE_SELECTION . '" name="deleteSelection[1]">';
411
+            echo '<input type="submit" value="'._AM_EXTCAL_DELETE_ALL.'" name="deleteSelection[0]">';
412
+            echo '<input type="submit" value="'._AM_EXTCAL_DELETE_SELECTION.'" name="deleteSelection[1]">';
413 413
 
414 414
             echo '</td>';
415 415
             echo '</tr>';
416 416
         } else {
417
-            echo '<tr><td colspan="5">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
417
+            echo '<tr><td colspan="5">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
418 418
         }
419 419
         echo '</table>';
420 420
         echo '</form>';
@@ -422,14 +422,14 @@  discard block
 block discarded – undo
422 422
         echo '</fieldset>';
423 423
         echo '</fieldset><br><br>';
424 424
         //Fin de la liste des evennement -------------------------------------
425
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _MD_EXTCAL_SUBMIT_EVENT . '</legend>';
425
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._MD_EXTCAL_SUBMIT_EVENT.'</legend>';
426 426
 
427 427
         $form = $eventHandler->getEventForm('admin');
428 428
         $form->display();
429 429
 
430 430
         echo '</fieldset>';
431 431
 
432
-        require_once __DIR__ . '/admin_footer.php';
432
+        require_once __DIR__.'/admin_footer.php';
433 433
 
434 434
         break;
435 435
 }
Please login to merge, or discard this patch.
print.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@  discard block
 block discarded – undo
21 21
 /** @var Extcal\Helper $helper */
22 22
 $helper = Extcal\Helper::getInstance();
23 23
 
24
-include __DIR__ . '/../../mainfile.php';
25
-require_once __DIR__ . '/include/constantes.php';
24
+include __DIR__.'/../../mainfile.php';
25
+require_once __DIR__.'/include/constantes.php';
26 26
 
27
-require_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php';
27
+require_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php';
28 28
 
29 29
 if (!isset($_GET['event'])) {
30 30
     $eventId = 0;
31 31
 } else {
32
-    $eventId = (int)$_GET['event'];
32
+    $eventId = (int) $_GET['event'];
33 33
 }
34 34
 $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
35 35
 $event        = $eventHandler->objectToArray($eventHandler->getEvent($eventId), ['cat_id']);
@@ -44,136 +44,136 @@  discard block
 block discarded – undo
44 44
 // Adding formated date for start and end event
45 45
 $eventHandler->formatEventDate($event, $helper->getConfig('event_date_event'));
46 46
 
47
-echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
48
-echo '<html xmlns="http://www.w3.org/1999/xhtml">' . "\n";
49
-echo '<head>' . "\n";
50
-echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '">' . "\n";
51
-echo '<title>' . $event['cat']['cat_name'] . ' - ' . $event['event_title'] . '</title>' . "\n";
52
-echo '</head>' . "\n";
53
-echo '<body onload="window.print()">' . "\n";
54
-echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">' . "\n";
55
-echo '<tr>' . "\n";
56
-echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">' . "\n";
57
-echo $event['event_title'] . "\n";
58
-echo '</td>' . "\n";
59
-echo '</tr>' . "\n";
60
-echo '<tr>' . "\n";
61
-echo '<td style="width:50%; border:1px solid black;">' . "\n";
62
-echo '<b>' . $event['cat']['cat_name'] . '</b><br>' . "\n";
63
-echo '<span style="font-weight:normal;">' . $event['cat']['cat_desc'] . '</span>' . "\n";
64
-echo '</td>' . "\n";
65
-echo '<td style="border:1px solid black;">' . "\n";
47
+echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
48
+echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
49
+echo '<head>'."\n";
50
+echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'">'."\n";
51
+echo '<title>'.$event['cat']['cat_name'].' - '.$event['event_title'].'</title>'."\n";
52
+echo '</head>'."\n";
53
+echo '<body onload="window.print()">'."\n";
54
+echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">'."\n";
55
+echo '<tr>'."\n";
56
+echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">'."\n";
57
+echo $event['event_title']."\n";
58
+echo '</td>'."\n";
59
+echo '</tr>'."\n";
60
+echo '<tr>'."\n";
61
+echo '<td style="width:50%; border:1px solid black;">'."\n";
62
+echo '<b>'.$event['cat']['cat_name'].'</b><br>'."\n";
63
+echo '<span style="font-weight:normal;">'.$event['cat']['cat_desc'].'</span>'."\n";
64
+echo '</td>'."\n";
65
+echo '<td style="border:1px solid black;">'."\n";
66 66
 if (!$event['event_isrecur']) {
67
-    echo '<b>' . _MD_EXTCAL_START . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_start'] . '</span><br>' . "\n";
68
-    echo '<b>' . _MD_EXTCAL_END . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_end'] . '</span>' . "\n";
67
+    echo '<b>'._MD_EXTCAL_START.' :</b> <span style="font-weight:normal;">'.$event['formated_event_start'].'</span><br>'."\n";
68
+    echo '<b>'._MD_EXTCAL_END.' :</b> <span style="font-weight:normal;">'.$event['formated_event_end'].'</span>'."\n";
69 69
 } else {
70
-    echo '<b>' . _MD_EXTCAL_RECCUR_RULE . ' :</b> <span style="font-weight:normal;">' . $event['formated_reccur_rule'] . '</span>' . "\n";
70
+    echo '<b>'._MD_EXTCAL_RECCUR_RULE.' :</b> <span style="font-weight:normal;">'.$event['formated_reccur_rule'].'</span>'."\n";
71 71
 }
72
-echo '</td>' . "\n";
73
-echo '</tr>' . "\n";
72
+echo '</td>'."\n";
73
+echo '</tr>'."\n";
74 74
 
75
-echo '<tr>' . "\n";
75
+echo '<tr>'."\n";
76 76
 if ('' != $event['event_desc']) {
77
-    echo '<td style="border:1px solid black;">' . $event['event_desc'] . '</td>' . "\n";
77
+    echo '<td style="border:1px solid black;">'.$event['event_desc'].'</td>'."\n";
78 78
 }
79 79
 if ('' != $event['event_price']) {
80
-    echo '<td style="border:1px solid black;">' . _MD_EXTCAL_ETABLISSEMENT_PRICE . $event['event_price'] . ' ' . _MD_EXTCAL_DEVISE2 . '</td>' . "\n";
80
+    echo '<td style="border:1px solid black;">'._MD_EXTCAL_ETABLISSEMENT_PRICE.$event['event_price'].' '._MD_EXTCAL_DEVISE2.'</td>'."\n";
81 81
 }
82
-echo '</tr>' . "\n";
82
+echo '</tr>'."\n";
83 83
 
84 84
 //show contact info
85 85
 if ('' != $event['event_contact']) {
86
-    echo '<tr>' . "\n";
87
-    echo '<td style="border:1px solid black;">' . "\n";
88
-    echo '<b>' . _MD_EXTCAL_CONTACT_INFO . '</b><br>' . "\n";
89
-    echo '<span style="font-weight:normal;">' . $event['event_organisateur'] . '<br>' . "\n";
90
-    echo '<span style="font-weight:normal;">' . $event['event_contact'] . '<br>' . "\n";
91
-    echo $event['event_address'] . '</span>' . "\n";
92
-    echo '</td>' . "\n";
93
-    echo '<td style="border:1px solid black;">' . "\n";
94
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $event['event_email'] . '">' . $event['event_email'] . '</a><br>' . "\n";
95
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $event['event_url'] . '">' . $event['event_url'] . '</a>' . "\n";
96
-    echo '</td>' . "\n";
97
-    echo '</tr>' . "\n";
86
+    echo '<tr>'."\n";
87
+    echo '<td style="border:1px solid black;">'."\n";
88
+    echo '<b>'._MD_EXTCAL_CONTACT_INFO.'</b><br>'."\n";
89
+    echo '<span style="font-weight:normal;">'.$event['event_organisateur'].'<br>'."\n";
90
+    echo '<span style="font-weight:normal;">'.$event['event_contact'].'<br>'."\n";
91
+    echo $event['event_address'].'</span>'."\n";
92
+    echo '</td>'."\n";
93
+    echo '<td style="border:1px solid black;">'."\n";
94
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$event['event_email'].'">'.$event['event_email'].'</a><br>'."\n";
95
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$event['event_url'].'">'.$event['event_url'].'</a>'."\n";
96
+    echo '</td>'."\n";
97
+    echo '</tr>'."\n";
98 98
 }
99 99
 
100 100
 //show location
101 101
 if ($event['event_etablissement'] = 0) {
102
-    echo '<tr>' . "\n";
102
+    echo '<tr>'."\n";
103 103
 
104 104
     //    echo($location['nom']);
105 105
     //    var_dump($location);
106 106
     //    var_dump($event);
107 107
 
108
-    echo '<td style="border:1px solid black;">' . "\n";
109
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT . '</b>' . "\n";
108
+    echo '<td style="border:1px solid black;">'."\n";
109
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT.'</b>'."\n";
110 110
     if ('' != $location['categorie']) {
111
-        echo '<span style="font-weight:normal;"> (' . $location['categorie'] . ') <br>' . "\n";
111
+        echo '<span style="font-weight:normal;"> ('.$location['categorie'].') <br>'."\n";
112 112
     }
113 113
     if ('' != $location['logo']) {
114
-        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/etablissement/' . $location['logo'] . ' height="75px">' . '' . "\n";
114
+        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/etablissement/'.$location['logo'].' height="75px">'.''."\n";
115 115
     }
116 116
 
117
-    echo '<span style="font-weight:normal;">' . $location['nom'] . '<br>' . "\n";
118
-    echo $location['description'] . '<br>' . "\n";
119
-    echo $location['adresse'] . '</span> <br>' . "\n";
117
+    echo '<span style="font-weight:normal;">'.$location['nom'].'<br>'."\n";
118
+    echo $location['description'].'<br>'."\n";
119
+    echo $location['adresse'].'</span> <br>'."\n";
120 120
     if ('' != $location['adresse2']) {
121
-        echo $location['adresse2'] . '</span> <br>' . "\n";
121
+        echo $location['adresse2'].'</span> <br>'."\n";
122 122
     }
123
-    echo $location['ville'] . "\n";
124
-    echo $location['cp'] . '<br>' . "\n";
123
+    echo $location['ville']."\n";
124
+    echo $location['cp'].'<br>'."\n";
125 125
 
126 126
     if ('' != $location['horaires']) {
127
-        echo $location['horaires'] . '</span> <br>' . "\n";
127
+        echo $location['horaires'].'</span> <br>'."\n";
128 128
     }
129 129
 
130 130
     if ('' != $location['divers']) {
131
-        echo $location['divers'] . '</span> <br>' . "\n";
131
+        echo $location['divers'].'</span> <br>'."\n";
132 132
     }
133 133
 
134 134
     if ('' != $location['tarifs']) {
135
-        echo $location['tarifs'] . '</span> ' . _MD_EXTCAL_DEVISE2 . "\n";
135
+        echo $location['tarifs'].'</span> '._MD_EXTCAL_DEVISE2."\n";
136 136
     }
137 137
 
138
-    echo '</td>' . "\n";
139
-    echo '<td style="border:1px solid black;">' . "\n";
138
+    echo '</td>'."\n";
139
+    echo '<td style="border:1px solid black;">'."\n";
140 140
 
141 141
     if ('' != $location['tel_fixe']) {
142
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_FIXE . ' :</b>' . $location['tel_fixe'] . '<br>' . "\n";
142
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_FIXE.' :</b>'.$location['tel_fixe'].'<br>'."\n";
143 143
     }
144 144
     if ('' != $location['tel_portable']) {
145
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE . ' :</b>' . $location['tel_portable'] . '<br>' . "\n";
145
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE.' :</b>'.$location['tel_portable'].'<br>'."\n";
146 146
     }
147 147
 
148
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $location['mail'] . '">' . $location['mail'] . '</a><br>' . "\n";
149
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $location['site'] . '">' . $location['site'] . '</a>' . '<br>' . "\n";
150
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_MAP . ' :</b> <a href="' . $location['map'] . '">' . _MD_EXTCAL_ETABLISSEMENT_MAP2 . '</a>' . "\n";
148
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$location['mail'].'">'.$location['mail'].'</a><br>'."\n";
149
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$location['site'].'">'.$location['site'].'</a>'.'<br>'."\n";
150
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT_MAP.' :</b> <a href="'.$location['map'].'">'._MD_EXTCAL_ETABLISSEMENT_MAP2.'</a>'."\n";
151 151
 
152
-    echo '</td>' . "\n";
153
-    echo '</tr>' . "\n";
152
+    echo '</td>'."\n";
153
+    echo '</tr>'."\n";
154 154
 }
155 155
 //show images
156 156
 
157 157
 if (('' != $event['event_picture1']) || ('' != $event['event_picture2'])) {
158
-    echo '<tr>' . "\n";
158
+    echo '<tr>'."\n";
159 159
     if ('' != $event['event_picture1']) {
160
-        echo '<td style="border:1px solid black;">' . "\n";
161
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture1'] . ' height="100px">' . '' . "\n";
162
-        echo '</td>' . "\n";
160
+        echo '<td style="border:1px solid black;">'."\n";
161
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture1'].' height="100px">'.''."\n";
162
+        echo '</td>'."\n";
163 163
     }
164 164
     if ('' != $event['event_picture2']) {
165
-        echo '<td style="border:1px solid black;">' . "\n";
166
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture2'] . ' height="100px">' . '' . "\n";
167
-        echo '</td>' . "\n";
165
+        echo '<td style="border:1px solid black;">'."\n";
166
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture2'].' height="100px">'.''."\n";
167
+        echo '</td>'."\n";
168 168
     }
169
-    echo '</tr>' . "\n";
169
+    echo '</tr>'."\n";
170 170
 }
171 171
 //--------------------
172 172
 
173
-echo '</table><br>' . "\n";
173
+echo '</table><br>'."\n";
174 174
 echo '<div style="text-align:center; width:640px;">';
175
-echo $xoopsConfig['sitename'] . ' - ' . $xoopsConfig['slogan'] . '<br>';
176
-echo '<a href="' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '">' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '</a>';
175
+echo $xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'].'<br>';
176
+echo '<a href="'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'">'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'</a>';
177 177
 echo '</div>';
178
-echo '</body>' . "\n";
179
-echo '</html>' . "\n";
178
+echo '</body>'."\n";
179
+echo '</html>'."\n";
Please login to merge, or discard this patch.
rss.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-include __DIR__ . '/../../mainfile.php';
8
-require_once __DIR__ . '/include/constantes.php';
9
-require_once __DIR__ . '/header.php';
7
+include __DIR__.'/../../mainfile.php';
8
+require_once __DIR__.'/include/constantes.php';
9
+require_once __DIR__.'/header.php';
10 10
 
11
-require_once XOOPS_ROOT_PATH . '/class/template.php';
11
+require_once XOOPS_ROOT_PATH.'/class/template.php';
12 12
 /** @var Extcal\EventHandler $eventHandler */
13 13
 $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
14 14
 if (!isset($_GET['cat'])) {
15 15
     $cat = 0;
16 16
 } else {
17
-    $cat = (int)$_GET['cat'];
17
+    $cat = (int) $_GET['cat'];
18 18
 }
19 19
 if (function_exists('mb_http_output')) {
20 20
     mb_http_output('pass');
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     $events = $eventHandler->getUpcommingEvent($helper->getConfig('rss_nb_event'), $cat);
28 28
     if (is_array($events)) {
29 29
         $tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)));
30
-        $tpl->assign('channel_link', XOOPS_URL . '/');
30
+        $tpl->assign('channel_link', XOOPS_URL.'/');
31 31
         $tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
32 32
         $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
33 33
         $tpl->assign('channel_webmaster', $xoopsConfig['adminmail']);
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
         $tpl->assign('channel_category', 'Event');
36 36
         $tpl->assign('channel_generator', 'XOOPS');
37 37
         $tpl->assign('channel_language', _LANGCODE);
38
-        $tpl->assign('image_url', XOOPS_URL . '/modules/extcal/assets/images/extcal_logo.png');
38
+        $tpl->assign('image_url', XOOPS_URL.'/modules/extcal/assets/images/extcal_logo.png');
39 39
         $tpl->assign('image_width', 92);
40 40
         $tpl->assign('image_height', 52);
41 41
         foreach ($events as $event) {
42 42
             $tpl->append('items', [
43 43
                 'title'       => xoops_utf8_encode(htmlspecialchars($event->getVar('event_title'), ENT_QUOTES)),
44
-                'link'        => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
45
-                'guid'        => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
44
+                'link'        => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
45
+                'guid'        => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
46 46
                 'pubdate'     => formatTimestamp($event->getVar('event_start'), 'rss'),
47 47
                 'description' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_desc'), ENT_QUOTES)),
48 48
             ]);
Please login to merge, or discard this patch.
view_search.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-include __DIR__ . '/../../mainfile.php';
8
-require_once __DIR__ . '/include/constantes.php';
9
-$params                                  = [
7
+include __DIR__.'/../../mainfile.php';
8
+require_once __DIR__.'/include/constantes.php';
9
+$params = [
10 10
     'view' => _EXTCAL_NAV_SEARCH,
11 11
     'file' => _EXTCAL_FILE_SEARCH,
12 12
 ];
13 13
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
14
-require_once __DIR__ . '/header.php';
14
+require_once __DIR__.'/header.php';
15 15
 
16 16
 $recurEventsArray = [];
17 17
 //needed to save the state of the form, so we don't show on the first time the list of available events
@@ -239,4 +239,4 @@  discard block
 block discarded – undo
239 239
 $xoopsTpl->assign('lang', $lang);
240 240
 $xoopsTpl->assign('view', 'search');
241 241
 
242
-include XOOPS_ROOT_PATH . '/footer.php';
242
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_agenda-day.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-include __DIR__ . '/../../mainfile.php';
8
-require_once __DIR__ . '/include/constantes.php';
7
+include __DIR__.'/../../mainfile.php';
8
+require_once __DIR__.'/include/constantes.php';
9 9
 $params                                  = ['view' => _EXTCAL_NAV_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY];
10 10
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
11
-require_once __DIR__ . '/header.php';
11
+require_once __DIR__.'/header.php';
12 12
 
13 13
 /* ========================================================================== */
14 14
 //recupe des variables get
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     'nbJours'      => $nbJours,
49 49
     'externalKeys' => 'cat_id',
50 50
 ];
51
-$events   = $eventHandler->getEventsOnPeriode($criteres);
51
+$events = $eventHandler->getEventsOnPeriode($criteres);
52 52
 /**********************************************************************/
53 53
 $eventsArray = $events;
54 54
 $startDay    = mktime(0, 0, 0, $month, $day, $year);
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 
104 104
 $navig = [
105 105
     'prev' => [
106
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&amp;month=' . $pDayCalObj->thisMonth() . '&amp;day=' . $pDayCalObj->thisDay(),
106
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&amp;month='.$pDayCalObj->thisMonth().'&amp;day='.$pDayCalObj->thisDay(),
107 107
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $pDayCalObj->getTimestamp()),
108 108
     ],
109 109
     'this' => [
110
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&amp;month=' . $dayCalObj->thisMonth() . '&amp;day=' . $dayCalObj->thisDay(),
110
+        'uri'  => 'year='.$dayCalObj->thisYear().'&amp;month='.$dayCalObj->thisMonth().'&amp;day='.$dayCalObj->thisDay(),
111 111
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $dayCalObj->getTimestamp()),
112 112
     ],
113 113
     'next' => [
114
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&amp;month=' . $nDayCalObj->thisMonth() . '&amp;day=' . $nDayCalObj->thisDay(),
114
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&amp;month='.$nDayCalObj->thisMonth().'&amp;day='.$nDayCalObj->thisDay(),
115 115
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $nDayCalObj->getTimestamp()),
116 116
     ],
117 117
 ];
118 118
 
119 119
 // Title of the page
120
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
120
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
121 121
 
122 122
 // Assigning navig data to the template
123 123
 $xoopsTpl->assign('navig', $navig);
@@ -158,4 +158,4 @@  discard block
 block discarded – undo
158 158
 $xoopsTpl->assign('lang', $lang);
159 159
 $xoopsTpl->assign('view', 'agendaday');
160 160
 
161
-include XOOPS_ROOT_PATH . '/footer.php';
161
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_calendar-week.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 /** @var Extcal\Helper $helper */
5 5
 $helper = Extcal\Helper::getInstance();
6 6
 
7
-include __DIR__ . '/../../mainfile.php';
8
-require_once __DIR__ . '/include/constantes.php';
7
+include __DIR__.'/../../mainfile.php';
8
+require_once __DIR__.'/include/constantes.php';
9 9
 $params                                  = ['view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK];
10 10
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
11
-require_once __DIR__ . '/header.php';
11
+require_once __DIR__.'/header.php';
12 12
 
13 13
 /* ========================================================================== */
14 14
 $year  = \Xmf\Request::getInt('year', date('Y'), 'GET');
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
22 22
 //$offset = date('w', $dayTS) - $helper->getConfig('week_start_day');
23 23
 $offset = date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') < 7 ? date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') : 0;
24
-$dayTS  -= ($offset * _EXTCAL_TS_DAY);
24
+$dayTS -= ($offset * _EXTCAL_TS_DAY);
25 25
 $year   = date('Y', $dayTS);
26 26
 $month  = date('n', $dayTS);
27 27
 $day    = date('j', $dayTS);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     'cat'          => $cat,
52 52
     'externalKeys' => 'cat_id',
53 53
 ];
54
-$events   = $eventHandler->getEventsOnPeriode($criteres);
54
+$events = $eventHandler->getEventsOnPeriode($criteres);
55 55
 /**********************************************************************/
56 56
 //$eventsArray = $events;
57 57
 
@@ -140,21 +140,21 @@  discard block
 block discarded – undo
140 140
 // Making navig data
141 141
 $navig = [
142 142
     'prev' => [
143
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
143
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
144 144
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $pWeekCalObj->getTimestamp()),
145 145
     ],
146 146
     'this' => [
147
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
147
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
148 148
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $weekCalObj->getTimestamp()),
149 149
     ],
150 150
     'next' => [
151
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
151
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
152 152
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $nWeekCalObj->getTimestamp()),
153 153
     ],
154 154
 ];
155 155
 
156 156
 // Title of the page
157
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
157
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
158 158
 
159 159
 // Assigning navig data to the template
160 160
 $xoopsTpl->assign('navig', $navig);
@@ -194,4 +194,4 @@  discard block
 block discarded – undo
194 194
 $xoopsTpl->assign('lang', $lang);
195 195
 $xoopsTpl->assign('view', 'calweek');
196 196
 
197
-include XOOPS_ROOT_PATH . '/footer.php';
197
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 
22 22
 // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined');
23 23
 
24
-include __DIR__ . '/preloads/autoloader.php';
24
+include __DIR__.'/preloads/autoloader.php';
25 25
 
26 26
 $moduleDirName = basename(__DIR__);
27 27
 
28
-require_once __DIR__ . '/include/constantes.php';
29
-require_once __DIR__ . '/include/agenda_fnc.php';
28
+require_once __DIR__.'/include/constantes.php';
29
+require_once __DIR__.'/include/agenda_fnc.php';
30 30
 //require_once __DIR__ . '/class/Config.php';
31 31
 //$loc_de = setlocale (LC_ALL, 'french');
32 32
 
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
 
100 100
 // Tables created by sql file (without prefix!)
101 101
 $modversion['tables'] = [
102
-    $moduleDirName . '_' . 'cat',
103
-    $moduleDirName . '_' . 'event',
104
-    $moduleDirName . '_' . 'eventmember',
105
-    $moduleDirName . '_' . 'eventnotmember',
106
-    $moduleDirName . '_' . 'file',
107
-    $moduleDirName . '_' . 'etablissement'
102
+    $moduleDirName.'_'.'cat',
103
+    $moduleDirName.'_'.'event',
104
+    $moduleDirName.'_'.'eventmember',
105
+    $moduleDirName.'_'.'eventnotmember',
106
+    $moduleDirName.'_'.'file',
107
+    $moduleDirName.'_'.'etablissement'
108 108
 ];
109 109
 
110 110
 // SQL
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 $modversion['config'][$i]['default']     = 5;
517 517
 
518 518
 ++$i;
519
-$modversion['config'][$i]['name']        = 'break' . $i;
519
+$modversion['config'][$i]['name']        = 'break'.$i;
520 520
 $modversion['config'][$i]['title']       = '_MI_EXTCAL_SHOW_OTHEROPTIONS';
521 521
 $modversion['config'][$i]['description'] = '';
522 522
 $modversion['config'][$i]['formtype']    = 'line_break';
Please login to merge, or discard this patch.