@@ -274,7 +274,7 @@ |
||
274 | 274 | define('_AM_SF_STATUS_EXP', "Status<span style='font-size: xx-small; font-weight: normal; display: block;'>Select the status of the Q&A.</span>"); |
275 | 275 | define('_AM_SF_SUBMISSIONSMNGMT', 'Submitted Q&A'); |
276 | 276 | define('_AM_SF_SPECIFIC_URL_SELECT', 'Specific URL...'); |
277 | -define('_AM_SF_SPECIFIC_URL', "Specific URL</span><span style='font-size: xx-small; font-weight: normal; display: block;'>If you have set the 'Contextually link to<br>this module' to <i>" . _AM_SF_SPECIFIC_URL_SELECT . "</i>, please<br>specify the URL.<br>\n<b>Example :</b> modules/newbb</span>"); |
|
277 | +define('_AM_SF_SPECIFIC_URL', "Specific URL</span><span style='font-size: xx-small; font-weight: normal; display: block;'>If you have set the 'Contextually link to<br>this module' to <i>"._AM_SF_SPECIFIC_URL_SELECT."</i>, please<br>specify the URL.<br>\n<b>Example :</b> modules/newbb</span>"); |
|
278 | 278 | define('_AM_SF_SUBMISSION_MODERATE', "Moderate this Q&A's submission"); |
279 | 279 | define('_AM_SF_SUBMITTED', 'Submitted'); |
280 | 280 | define('_AM_SF_SUBMITTED_EXP', '<b>Submitted Q&A</b> : Q&A that have been submitted by users. Once approved, they will be displayed in the Q&A section.'); |
@@ -385,7 +385,7 @@ |
||
385 | 385 | |
386 | 386 | //Help |
387 | 387 | define('_MI_SF_DIRNAME', basename(dirname(dirname(__DIR__)))); |
388 | -define('_MI_SF_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
388 | +define('_MI_SF_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
389 | 389 | define('_MI_SF_BACK_2_ADMIN', 'Back to Administration of '); |
390 | 390 | define('_MI_SF_OVERVIEW', 'Overview'); |
391 | 391 |
@@ -6,5 +6,5 @@ |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -include __DIR__ . '/../../mainfile.php'; |
|
10 | -require_once XOOPS_ROOT_PATH . '/include/comment_delete.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +require_once XOOPS_ROOT_PATH.'/include/comment_delete.php'; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | function smartfaq_search($queryarray, $andor, $limit, $offset, $userid) |
17 | 17 | { |
18 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
18 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
19 | 19 | |
20 | 20 | $ret = []; |
21 | 21 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | for ($i = 0, $iMax = count($faqsObj); $i < $iMax; ++$i) { |
27 | 27 | $ret[$i]['image'] = 'assets/images/smartfaq.gif'; |
28 | - $ret[$i]['link'] = 'faq.php?faqid=' . $faqsObj[$i]->faqid(); |
|
28 | + $ret[$i]['link'] = 'faq.php?faqid='.$faqsObj[$i]->faqid(); |
|
29 | 29 | $ret[$i]['title'] = $faqsObj[$i]->question(50); |
30 | 30 | $ret[$i]['time'] = $faqsObj[$i]->getVar('datesub'); |
31 | 31 | $ret[$i]['uid'] = $faqsObj[$i]->uid(); |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | |
24 | 24 | sf_collapsableBar('toptable', 'toptableicon'); |
25 | 25 | |
26 | -echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . $faqs_title . '</h3>'; |
|
26 | +echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> ".$faqs_title.'</h3>'; |
|
27 | 27 | echo "<div id='toptable'>"; |
28 | -echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . $faqs_info . '</span>'; |
|
28 | +echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.$faqs_info.'</span>'; |
|
29 | 29 | |
30 | 30 | // Get the total number of published FAQs |
31 | 31 | $totalfaqs = $faqHandler->getFaqsCount($sel_cat, [_SF_STATUS_PUBLISHED, _SF_STATUS_NEW_ANSWER]); |
@@ -36,22 +36,22 @@ discard block |
||
36 | 36 | $allCats = $categoryHandler->getObjects(null, true); |
37 | 37 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
38 | 38 | echo '<tr>'; |
39 | -echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>'; |
|
40 | -echo "<th width='20%' class='bg3' align='left'><b>" . _AM_SF_ARTCOLNAME . '</b></td>'; |
|
41 | -echo "<th class='bg3' align='left'><b>" . _AM_SF_QUESTION . '</b></td>'; |
|
39 | +echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>'; |
|
40 | +echo "<th width='20%' class='bg3' align='left'><b>"._AM_SF_ARTCOLNAME.'</b></td>'; |
|
41 | +echo "<th class='bg3' align='left'><b>"._AM_SF_QUESTION.'</b></td>'; |
|
42 | 42 | |
43 | -echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ASKED . '</b></td>'; |
|
44 | -echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ANSWERED . '</b></td>'; |
|
43 | +echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ASKED.'</b></td>'; |
|
44 | +echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ANSWERED.'</b></td>'; |
|
45 | 45 | |
46 | -echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>'; |
|
47 | -echo "<th width='60' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>'; |
|
46 | +echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>'; |
|
47 | +echo "<th width='60' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>'; |
|
48 | 48 | echo '</tr>'; |
49 | 49 | if ($totalfaqs > 0) { |
50 | 50 | global $pathIcon16, $smartModuleConfig; |
51 | 51 | for ($i = 0; $i < $totalFaqsOnPage; ++$i) { |
52 | 52 | $categoryObj = $allCats[$faqsObj[$i]->categoryid()]; |
53 | - $modify = "<a href='faq.php?op=mod&faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_EDITART . "' alt='" . _AM_SF_EDITART . "'></a>"; |
|
54 | - $delete = "<a href='faq.php?op=del&faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_EDITART . "' alt='" . _AM_SF_DELETEART . "'></a>"; |
|
53 | + $modify = "<a href='faq.php?op=mod&faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_EDITART."' alt='"._AM_SF_EDITART."'></a>"; |
|
54 | + $delete = "<a href='faq.php?op=del&faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_EDITART."' alt='"._AM_SF_DELETEART."'></a>"; |
|
55 | 55 | |
56 | 56 | //adding name of the Question Submitter |
57 | 57 | $requester = sf_getLinkedUnameFromId($faqsObj[$i]->uid(), $smartModuleConfig['userealname']); |
@@ -79,26 +79,26 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | echo '<tr>'; |
82 | - echo "<td class='head' align='center'>" . $faqsObj[$i]->faqid() . '</td>'; |
|
83 | - echo "<td class='even' align='left'>" . $categoryObj->name() . '</td>'; |
|
84 | - echo "<td class='even' align='left'><a href='" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/faq.php?faqid=' . $faqsObj[$i]->faqid() . "'>" . $faqsObj[$i]->question(100) . '</a></td>'; |
|
82 | + echo "<td class='head' align='center'>".$faqsObj[$i]->faqid().'</td>'; |
|
83 | + echo "<td class='even' align='left'>".$categoryObj->name().'</td>'; |
|
84 | + echo "<td class='even' align='left'><a href='".XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/faq.php?faqid='.$faqsObj[$i]->faqid()."'>".$faqsObj[$i]->question(100).'</a></td>'; |
|
85 | 85 | |
86 | - echo "<td class='even' align='center'>" . $requester . '</td>'; |
|
87 | - echo "<td class='even' align='center'>" . $answerSubmitter . '</td>'; |
|
86 | + echo "<td class='even' align='center'>".$requester.'</td>'; |
|
87 | + echo "<td class='even' align='center'>".$answerSubmitter.'</td>'; |
|
88 | 88 | |
89 | - echo "<td class='even' align='center'>" . $faqsObj[$i]->datesub('s') . '</td>'; |
|
89 | + echo "<td class='even' align='center'>".$faqsObj[$i]->datesub('s').'</td>'; |
|
90 | 90 | echo "<td class='even' align='center'> $modify $delete </td>"; |
91 | 91 | echo '</tr>'; |
92 | 92 | } |
93 | 93 | } else { |
94 | 94 | $faqid = -1; |
95 | 95 | echo '<tr>'; |
96 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_SF_NOFAQS . '</td>'; |
|
96 | + echo "<td class='head' align='center' colspan= '7'>"._AM_SF_NOFAQS.'</td>'; |
|
97 | 97 | echo '</tr>'; |
98 | 98 | } |
99 | 99 | echo "</table>\n"; |
100 | 100 | echo "<br>\n"; |
101 | 101 | |
102 | 102 | $pagenav = new XoopsPageNav($totalfaqs, $xoopsModuleConfig['perpage'], $startfaq, 'startfaq', $pagenav_extra_args); |
103 | -echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
103 | +echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
104 | 104 | echo '</div>'; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
13 | 13 | |
14 | -require_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
14 | +require_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Class sfUploader |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | $uid = $xoopsUser ? $xoopsUser->getVar('uid') : 0; |
12 | 12 | $isAdmin = (sf_userIsAdmin() || sf_moderator()); |
13 | 13 | |
14 | -$xoopsTpl->assign('sf_adminpage', "<a href='" . XOOPS_URL . "/modules/smartfaq/admin/index.php'>" . _MD_SF_ADMIN_PAGE . '</a>'); |
|
14 | +$xoopsTpl->assign('sf_adminpage', "<a href='".XOOPS_URL."/modules/smartfaq/admin/index.php'>"._MD_SF_ADMIN_PAGE.'</a>'); |
|
15 | 15 | $xoopsTpl->assign('isAdmin', $isAdmin); |
16 | 16 | |
17 | 17 | $xoopsTpl->assign([ |
@@ -34,4 +34,4 @@ discard block |
||
34 | 34 | |
35 | 35 | $xoopsTpl->assign('ref_smartfaq', 'SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)'); |
36 | 36 | |
37 | -$xoopsTpl->assign('xoops_module_header', "<link rel='stylesheet' type='text/css' href='" . XOOPS_URL . "/modules/smartfaq/assets/css/smartfaq.css'>"); |
|
37 | +$xoopsTpl->assign('xoops_module_header', "<link rel='stylesheet' type='text/css' href='".XOOPS_URL."/modules/smartfaq/assets/css/smartfaq.css'>"); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | function b_faqs_random_how_show() |
11 | 11 | { |
12 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
13 | 13 | |
14 | 14 | $block = []; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | function b_faqs_random_diduno_show() |
11 | 11 | { |
12 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
13 | 13 | |
14 | 14 | $block = []; |
15 | 15 |