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

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

		function AdminNewBlogBlockedHostView( $blogInfo )
		{
			$this->AdminPluginTemplatedView( $blogInfo, "hostblock", "addblogblockedhost" );
		}
		
		function render()
		{
			$blogSettings = $this->_blogInfo->getSettings();
			$pluginEnabled = $blogSettings->getValue( "plugin_hostblock_enabled" );

            $this->setValue( "pluginEnabled", $pluginEnabled );

            if (!$pluginEnabled) {
                $locale = $this->_blogInfo->getLocale();
                $text = $locale->tr("error_hostblock_not_enabled");
                $this->setErrorMessage( $text );
            }               			

        	// get the content that has been filtered by this blog
			parent::render();
		}
	}
?>