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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user