Location: PHPKode > projects > Gallereazy > gallereazy/theme.inc.php
<?php
function theme($stResource)
{
	if( strpos($_SERVER['REQUEST_URI'], 'admin') > 0 )
		$stPrefix = '../';
	else
		$stPrefix = '';
	
	if( file_exists($stPrefix . PATH_TO_APP . 'themes/' . THEME . '/' . $stResource) )
		$stReturn = $stPrefix . PATH_TO_APP . 'themes/' . THEME . '/' . $stResource;
	else
		$stReturn = $stPrefix . PATH_TO_APP . 'themes/default/' . $stResource;
	
	return $stReturn;
}
?>
Return current item: Gallereazy