@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @version $Id$ |
27 | 27 | */ |
28 | 28 | |
29 | -include_once dirname(__DIR__) . '/include/common.php'; |
|
29 | +include_once dirname(__DIR__).'/include/common.php'; |
|
30 | 30 | |
31 | 31 | class PublisherPermissionHandler extends XoopsObjectHandler |
32 | 32 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | // Save the new permissions |
162 | 162 | if (count($groups) > 0) { |
163 | 163 | foreach ($groups as $group_id) { |
164 | - echo $group_id . "-"; |
|
164 | + echo $group_id."-"; |
|
165 | 165 | echo $gperm_handler->addRight($perm_name, $itemid, $group_id, $module_id); |
166 | 166 | } |
167 | 167 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @version $Id$ |
20 | 20 | */ |
21 | 21 | |
22 | -include_once dirname(__DIR__) . '/include/common.php'; |
|
22 | +include_once dirname(__DIR__).'/include/common.php'; |
|
23 | 23 | |
24 | 24 | class PublisherFormDateTime extends Xoops\Form\ElementTray |
25 | 25 | { |
@@ -37,16 +37,16 @@ discard block |
||
37 | 37 | $value = (int)($value); |
38 | 38 | $value = ($value > 0) ? $value : time(); |
39 | 39 | $datetime = getdate($value); |
40 | - $this->addElement(new Xoops\Form\DateSelect('', $name . '[date]', $value)); |
|
40 | + $this->addElement(new Xoops\Form\DateSelect('', $name.'[date]', $value)); |
|
41 | 41 | $timearray = array(); |
42 | 42 | for ($i = 0; $i < 24; ++$i) { |
43 | 43 | for ($j = 0; $j < 60; $j = $j + 10) { |
44 | 44 | $key = ($i * 3600) + ($j * 60); |
45 | - $timearray[$key] = ($j != 0) ? $i . ':' . $j : $i . ':0' . $j; |
|
45 | + $timearray[$key] = ($j != 0) ? $i.':'.$j : $i.':0'.$j; |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | ksort($timearray); |
49 | - $timeselect = new Xoops\Form\Select('', $name . '[time]', $datetime['hours'] * 3600 + 600 * floor($datetime['minutes'] / 10)); |
|
49 | + $timeselect = new Xoops\Form\Select('', $name.'[time]', $datetime['hours'] * 3600 + 600 * floor($datetime['minutes'] / 10)); |
|
50 | 50 | $timeselect->addOptionArray($timearray); |
51 | 51 | $this->addElement($timeselect); |
52 | 52 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @version $Id$ |
23 | 23 | */ |
24 | 24 | |
25 | -include_once __DIR__ . '/header.php'; |
|
25 | +include_once __DIR__.'/header.php'; |
|
26 | 26 | |
27 | 27 | $xoops = Xoops::getInstance(); |
28 | 28 | $publisher = Publisher::getInstance(); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $xoops->redirect(\XoopsBaseConfig::get('url'), 2, _MD_PUBLISHER_NO_TOP_PERMISSIONS); |
43 | 43 | } |
44 | 44 | |
45 | -$xoops->header('module:publisher/publisher_display' . '_' . $publisher->getConfig('idxcat_items_display_type') . '.tpl'); |
|
45 | +$xoops->header('module:publisher/publisher_display'.'_'.$publisher->getConfig('idxcat_items_display_type').'.tpl'); |
|
46 | 46 | $xoopsTpl = $xoops->tpl(); |
47 | 47 | XoopsLoad::loadFile($publisher->path('footer.php')); |
48 | 48 | |
@@ -193,16 +193,16 @@ discard block |
||
193 | 193 | // Category Navigation Bar |
194 | 194 | $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_cat_perpage'), $catstart, 'catstart', ''); |
195 | 195 | if ($publisher->getConfig('format_image_nav') == 1) { |
196 | - $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'); |
|
196 | + $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>'); |
|
197 | 197 | } else { |
198 | - $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); |
|
198 | + $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'); |
|
199 | 199 | } |
200 | 200 | // ITEM Navigation Bar |
201 | 201 | $pagenav = new XoopsPageNav($real_total_items, $publisher->getConfig('idxcat_index_perpage'), $start, 'start', ''); |
202 | 202 | if ($publisher->getConfig('format_image_nav') == 1) { |
203 | - $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'); |
|
203 | + $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>'); |
|
204 | 204 | } else { |
205 | - $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); |
|
205 | + $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'); |
|
206 | 206 | } |
207 | 207 | //show subcategories |
208 | 208 | $xoopsTpl->assign('show_subcats', $publisher->getConfig('idxcat_show_subcats')); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | // RSS Link |
218 | 218 | if ($publisher->getConfig('idxcat_show_rss_link') == 1) { |
219 | - $link = sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s'></a>", PUBLISHER_URL . "/backend.php", _MD_PUBLISHER_RSSFEED, PUBLISHER_URL . "/images/rss.gif", _MD_PUBLISHER_RSSFEED); |
|
219 | + $link = sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s'></a>", PUBLISHER_URL."/backend.php", _MD_PUBLISHER_RSSFEED, PUBLISHER_URL."/images/rss.gif", _MD_PUBLISHER_RSSFEED); |
|
220 | 220 | $xoopsTpl->assign('rssfeed_link', $link); |
221 | 221 | } |
222 | 222 |
@@ -19,8 +19,8 @@ |
||
19 | 19 | * @version $Id$ |
20 | 20 | */ |
21 | 21 | |
22 | -include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
23 | -include_once __DIR__ . '/include/common.php'; |
|
22 | +include_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
23 | +include_once __DIR__.'/include/common.php'; |
|
24 | 24 | $publisher = Publisher::getInstance(); |
25 | 25 | if ($publisher->getConfig('seo_url_rewrite') !== 'none') { |
26 | 26 | XoopsLoad::loadFile($publisher->path('include/seo.inc.php')); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * @author trabis <[email protected]> |
22 | 22 | * @version $Id$ |
23 | 23 | */ |
24 | -include __DIR__ . '/header.php'; |
|
24 | +include __DIR__.'/header.php'; |
|
25 | 25 | |
26 | 26 | // Get main instance |
27 | 27 | $xoops = \Xoops::getInstance(); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @version $Id$ |
21 | 21 | */ |
22 | 22 | |
23 | -include __DIR__ . '/header.php'; |
|
23 | +include __DIR__.'/header.php'; |
|
24 | 24 | $xoops = Xoops::getInstance(); |
25 | 25 | |
26 | 26 | // header |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @version $Id$ |
21 | 21 | */ |
22 | 22 | |
23 | -require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
23 | +require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | //Image support |
43 | 43 | if (XoopsLoad::fileExists($helper->path('icons/logo_small.png'))) { |
44 | 44 | $res['image'] = $helper->url('icons/logo_small.png'); |
45 | - $res['icon'] = "$dirName-icon" ; |
|
45 | + $res['icon'] = "$dirName-icon"; |
|
46 | 46 | } else { |
47 | 47 | //Icon support |
48 | 48 | $res['icon'] = isset($res['icon']) ? $res['icon'] : 'glyphicon-time'; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @author trabis <[email protected]> |
23 | 23 | * @version $Id$ |
24 | 24 | */ |
25 | -include __DIR__ . '/header.php'; |
|
25 | +include __DIR__.'/header.php'; |
|
26 | 26 | |
27 | 27 | // Get main instance |
28 | 28 | $xoops = Xoops::getInstance(); |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | case 'update': |
51 | 51 | $orders = Request::getArray('order'); |
52 | 52 | foreach ($orders as $id => $order) { |
53 | - $handler->updateOrder((int) $id, (int) $order); |
|
53 | + $handler->updateOrder((int)$id, (int)$order); |
|
54 | 54 | } |
55 | 55 | $statuses = Request::getArray('status'); |
56 | 56 | foreach ($statuses as $id => $status) { |
57 | - $handler->updateStatus((int) $id, (int) $status); |
|
57 | + $handler->updateStatus((int)$id, (int)$status); |
|
58 | 58 | } |
59 | 59 | $xoops->tpl()->assign('infoMsg', $xoops->alert('success', XoopsLocale::S_DATA_UPDATED)); |
60 | 60 | //No break; |
@@ -85,11 +85,11 @@ discard block |
||
85 | 85 | $plugin['plugin_listener_name'] = $xoops->getModuleByDirname($plugin['plugin_listener'])->getVar('name'); |
86 | 86 | |
87 | 87 | //Add order field |
88 | - $order = new \Xoops\Form\Text('', 'order[' . $plugin['plugin_id'] . ']', 2, 2, $plugin['plugin_order']); |
|
88 | + $order = new \Xoops\Form\Text('', 'order['.$plugin['plugin_id'].']', 2, 2, $plugin['plugin_order']); |
|
89 | 89 | $order->set('style', 'width:3em'); |
90 | 90 | $plugin['plugin_order_field'] = $order->render(); |
91 | 91 | //Add status field |
92 | - $status = new \Xoops\Form\RadioYesNo('', 'status[' . $plugin['plugin_id'] . ']', $plugin['plugin_status'], false); |
|
92 | + $status = new \Xoops\Form\RadioYesNo('', 'status['.$plugin['plugin_id'].']', $plugin['plugin_status'], false); |
|
93 | 93 | $plugin['plugin_status_field'] = $status->render(); |
94 | 94 | $plugins[] = $plugin; |
95 | 95 | } |