<?php

/*
	Question2Answer 1.3-beta-1 (c) 2010, Gideon Greenspan

	http://www.question2answer.org/

	
	File: qa-theme/Candy/qa-theme.php
	Version: 1.3-beta-1
	Date: 2010-11-04 12:12:11 GMT
	Description: Override something in base theme class for Candy theme


	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	More about this license: http://www.question2answer.org/license.php
*/

	class qa_html_theme extends qa_html_theme_base
	{
		function nav_user_search() // reverse the usual order
		{
			$this->search();
			$this->nav('user');
		}
		
		function sidepanel()
		{
			$this->output('<DIV CLASS="content-flow"><DIV CLASS="content-top"></DIV><DIV CLASS="content-wrapper"><DIV CLASS="qa-sidepanel">');
			$this->sidebar();
			$this->nav('cat');
			$this->output_raw(@$this->content['sidepanel']);
			$this->feed();
			$this->output('</DIV>', '');
		}
		
			function nav_main_sub()
		{	$this->output('<div id="menu">');
			$this->output('<div id="nav_left"></div>');
			$this->nav('main');
			$this->output('<div id="nav_right"></div></div>');
			$this->nav('sub');
		}
		
			
			function suggest_next()
		{
			$suggest=@$this->content['suggest_next'];
			
			if (!empty($suggest)) {
				$this->output('<p style="clear:both">');
				$this->output($suggest);
				$this->output('</p>');
			}
		}
		
		
		function attribution()
		{
			// Please see the license at the top of this file before changing this link. Thank you.
				
			qa_html_theme_base::attribution();

			// modxclub [start] Please erase. Use this theme according to license of Question2Answer.
			$this->output(
				'<DIV CLASS="qa-designedby">',
				'Designed by <A HREF="http://www.axiologic.ro">Axiologic SaaS</A>',
				'</DIV>'
			);
			// modxclub [end]
		}
		
	}
	

/*
	Omit PHP closing tag to help avoid accidental output
*/