[pLog-svn] r4806 - in plugins/branches/lifetype-1.1: . tidyoutput tidyoutput/class tidyoutput/class/action tidyoutput/class/tidy tidyoutput/class/view tidyoutput/config tidyoutput/locale tidyoutput/templates

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Feb 21 16:50:04 EST 2007


Author: oscar
Date: 2007-02-21 16:50:04 -0500 (Wed, 21 Feb 2007)
New Revision: 4806

Added:
   plugins/branches/lifetype-1.1/tidyoutput/
   plugins/branches/lifetype-1.1/tidyoutput/class/
   plugins/branches/lifetype-1.1/tidyoutput/class/action/
   plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputconfigaction.class.php
   plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php
   plugins/branches/lifetype-1.1/tidyoutput/class/tidy/
   plugins/branches/lifetype-1.1/tidyoutput/class/tidy/tidy.class.php
   plugins/branches/lifetype-1.1/tidyoutput/class/view/
   plugins/branches/lifetype-1.1/tidyoutput/class/view/plugintidyoutputconfigview.class.php
   plugins/branches/lifetype-1.1/tidyoutput/config/
   plugins/branches/lifetype-1.1/tidyoutput/config/options.properties.php
   plugins/branches/lifetype-1.1/tidyoutput/locale/
   plugins/branches/lifetype-1.1/tidyoutput/locale/locale_ca_ES.php
   plugins/branches/lifetype-1.1/tidyoutput/locale/locale_en_UK.php
   plugins/branches/lifetype-1.1/tidyoutput/locale/locale_es_ES.php
   plugins/branches/lifetype-1.1/tidyoutput/plugintidyoutput.class.php
   plugins/branches/lifetype-1.1/tidyoutput/templates/
   plugins/branches/lifetype-1.1/tidyoutput/templates/tidyoutput.template
Log:
Plugin to "fix" our HTML code via PHP's Tidy extension. Thanks to Elena and balearweb for their contribution.


