@@ -9,9 +9,9 @@ discard block |
||
9 | 9 | function xoops_module_update_smartfaq($module) |
10 | 10 | { |
11 | 11 | // Load SmartDbUpdater from the SmartObject Framework if present |
12 | - $smartdbupdater = XOOPS_ROOT_PATH . '/modules/smartobject/class/smartdbupdater.php'; |
|
12 | + $smartdbupdater = XOOPS_ROOT_PATH.'/modules/smartobject/class/smartdbupdater.php'; |
|
13 | 13 | if (!file_exists($smartdbupdater)) { |
14 | - $smartdbupdater = XOOPS_ROOT_PATH . '/modules/smartfaq/class/smartdbupdater.php'; |
|
14 | + $smartdbupdater = XOOPS_ROOT_PATH.'/modules/smartfaq/class/smartdbupdater.php'; |
|
15 | 15 | } |
16 | 16 | require_once $smartdbupdater; |
17 | 17 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | ob_start(); |
21 | 21 | |
22 | - echo '<code>' . _SDU_UPDATE_UPDATING_DATABASE . '<br>'; |
|
22 | + echo '<code>'._SDU_UPDATE_UPDATING_DATABASE.'<br>'; |
|
23 | 23 | |
24 | 24 | // Adding partialview field |
25 | 25 | $table = new SmartDbTable('smartfaq_faq'); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Check for items with categoryid=0 |
72 | 72 | */ |
73 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
73 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
74 | 74 | $smartfaq_faqHandler = $answerHandler = sf_gethandler('faq'); |
75 | 75 | $smartfaq_categoryHandler = $answerHandler = sf_gethandler('category'); |
76 | 76 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | ob_start(); |
106 | 106 | |
107 | - require_once XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/include/functions.php'; |
|
107 | + require_once XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname').'/include/functions.php'; |
|
108 | 108 | |
109 | 109 | $feedback = ob_get_clean(); |
110 | 110 | if (method_exists($module, 'setMessage')) { |
@@ -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_new.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +require_once XOOPS_ROOT_PATH.'/include/comment_new.php'; |
@@ -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.'); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | define('_AM_SF_CONTEXTMODULELINK', 'Contextually linked to this module'); |
79 | 79 | define( |
80 | 80 | '_AM_SF_CONTEXTMODULELINK_FAQ', |
81 | - "Contextually linked to this module<span style='font-size: xx-small; font-weight: normal; display: block;'>Select the module to which this Q&A will be<br>linked. If the Contextual FAQ block is visible<br>on that module, the 'How do I' statement of<br>this Q&A will be displayed.</span>" |
|
81 | + "Contextually linked to this module<span style='font-size: xx-small; font-weight: normal; display: block;'>Select the module to which this Q&A will be<br>linked. If the Contextual FAQ block is visible<br>on that module, the 'How do I' statement of<br>this Q&A will be displayed.</span>" |
|
82 | 82 | ); |
83 | 83 | define('_AM_SF_CONTEXTOPTIONS', 'Contextual options'); |
84 | 84 | define('_AM_SF_CONTEXTPAGE', 'Contextually linked to this URL'); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | define('_AM_SF_ERROR_FAQ_NOT_SAVED', 'An error occured. The Q&A was not saved in the database.'); |
122 | 122 | define( |
123 | 123 | '_AM_SF_EXACTURL', |
124 | - "Exact URL?<span style='font-size: xx-small; font-weight: normal; display: block;'>If set to 'Yes', the Q&A will only display in the'Specific URL set above'. If set to 'No', the Q&A will be displayed in all pages that match a part of the root of the specific URL. ie; modules/newbb/*.php</span>" |
|
124 | + "Exact URL?<span style='font-size: xx-small; font-weight: normal; display: block;'>If set to 'Yes', the Q&A will only display in the'Specific URL set above'. If set to 'No', the Q&A will be displayed in all pages that match a part of the root of the specific URL. ie; modules/newbb/*.php</span>" |
|
125 | 125 | ); |
126 | 126 | define('_AM_SF_FAQ_EDIT', 'Edit this Q&A'); |
127 | 127 | define('_AM_SF_FAQ_NEW_ANSWER_PUBLISHED', 'The original answer was replaced by this answer.'); |
@@ -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 |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | define('_MI_SF_REQUESTINTROMSGDSC', 'Introduction message to be displayed in the Request a Q&A page of the module.'); |
116 | 116 | define( |
117 | 117 | '_MI_SF_REQUESTINTROMSGDEF', |
118 | - 'You did not find the answer to the question you were looking for? No problem! Simply fill the following form in order to request the answer for a new question. The site administrator will review your request and publish this new question in the Open Questions section for someone to answer it!' |
|
118 | + 'You did not find the answer to the question you were looking for? No problem! Simply fill the following form in order to request the answer for a new question. The site administrator will review your request and publish this new question in the Open Questions section for someone to answer it!' |
|
119 | 119 | ); |
120 | 120 | |
121 | 121 | define('_MI_SF_OPENINTROMSG', 'Open Questions section introduction message:'); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | define('_MI_SF_HELP_PATH_SELECT', "Path of SmartFAQ's help files"); |
129 | 129 | define( |
130 | 130 | '_MI_SF_HELP_PATH_SELECT_DSC', |
131 | - "SELECT FROM where you would LIKE TO access SmartFAQ's help files. If you downloaded the 'SmartFAQ's Help Package' AND uploaded it IN 'modules/smartfaq/doc/', you can SELECT 'Inside the module'. Alternatively, you can access the module's help file directly from docs.xoops.org by chosing this in the selector. You can also select 'Custom Path' and specify yourself the path of the help files in the next config option 'Custom path of SmartFAQ's help files'" |
|
131 | + "SELECT FROM where you would LIKE TO access SmartFAQ's help files. If you downloaded the 'SmartFAQ's Help Package' AND uploaded it IN 'modules/smartfaq/doc/', you can SELECT 'Inside the module'. Alternatively, you can access the module's help file directly from docs.xoops.org by chosing this in the selector. You can also select 'Custom Path' and specify yourself the path of the help files in the next config option 'Custom path of SmartFAQ's help files'" |
|
132 | 132 | ); |
133 | 133 | |
134 | 134 | define('_MI_SF_HELP_PATH_CUSTOM', "Custom path of SmartFAQ's help files"); |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | define('_MI_SF_DIR_ATTACHMENT', 'Attachments physical path.'); |
352 | 352 | define( |
353 | 353 | '_MI_SF_DIR_ATTACHMENT_DESC', |
354 | - "Physical path only needs to be set from your xoops root and not before, for example you may have attachments uploaded to www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'" |
|
354 | + "Physical path only needs to be set from your xoops root and not before, for example you may have attachments uploaded to www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'" |
|
355 | 355 | ); |
356 | 356 | define('_MI_SF_PATH_MAGICK', 'Path for ImageMagick'); |
357 | 357 | define('_MI_SF_PATH_MAGICK_DESC', "Usually it is '/usr/bin/X11'. Leave it BLANK if you do not have ImageMagicK installed or for autodetecting."); |
@@ -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'; |
@@ -116,13 +116,13 @@ |
||
116 | 116 | // Language constants |
117 | 117 | $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
118 | 118 | $xoopsTpl->assign([ |
119 | - 'lang_on' => _MD_SF_ON, |
|
120 | - 'lang_postedby' => _MD_SF_POSTEDBY, |
|
121 | - 'lang_total' => $totalQnasOnPage, |
|
122 | - 'lang_faq' => _MD_SF_FAQ, |
|
123 | - 'lang_datesub' => _MD_SF_DATESUB, |
|
124 | - 'lang_hits' => _MD_SF_HITS |
|
125 | - ]); |
|
119 | + 'lang_on' => _MD_SF_ON, |
|
120 | + 'lang_postedby' => _MD_SF_POSTEDBY, |
|
121 | + 'lang_total' => $totalQnasOnPage, |
|
122 | + 'lang_faq' => _MD_SF_FAQ, |
|
123 | + 'lang_datesub' => _MD_SF_DATESUB, |
|
124 | + 'lang_hits' => _MD_SF_HITS |
|
125 | + ]); |
|
126 | 126 | |
127 | 127 | $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
128 | 128 | $xoopsTpl->assign('lang_mainhead', sprintf(_MD_SF_OPEN_WELCOME, $xoopsConfig['sitename'])); |
@@ -6,15 +6,15 @@ discard block |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -require_once __DIR__ . '/header.php'; |
|
9 | +require_once __DIR__.'/header.php'; |
|
10 | 10 | |
11 | 11 | global $xoopsConfig, $xoopsModuleConfig, $xoopsModule; |
12 | 12 | |
13 | 13 | // At which record shall we start for the Categories |
14 | -$catstart = isset($_GET['catstart']) ? (int)$_GET['catstart'] : 0; |
|
14 | +$catstart = isset($_GET['catstart']) ? (int) $_GET['catstart'] : 0; |
|
15 | 15 | |
16 | 16 | // At which record shall we start for the FAQs |
17 | -$start = isset($_GET['start']) ? (int)$_GET['start'] : 0; |
|
17 | +$start = isset($_GET['start']) ? (int) $_GET['start'] : 0; |
|
18 | 18 | |
19 | 19 | // Creating the category handler object |
20 | 20 | $categoryHandler = sf_gethandler('category'); |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | |
43 | 43 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_index.tpl'; |
44 | 44 | |
45 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
46 | -require_once __DIR__ . '/footer.php'; |
|
45 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
46 | +require_once __DIR__.'/footer.php'; |
|
47 | 47 | |
48 | 48 | //get all categories for future reference |
49 | 49 | $allcategories = $categoryHandler->getObjects(null, true); |
@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | if (isset($totalQnas[$subcat_id]) && $totalQnas[$subcat_id] > 0) { |
66 | 66 | if (isset($last_qnaObj[$subcat_id])) { |
67 | 67 | $subcat->setVar('last_faqid', $last_qnaObj[$subcat_id]->getVar('faqid')); |
68 | - $subcat->setVar('last_question_link', "<a href='faq.php?faqid=" . $last_qnaObj[$subcat_id]->getVar('faqid') . "'>" . $last_qnaObj[$subcat_id]->question(50) . '</a>'); |
|
68 | + $subcat->setVar('last_question_link', "<a href='faq.php?faqid=".$last_qnaObj[$subcat_id]->getVar('faqid')."'>".$last_qnaObj[$subcat_id]->question(50).'</a>'); |
|
69 | 69 | } |
70 | 70 | $subcat->setVar('faqcount', $totalQnas[$subcat_id]); |
71 | 71 | $categories[$cat_id]['subcats'][$subcat_id] = $subcat->toArray(null, true); |
72 | - $total += $totalQnas[$subcat_id]; |
|
72 | + $total += $totalQnas[$subcat_id]; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | $memberHandler = xoops_getHandler('member'); |
104 | - $users = $memberHandler->getUsers(new Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true); |
|
104 | + $users = $memberHandler->getUsers(new Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true); |
|
105 | 105 | for ($i = 0; $i < $totalQnasOnPage; ++$i) { |
106 | 106 | $faq = $faqsObj[$i]->toArray(null, $allcategories); |
107 | 107 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } |
115 | 115 | } |
116 | 116 | // Language constants |
117 | -$moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
|
117 | +$moduleName = & $myts->displayTarea($xoopsModule->getVar('name')); |
|
118 | 118 | $xoopsTpl->assign([ |
119 | 119 | 'lang_on' => _MD_SF_ON, |
120 | 120 | 'lang_postedby' => _MD_SF_POSTEDBY, |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'lang_hits' => _MD_SF_HITS |
125 | 125 | ]); |
126 | 126 | |
127 | -$moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
|
127 | +$moduleName = & $myts->displayTarea($xoopsModule->getVar('name')); |
|
128 | 128 | $xoopsTpl->assign('lang_mainhead', sprintf(_MD_SF_OPEN_WELCOME, $xoopsConfig['sitename'])); |
129 | 129 | $xoopsTpl->assign('lang_mainintro', $myts->displayTarea($xoopsModuleConfig['openquestionintromsg'], 1)); |
130 | 130 | $xoopsTpl->assign('lang_total', _MD_SF_TOTAL_QUESTIONS); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $xoopsTpl->assign('lang_description', _MD_SF_DESCRIPTION); |
133 | 133 | $xoopsTpl->assign('lang_category', _MD_SF_CATEGORY); |
134 | 134 | $xoopsTpl->assign('sectionname', $moduleName); |
135 | -$xoopsTpl->assign('whereInSection', "<a href='index.php'>" . $moduleName . '</a> > ' . _MD_SF_OPEN_SECTION); |
|
135 | +$xoopsTpl->assign('whereInSection', "<a href='index.php'>".$moduleName.'</a> > '._MD_SF_OPEN_SECTION); |
|
136 | 136 | |
137 | 137 | $xoopsTpl->assign('displayFull', false); |
138 | 138 | $xoopsTpl->assign('displaylastfaqs', $xoopsModuleConfig['displaylastfaqs']); |
@@ -148,25 +148,25 @@ discard block |
||
148 | 148 | $xoopsTpl->assign('lang_category', _MD_SF_CATEGORY); |
149 | 149 | |
150 | 150 | // Category Navigation Bar |
151 | -require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
151 | +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
152 | 152 | $pagenav = new XoopsPageNav($totalCategories, $xoopsModuleConfig['catperpage'], $catstart, 'catstart', ''); |
153 | 153 | if (1 == $xoopsModuleConfig['useimagenavpage']) { |
154 | - $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'); |
|
154 | + $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>'); |
|
155 | 155 | } else { |
156 | - $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); |
|
156 | + $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'); |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | // FAQ Navigation Bar |
160 | 160 | $pagenav = new XoopsPageNav($totalFaqs, $xoopsModuleConfig['indexperpage'], $start, 'start', ''); |
161 | 161 | if (1 == $xoopsModuleConfig['useimagenavpage']) { |
162 | - $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'); |
|
162 | + $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>'); |
|
163 | 163 | } else { |
164 | - $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); |
|
164 | + $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | // Page Title Hack by marcan |
168 | 168 | $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name')); |
169 | -$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $category->getVar('name')); |
|
169 | +$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$category->getVar('name')); |
|
170 | 170 | // End Page Title Hack by marcan |
171 | 171 | |
172 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
172 | +require_once XOOPS_ROOT_PATH.'/footer.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>'; |
@@ -15,12 +15,12 @@ |
||
15 | 15 | $xoopsTpl->assign('isAdmin', $isAdmin); |
16 | 16 | |
17 | 17 | $xoopsTpl->assign([ |
18 | - 'lang_on' => _MD_SF_ON, |
|
19 | - 'lang_postedby' => _MD_SF_POSTEDBY, |
|
20 | - 'lang_faq' => _MD_SF_QUESTION, |
|
21 | - 'lang_datesub' => _MD_SF_DATESUB, |
|
22 | - 'lang_hits' => _MD_SF_HITS |
|
23 | - ]); |
|
18 | + 'lang_on' => _MD_SF_ON, |
|
19 | + 'lang_postedby' => _MD_SF_POSTEDBY, |
|
20 | + 'lang_faq' => _MD_SF_QUESTION, |
|
21 | + 'lang_datesub' => _MD_SF_DATESUB, |
|
22 | + 'lang_hits' => _MD_SF_HITS |
|
23 | + ]); |
|
24 | 24 | $xoopsTpl->assign('sectionname', $myts->displayTarea($xoopsModule->getVar('name'))); |
25 | 25 | |
26 | 26 | $xoopsTpl->assign('modulename', $xoopsModule->dirname()); |
@@ -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'>"); |