<?php
/**
 * @version		$Id: view.feed.php 10381 2008-06-01 03:35:53Z pasamio $
* @package		Contact_Enhanced
 * @subpackage	Contact
 * @copyright	Copyright (C) 2006 - 2010 Ideal Custom Software Development
 * @author     Douglas Machado {@link http://ideal.fok.com.br}
 * @author     Created on 28-Jul-09
 * @license		GNU/GPL, see license.txt
 * Contact Enhanced  is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses. 
 */
$sidebarWidth	= (int) $this->contact->params->get( 'sidebar_width','30' );
if(trim($this->contact->sidebar) OR $this->params->get( 'show_map') == 'sidebar'){
?>
	<td width="<?php echo $sidebarWidth; ?>%" class="ce-sidebar" >
		<?php 
			if($this->params->get( 'sidebar-processplugins',0)){
				
				/*
				 * Process the prepare content plugins
				 */
				JPluginHelper::importPlugin('content');
				
				// Simulate an article
				$article->id			=	 '';
				$article->title			=	 '';
				$article->alias			=	 '';
				$article->title_alias	=	 '';
				$article->introtext		=	 '';
				$article->fulltext		=	 '';
				$article->state			=	 '';
				$article->sectionid		=	 '';
				$article->mask			=	 '';
				$article->catid			=	 '';
				$article->created		=	 '';
				$article->created_by	=	 '';
				$article->created_by_alias	=	 '';
				$article->modified		=	 '';
				$article->modified_by	=	 '';
				$article->checked_out	=	 '';
				$article->checked_out_time	=	 '';
				$article->publish_up	=	 '';
				$article->publish_down	=	 '';
				$article->images		=	 '';
				$article->urls	=	 '';
				$article->attribs	=	 '';
				$article->version	=	 '';
				$article->parentid	=	 '';
				$article->ordering	=	 '';
				$article->metakey	=	 '';
				$article->metadesc	=	 '';
				$article->access	=	 '';
				$article->hits		=	 '';
				$article->metadata	=	 '';
				$article->author	=	 '';
				$article->usertype	=	 '';
				$article->category	=	 '';
				$article->section	=	 '';
				$article->slug		=	 '';
				$article->catslug	=	 '';
				$article->groups	=	 '';
				$article->sec_pub	=	 '';
				$article->cat_pub	=	 '';
				$article->sec_access	=	 '';
				$article->cat_access	=	 '';
				$article->rating_count	=	 '';
				$article->rating	=	 '';
				$article->text		=	 $this->contact->sidebar;
				
				$dispatcher	=& JDispatcher::getInstance();
				$results = $dispatcher->trigger('onPrepareContent', array (& $article, & $this->params, 0));
				echo $article->text;
			}else{
				echo $this->contact->sidebar;
			}?>
	</td>
<?php } ?>