Added: plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputconfigaction.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputconfigaction.class.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,35 @@
+<?php
+
+	include_once(PLOG_CLASS_PATH . "class/action/admin/adminaction.class.php");
+	include_once(PLOG_CLASS_PATH . "class/view/admin/adminplugintemplatedview.class.php");
+	include_once(PLOG_CLASS_PATH . "plugins/tidyoutput/class/view/plugintidyoutputconfigview.class.php");
+
+	/**
+    * PluginTidyOutputConfigAction class
+    */
+	class PluginTidyOutputConfigAction extends AdminAction
+	{
+        /**
+        * Constructor
+        */      
+		function PluginTidyOutputConfigAction($actionInfo, $request)
+		{
+			$this->AdminAction( $actionInfo, $request );
+		}
+
+        /**
+        * Add function info here
+        */        
+		function perform()
+		{
+            include_once(PLOG_CLASS_PATH . "plugins/tidyoutput/class/tidy/tidy.class.php");
+                  
+            $this->_view = new PluginTidyOutputConfigView($this->_blogInfo);
+            $this->_view->setValue("tidyInstalled", Tidy::isInstalled());
+			$this->setCommonData();
+            
+			return true;
+		}
+	}
+   
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,76 @@
+<?php
+
+	include_once(PLOG_CLASS_PATH . "class/action/admin/adminaction.class.php");
+	include_once(PLOG_CLASS_PATH . "class/view/admin/adminplugintemplatedview.class.php");
+	include_once(PLOG_CLASS_PATH . "plugins/tidyoutput/class/view/plugintidyoutputconfigview.class.php");
+		
+    /**
+    * PluginTidyOutputUpdateConfigAction class
+    */
+	class PluginTidyOutputUpdateConfigAction extends AdminAction
+	{
+        /**
+        * Constructor
+        */      
+		function PluginTidyOutputUpdateConfigAction($actionInfo, $request)
+		{
+			$this->AdminAction($actionInfo, $request);
+		}
+
+        /**
+        * Add function info
+        */        
+		function validate()
+		{
+			return true;
+		}
+
+        /**
+        * Add function info
+        */  
+		function perform()
+		{
+            // update the plugin configurations to config settings
+			$config  = & Config::getConfig();
+
+            $enabled = $this->_request->getValue("enabled");
+            $enabled = ($enabled == 1);
+
+            $report  = $this->_request->getValue("report");
+            $report  = ($report == 1);
+
+            $silent  = $this->_request->getValue("silent");
+            $silent  = ($silent == 1);
+
+            $errors  = $this->_request->getValue("errors");
+            $errors  = ($errors == 1);
+            
+            $config->setValue("plugin_tidyoutput_enabled", $enabled);
+            $config->setValue("plugin_tidyoutput_report", $report);
+            $config->setValue("plugin_tidyoutput_silent_mode", $silent);
+            $config->setValue("plugin_tidyoutput_errors", $errors);
+            
+            if (!$config->save())
+            {
+                $this->_view = new PluginTidyOutputConfigView($this->_blogInfo);
+                $this->_view->setErrorMessage($this->_locale->tr("error_updating_settings"));
+                $this->setCommonData();
+
+                return false;
+            }
+            
+			// if everything went ok...
+            $this->_session->setValue("blogInfo", $this->_blogInfo);
+            $this->saveSession();
+
+            include_once(PLOG_CLASS_PATH . "plugins/tidyoutput/class/tidy/tidy.class.php");
+                  
+            $this->_view = new PluginTidyOutputConfigView($this->_blogInfo);
+            $this->_view->setValue("tidyInstalled", Tidy::isInstalled());
+			$this->_view->setSuccessMessage($this->_locale->tr("tidyoutput_settings_saved_ok"));
+			$this->setCommonData();
+			
+            return true;
+		}
+	}
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/class/tidy/tidy.class.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/class/tidy/tidy.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/class/tidy/tidy.class.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,123 @@
+<?php
+
+    include_once(PLOG_CLASS_PATH . "class/object/object.class.php");
+
+    /**
+    * Tidy class.
+    */
+    class Tidy extends Object
+    {
+        var $_parsed;
+        
+        /**
+        * Constructor.
+        * By default sessions are stored in php files
+        */
+        function Tidy()
+        {
+            $this->Object();
+            $this->_parsed = false;
+        }
+
+        /**
+        * Add function info here
+        */
+        function isInstalled()
+        {
+            return function_exists("tidy_parse_string");
+        }
+        
+        /**
+        * Add function info here
+        */
+        function isParsed()
+        {
+            return $this->_parsed;
+        }
+        
+        /**
+        * Add function info here
+        */
+        function setOption($name, $value)
+        {
+            tidy_setopt($name, $value);
+        }
+
+        /**
+        * Add function info here
+        */
+        function setOptions($options)
+        {
+            if (is_array($options) && count($options) > 0)
+            {
+                foreach ($options as $key => $value)
+                {
+                    $this->setOption($key, $value);
+                }
+            }
+        }
+        
+        /**
+        * Add function info here
+        */
+        function getOption($name)
+        {
+            tidy_getopt($name);
+        }
+
+        /**
+        * Add function info here
+        */
+        function parse($str)
+        {
+            $this->_parsed = true;
+            return tidy_parse_string($str);
+        }
+
+        /**
+        * Add function info here
+        */
+        function cleanRepair()
+        {
+            if (!$this->isParsed())
+            {
+                throw(new qException("Tidy::cleanRepair: before execute this method, you must parse the string"));
+                die();
+            }
+
+            return tidy_clean_repair();
+        }
+        
+        /**
+        * Add function info here
+        */
+        function getErrors()
+        {
+            return tidy_get_error_buffer();
+        }
+
+        /**
+        * Add function info here
+        */
+        function getErrorsCount()
+        {
+            return tidy_error_count();
+        }
+
+        /**
+        * Add function info here
+        */
+        function getWarningsCount()
+        {
+            return tidy_warning_count();
+        }
+
+        /**
+        * Add function info here
+        */
+        function getOutput()
+        {
+            return tidy_get_output();
+        }
+    }
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/class/view/plugintidyoutputconfigview.class.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/class/view/plugintidyoutputconfigview.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/class/view/plugintidyoutputconfigview.class.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,40 @@
+<?php
+	
+	include_once(PLOG_CLASS_PATH . "class/view/admin/adminplugintemplatedview.class.php");
+
+	/**
+    * PluginTidyOutputConfigView class
+    */
+	class PluginTidyOutputConfigView extends AdminPluginTemplatedView
+	{
+        /**
+        * Constructor
+        */
+		function PluginTidyOutputConfigView($blogInfo)
+		{
+			$this->AdminPluginTemplatedView($blogInfo, "tidyoutput", "tidyoutput");
+		}
+
+        /**
+        * Add function info
+        */      
+		function render()
+		{
+			// load some configuration settings
+			$config   = & Config::getConfig();
+			$enabled  = $config->getValue("plugin_tidyoutput_enabled");
+            $report   = $config->getValue("plugin_tidyoutput_report");
+            $silent   = $config->getValue("plugin_tidyoutput_silent_mode");
+            $errors   = $config->getValue("plugin_tidyoutput_errors");
+
+            // create a view and export the settings to the template
+			$this->setValue("enabled", $enabled);
+			$this->setValue("report", $report);
+            $this->setValue("silent", $silent);
+            $this->setValue("errors", $errors);
+			
+			parent::render();
+		}
+	}
+   
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/config/options.properties.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/config/options.properties.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/config/options.properties.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,25 @@
+<?php
+
+    /**
+    * Tidy plugin config params
+    */
+    $options = array(
+        "output-xhtml"                  => true,
+        "show-body-only"                => false,
+        "clean"                         => true,
+        "drop-font-tags"                => true,
+        "drop-proprietary-attributes"   => true,
+        "hide-comments"                 => true,
+        "join-classes"                  => true,
+        "join-styles"                   => true,
+        "enclose-block-text"            => false,
+        "enclose-text"                  => false,
+        "word-2000"                     => true,
+        "ascii-chars"                   => true,
+        "numeric-entities"              => true,
+        "char-encoding"                 => "ascii",
+        "input-encoding"                => "latin1",
+        "output-encoding"               => "ascii",
+        "wrap"                          => 0
+        );
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/locale/locale_ca_ES.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/locale/locale_ca_ES.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/locale/locale_ca_ES.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,29 @@
+<?php
+
+// Translation Carles Balaguer carles at qdevel.com
+// Date 09/Nov/2006
+//
+
+$messages["manageOutputPlugins"] = "Output plugins";
+$messages["TidyOutput"] = "Tidy Output";
+$messages["tidyoutput"] = "Tidy Output";
+$messages["tidyoutput_plugin"] = "Tidy Output";
+
+$messages["tidyoutput_label_configuration"] = "Configuració";
+$messages["tidyoutput_label_enabled"] = "Activar";
+$messages["tidyoutput_plugin_enabled"] = "Activar aquest plugin";
+
+$messages["tidyoutput_label_report"] = "Informe";
+$messages["tidyoutput_plugin_report"] = "Mostrar informe al peu de pàgina";
+
+$messages["tidyoutput_label_silent"] = "Mode silenciós";
+$messages["tidyoutput_plugin_silent"] = "Mostrar l'informe de forma oculta entre tags de comentari HTML";
+
+$messages["tidyoutput_label_errors"] = "Errors & Warnings";
+$messages["tidyoutput_plugin_errors"] = "Mostrar en l'informe el detall de tots els errors i warnings trobats.";
+
+$messages["tidyoutput_settings_saved_ok"] = "Les dades s'han guardat amb èxit";
+
+$messages["tidyoutput_tidy_not_installed"] = "Aquest plugin només funciona si l'extensió de Tidy per a PHP està activada. Si us plau, instal·li i/o habiliti aquesta extensió dins l'arxiu de configuració php.ini. Visiti <a href=\"http://www.php.net/tidy\">http://www.php.net/tidy</a> per a més informació.";
+
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/locale/locale_en_UK.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/locale/locale_en_UK.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/locale/locale_en_UK.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,29 @@
+<?php
+
+// Translation Carles Balaguer carles at qdevel.com
+// Date 09/Nov/2006
+//
+
+$messages["manageOutputPlugins"] = "Output plugins";
+$messages["TidyOutput"] = "Tidy Output";
+$messages["tidyoutput"] = "Tidy Output";
+$messages["tidyoutput_plugin"] = "Tidy Output";
+
+$messages["tidyoutput_label_configuration"] = "Settings";
+$messages["tidyoutput_label_enabled"] = "Enable";
+$messages["tidyoutput_plugin_enabled"] = "Enable this plugin";
+
+$messages["tidyoutput_label_report"] = "Status";
+$messages["tidyoutput_plugin_report"] = "Show a status message at the bottom of the page";
+
+$messages["tidyoutput_label_silent"] = "Silent mode";
+$messages["tidyoutput_plugin_silent"] = "Show the status report hidden in HTML comments in the page";
+
+$messages["tidyoutput_label_errors"] = "Errors & Warnings";
+$messages["tidyoutput_plugin_errors"] = "Show all errors and warnings found in the status report";
+
+$messages["tidyoutput_settings_saved_ok"] = "Settings successfully updated";
+
+$messages["tidyoutput_tidy_not_installed"] = "This plugin requires the Tidy extension compiled in PHP. Please install and enable this extension in yoru php.ini file. Please refer to <a href=\"http://www.php.net/tidy\">http://www.php.net/tidy</a> for more details.";
+
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/locale/locale_es_ES.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/locale/locale_es_ES.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/locale/locale_es_ES.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,29 @@
+<?php
+
+// Translation Carles Balaguer carles at qdevel.com
+// Date 09/Nov/2006
+//
+
+$messages["manageOutputPlugins"] = "Output plugins";
+$messages["TidyOutput"] = "Tidy Output";
+$messages["tidyoutput"] = "Tidy Output";
+$messages["tidyoutput_plugin"] = "Tidy Output";
+
+$messages["tidyoutput_label_configuration"] = "Configuración";
+$messages["tidyoutput_label_enabled"] = "Activar";
+$messages["tidyoutput_plugin_enabled"] = "Activar este plugin";
+
+$messages["tidyoutput_label_report"] = "Informe";
+$messages["tidyoutput_plugin_report"] = "Mostrar informe al pie de página";
+
+$messages["tidyoutput_label_silent"] = "Modo silencioso";
+$messages["tidyoutput_plugin_silent"] = "Mostrar el informe de forma oculta entre tags de comentario HTML";
+
+$messages["tidyoutput_label_errors"] = "Errors & Warnings";
+$messages["tidyoutput_plugin_errors"] = "Mostrar en el informe el detalle de todos los errors y warnings encontrados.";
+
+$messages["tidyoutput_settings_saved_ok"] = "Los datos se han guardado con éxito";
+
+$messages["tidyoutput_tidy_not_installed"] = "Este plugin únicamente funciona con la extensión de Tidy para PHP activada. Por favor instale y/o habilite esta extensión en el archivo de configuración php.ini. Visite <a href=\"http://www.php.net/tidy\">http://www.php.net/tidy</a> para más información.";
+
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/plugintidyoutput.class.php
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/plugintidyoutput.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/plugintidyoutput.class.php	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,151 @@
+<?php
+
+    include_once(PLOG_CLASS_PATH . "class/plugin/pluginbase.class.php");
+    include_once(PLOG_CLASS_PATH . "class/plugin/pluginmanager.class.php");
+    
+    /*
+    * Plugin that offers features to return links to the next and previous articles
+    * within the current category
+    */
+    class PluginTidyOutput extends PluginBase
+    {
+        /**
+        * Constructor
+        */
+        function PluginTidyOutput()
+        {
+            $this->author = "Carles Balaguer";
+            $this->desc = "This plugin optimize output document (clean and repair) using PHP Tidy HTML extension. Info for PHP Tidy extension at <a href=\"http://www.php.net/tidy\">http://www.php.net/tidy</a> and info for Tidy options at <a href=\"http://tidy.sourceforge.net/docs/quickref.html\">http://tidy.sourceforge.net/docs/quickref.html</a>";
+            
+            $this->PluginBase();
+            $this->id = "tidyoutput";
+
+            $this->init();
+
+            include_once(PLOG_CLASS_PATH . "plugins/tidyoutput/class/tidy/tidy.class.php");
+            
+            if (Tidy::isInstalled())
+            {
+                $this->registerNotification(EVENT_PROCESS_BLOG_TEMPLATE_OUTPUT);
+            }
+            else
+            {
+                $this->desc .= "<br /><span style=\"color: #ff0000;\">This plugin only works with PHP Tidy extension enabled. Please install and/or enable this extension. See links above for documentation.</span>";
+            }
+        }
+
+        /**
+        * Add function info here
+        */
+        function init()
+        {
+            $this->registerAdminAction("tidyoutput", "PluginTidyOutputConfigAction");
+            $this->registerAdminAction("tidyoutputUpdateConfig", "PluginTidyOutputUpdateConfigAction");
+
+            include_once(PLOG_CLASS_PATH . "class/template/menu/menu.class.php");
+            $menu = &Menu::getMenu();
+            
+            if (!$menu->entryExists( "/menu/adminSettings/manageOutputPlugins"))
+            {
+                $this->addMenuEntry("/menu/adminSettings", "manageOutputPlugins", "", "", true, false);
+            }
+
+            if (!$menu->entryExists( "/menu/adminSettings/manageOutputPlugins/TidyOutput"))
+            {
+                $this->addMenuEntry("/menu/adminSettings/manageOutputPlugins", "TidyOutput", "?op=tidyoutput", "");
+            }
+        }
+
+        /**
+        * Add function info here
+        */
+        function process($eventType, $params)
+        {
+            if ($eventType == EVENT_PROCESS_BLOG_TEMPLATE_OUTPUT)
+            {
+                // If output is a RSS output do not tidyfy
+                if ($params["from"] != "rssview")
+                {
+                    $params["content"] = $this->tidyfy($params["content"]);
+                }
+            }
+        
+            return true;
+        }
+    
+        /**
+        * Add function info here
+        */
+        function tidyfy($output)
+        {
+            $config  = &Config::getConfig();
+            $enabled = $config->getValue("plugin_tidyoutput_enabled");
+            $report  = $config->getValue("plugin_tidyoutput_report");
+            $silent  = $config->getValue("plugin_tidyoutput_silent_mode");
+            $errors  = $config->getValue("plugin_tidyoutput_errors");
+            
+            if (!$enabled)
+            {
+                return $output;
+            }
+
+            include_once(PLOG_CLASS_PATH . "plugins/tidyoutput/class/tidy/tidy.class.php");
+            include_once(PLOG_CLASS_PATH . "plugins/tidyoutput/config/options.properties.php");
+            
+            $tidy = new Tidy();
+            $tidy->setOptions($options);
+            $tidy->parse($output);
+            $tidy->cleanRepair();
+
+            $result = $tidy->getOutput();
+            
+            if ($report)
+            {
+                $size1  = strlen($output);
+                $size2  = strlen($result);
+                $saving = round((1 - ($size2 / $size1)) * 100);
+
+                $report = "Tidy report: " . $tidy->getErrorsCount() . " error(s), " . $tidy->getWarningsCount() . " warning(s)";
+
+                if ($errors)
+                {
+                    $report .= PHP_EOL . $tidy->getErrors();
+                }
+
+                $report .= PHP_EOL . "Output: " . $this->normalizeSize($size1, 2) . ", Output through Tidy: " . $this->normalizeSize($size2, 2) . ", Saving: " . $saving . "%";
+                
+                if ($silent)
+                {
+                    $report = "<!--" . PHP_EOL . $report . PHP_EOL . "-->";
+                }
+                else
+                {
+                    $report = "<pre>" . PHP_EOL . htmlentities($report) . PHP_EOL . "</pre>";
+                }
+
+                $result .= $report;
+            }
+
+            return $result;
+        }
+
+        /**
+        * Add function info here
+        */
+        function normalizeSize($size, $decimals = null)
+        {
+            $sizes = array("B", "KB", "MB", "GB", "TB", "PB", "EB");
+            $ext   = $sizes[0];
+            $count = count($sizes);
+
+            for ($i = 1; ($i < $count) && ($size >= 1024); $i++)
+            {
+                $size = $size / 1024;
+                $ext  = $sizes[$i];
+            }
+
+            return round($size, $decimals). " " . $ext;
+        }
+    }
+       
+?>
\ No newline at end of file

