Location: PHPKode > scripts > Noostr > _engine/includes/template.php
<?php defined('SYSPATH') OR die('No direct access to this file is allowed.');

function show_header($name = '') {
	global $site, $template;
	if (!isset($site->querystring['showheader']) || (isset($site->querystring['showheader']) && $site->querystring['showheader'] != true)) {
		$template->get_header($name);
	}
}

function show_footer($name = '') {
	global $site, $template;
	if (!isset($site->querystring['showheader']) || (isset($site->querystring['showheader']) && $site->querystring['showheader'] != true)) {
		$template->get_footer($name);
	}
}

function show_sidebar($name = '') {
	global $template;
	$template->get_sidebar($name);
}

function show_content() {
	global $page;
	$page->show_content();
}

function show_submission_form($type) {
	global $ns, $template, $formfields;
	if ($formfields['type'] != null) {
		$ns->form = array('type' => strtolower($formfields['type']));
	} else {
		$ns->form = array('type' => strtolower($type));
	}
	$template->get_submission_form($type);
}

function get2($group, $key) {
	$return = '';
	switch (strtolower($group)) {
		case 'site':
			global $site;
			$return = $site->$key;
			break;
		case 'user':
			global $user;
			$return = $user->$key;
			break;
		case 'template':
			global $template;
			$return = $template->get($key);
			break;
		case 'page':
			global $page;
			$return = $page->get(get('template', 'page'), $key);
			break;
		case 'acl':
			global $acl;
			$return = $acl->$key;
			break;
	}
	return $return;
}
function show2($group, $key) {
	$return = get($group, $key);
	echo $return;
}
function show_pages($pre = '<li class="page-item">', $post = '</li>', $precurrent = '<li class="page-item current-page-item">', $postcurrent = '</li>') {
	global $page;
	$page->show_pages($pre, $post, $precurrent, $postcurrent);
}
function show_meta($pre = '<li class="meta-item">', $post = '</li>', $precurrent = '<li class="meta-item current-meta-item">', $postcurrent = '</li>') {
	global $page, $template;
	//$template->show_meta($pre, $post, $precurrent, $postcurrent);
	$page->show_meta($pre, $post, $precurrent, $postcurrent);
}
Return current item: Noostr