Permalink
Browse files

Remove tidy panel.

It had extra dependencies and wasn't
enabled by default.  It also can easily live in a
plugin/app.
  • Loading branch information...
1 parent 4092a0e commit 5c20afaff1c3cf42e0b2fb84fdf546e7e0350fe8 @markstory markstory committed May 12, 2012
Showing with 0 additions and 70 deletions.
  1. +0 −65 Lib/Panel/TidyPanel.php
  2. +0 −5 View/Elements/tidy_panel.ctp
@@ -1,65 +0,0 @@
-<?php
-App::uses('DebugPanel', 'DebugKit.Lib');
-
-/**
- * Show (x)html validation errors in a tidy panel
- *
- * PHP version 4 and 5
- *
- * Copyright (c) 2009, Andy Dawson
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) 2009, Andy Dawson
- * @link www.ad7six.com
- * @package debug_kit
- * @subpackage debug_kit.vendors
- * @since v 1.0 (22-Jun-2009)
- * @license http://www.opensource.org/licenses/mit-license.php The MIT License
- */
-
-/**
- * TidyPanel class
- *
- * @uses DebugPanel
- * @package debug_kit
- * @subpackage debug_kit.panel
- */
-class TidyPanel extends DebugPanel {
-
-/**
- * title property
- *
- * @var string 'Tidy'
- * @access public
- */
- public $title = 'Tidy';
-
-/**
- * elementName property
- *
- * @var string 'tidy'
- * @access public
- */
- public $elementName = 'tidy_panel';
-
-/**
- * startup method
- *
- * @param mixed $controller
- * @return void
- * @access public
- */
- public function startup(Controller $controller) {
- $isHtml = (
- !isset($controller->params['ext']) ||
- (isset($controller->params['ext']) && $controller->params['ext'] == 'html')
- );
- if ($controller->Toolbar->RequestHandler->isAjax() || !$isHtml) {
- $this->enabled = false;
- unset($controller->Toolbar->panels['Tidy']);
- }
- $controller->helpers[] = 'DebugKit.Tidy';
- }
-}
@@ -1,5 +0,0 @@
-<?php
-if (!empty($this->request->params['isAjax'])) {
- return;
-}
-echo $this->Tidy->report($this->output);

0 comments on commit 5c20afa

Please sign in to comment.