Added: plugins/branches/lifetype-1.1/tidyoutput/templates/tidyoutput.template
===================================================================
--- plugins/branches/lifetype-1.1/tidyoutput/templates/tidyoutput.template	                        (rev 0)
+++ plugins/branches/lifetype-1.1/tidyoutput/templates/tidyoutput.template	2007-02-21 21:50:04 UTC (rev 4806)
@@ -0,0 +1,62 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=TidyOutput title=$locale->tr("tidyoutput_plugin")}
+
+
+<form name="tidyoutputPluginConfig" method="post">
+    <fieldset class="inputField">
+        <legend>{$locale->tr("tidyoutput_label_configuration")}</legend>
+        
+        {include file="$admintemplatepath/successmessage.template"}
+        {include file="$admintemplatepath/errormessage.template"}
+
+        {if !$tidyInstalled}
+            {include file="$admintemplatepath/errormessage.template" viewIsError=true message=$locale->tr("tidyoutput_tidy_not_installed")}
+        {/if}
+        
+        <div class="field">
+            <label for="enabled">{$locale->tr("tidyoutput_label_enabled")}</label>
+            <span class="required">*</span>
+            
+            <div class="formHelp">
+                <input class="checkbox" type="checkbox" name="enabled" id="enabled" {if $enabled} checked="checked" {/if} value="1" />{$locale->tr("tidyoutput_plugin_enabled")}
+            </div>
+        </div>
+        
+        <div class="field">
+            <label for="report">{$locale->tr("tidyoutput_label_report")}</label>
+            <span class="required">*</span>
+            
+            <div class="formHelp">
+                <input class="checkbox" type="checkbox" name="report" id="report" {if $report} checked="checked" {/if} value="1" />{$locale->tr("tidyoutput_plugin_report")}
+            </div>
+        </div>
+
+        <div class="field">
+            <label for="silent">{$locale->tr("tidyoutput_label_silent")}</label>
+            <span class="required">*</span>
+            
+            <div class="formHelp">
+                <input class="checkbox" type="checkbox" name="silent" id="silent" {if $silent} checked="checked" {/if} value="1" />{$locale->tr("tidyoutput_plugin_silent")}
+            </div>
+        </div>
+
+        <div class="field">
+            <label for="errors">{$locale->tr("tidyoutput_label_errors")}</label>
+            <span class="required">*</span>
+            
+            <div class="formHelp">
+                <input class="checkbox" type="checkbox" name="errors" id="errors" {if $errors} checked="checked" {/if} value="1" />{$locale->tr("tidyoutput_plugin_errors")}
+            </div>
+        </div>
+        
+    </fieldset>
+
+    <div class="buttons">
+        <input type="hidden" name="op" value="tidyoutputUpdateConfig" />
+        <input type="reset" name="{$locale->tr("reset")}" />
+        <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
+    </div>
+</form>
+
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}



More information about the pLog-svn mailing list