<?php
	
	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );

	/**
	 * implements the main view of the feed reader plugin
	 */
	class AdminPluginTextParserSettingsView extends AdminPluginTemplatedView
	{

		function AdminPluginTextParserSettingsView( $blogInfo )
		{
			$this->AdminPluginTemplatedView( $blogInfo, "textparser", "settings" );
		}
		
		function render()
		{
			// load some configuration settings
			$blogSettings = $this->_blogInfo->getSettings();
			$pluginEnabled = $blogSettings->getValue( "plugin_textparser_enabled" );
			$filter = $blogSettings->getValue( "plugin_textparser_filter" );
			if( $filter == "" ) $filter = PLUGIN_TEXTPARSER_FILTER_WIKI;
			
			// create a view and export the settings to the template
			$this->setValue( "pluginEnabled", $pluginEnabled );
			$this->setValue( "filter", $filter );
			
			parent::render();
		}
	}
?>