1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

FAQs: 'faq-new' css class added for recently added FAQs.

This commit is contained in:
Cameron
2015-05-11 14:07:11 -07:00
parent 1af1bd9c09
commit 76d7a802c6
5 changed files with 101 additions and 15 deletions

View File

@@ -141,9 +141,9 @@ if (isset($_POST['commentsubmit']))
}
if (vartrue($faqpref['faq_title']))
if (vartrue($faqpref['page_title']))
{
define("e_PAGETITLE", $faqpref['faq_title']);
define("e_PAGETITLE", $faqpref['page_title']);
}
else
{
@@ -242,15 +242,12 @@ class faq
function view_all($srch) // new funtion to render all FAQs
{
$sql = e107::getDb();
$tp = e107::getParser();
$ret = array();
$template = e107::getTemplate('faqs');
$this->template = $template;
$prevcat = "";
$this->sc = e107::getScBatch('faqs',TRUE);
$text = $tp->parseTemplate($template['start'], true, $this->sc); // header
@@ -265,8 +262,6 @@ class faq
$text .= $tp->parseTemplate($template['end'], true, $this->sc); // footer
$ret['title'] = FAQLAN_FAQ;
$ret['text'] = $text;
$ret['caption'] = varset($template['caption']) ? $tp->parseTemplate($template['caption'], true, $this->sc) : LAN_PLUGIN_FAQS_FRONT_NAME;