} else { $tpl->parseBlock('rightBox', 'toptenListError', array('errorMsgTopTen' => $toptenParams['error'])); } $latestEntriesParams = $faq->getLatest(); if (!isset($latestEntriesParams['error'])) { $tpl->parseBlock('rightBox', 'latestEntriesList', array('latestEntriesUrl' => $latestEntriesParams['url'], 'latestEntriesTitle' => $latestEntriesParams['title'], 'latestEntriesPreview' => $latestEntriesParams['preview'], 'latestEntriesDate' => $latestEntriesParams['date'])); } else { $tpl->parseBlock('rightBox', 'latestEntriesListError', array('errorMsgLatest' => $latestEntriesParams['error'])); } if ('artikel' == $action || 'show' == $action || is_numeric($solutionId)) { // We need some Links from social networks $faqServices = new PMF_Services($faqConfig); $faqServices->setCategoryId($cat); $faqServices->setFaqId($id); $faqServices->setLanguage($lang); $faqServices->setQuestion($faq->getRecordTitle($id)); $faqHelper = new PMF_Helper_Faq($faqConfig); $faqHelper->setSsl(isset($_SERVER['HTTPS']) && is_null($_SERVER['HTTPS']) ? false : true); $tpl->parseBlock('rightBox', 'socialLinks', array('writePDFTag' => $PMF_LANG['msgPDF'], 'writePrintMsgTag' => $PMF_LANG['msgPrintArticle'], 'writeSend2FriendMsgTag' => $PMF_LANG['msgSend2Friend'], 'shareOnFacebook' => $faqHelper->renderFacebookShareLink($faqServices->getShareOnFacebookLink()), 'shareOnTwitter' => $faqHelper->renderTwitterShareLink($faqServices->getShareOnTwitterLink()), 'link_email' => $faqServices->getSuggestLink(), 'link_pdf' => $faqServices->getPdfLink(), 'facebookLikeButton' => $faqHelper->renderFacebookLikeButton($faqServices->getLink()))); } $tpl->parse('rightBox', array('writeTopTenHeader' => $PMF_LANG['msgTopTen'], 'writeNewestHeader' => $PMF_LANG['msgLatestArticles'], 'writeTagCloudHeader' => $PMF_LANG['msg_tags'], 'writeTags' => $oTag->printHTMLTagsCloud(), 'msgAllCatArticles' => $PMF_LANG['msgAllCatArticles'], 'allCatArticles' => $faq->showAllRecordsWoPaging($cat))); if (DEBUG) { $tpl->parseBlock('index', 'debugMode', array('debugExceptions' => implode('<br>', $pmfExeptions), 'debugQueries' => $faqConfig->getDb()->log())); } // // Get main template, set main variables // $tpl->parse('index', array_merge($tplMainPage, $tplNavigation)); $tpl->merge('rightBox', 'index'); // // Include requested PHP file