1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

FAQs enhancement and support for faq-category SEF urls. (work in progress)

This commit is contained in:
Cameron
2015-01-28 02:29:26 -08:00
parent fb22dc7b11
commit 05c8f263d1
7 changed files with 73 additions and 39 deletions

View File

@@ -121,6 +121,19 @@ class faqs_shortcodes extends e_shortcode
function sc_faq_category($parm = '')
{
// $tp = e107::getParser();
// return $tp->toHTML($this->var['faq_info_title']);
$tp = e107::getParser();
$url = e107::url('faqs','category', $this->var); //@See faqs/e_url.php
return "<a href='".$url."'>".$tp->toHTML($this->var['faq_info_title'])."</a>";
return "<a href='".e107::getUrl()->create('faqs/list/all', array('category' => $this->var['faq_info_id']))."'>".$tp->toHTML($this->var['faq_info_title'])."</a>";
$tp = e107::getParser();
if($parm == 'extend' && $this->tag)
{