FAQ - Hook: tpl_page_news_grid

Hook: tpl_page_news_grid

3771


This hook is located in template/yourtemplate/page.php / template/yourtemplate/newsart.php and will be executed to display your plugin grid result.

You can include a file, for example:

if ($pg['pluginid'] == JAK_PLUGIN_ID_FAQ && JAK_PLUGIN_ID_FAQ && !empty($row['showfaq'])) {

include_once APP_PATH.'plugins/faq/functions.php';

	$showfaqarray = explode(":", $row['showfaq']);
	
	if (is_array($showfaqarray) && in_array("ASC", $showfaqarray) || in_array("DESC", $showfaqarray)) {
	
		$JAK_FAQ = jak_get_faq('LIMIT '.$showfaqarray[1], 't1.id '.$showfaqarray[0], '', 't1.id');
		
	} else {

		$JAK_FAQ = jak_get_faq('', 't1.id ASC', $row['showfaq'], 't1.id');
	}

?>